CodeQL library for C/C++
codeql/cpp-all 2.0.2-dev (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)