diff options
-rw-r--r-- | lib/Core/Executor.cpp | 9 | ||||
-rw-r--r-- | tools/klee/main.cpp | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index c357a751..993982e5 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -99,7 +99,8 @@ namespace { cl::opt<bool> RandomizeFork("randomize-fork", - cl::init(false)); + cl::init(false), + cl::desc("Randomly swap the true and false states on a fork (default=off)")); cl::opt<bool> AllowExternalSymCalls("allow-external-sym-calls", @@ -245,8 +246,8 @@ namespace { cl::opt<unsigned> MaxMemory("max-memory", - cl::desc("Refuse to fork when above this amount of memory (in MB, default=0 (off))"), - cl::init(0)); + cl::desc("Refuse to fork when above this amount of memory (in MB, default=2000)"), + cl::init(2000)); cl::opt<bool> MaxMemoryInhibit("max-memory-inhibit", @@ -717,7 +718,7 @@ Executor::fork(ExecutionState ¤t, ref<Expr> condition, bool isInternal) { (void) success; addConstraint(current, EqExpr::create(value, condition)); condition = value; - } + } } double timeout = stpTimeout; diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 9b6dabb7..dc335cd0 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -137,7 +137,8 @@ namespace { cl::opt<bool> OptimizeModule("optimize", - cl::desc("Optimize before execution")); + cl::desc("Optimize before execution"), + cl::init(false)); cl::opt<bool> CheckDivZero("check-div-zero", |