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

Predicate signature LangSig::hasConstantBound

Holds if e >= bound (if upper = false) or e <= bound (if upper = true).

signature predicate hasConstantBound(Expr e, Delta bound, boolean upper)