about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2019-03-15 13:48:02 +0000
committerMartinNowack <martin.nowack@gmail.com>2019-03-15 22:53:39 +0000
commit4756c66f48bc67f4f845ba1be6010e89dc34974e (patch)
tree44376454155db212868aa7f77891ebc09bbb307c
parentc1e7c3a2c53ac80eb07c1359b40151a440b41849 (diff)
downloadklee-4756c66f48bc67f4f845ba1be6010e89dc34974e.tar.gz
Placed --max-time in the termination category
-rw-r--r--lib/Core/ExecutorTimers.cpp21
-rw-r--r--tools/klee/main.cpp2
2 files changed, 15 insertions, 8 deletions
diff --git a/lib/Core/ExecutorTimers.cpp b/lib/Core/ExecutorTimers.cpp
index 9d2e8868..22429221 100644
--- a/lib/Core/ExecutorTimers.cpp
+++ b/lib/Core/ExecutorTimers.cpp
@@ -9,33 +9,38 @@
 
 #include "CoreStats.h"
 #include "Executor.h"
+#include "ExecutorTimerInfo.h"
 #include "PTree.h"
 #include "StatsTracker.h"
-#include "ExecutorTimerInfo.h"
 
 #include "klee/ExecutionState.h"
 #include "klee/Internal/Module/InstructionInfoTable.h"
 #include "klee/Internal/Module/KInstruction.h"
 #include "klee/Internal/Module/KModule.h"
-#include "klee/Internal/System/Time.h"
 #include "klee/Internal/Support/ErrorHandling.h"
+#include "klee/Internal/System/Time.h"
+#include "klee/OptionCategories.h"
 
 #include "llvm/IR/Function.h"
 #include "llvm/Support/CommandLine.h"
 
-#include <string>
-#include <unistd.h>
+#include <math.h>
 #include <signal.h>
+#include <string>
 #include <sys/time.h>
-#include <math.h>
-
+#include <unistd.h>
 
 using namespace llvm;
 using namespace klee;
 
+namespace klee {
 cl::opt<std::string>
-MaxTime("max-time",
-        cl::desc("Halt execution after the specified number of seconds (default=0s (off))"));
+    MaxTime("max-time",
+            cl::desc("Halt execution after the specified number of seconds.  "
+                     "Set to 0s to disable (default=0s)"),
+            cl::init("0s"),
+            cl::cat(TerminationCat));
+}
 
 ///
 
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 36015c5e..787df1ec 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -288,7 +288,9 @@ namespace {
            cl::cat(TerminationCat));
 }
 
+namespace klee {
 extern cl::opt<std::string> MaxTime;
+}
 
 /***/