about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2019-03-11 17:05:57 +0000
committerMartinNowack <martin.nowack@gmail.com>2019-03-13 10:09:06 +0000
commit562d5516944325e96c91af623197b7d9cd0d9194 (patch)
tree283967f485a50974df341dc2ba47b195ca77116e
parent0afe438667c2173c458c5f45adfe99506a076c61 (diff)
downloadklee-562d5516944325e96c91af623197b7d9cd0d9194.tar.gz
Added --debug-log-state-merge to path merging category
-rw-r--r--include/klee/OptionCategories.h1
-rw-r--r--lib/Core/ExecutionState.cpp19
2 files changed, 12 insertions, 8 deletions
diff --git a/include/klee/OptionCategories.h b/include/klee/OptionCategories.h
index fedf3f17..d0e359fa 100644
--- a/include/klee/OptionCategories.h
+++ b/include/klee/OptionCategories.h
@@ -18,6 +18,7 @@
 
 namespace klee {
   extern llvm::cl::OptionCategory SolvingCat;
+  extern llvm::cl::OptionCategory MergeCat;
 }
 
 #endif
diff --git a/lib/Core/ExecutionState.cpp b/lib/Core/ExecutionState.cpp
index 9ba163da..70d5d21c 100644
--- a/lib/Core/ExecutionState.cpp
+++ b/lib/Core/ExecutionState.cpp
@@ -7,33 +7,36 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "Memory.h"
+
 #include "klee/ExecutionState.h"
 
+#include "klee/Expr.h"
 #include "klee/Internal/Module/Cell.h"
 #include "klee/Internal/Module/InstructionInfoTable.h"
 #include "klee/Internal/Module/KInstruction.h"
 #include "klee/Internal/Module/KModule.h"
+#include "klee/OptionCategories.h"
 
-#include "klee/Expr.h"
-
-#include "Memory.h"
 #include "llvm/IR/Function.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/raw_ostream.h"
 
-#include <iomanip>
-#include <sstream>
 #include <cassert>
+#include <iomanip>
 #include <map>
 #include <set>
+#include <sstream>
 #include <stdarg.h>
 
 using namespace llvm;
 using namespace klee;
 
-namespace { 
-  cl::opt<bool>
-  DebugLogStateMerge("debug-log-state-merge");
+namespace {
+cl::opt<bool> DebugLogStateMerge(
+    "debug-log-state-merge", cl::init(false),
+    cl::desc("Debug information for underlying state merging (default=false)"),
+    cl::cat(MergeCat));
 }
 
 /***/