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

Predicate hasIndirectOperand

Holds if indirectionIndex is a valid non-zero indirection index for operand op. That is, indirectionIndex is between 1 and the maximum indirection for the operand’s type.

Import path

import semmle.code.cpp.ir.dataflow.internal.SsaInternals
predicate hasIndirectOperand(Operand op, int indirectionIndex)