CodeQL library for Python
codeql/python-all 6.0.1-dev (changelog, source)
Search

Predicate SsaComputeImpl::SsaDefinitionsImpl::reachesEndOfBlock

Holds if the SSA definition of v at def reaches the end of a basic block b, at which point it is still live, without crossing another SSA definition of v.

Import path

import semmle.python.essa.SsaCompute
predicate reachesEndOfBlock(SsaSourceVariable v, BasicBlock defbb, int defindex, BasicBlock b)