diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2013-03-11 17:11:06 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2013-03-11 17:11:06 +0000 |
commit | 454dfc67045fbbc3358b28f855f3af0af31daf47 (patch) | |
tree | 103a8f9d03a6fa38e111addc0e5e0015d943646b /lib/Core/Executor.cpp | |
parent | d33011aea4f2603c1413dddc5937eca5f6091f1b (diff) | |
download | klee-454dfc67045fbbc3358b28f855f3af0af31daf47.tar.gz |
Patch by Dan Liew which unifies the solver construction between KLEE
and Kleaver and fixes --use-query-log in Kleaver. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@176811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r-- | lib/Core/Executor.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index ec053597..3f90c426 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -131,10 +131,6 @@ namespace { cl::init(0)); cl::opt<bool> - DebugValidateSolver("debug-validate-solver", - cl::init(false)); - - cl::opt<bool> SuppressExternalWarnings("suppress-external-warnings"); cl::opt<bool> @@ -242,60 +238,6 @@ namespace klee { RNG theRNG; } -Solver *constructSolverChain(STPSolver *stpSolver, - std::string querySMT2LogPath, - std::string baseSolverQuerySMT2LogPath, - std::string queryPCLogPath, - std::string baseSolverQueryPCLogPath) { - Solver *solver = stpSolver; - - if (optionIsSet(queryLoggingOptions,SOLVER_PC)) - { - solver = createPCLoggingSolver(solver, - baseSolverQueryPCLogPath, - MinQueryTimeToLog); - klee_message("Logging queries that reach solver in .pc format to %s",baseSolverQueryPCLogPath.c_str()); - } - - if (optionIsSet(queryLoggingOptions,SOLVER_SMTLIB)) - { - solver = createSMTLIBLoggingSolver(solver,baseSolverQuerySMT2LogPath, - MinQueryTimeToLog); - klee_message("Logging queries that reach solver in .smt2 format to %s",baseSolverQuerySMT2LogPath.c_str()); - } - - if (UseFastCexSolver) - solver = createFastCexSolver(solver); - - if (UseCexCache) - solver = createCexCachingSolver(solver); - - if (UseCache) - solver = createCachingSolver(solver); - - if (UseIndependentSolver) - solver = createIndependentSolver(solver); - - if (DebugValidateSolver) - solver = createValidatingSolver(solver, stpSolver); - - if (optionIsSet(queryLoggingOptions,ALL_PC)) - { - solver = createPCLoggingSolver(solver, - queryPCLogPath, - MinQueryTimeToLog); - klee_message("Logging all queries in .pc format to %s",queryPCLogPath.c_str()); - } - - if (optionIsSet(queryLoggingOptions,ALL_SMTLIB)) - { - solver = createSMTLIBLoggingSolver(solver,querySMT2LogPath, - MinQueryTimeToLog); - klee_message("Logging all queries in .smt2 format to %s",querySMT2LogPath.c_str()); - } - - return solver; -} Executor::Executor(const InterpreterOptions &opts, InterpreterHandler *ih) |