From b676cabff80c1b8a7872f5263fbdadf2a1ff1148 Mon Sep 17 00:00:00 2001
From: Cristian Cadar
Date: Fri, 11 Jan 2013 10:55:36 +0000
Subject: Documentation for klee-stats by Tomasz Kuchta.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@172190 91177308-0d34-0410-b5e6-96231b3b80d8
---
www/Documentation.html | 14 ++++++-----
www/klee-tools.html | 64 ++++++++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 70 insertions(+), 8 deletions(-)
diff --git a/www/Documentation.html b/www/Documentation.html
index 11152801..038b1f83 100644
--- a/www/Documentation.html
+++ b/www/Documentation.html
@@ -17,8 +17,7 @@
-
- KLEE Tutorials:
-
+ KLEE Tutorials:
Simple examples of how to use KLEE to test programs.
@@ -28,14 +27,17 @@
-
- KLEE Generated Files:
-
+ KLEE Generated Files:
Overview of the main files generated by KLEE.
-
- KQuery Language Reference Manual:
-
+ KLEE Tools:
+ Overview of the main auxiliary tools provided by KLEE.
+
+
+ -
+ KQuery Language Reference Manual:
The reference manual for the KQuery language, used for interacting with
the KLEE solver (kleaver).
diff --git a/www/klee-tools.html b/www/klee-tools.html
index 131c1861..80ae5d35 100644
--- a/www/klee-tools.html
+++ b/www/klee-tools.html
@@ -15,10 +15,70 @@
KLEE Tools
- ktest-tool
+
- klee-stats
+
+ klee-stats
+ klee-stats is a Python script used to extract and present in a
+ tabular form runtime statistics for a KLEE execution. The runtime statistics include:
+
+ - The number of executed instructions
+ - Instruction coverage in the LLVM bitcode (%)
+ - Branch coverage in the LLVM bitcode (%)
+ - Total static instructions in the LLVM bitcode
+ - The number of currently active states
+ - Megabytes of memory currently used
+ - The number of queries issued to STP
+ - The average number of query constructs per query
+ - Various time statistics:
+
+ - Total user time
+ - Total wall time
+ - Time spent in the constraint solver
+ - Time spent in the counterexample caching code
+ - Time spent forking
+ - Time spent in object resolution
+
+
+
+
+ klee-stats extracts statistics information from the run.stats file
+ present in the klee-out-* directory created during a KLEE execution.
+ The exact usage of klee-stats is as follows:
+ klee-stats [options] directories
+ The directories parameter is a list of klee-out-* directories
+ created by KLEE. A common scenario is to simply run klee-stats on klee-last.
+
+
+ In order to limit printed information only to the values of measured times,
+ the following options can be used:
+
+
+ - --print-rel-times—display time values relative
+ to measured execution time
+
+ - --print-abs-times—display absolute time values
+
+
+ The --precision option can be used to configure the number of fractional
+ digits displayed in floating point values. By default, 2 fractional digits
+ are displayed, but in some cases that might be not sufficient—if the value
+ is very small, e.g. 0.0001, with 2-digits precision it will be printed as 0.00.
+
+
+ Various other options can be used to specify what values are
+ displayed and how they are displayed. Options for comparison of
+ statistics are also provided. More information about available
+ options can be obtained using the command:
+
klee-stats --help
+
+
+
+