mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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:
committed by
GitHub
parent
a81989d2d8
commit
702d6d80c4
@@ -237,7 +237,7 @@ abstract private class GuardConditionImpl extends Expr {
|
|||||||
pragma[inline]
|
pragma[inline]
|
||||||
final predicate ensuresLtEdge(Expr e, int k, BasicBlock pred, BasicBlock succ, boolean isLessThan) {
|
final predicate ensuresLtEdge(Expr e, int k, BasicBlock pred, BasicBlock succ, boolean isLessThan) {
|
||||||
exists(AbstractValue v |
|
exists(AbstractValue v |
|
||||||
this.comparesEq(e, k, isLessThan, v) and
|
this.comparesLt(e, k, isLessThan, v) and
|
||||||
this.valueControlsEdge(pred, succ, v)
|
this.valueControlsEdge(pred, succ, v)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user