diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2019-03-11 11:10:47 +0000 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2019-03-13 10:25:33 +0000 |
commit | 946c14baf091ccbc5334d3c506921e8c0e9a739c (patch) | |
tree | 56556dabf5a7d73230c3e8e6b612cbdc8f394a30 /lib/Solver | |
parent | 7ec4cf4f5f05f1866bec27392f6daf806d003758 (diff) | |
download | klee-946c14baf091ccbc5334d3c506921e8c0e9a739c.tar.gz |
Added options in CexCachingSolver.cpp to the constraint solving category and improved help messages
Diffstat (limited to 'lib/Solver')
-rw-r--r-- | lib/Solver/CexCachingSolver.cpp | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/lib/Solver/CexCachingSolver.cpp b/lib/Solver/CexCachingSolver.cpp index 7c977a57..8bf41ee6 100644 --- a/lib/Solver/CexCachingSolver.cpp +++ b/lib/Solver/CexCachingSolver.cpp @@ -11,16 +11,15 @@ #include "klee/Constraints.h" #include "klee/Expr.h" +#include "klee/Internal/ADT/MapOfSets.h" +#include "klee/Internal/Support/ErrorHandling.h" +#include "klee/OptionCategories.h" #include "klee/SolverImpl.h" +#include "klee/SolverStats.h" #include "klee/TimerStatIncrementer.h" #include "klee/util/Assignment.h" #include "klee/util/ExprUtil.h" #include "klee/util/ExprVisitor.h" -#include "klee/Internal/ADT/MapOfSets.h" - -#include "klee/SolverStats.h" - -#include "klee/Internal/Support/ErrorHandling.h" #include "llvm/Support/CommandLine.h" @@ -28,23 +27,30 @@ using namespace klee; using namespace llvm; namespace { - cl::opt<bool> - DebugCexCacheCheckBinding("debug-cex-cache-check-binding"); - - cl::opt<bool> - CexCacheTryAll("cex-cache-try-all", - cl::desc("try substituting all counterexamples before asking the SMT solver"), - cl::init(false)); - - cl::opt<bool> - CexCacheSuperSet("cex-cache-superset", - cl::desc("try substituting SAT super-set counterexample before asking the SMT solver (default=false)"), - cl::init(false)); - - cl::opt<bool> - CexCacheExperimental("cex-cache-exp", cl::init(false)); - -} +cl::opt<bool> DebugCexCacheCheckBinding( + "debug-cex-cache-check-binding", cl::init(false), + cl::desc("Debug the correctness of the counterexample " + "cache assignments (default=off)"), + cl::cat(SolvingCat)); + +cl::opt<bool> + CexCacheTryAll("cex-cache-try-all", cl::init(false), + cl::desc("Try substituting all counterexamples before " + "asking the SMT solver (default=off)"), + cl::cat(SolvingCat)); + +cl::opt<bool> + CexCacheSuperSet("cex-cache-superset", cl::init(false), + cl::desc("Try substituting SAT superset counterexample " + "before asking the SMT solver (default=false)"), + cl::cat(SolvingCat)); + +cl::opt<bool> CexCacheExperimental( + "cex-cache-exp", cl::init(false), + cl::desc("Optimization for validity queries (default=off)"), + cl::cat(SolvingCat)); + +} // namespace /// |