mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
eliminate recursion from GuardControlFlowNode::dominates
This commit is contained in:
@@ -379,8 +379,9 @@ class GuardControlFlowNode extends SyntheticControlFlowNode, @guard_node {
|
||||
* is known to hold at `bb`.
|
||||
*/
|
||||
predicate dominates(ReachableBasicBlock bb) {
|
||||
this = bb.getANode() or
|
||||
dominates(bb.getImmediateDominator())
|
||||
this = bb.getANode()
|
||||
or
|
||||
exists(ReachableBasicBlock prev | prev.strictlyDominates(bb) | this = prev.getANode())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user