CodeQL library for C/C++
codeql/cpp-all 2.0.3-dev (changelog, source)
Search

Member predicate IRGuardCondition::comparesEq

Holds if (determined by this guard) left == right + k evaluates to areEqual if this expression evaluates to testIsTrue.

predicate comparesEq(Operand left, Operand right, int k, boolean areEqual, boolean testIsTrue)