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 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/Core') 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; -- cgit 1.4.1