Merge remote-tracking branch 'github/main' into kaspersv/overlay-java-annotations

This commit is contained in:
Kasper Svendsen
2025-06-26 13:18:25 +02:00
2432 changed files with 50615 additions and 27388 deletions

View File

@@ -374,5 +374,10 @@ class BaseSsaImplicitInit extends BaseSsaVariable instanceof Impl::WriteDefiniti
/** An SSA phi node. */
class BaseSsaPhiNode extends BaseSsaVariable instanceof Impl::PhiNode {
/** Gets an input to the phi node defining the SSA variable. */
BaseSsaVariable getAPhiInput() { phiHasInputFromBlock(this, result, _) }
BaseSsaVariable getAPhiInput() { this.hasInputFromBlock(result, _) }
/** Holds if `inp` is an input to the phi node along the edge originating in `bb`. */
predicate hasInputFromBlock(BaseSsaVariable inp, BasicBlock bb) {
phiHasInputFromBlock(this, inp, bb)
}
}

View File

@@ -63,8 +63,6 @@ module SsaFlow {
cached
private module Cached {
private import semmle.code.java.controlflow.internal.GuardsLogic as GuardsLogic
cached
newtype TNode =
TExprNode(Expr e) {

View File

@@ -17,7 +17,7 @@ module Private {
class Expr = J::Expr;
class Guard = G::Guard_v2;
class Guard = G::Guards_v2::Guard;
class ConstantIntegerExpr = RU::ConstantIntegerExpr;

View File

@@ -15,7 +15,7 @@ module Private {
class ConstantIntegerExpr = RU::ConstantIntegerExpr;
class Guard = G::Guard_v2;
class Guard = G::Guards_v2::Guard;
class SsaVariable = Ssa::SsaVariable;