From 4530447c21353b5596b66a9fbb642409cda56f73 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Thu, 15 Sep 2016 12:09:23 +0100 Subject: Add `AssignmentValidatingSolver`. It's purpose is to check any computed assignments against the corresponding `Query` object and check the assignment evaluates correctly. This can be switched on using `-debug-assignment-validating-solver` on the command line. --- lib/Basic/CmdLineOptions.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Basic/CmdLineOptions.cpp') diff --git a/lib/Basic/CmdLineOptions.cpp b/lib/Basic/CmdLineOptions.cpp index e55c4550..82cb01b2 100644 --- a/lib/Basic/CmdLineOptions.cpp +++ b/lib/Basic/CmdLineOptions.cpp @@ -82,6 +82,10 @@ llvm::cl::list queryLoggingOptions( llvm::cl::CommaSeparated ); +llvm::cl::opt + UseAssignmentValidatingSolver("debug-assignment-validating-solver", + llvm::cl::init(false)); + #ifdef ENABLE_METASMT #ifdef METASMT_DEFAULT_BACKEND_IS_BTOR -- cgit 1.4.1