11
11
* `package; type; subtypes; name; signature; ext; input; kind; provenance`
12
12
* - Summaries:
13
13
* `package; type; subtypes; name; signature; ext; input; output; kind; provenance`
14
- * - Negative Summaries :
14
+ * - Neutrals :
15
15
* `package; type; name; signature; provenance`
16
- * A negative summary is used to indicate that there is no flow via a callable.
16
+ * A neutral is used to indicate that there is no flow via a callable.
17
17
*
18
18
* The interpretation of a row is similar to API-graphs with a left-to-right
19
19
* reading.
@@ -123,16 +123,16 @@ private class SummaryModelCsvInternal extends Unit {
123
123
}
124
124
125
125
/**
126
- * DEPRECATED: Define negative summary models as data extensions instead.
126
+ * DEPRECATED: Define neutral models as data extensions instead.
127
127
*
128
- * A unit class for adding additional negative summary model rows.
128
+ * A unit class for adding additional neutral model rows.
129
129
*
130
- * Extend this class to add additional negative summary definitions.
130
+ * Extend this class to add additional neutral definitions.
131
131
*/
132
- deprecated class NegativeSummaryModelCsv = NegativeSummaryModelCsvInternal ;
132
+ deprecated class NeutralModelCsv = NeutralModelCsvInternal ;
133
133
134
- private class NegativeSummaryModelCsvInternal extends Unit {
135
- /** Holds if `row` specifies a negative summary definition. */
134
+ private class NeutralModelCsvInternal extends Unit {
135
+ /** Holds if `row` specifies a neutral definition. */
136
136
abstract predicate row ( string row ) ;
137
137
}
138
138
@@ -142,9 +142,7 @@ private predicate summaryModelInternal(string row) { any(SummaryModelCsvInternal
142
142
143
143
private predicate sinkModelInternal ( string row ) { any ( SinkModelCsvInternal s ) .row ( row ) }
144
144
145
- private predicate negativeSummaryModelInternal ( string row ) {
146
- any ( NegativeSummaryModelCsvInternal s ) .row ( row )
147
- }
145
+ private predicate neutralModelInternal ( string row ) { any ( NeutralModelCsvInternal s ) .row ( row ) }
148
146
149
147
/**
150
148
* Holds if an experimental source model exists for the given parameters.
@@ -313,25 +311,23 @@ predicate summaryModel(
313
311
.summaryModel ( package , type , subtypes , name , signature , ext , input , output , kind , provenance )
314
312
}
315
313
316
- /** Holds if a summary model exists indicating there is no flow for the given parameters. */
317
- extensible predicate extNegativeSummaryModel (
314
+ /** Holds if a neutral model exists indicating there is no flow for the given parameters. */
315
+ extensible predicate extNeutralModel (
318
316
string package , string type , string name , string signature , string provenance
319
317
) ;
320
318
321
- /** Holds if a summary model exists indicating there is no flow for the given parameters. */
322
- predicate negativeSummaryModel (
323
- string package , string type , string name , string signature , string provenance
324
- ) {
319
+ /** Holds if a neutral model exists indicating there is no flow for the given parameters. */
320
+ predicate neutralModel ( string package , string type , string name , string signature , string provenance ) {
325
321
exists ( string row |
326
- negativeSummaryModelInternal ( row ) and
322
+ neutralModelInternal ( row ) and
327
323
row .splitAt ( ";" , 0 ) = package and
328
324
row .splitAt ( ";" , 1 ) = type and
329
325
row .splitAt ( ";" , 2 ) = name and
330
326
row .splitAt ( ";" , 3 ) = signature and
331
327
row .splitAt ( ";" , 4 ) = provenance
332
328
)
333
329
or
334
- extNegativeSummaryModel ( package , type , name , signature , provenance )
330
+ extNeutralModel ( package , type , name , signature , provenance )
335
331
}
336
332
337
333
private predicate relevantPackage ( string package ) {
@@ -473,7 +469,7 @@ module ModelValidation {
473
469
or
474
470
summaryModelInternal ( row ) and expect = 10 and pred = "summary"
475
471
or
476
- negativeSummaryModelInternal ( row ) and expect = 5 and pred = "negative summary "
472
+ neutralModelInternal ( row ) and expect = 5 and pred = "neutral "
477
473
|
478
474
exists ( int cols |
479
475
cols = 1 + max ( int n | exists ( row .splitAt ( ";" , n ) ) ) and
@@ -497,9 +493,9 @@ module ModelValidation {
497
493
summaryModel ( package , type , _, name , signature , ext , _, _, _, provenance ) and
498
494
pred = "summary"
499
495
or
500
- negativeSummaryModel ( package , type , name , signature , provenance ) and
496
+ neutralModel ( package , type , name , signature , provenance ) and
501
497
ext = "" and
502
- pred = "negative summary "
498
+ pred = "neutral "
503
499
|
504
500
not package .regexpMatch ( "[a-zA-Z0-9_\\.]*" ) and
505
501
result = "Dubious package \"" + package + "\" in " + pred + " model."
@@ -541,7 +537,7 @@ private predicate elementSpec(
541
537
or
542
538
summaryModel ( package , type , subtypes , name , signature , ext , _, _, _, _)
543
539
or
544
- negativeSummaryModel ( package , type , name , signature , _) and ext = "" and subtypes = false
540
+ neutralModel ( package , type , name , signature , _) and ext = "" and subtypes = false
545
541
}
546
542
547
543
private string paramsStringPart ( Callable c , int i ) {
@@ -590,7 +586,7 @@ private Element interpretElement0(
590
586
)
591
587
}
592
588
593
- /** Gets the source/sink/summary/negativesummary element corresponding to the supplied parameters. */
589
+ /** Gets the source/sink/summary/neutral element corresponding to the supplied parameters. */
594
590
Element interpretElement (
595
591
string package , string type , boolean subtypes , string name , string signature , string ext
596
592
) {
0 commit comments