We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c8491 commit 994c1f6Copy full SHA for 994c1f6
java/ql/lib/semmle/code/java/dataflow/internal/BaseSSA.qll
@@ -372,5 +372,10 @@ class BaseSsaImplicitInit extends BaseSsaVariable instanceof Impl::WriteDefiniti
372
/** An SSA phi node. */
373
class BaseSsaPhiNode extends BaseSsaVariable instanceof Impl::PhiNode {
374
/** Gets an input to the phi node defining the SSA variable. */
375
- BaseSsaVariable getAPhiInput() { phiHasInputFromBlock(this, result, _) }
+ BaseSsaVariable getAPhiInput() { this.hasInputFromBlock(result, _) }
376
+
377
+ /** Holds if `inp` is an input to the phi node along the edge originating in `bb`. */
378
+ predicate hasInputFromBlock(BaseSsaVariable inp, BasicBlock bb) {
379
+ phiHasInputFromBlock(this, inp, bb)
380
+ }
381
}
0 commit comments