aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Core/ExecutorTimers.cpp
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2013-12-05 09:15:53 -0800
committerCristian Cadar <c.cadar@imperial.ac.uk>2013-12-05 09:15:53 -0800
commit6d19d31eed55e18709c95363beafe8f679d6070c (patch)
tree945280a95c48b1e89061d6fd303beed1c5692257 /lib/Core/ExecutorTimers.cpp
parent7c415a118f1bfc291cc6f2479b78db8041db95a4 (diff)
parent29c87addb0bf80baafc5f561cb68509a70a5b1c5 (diff)
downloadklee-6d19d31eed55e18709c95363beafe8f679d6070c.tar.gz
Merge pull request #11 from MartinNowack/Memleaks
Patch Set II - Memleaks
Diffstat (limited to 'lib/Core/ExecutorTimers.cpp')
-rw-r--r--lib/Core/ExecutorTimers.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/Core/ExecutorTimers.cpp b/lib/Core/ExecutorTimers.cpp
index 6a5314ca..06fd4be7 100644
--- a/lib/Core/ExecutorTimers.cpp
+++ b/lib/Core/ExecutorTimers.cpp
@@ -13,6 +13,7 @@
#include "Executor.h"
#include "PTree.h"
#include "StatsTracker.h"
+#include "ExecutorTimerInfo.h"
#include "klee/ExecutionState.h"
#include "klee/Internal/Module/InstructionInfoTable.h"
@@ -93,7 +94,7 @@ void Executor::initTimers() {
}
if (MaxTime) {
- addTimer(new HaltTimer(this), MaxTime);
+ addTimer(new HaltTimer(this), MaxTime.getValue());
}
}
@@ -103,23 +104,6 @@ Executor::Timer::Timer() {}
Executor::Timer::~Timer() {}
-class Executor::TimerInfo {
-public:
- Timer *timer;
-
- /// Approximate delay per timer firing.
- double rate;
- /// Wall time for next firing.
- double nextFireTime;
-
-public:
- TimerInfo(Timer *_timer, double _rate)
- : timer(_timer),
- rate(_rate),
- nextFireTime(util::getWallTime() + rate) {}
- ~TimerInfo() { delete timer; }
-};
-
void Executor::addTimer(Timer *timer, double rate) {
timers.push_back(new TimerInfo(timer, rate));
}