diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-16 15:44:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-16 15:44:55 +0000 |
commit | 5a669f7567c4ee2c54bf7d9460316afded7349b0 (patch) | |
tree | 8afbb93336439ab95387af4fb865dc7aca089ef5 /tools/kleaver | |
parent | e3a6923ecc6f6ca968399765492fe844d2da2f2b (diff) | |
download | klee-5a669f7567c4ee2c54bf7d9460316afded7349b0.tar.gz |
kleaver: Add some command line options for choosing the Solver.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/kleaver')
-rw-r--r-- | tools/kleaver/main.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tools/kleaver/main.cpp b/tools/kleaver/main.cpp index e45b65d0..07de2784 100644 --- a/tools/kleaver/main.cpp +++ b/tools/kleaver/main.cpp @@ -62,6 +62,18 @@ namespace { clEnumValN(SimplifyingBuilder, "simplify", "Fold constants and simplify expressions."), clEnumValEnd)); + + cl::opt<bool> + UseDummySolver("use-dummy-solver", + cl::init(false)); + + cl::opt<bool> + UseFastCexSolver("use-fast-cex-solver", + cl::init(false)); + + cl::opt<bool> + UseSTPQueryPCLog("use-stp-query-pc-log", + cl::init(false)); } static std::string escapedString(const char *start, unsigned length) { @@ -149,8 +161,11 @@ static bool EvaluateInputAST(const char *Filename, return false; // FIXME: Support choice of solver. - Solver *S, *STP = S = new STPSolver(true); - if (0) + Solver *S, *STP = S = + UseDummySolver ? createDummySolver() : new STPSolver(true); + if (UseSTPQueryPCLog) + S = createPCLoggingSolver(S, "stp-queries.pc"); + if (UseFastCexSolver) S = createFastCexSolver(S); S = createCexCachingSolver(S); S = createCachingSolver(S); |