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

Predicate SsaInput::variableRead

Holds if the i’th read in block bb reads to the variable v. certain is true if the read is guaranteed. For C++, this is always the case.

Import path

import semmle.code.cpp.ir.dataflow.internal.SsaInternals
predicate variableRead(BasicBlock bb, int i, SourceVariable v, boolean certain)