about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorHoang M. Le <hle@informatik.uni-bremen.de>2016-06-08 18:03:51 +0200
committerHoang M. Le <hle@informatik.uni-bremen.de>2016-06-10 11:32:30 +0200
commita0ce2ae13ff2b96befe633742ce5ce0c014666ed (patch)
tree38d32e5b6a2cb1fcc98d064a1897ea6a3c1048f4 /lib
parent3e5288a6d9719735a505647ad9fcfc63b5bb2fc1 (diff)
downloadklee-a0ce2ae13ff2b96befe633742ce5ce0c014666ed.tar.gz
use default metaSMT solver as defined in configuration
Diffstat (limited to 'lib')
-rw-r--r--lib/Basic/CmdLineOptions.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/Basic/CmdLineOptions.cpp b/lib/Basic/CmdLineOptions.cpp
index a0fbda03..7bff3437 100644
--- a/lib/Basic/CmdLineOptions.cpp
+++ b/lib/Basic/CmdLineOptions.cpp
@@ -84,16 +84,30 @@ llvm::cl::list<QueryLoggingSolverType> queryLoggingOptions(
 
 #ifdef ENABLE_METASMT
 
+#ifdef METASMT_DEFAULT_SOLVER_BTOR
+#define DEFAULT_METASMT_BACKEND_STR "(default = btor)."
+#define DEFAULT_METASMT_BACKEND METASMT_BACKEND_BOOLECTOR
+#elif METASMT_DEFAULT_SOLVER_Z3
+#define DEFAULT_METASMT_BACKEND_STR "(default = z3)."
+#define DEFAULT_METASMT_BACKEND METASMT_BACKEND_Z3
+#else
+#define DEFAULT_METASMT_BACKEND_STR "(default = stp)."
+#define DEFAULT_METASMT_BACKEND METASMT_BACKEND_STP
+#endif
+
 llvm::cl::opt<klee::MetaSMTBackendType> MetaSMTBackend(
     "metasmt-backend",
-    llvm::cl::desc("Specify the MetaSMT solver backend type (default=STP)."),
+    llvm::cl::desc("Specify the MetaSMT solver backend type " DEFAULT_METASMT_BACKEND_STR),
     llvm::cl::values(
         clEnumValN(METASMT_BACKEND_STP, "stp", "Use metaSMT with STP"),
         clEnumValN(METASMT_BACKEND_Z3, "z3", "Use metaSMT with Z3"),
         clEnumValN(METASMT_BACKEND_BOOLECTOR, "btor",
                    "Use metaSMT with Boolector"),
         clEnumValEnd),
-    llvm::cl::init(METASMT_BACKEND_STP));
+    llvm::cl::init(DEFAULT_METASMT_BACKEND));
+
+#undef DEFAULT_METASMT_BACKEND
+#undef DEFAULT_METASMT_BACKEND_STR
 
 #endif /* ENABLE_METASMT */