Java: Replace SsaPhiNode with SsaPhiDefinition.

This commit is contained in:
Anders Schack-Mulligen
2025-11-07 10:32:36 +01:00
parent 3e43c53b9d
commit 35caede859
8 changed files with 26 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import java
import semmle.code.java.dataflow.SSA
from SsaPhiNode ssa, SsaSourceVariable v, SsaVariable phiInput
where ssa.getAPhiInput() = phiInput and ssa.getSourceVariable() = v
select v, ssa.getCfgNode(), phiInput.getCfgNode()
from SsaPhiDefinition ssa, SsaSourceVariable v, SsaDefinition phiInput
where ssa.getAnInput() = phiInput and ssa.getSourceVariable() = v
select v, ssa.getControlFlowNode(), phiInput.getControlFlowNode()