CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate Cached::bbIndex

Holds if cfn is the ith node in basic block bb.

In other words, i is the shortest distance from a node bb that starts a basic block to cfn along the intraBBSucc relation.

Import path

import semmle.code.cil.BasicBlock
predicate bbIndex(ControlFlowNode bbStart, ControlFlowNode cfn, int i)