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

Member predicate GuardCondition::ensuresLt

Holds if (determined by this guard) left < right + k must be isLessThan in block. If isLessThan = false then this implies left >= right + k.

predicate ensuresLt(Expr left, Expr right, int k, BasicBlock block, boolean isLessThan)