File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
java/ql/lib/semmle/code/java/controlflow Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ private class JoinBlock extends BasicBlock {
66
66
JoinBlock ( ) { 2 <= strictcount ( this .getAPredecessor ( ) ) }
67
67
}
68
68
69
+ private class ReachableBlock extends BasicBlock {
70
+ ReachableBlock ( ) { hasDominanceInformation ( this ) }
71
+ }
72
+
69
73
/**
70
74
* Holds if `bb` is a block that is collectively dominated by a set of one or
71
75
* more actions that individually does not dominate the exit.
@@ -74,7 +78,7 @@ private predicate postActionBlock(BasicBlock bb, ActionConfiguration conf) {
74
78
bb = nonDominatingActionBlock ( conf )
75
79
or
76
80
if bb instanceof JoinBlock
77
- then forall ( BasicBlock pred | pred = bb .getAPredecessor ( ) | postActionBlock ( pred , conf ) )
81
+ then forall ( ReachableBlock pred | pred = bb .getAPredecessor ( ) | postActionBlock ( pred , conf ) )
78
82
else postActionBlock ( bb .getAPredecessor ( ) , conf )
79
83
}
80
84
You can’t perform that action at this time.
0 commit comments