CodeQL library for Java
codeql/java-all 0.5.1 (changelog, source)
Search

Predicate SsaImpl::SsaPublic::adjacentUseUseSameVar

Holds if use1 and use2 form an adjacent use-use-pair of the same SSA variable, that is, the value read in use1 can reach use2 without passing through any other use or any SSA definition of the variable.

Import path

import semmle.code.java.dataflow.SSA
predicate adjacentUseUseSameVar(RValue use1, RValue use2)