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

Predicate SsaInput::variableWrite

Holds if the i’th write in block bb writes to the variable v. certain is true if the write is guaranteed to overwrite the entire variable.

Import path

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