@@ -242,8 +242,8 @@ module EnsureSplitting {
242
242
* `inherited` indicates whether `c` is an inherited completion from the
243
243
* body.
244
244
*/
245
- private predicate exit ( Trees :: BodyStmtTree block , AstNode pred , Completion c , boolean inherited ) {
246
- exists ( EnsureSplitType type |
245
+ private predicate exit ( AstNode pred , Completion c , boolean inherited ) {
246
+ exists ( Trees :: BodyStmtTree block , EnsureSplitType type |
247
247
this .exit0 ( pred , block , this .getNestLevel ( ) , c ) and
248
248
type = this .getType ( )
249
249
|
@@ -294,7 +294,7 @@ module EnsureSplitting {
294
294
this .appliesToPredecessor ( pred ) and
295
295
exists ( EnsureSplitImpl outer |
296
296
outer .getNestLevel ( ) = this .getNestLevel ( ) - 1 and
297
- outer .exit ( _ , pred , c , inherited ) and
297
+ outer .exit ( pred , c , inherited ) and
298
298
this .getType ( ) instanceof NormalSuccessor and
299
299
inherited = true
300
300
)
@@ -303,18 +303,18 @@ module EnsureSplitting {
303
303
override predicate hasExit ( AstNode pred , AstNode succ , Completion c ) {
304
304
succ ( pred , succ , c ) and
305
305
(
306
- this .exit ( _ , pred , c , _)
306
+ this .exit ( pred , c , _)
307
307
or
308
- this .exit ( _ , pred , c .( NestedBreakCompletion ) .getAnInnerCompatibleCompletion ( ) , _)
308
+ this .exit ( pred , c .( NestedBreakCompletion ) .getAnInnerCompatibleCompletion ( ) , _)
309
309
)
310
310
}
311
311
312
312
override predicate hasExitScope ( CfgScope scope , AstNode last , Completion c ) {
313
313
succExit ( scope , last , c ) and
314
314
(
315
- this .exit ( _ , last , c , _)
315
+ this .exit ( last , c , _)
316
316
or
317
- this .exit ( _ , last , c .( NestedBreakCompletion ) .getAnInnerCompatibleCompletion ( ) , _)
317
+ this .exit ( last , c .( NestedBreakCompletion ) .getAnInnerCompatibleCompletion ( ) , _)
318
318
)
319
319
}
320
320
0 commit comments