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

Predicate SsaComputeImpl::SsaDefinitionsImpl::reachesExit

Holds if (defbb, defindex) is an SSA definition of v that reaches an exit without crossing another SSA definition of v.

Import path

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