about summary refs log tree commit diff homepage
path: root/lib/Basic/CmdLineOptions.cpp
diff options
context:
space:
mode:
authorDan Liew <delcypher@gmail.com>2016-09-15 13:13:33 +0100
committerGitHub <noreply@github.com>2016-09-15 13:13:33 +0100
commit9baab03a58ffb8c74a2c3db40256521050f68049 (patch)
tree39b675f5b2bd836d8a60bb9a889087650c596239 /lib/Basic/CmdLineOptions.cpp
parent2a3b9fa786228dadda6d7808dadd8e9a2870b169 (diff)
parent3200fe7b15a89619ee0cf9a31841ef9737c38950 (diff)
downloadklee-9baab03a58ffb8c74a2c3db40256521050f68049.tar.gz
Merge pull request #372 from delcypher/stp_z3_crosscheck
Allow cross checking of solvers
Diffstat (limited to 'lib/Basic/CmdLineOptions.cpp')
-rw-r--r--lib/Basic/CmdLineOptions.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Basic/CmdLineOptions.cpp b/lib/Basic/CmdLineOptions.cpp
index 20c190a5..399c27a2 100644
--- a/lib/Basic/CmdLineOptions.cpp
+++ b/lib/Basic/CmdLineOptions.cpp
@@ -139,6 +139,19 @@ llvm::cl::opt<CoreSolverType> CoreSolverToUse(
                      clEnumValN(Z3_SOLVER, "z3", "Z3" Z3_IS_DEFAULT_STR),
                      clEnumValEnd),
     llvm::cl::init(DEFAULT_CORE_SOLVER));
+
+llvm::cl::opt<CoreSolverType> DebugCrossCheckCoreSolverWith(
+    "debug-crosscheck-core-solver",
+    llvm::cl::desc(
+        "Specifiy a solver to use for cross checking with the core solver"),
+    llvm::cl::values(clEnumValN(STP_SOLVER, "stp", "stp"),
+                     clEnumValN(METASMT_SOLVER, "metasmt", "metaSMT"),
+                     clEnumValN(DUMMY_SOLVER, "dummy", "Dummy solver"),
+                     clEnumValN(Z3_SOLVER, "z3", "Z3"),
+                     clEnumValN(NO_SOLVER, "none",
+                                "Do not cross check (default)"),
+                     clEnumValEnd),
+    llvm::cl::init(NO_SOLVER));
 }
 #undef STP_IS_DEFAULT_STR
 #undef METASMT_IS_DEFAULT_STR