82
82
*/
83
83
84
84
import csharp
85
+ private import ExternalFlowExtensions as Extensions
85
86
private import internal.AccessPathSyntax
86
87
private import internal.DataFlowDispatch
87
88
private import internal.DataFlowPrivate
@@ -138,14 +139,6 @@ private predicate summaryModelInternal(string row) { any(SummaryModelCsvInternal
138
139
139
140
private predicate sinkModelInternal ( string row ) { any ( SinkModelCsvInternal s ) .row ( row ) }
140
141
141
- /**
142
- * Holds if a source model exists for the given parameters.
143
- */
144
- extensible predicate extSourceModel (
145
- string namespace , string type , boolean subtypes , string name , string signature , string ext ,
146
- string output , string kind , string provenance
147
- ) ;
148
-
149
142
/** Holds if a source model exists for the given parameters. */
150
143
predicate sourceModel (
151
144
string namespace , string type , boolean subtypes , string name , string signature , string ext ,
@@ -165,15 +158,9 @@ predicate sourceModel(
165
158
row .splitAt ( ";" , 8 ) = provenance
166
159
)
167
160
or
168
- extSourceModel ( namespace , type , subtypes , name , signature , ext , output , kind , provenance )
161
+ Extensions :: sourceModel ( namespace , type , subtypes , name , signature , ext , output , kind , provenance )
169
162
}
170
163
171
- /** Holds if a sink model exists for the given parameters. */
172
- extensible predicate extSinkModel (
173
- string namespace , string type , boolean subtypes , string name , string signature , string ext ,
174
- string input , string kind , string provenance
175
- ) ;
176
-
177
164
/** Holds if a sink model exists for the given parameters. */
178
165
predicate sinkModel (
179
166
string namespace , string type , boolean subtypes , string name , string signature , string ext ,
@@ -193,15 +180,9 @@ predicate sinkModel(
193
180
row .splitAt ( ";" , 8 ) = provenance
194
181
)
195
182
or
196
- extSinkModel ( namespace , type , subtypes , name , signature , ext , input , kind , provenance )
183
+ Extensions :: sinkModel ( namespace , type , subtypes , name , signature , ext , input , kind , provenance )
197
184
}
198
185
199
- /** Holds if a summary model exists for the given parameters. */
200
- extensible predicate extSummaryModel (
201
- string namespace , string type , boolean subtypes , string name , string signature , string ext ,
202
- string input , string output , string kind , string provenance
203
- ) ;
204
-
205
186
/** Holds if a summary model exists for the given parameters. */
206
187
predicate summaryModel (
207
188
string namespace , string type , boolean subtypes , string name , string signature , string ext ,
@@ -222,20 +203,12 @@ predicate summaryModel(
222
203
row .splitAt ( ";" , 9 ) = provenance
223
204
)
224
205
or
225
- extSummaryModel ( namespace , type , subtypes , name , signature , ext , input , output , kind , provenance )
206
+ Extensions:: summaryModel ( namespace , type , subtypes , name , signature , ext , input , output , kind ,
207
+ provenance )
226
208
}
227
209
228
210
/** Holds if a model exists indicating there is no flow for the given parameters. */
229
- extensible predicate extNeutralModel (
230
- string namespace , string type , string name , string signature , string provenance
231
- ) ;
232
-
233
- /** Holds if a model exists indicating there is no flow for the given parameters. */
234
- predicate neutralModel (
235
- string namespace , string type , string name , string signature , string provenance
236
- ) {
237
- extNeutralModel ( namespace , type , name , signature , provenance )
238
- }
211
+ predicate neutralModel = Extensions:: neutralModel / 5 ;
239
212
240
213
private predicate relevantNamespace ( string namespace ) {
241
214
sourceModel ( namespace , _, _, _, _, _, _, _, _) or
0 commit comments