CodeQL library for C/C++
codeql/cpp-all 2.1.1 (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, SourceVariable sv, IRBlock bb1, int i1, IRBlock bb2, int i2)