Java: Replace getAUse with getARead.

This commit is contained in:
Anders Schack-Mulligen
2025-11-07 10:52:38 +01:00
parent 35caede859
commit f4b9efcdce
20 changed files with 71 additions and 67 deletions

View File

@@ -3,6 +3,6 @@ import semmle.code.java.dataflow.SSA
from int uses, int live
where
uses = strictcount(SsaVariable ssa, VarRead use | use = ssa.getAUse()) and
live = strictcount(SsaVariable ssa, BasicBlock b | ssa.isLiveAtEndOfBlock(b))
uses = strictcount(SsaDefinition ssa, VarRead use | use = ssa.getARead()) and
live = strictcount(SsaDefinition ssa, BasicBlock b | ssa.isLiveAtEndOfBlock(b))
select uses, live

View File

@@ -1,6 +1,6 @@
import java
import semmle.code.java.dataflow.SSA
from SsaVariable ssa, SsaSourceVariable v, Expr use
where use = ssa.getAUse() and ssa.getSourceVariable() = v
select v, ssa.getCfgNode(), ssa.toString(), use
from SsaDefinition ssa, SsaSourceVariable v, Expr use
where use = ssa.getARead() and ssa.getSourceVariable() = v
select v, ssa.getControlFlowNode(), ssa.toString(), use