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

Predicate Make::TestAdjacentRefs::adjacentRefPhi

Holds if phi is a phi definition or phi read and input is one its inputs without any other reference in-between.

Import path

import codeql.ssa.Ssa
predicate adjacentRefPhi(Ref input, Ref phi)