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

Member predicate GuardCondition::comparesLt

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

predicate comparesLt(Expr left, Expr right, int k, boolean isLessThan, boolean testIsTrue)