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

Predicate DefUse::hasDefinitionAtRank

Holds if there is a definition at offset offset in block block that overlaps memory location useLocation. rankIndex is the rank of the definition as computed by defUseRank().

Import path

import semmle.code.cpp.ir.implementation.aliased_ssa.internal.SSAConstruction
predicate hasDefinitionAtRank(MemoryLocation useLocation, MemoryLocation defLocation, OldBlock block, int rankIndex, int offset)