From 4756c66f48bc67f4f845ba1be6010e89dc34974e Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Fri, 15 Mar 2019 13:48:02 +0000 Subject: Placed --max-time in the termination category --- lib/Core/ExecutorTimers.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'lib/Core') 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 -#include +#include #include +#include #include -#include - +#include using namespace llvm; using namespace klee; +namespace klee { cl::opt -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)); +} /// -- cgit 1.4.1