diff options
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/Executor.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 04fd6941..3e37a6c6 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -2584,9 +2584,6 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) { void Executor::updateStates(ExecutionState *current) { if (searcher) { searcher->update(current, addedStates, removedStates); - searcher->update(nullptr, continuedStates, pausedStates); - pausedStates.clear(); - continuedStates.clear(); } states.insert(addedStates.begin(), addedStates.end()); @@ -2607,6 +2604,12 @@ void Executor::updateStates(ExecutionState *current) { delete es; } removedStates.clear(); + + if (searcher) { + searcher->update(nullptr, continuedStates, pausedStates); + pausedStates.clear(); + continuedStates.clear(); + } } template <typename TypeIt> |