CodeQL library for C/C++
codeql/cpp-all 0.13.0 (changelog, source)
Search

Predicate SsaCached::adjacentDefReadExt

Holds if def is accessed at index i1 in basic block bb1 (either a read or a write), def is read at index i2 in basic block bb2, and there is a path between them without any read of def.

Import path

import semmle.code.cpp.ir.dataflow.internal.SsaInternals
predicate adjacentDefReadExt(DefinitionExt def, IRBlock bb1, int i1, IRBlock bb2, int i2)