C++: Fix a bug that slipped into fd477383b0.

This commit is contained in:
Mathias Vorreiter Pedersen
2021-07-12 17:13:21 +02:00
parent be06230b43
commit 768b3c84c9

View File

@@ -435,8 +435,7 @@ abstract class StackVariableReachability extends string {
not exists(Condition cond | cond = getACondition(source, v, pred) |
succ = pred.getATrueSuccessor() and
cond.refutesCondition(pragma[only_bind_out](MkCondition(pred.getEnd(), true)))
)
or
) and
// If we picked the successor edge corresponding to a condition being false, there must not be
// another path condition that refutes that the condition is false.
not exists(Condition cond | cond = getACondition(source, v, pred) |