From 946c14baf091ccbc5334d3c506921e8c0e9a739c Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 11 Mar 2019 11:10:47 +0000 Subject: Added options in CexCachingSolver.cpp to the constraint solving category and improved help messages --- lib/Solver/CexCachingSolver.cpp | 50 +++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 22 deletions(-) (limited to 'lib') 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 - DebugCexCacheCheckBinding("debug-cex-cache-check-binding"); - - cl::opt - CexCacheTryAll("cex-cache-try-all", - cl::desc("try substituting all counterexamples before asking the SMT solver"), - cl::init(false)); - - cl::opt - CexCacheSuperSet("cex-cache-superset", - cl::desc("try substituting SAT super-set counterexample before asking the SMT solver (default=false)"), - cl::init(false)); - - cl::opt - CexCacheExperimental("cex-cache-exp", cl::init(false)); - -} +cl::opt 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 + 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 + 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 CexCacheExperimental( + "cex-cache-exp", cl::init(false), + cl::desc("Optimization for validity queries (default=off)"), + cl::cat(SolvingCat)); + +} // namespace /// -- cgit 1.4.1