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

Predicate ssaDefReachesEndOfBlock

NB: This predicate should be cached.

Holds if the SSA definition of v at def reaches the end of basic block bb.

Import path

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