From 1e6f7d11bafab8c8eef907c7bc0a165ce426984b Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Tue, 11 Sep 2012 17:05:00 +0000 Subject: 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 --- lib/Core/Executor.cpp | 9 +++++---- 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 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 AllowExternalSymCalls("allow-external-sym-calls", @@ -245,8 +246,8 @@ namespace { cl::opt 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 MaxMemoryInhibit("max-memory-inhibit", @@ -717,7 +718,7 @@ Executor::fork(ExecutionState ¤t, ref 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 OptimizeModule("optimize", - cl::desc("Optimize before execution")); + cl::desc("Optimize before execution"), + cl::init(false)); cl::opt CheckDivZero("check-div-zero", -- cgit 1.4.1