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

Predicate Make::SsaDefReachesNew::ssaRef

Holds if the ith node of basic block bb is a reference to v, either a read (when k is Read()) or an SSA definition (when k is Def()).

Unlike Liveness::varRef, this includes phi nodes and pseudo-reads associated with uncertain writes.

Import path

import codeql.ssa.Ssa
predicate ssaRef(BasicBlock bb, int i, SourceVariable v, RefKind k)