codeql/cpp-all
6.0.1-dev
For other CodeQL resources, including tutorials and examples, see the CodeQL documentation
.
Holds if guard evaluating to v implies that e is guaranteed to be null if isNull is true, and non-null if isNull is false.
guard
v
e
isNull
import codeql.controlflow.Guards
predicate nullGuard(Guard guard, GuardValue v, Expr e, boolean isNull)