@@ -76,18 +76,11 @@ predicate hasDuplication(
76
76
77
77
predicate hasDuplication ( ComputeRecursive recursive , string ordering , int i , float duplication ) {
78
78
duplication =
79
- max ( SummaryEvent inLayer , int iteration , int dup |
80
- inLayer = getInLayerOrRecursive ( recursive ) and
81
- hasDuplication ( recursive , ordering , inLayer , iteration , i , dup )
82
- |
83
- dup
84
- )
79
+ max ( int iteration , int dup | hasDuplication ( recursive , ordering , _, iteration , i , dup ) | dup )
85
80
}
86
81
87
82
/**
88
83
* Holds if the ordering `ordering` has `resultSize` resultSize in the `iteration`'th iteration.
89
- *
90
- * For example, the "base" ordering in iteration 0 has size 42.
91
84
*/
92
85
private predicate hasResultSize (
93
86
ComputeRecursive recursive , string ordering , SummaryEvent inLayer , int iteration , float resultSize
@@ -109,12 +102,7 @@ private predicate hasResultSize(
109
102
110
103
predicate hasResultSize ( ComputeRecursive recursive , string ordering , float resultSize ) {
111
104
resultSize =
112
- strictsum ( InLayer inLayer , int iteration , float r |
113
- inLayer .getComputeRecursiveEvent ( ) = recursive and
114
- hasResultSize ( recursive , ordering , inLayer , iteration , r )
115
- |
116
- r
117
- )
105
+ strictsum ( int iteration , float r | hasResultSize ( recursive , ordering , _, iteration , r ) | r )
118
106
}
119
107
120
108
RAParser< PipeLine > :: RAExpr getAnRaOperation ( SummaryEvent inLayer , string ordering ) {
@@ -221,9 +209,8 @@ predicate hasDependentPredicateSize(
221
209
ComputeRecursive recursive , string ordering , string predicateName , float size
222
210
) {
223
211
size =
224
- strictsum ( SummaryEvent inLayer , int iteration , int s |
225
- inLayer = getInLayerOrRecursive ( recursive ) and
226
- hasDependentPredicateSize ( recursive , ordering , inLayer , iteration , predicateName , s )
212
+ strictsum ( int iteration , float s |
213
+ hasDependentPredicateSize ( recursive , ordering , _, iteration , predicateName , s )
227
214
|
228
215
s
229
216
)
0 commit comments