aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2014-02-24 17:27:16 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2014-02-24 17:27:16 +0000
commit78f393d28eb243aa00e003feeee928091d5f174f (patch)
tree17edb16d1e7fafcde130e00661b7ba5acf5ae465
parentb96fd2ce9e2148e076bb755b6a2fc39979a37f6b (diff)
downloadklee-78f393d28eb243aa00e003feeee928091d5f174f.tar.gz
Improved help message for make-concrete-symbolic and fixed some typos.
-rw-r--r--lib/Core/Executor.cpp4
-rw-r--r--tools/klee/main.cpp6
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index bf672bb7..070f825e 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -2911,11 +2911,11 @@ ref<Expr> Executor::replaceReadWithSymbolic(ExecutionState &state,
if (!n || replayOut || replayPath)
return e;
- // right now, we don't replace symbolics (is there any reason too?)
+ // right now, we don't replace symbolics (is there any reason to?)
if (!isa<ConstantExpr>(e))
return e;
- if (n != 1 && random() % n)
+ if (n != 1 && random() % n)
return e;
// create a new fresh location, assert it is equal to concrete value in e
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index f9698fdf..1fe28270 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -170,7 +170,7 @@ namespace {
cl::opt<bool>
ReplayKeepSymbolic("replay-keep-symbolic",
- cl::desc("Replay the test cases only by asserting"
+ cl::desc("Replay the test cases only by asserting "
"the bytes, not necessarily making them concrete."));
cl::list<std::string>
@@ -196,7 +196,9 @@ namespace {
cl::opt<unsigned>
MakeConcreteSymbolic("make-concrete-symbolic",
- cl::desc("Rate at which to make concrete reads symbolic (0=off)"),
+ cl::desc("Probabilistic rate at which to make concrete reads symbolic, "
+ "i.e. approximately 1 in n concrete reads will be made symbolic (0=off, 1=all). "
+ "Used for testing."),
cl::init(0));
cl::opt<unsigned>