CodeQL library for Go
codeql/go-all 7.2.2 (changelog, source)
Search

Predicate ssaDefReachesRead

NB: This predicate should be cached.

Holds if the SSA definition of v at def reaches a read at index i in basic block bb.

Import path

import semmle.go.dataflow.SsaImpl
predicate ssaDefReachesRead(SsaSourceVariable v, Definition def, BasicBlock bb, int i)