We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f55ace8 commit f47dd2bCopy full SHA for f47dd2b
1 file changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImpl.qll
@@ -1126,7 +1126,15 @@ predicate ssaFlow(Node nodeFrom, Node nodeTo) {
1126
*/
1127
class PhiNode extends Definition instanceof SsaImpl::PhiNode {
1128
/** Gets a definition that is an input to this phi node. */
1129
- final Definition getAnInput() { phiHasInputFromBlock(this, result, _) }
+ final Definition getAnInput() { this.hasInputFromBlock(result, _) }
1130
+
1131
+ /**
1132
+ * Holds if `input` is an input to this phi node along the edge originating
1133
+ * in `bb`.
1134
+ */
1135
+ final predicate hasInputFromBlock(Definition input, IRBlock bb) {
1136
+ phiHasInputFromBlock(this, input, bb)
1137
+ }
1138
}
1139
1140
/** An static single assignment (SSA) definition. */
0 commit comments