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 8888 fi
8989 env :
9090 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
278278 * guard to `branch`.
279279 */
280280 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 ) {
281288 exists ( Cfg:: SuccessorTypes:: ConditionalSuccessor s |
282289 this .getBasicBlock ( ) = bb1 and
283290 bb2 = bb1 .getASuccessor ( s ) and
284291 s .getValue ( ) = branch
285292 )
286293 }
294+
295+
287296 }
288297
289298 /** Holds if the guard `guard` controls block `bb` upon evaluating to `branch`. */
You can’t perform that action at this time.
0 commit comments