We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49cceb2 commit ab70f57Copy full SHA for ab70f57
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
@@ -160,7 +160,11 @@ class Node extends TIRDataFlowNode {
160
/** Gets the operands corresponding to this node, if any. */
161
Operand asOperand() { result = this.(OperandNode).getOperand() }
162
163
- /** Holds if this node is at index `i` in basic block `block`. */
+ /**
164
+ * Holds if this node is at index `i` in basic block `block`.
165
+ *
166
+ * Note: Phi nodes are considered to be at index `-1`.
167
+ */
168
final predicate hasIndexInBlock(IRBlock block, int i) {
169
this.asInstruction() = block.getInstruction(i)
170
or
0 commit comments