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

Member predicate GuardCondition::ensuresEq

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

predicate ensuresEq(Expr left, Expr right, int k, BasicBlock block, boolean areEqual)