Skip to content

Commit

Permalink
[fix] There are false negatives with expected error and different loc…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
misonijnik committed Nov 10, 2022
1 parent 28f8c98 commit 72b0bb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Core/TargetedExecutionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ bool TargetedExecutionManager::reportTruePositive(ExecutionState &state, ReachWi
return false;

auto target = it->second;
assert(target->getBlock() == state.prevPC->parent);
if (target->getBlock() != state.prevPC->parent) {
return false;
}
auto expectedLocation = target2location[target.get()];
if (expectedLocation->isReported)
return true;
Expand Down

0 comments on commit 72b0bb9

Please sign in to comment.