diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2012-09-11 17:05:00 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2012-09-11 17:05:00 +0000 |
commit | 1e6f7d11bafab8c8eef907c7bc0a165ce426984b (patch) | |
tree | e9c2f7015d97df7f6084addd5b558859e56ae436 /lib/Core/Executor.cpp | |
parent | 1bc0219daa4f3a99f3b193dafe88a048f3e4a225 (diff) | |
download | klee-1e6f7d11bafab8c8eef907c7bc0a165ce426984b.tar.gz |
Changed the default to --max-memory and documented randomize-fork.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@163632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r-- | lib/Core/Executor.cpp | 9 |
1 files changed, 5 insertions, 4 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; |