File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
powershell/ql/lib/semmle/code/powershell/dataflow/internal Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 88
88
fi
89
89
env :
90
90
GH_TOKEN : ${{ secrets.WORKFLOW_TOKEN }}
91
+
Original file line number Diff line number Diff line change @@ -278,12 +278,21 @@ private module DataFlowIntegrationInput implements Impl::DataFlowIntegrationInpu
278
278
* guard to `branch`.
279
279
*/
280
280
predicate controlsBranchEdge ( SsaInput:: BasicBlock bb1 , SsaInput:: BasicBlock bb2 , boolean branch ) {
281
+ hasBranchEdge ( bb1 , bb2 , branch )
282
+ }
283
+ /**
284
+ * Holds if the evaluation of this guard to `branch` corresponds to the edge
285
+ * from `bb1` to `bb2`.
286
+ */
287
+ predicate hasBranchEdge ( SsaInput:: BasicBlock bb1 , SsaInput:: BasicBlock bb2 , boolean branch ) {
281
288
exists ( Cfg:: SuccessorTypes:: ConditionalSuccessor s |
282
289
this .getBasicBlock ( ) = bb1 and
283
290
bb2 = bb1 .getASuccessor ( s ) and
284
291
s .getValue ( ) = branch
285
292
)
286
293
}
294
+
295
+
287
296
}
288
297
289
298
/** Holds if the guard `guard` controls block `bb` upon evaluating to `branch`. */
You can’t perform that action at this time.
0 commit comments