@@ -419,14 +419,21 @@ module ArgsAreInstantiationsOf<ArgsAreInstantiationsOfInputSig Input> {
419419 private module ArgIsInstantiationOfToIndex =
420420 ArgIsInstantiationOf< CallAndPos , ArgIsInstantiationOfToIndexInput > ;
421421
422+ pragma [ nomagic]
423+ private predicate argIsInstantiationOf (
424+ Input:: Call call , FunctionPosition pos , ImplOrTraitItemNode i , Function f , int rnk
425+ ) {
426+ ArgIsInstantiationOfToIndex:: argIsInstantiationOf ( MkCallAndPos ( call , pos ) , i , _) and
427+ toCheckRanked ( i , f , _, pos , rnk )
428+ }
429+
422430 pragma [ nomagic]
423431 private predicate argsAreInstantiationsOfToIndex (
424432 Input:: Call call , ImplOrTraitItemNode i , Function f , int rnk
425433 ) {
426434 exists ( FunctionPosition pos |
427- ArgIsInstantiationOfToIndex:: argIsInstantiationOf ( MkCallAndPos ( call , pos ) , i , _) and
428- call .hasTargetCand ( i , f ) and
429- toCheckRanked ( i , f , _, pos , rnk )
435+ argIsInstantiationOf ( call , pos , i , f , rnk ) and
436+ call .hasTargetCand ( i , f )
430437 |
431438 rnk = 0
432439 or
0 commit comments