about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorahorn <alex.horn@cs.ox.ac.uk>2014-05-12 15:13:56 +0100
committerahorn <alex.horn@cs.ox.ac.uk>2014-05-12 15:13:56 +0100
commit4046c8e7cbd5b9db8562344c21c15c3db6248e7d (patch)
tree39745a067fd1170972f6da44422e1affe37218be /lib
parentd10513097420196493b4a408c6cf75cbd53b8351 (diff)
downloadklee-4046c8e7cbd5b9db8562344c21c15c3db6248e7d.tar.gz
Add SimplifyExpressions command line option
Allow users to bypass ConstraintManager::simplifyExpr(ref<Expr>).
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/Executor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index abb023eb..fb1a6698 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -164,6 +164,11 @@ namespace {
   SimplifySymIndices("simplify-sym-indices",
                      cl::init(false));
 
+  cl::opt<bool>
+  SimplifyExpressions("simplify-expressions",
+                     cl::init(true),
+                     cl::desc("Simplify symbolic expressions before querying the solver (default=on)."));
+
   cl::opt<unsigned>
   MaxSymArraySize("max-sym-array-size",
                   cl::init(0));
@@ -333,7 +338,7 @@ Executor::Executor(const InterpreterOptions &opts,
                          interpreterHandler->getOutputFilename(ALL_QUERIES_PC_FILE_NAME),
                          interpreterHandler->getOutputFilename(SOLVER_QUERIES_PC_FILE_NAME));
   
-  this->solver = new TimingSolver(solver);
+  this->solver = new TimingSolver(solver, SimplifyExpressions);
 
   memory = new MemoryManager();
 }