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 1d30103 commit 893cb59Copy full SHA for 893cb59
shared/ssa/codeql/ssa/Ssa.qll
@@ -1579,6 +1579,14 @@ module Make<LocationSig Location, InputSig<Location> Input> {
1579
* Holds if this guard evaluating to `branch` controls the control-flow
1580
* branch edge from `bb1` to `bb2`. That is, following the edge from
1581
* `bb1` to `bb2` implies that this guard evaluated to `branch`.
1582
+ *
1583
+ * This predicate differs from `hasBranchEdge` in that it also covers
1584
+ * indirect guards, such as:
1585
+ * ```
1586
+ * b = guard;
1587
+ * ...
1588
+ * if (b) { ... }
1589
1590
*/
1591
predicate controlsBranchEdge(BasicBlock bb1, BasicBlock bb2, boolean branch);
1592
}
0 commit comments