Update cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2025-09-08 16:19:33 +01:00
committed by GitHub
parent a81989d2d8
commit 702d6d80c4

View File

@@ -237,7 +237,7 @@ abstract private class GuardConditionImpl extends Expr {
pragma[inline]
final predicate ensuresLtEdge(Expr e, int k, BasicBlock pred, BasicBlock succ, boolean isLessThan) {
exists(AbstractValue v |
this.comparesEq(e, k, isLessThan, v) and
this.comparesLt(e, k, isLessThan, v) and
this.valueControlsEdge(pred, succ, v)
)
}