CodeQL library for C/C++
Search

Member predicate GuardCondition::comparesEq

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

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