about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-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>