CodeQL library for Java/Kotlin
codeql/java-all 4.0.1-dev (changelog, source)
Search

Predicate guardControls_v1

INTERNAL: Use Guards.controls instead.

Holds if guard.controls(controlled, branch), except this only relies on BaseSSA-based reasoning.

Import path

import semmle.code.java.controlflow.Guards
predicate guardControls_v1(Guard guard, BasicBlock controlled, boolean branch)