From d34a946acb7f5155ee62f1bdc95ae7ef7b848e49 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Mon, 11 Apr 2016 08:19:02 -0500 Subject: Add ``-debug-cross-check-core-solver`` option to allow cross-checking with another solver. For example the core solver can be STP and the cross checking solver can be Z3. Unfortunately a few fragile tests don't pass when actually using this option. --- include/klee/CommandLine.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/klee/CommandLine.h b/include/klee/CommandLine.h index 00cdeebb..dc69de6e 100644 --- a/include/klee/CommandLine.h +++ b/include/klee/CommandLine.h @@ -44,9 +44,17 @@ enum QueryLoggingSolverType */ extern llvm::cl::list queryLoggingOptions; -enum CoreSolverType { STP_SOLVER, METASMT_SOLVER, DUMMY_SOLVER, Z3_SOLVER }; +enum CoreSolverType { + STP_SOLVER, + METASMT_SOLVER, + DUMMY_SOLVER, + Z3_SOLVER, + NO_SOLVER +}; extern llvm::cl::opt CoreSolverToUse; +extern llvm::cl::opt DebugCrossCheckCoreSolverWith; + #ifdef ENABLE_METASMT enum MetaSMTBackendType -- cgit 1.4.1 From c9778f9278ee0d0ccb845843a35edf66c3fcb2ac Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Sun, 1 May 2016 14:52:56 -0700 Subject: Correct out of date comments for some of the klee error handling functions. --- include/klee/Internal/Support/ErrorHandling.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/klee/Internal/Support/ErrorHandling.h b/include/klee/Internal/Support/ErrorHandling.h index 330985e9..29451692 100644 --- a/include/klee/Internal/Support/ErrorHandling.h +++ b/include/klee/Internal/Support/ErrorHandling.h @@ -23,7 +23,7 @@ namespace klee { extern FILE *klee_warning_file; extern FILE *klee_message_file; -/// Print "KLEE: ERROR" followed by the msg in printf format and a +/// Print "KLEE: ERROR: " followed by the msg in printf format and a /// newline on stderr and to warnings.txt, then exit with an error. void klee_error(const char *msg, ...) __attribute__((format(printf, 1, 2), noreturn)); @@ -37,11 +37,11 @@ void klee_message(const char *msg, ...) __attribute__((format(printf, 1, 2))); void klee_message_to_file(const char *msg, ...) __attribute__((format(printf, 1, 2))); -/// Print "KLEE: WARNING" followed by the msg in printf format and a +/// Print "KLEE: WARNING: " followed by the msg in printf format and a /// newline on stderr and to warnings.txt. void klee_warning(const char *msg, ...) __attribute__((format(printf, 1, 2))); -/// Print "KLEE: WARNING" followed by the msg in printf format and a +/// Print "KLEE: WARNING: " followed by the msg in printf format and a /// newline on stderr and to warnings.txt. However, the warning is only /// printed once for each unique (id, msg) pair (as pointers). void klee_warning_once(const void *id, const char *msg, ...) -- cgit 1.4.1