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

Predicate Public::hasInstructionAndIndex

Holds if indirectInstr is the dataflow node that represents the indirection of instr with indirection index indirectionIndex.

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowNodes
predicate hasInstructionAndIndex(IndirectInstruction indirectInstr, Instruction instr, int indirectionIndex)