From bf5f1b659729dde0378a867ce21426c09490d518 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sun, 30 Jul 2017 18:37:08 +0200 Subject: Fixed assert in BFSSearcher that does not hold as part of interleaved searcher --- lib/Core/Searcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Core') diff --git a/lib/Core/Searcher.cpp b/lib/Core/Searcher.cpp index fc61ab98..d5d35e8f 100644 --- a/lib/Core/Searcher.cpp +++ b/lib/Core/Searcher.cpp @@ -104,8 +104,9 @@ void BFSSearcher::update(ExecutionState *current, if (!addedStates.empty() && current && std::find(removedStates.begin(), removedStates.end(), current) == removedStates.end()) { - assert(states.front() == current); - states.pop_front(); + auto pos = std::find(states.begin(), states.end(), current); + assert(pos != states.end()); + states.erase(pos); states.push_back(current); } -- cgit 1.4.1