CodeQL library for Swift
codeql/swift-all 2.0.4-dev (changelog, source)
Search

Predicate Make::SsaDefReaches::varBlockReachesRef

Same as varBlockReachesExt, but ignores phi-reads, and furthermore bb2 is restricted to blocks in which the underlying variable v of def is referenced (either a read or a write).

Import path

import codeql.ssa.Ssa
predicate varBlockReachesRef(Definition def, SourceVariable v, BasicBlock bb1, BasicBlock bb2)