Skip to content

Commit 702d6d8

Browse files
MathiasVPCopilot
andauthored
Update cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a81989d commit 702d6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ abstract private class GuardConditionImpl extends Expr {
237237
pragma[inline]
238238
final predicate ensuresLtEdge(Expr e, int k, BasicBlock pred, BasicBlock succ, boolean isLessThan) {
239239
exists(AbstractValue v |
240-
this.comparesEq(e, k, isLessThan, v) and
240+
this.comparesLt(e, k, isLessThan, v) and
241241
this.valueControlsEdge(pred, succ, v)
242242
)
243243
}

0 commit comments

Comments
 (0)