mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Java: Replace getAUse with getARead.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user