CodeQL library for Swift
codeql/swift-all 4.1.4-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)