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

Predicate SsaComputeImpl::defUseRank

Holds if the rankixth definition or use of the SSA variable v in the basic block b occurs at index i.

Basic block indices are translated to rank indices in order to skip irrelevant indices at which there is no definition or use when traversing basic blocks.

Import path

import semmle.python.essa.SsaCompute
predicate defUseRank(SsaSourceVariable v, BasicBlock b, int rankix, int i)