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

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

predicate adjacentDefReadExt(DefinitionExt def, SourceVariable sv, IRBlock bb1, int i1, IRBlock bb2, int i2)