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

Predicate Make::adjacentUseUse

Holds if the certain read at index i1 in basic block bb1 reaches the certain read at index i2 in basic block bb2 without going through any other certain read. The boolean samevar indicates whether the two reads are of the same SSA variable.

Note that since this relation skips over phi nodes and phi reads, it may be quadratic in the number of variable references for certain access patterns.

Import path

import codeql.ssa.Ssa
predicate adjacentUseUse(BasicBlock bb1, int i1, BasicBlock bb2, int i2, SourceVariable v, boolean samevar)