about summary refs log tree commit diff homepage
path: root/lib/Core/ExecutorTimers.cpp
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2016-07-08 22:53:05 +0200
committerGitHub <noreply@github.com>2016-07-08 22:53:05 +0200
commitf4363713c97769f392b7d85c4782f6e1aeb1a137 (patch)
tree39fd16ed9917fe921b838771054a630fe3bcefef /lib/Core/ExecutorTimers.cpp
parent784bbc141946e9c77849cbba13563fd8d0b27c0f (diff)
parent91af7cdc0521a155a050976eaa8856f04a576826 (diff)
downloadklee-f4363713c97769f392b7d85c4782f6e1aeb1a137.tar.gz
Merge pull request #362 from MartinNowack/feat_determ_state_selection
Deterministic state addition and removing
Diffstat (limited to 'lib/Core/ExecutorTimers.cpp')
-rw-r--r--lib/Core/ExecutorTimers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Core/ExecutorTimers.cpp b/lib/Core/ExecutorTimers.cpp
index 480f1cde..f1c45105 100644
--- a/lib/Core/ExecutorTimers.cpp
+++ b/lib/Core/ExecutorTimers.cpp
@@ -179,7 +179,9 @@ void Executor::processTimers(ExecutionState *current,
       dumpStates = 0;
     }
 
-    if (maxInstTime>0 && current && !removedStates.count(current)) {
+    if (maxInstTime > 0 && current &&
+        std::find(removedStates.begin(), removedStates.end(), current) ==
+            removedStates.end()) {
       if (timerTicks*kSecondsPerTick > maxInstTime) {
         klee_warning("max-instruction-time exceeded: %.2fs",
                      timerTicks*kSecondsPerTick);