1111 * `package; type; subtypes; name; signature; ext; input; kind; provenance`
1212 * - Summaries:
1313 * `package; type; subtypes; name; signature; ext; input; output; kind; provenance`
14- * - Negative Summaries :
14+ * - Neutrals :
1515 * `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.
1717 *
1818 * The interpretation of a row is similar to API-graphs with a left-to-right
1919 * reading.
@@ -123,16 +123,16 @@ private class SummaryModelCsvInternal extends Unit {
123123}
124124
125125/**
126- * DEPRECATED: Define negative summary models as data extensions instead.
126+ * DEPRECATED: Define neutral models as data extensions instead.
127127 *
128- * A unit class for adding additional negative summary model rows.
128+ * A unit class for adding additional neutral model rows.
129129 *
130- * Extend this class to add additional negative summary definitions.
130+ * Extend this class to add additional neutral definitions.
131131 */
132- deprecated class NegativeSummaryModelCsv = NegativeSummaryModelCsvInternal ;
132+ deprecated class NeutralModelCsv = NeutralModelCsvInternal ;
133133
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. */
136136 abstract predicate row ( string row ) ;
137137}
138138
@@ -142,9 +142,7 @@ private predicate summaryModelInternal(string row) { any(SummaryModelCsvInternal
142142
143143private predicate sinkModelInternal ( string row ) { any ( SinkModelCsvInternal s ) .row ( row ) }
144144
145- private predicate negativeSummaryModelInternal ( string row ) {
146- any ( NegativeSummaryModelCsvInternal s ) .row ( row )
147- }
145+ private predicate neutralModelInternal ( string row ) { any ( NeutralModelCsvInternal s ) .row ( row ) }
148146
149147/**
150148 * Holds if an experimental source model exists for the given parameters.
@@ -313,25 +311,23 @@ predicate summaryModel(
313311 .summaryModel ( package , type , subtypes , name , signature , ext , input , output , kind , provenance )
314312}
315313
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 (
318316 string package , string type , string name , string signature , string provenance
319317) ;
320318
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 ) {
325321 exists ( string row |
326- negativeSummaryModelInternal ( row ) and
322+ neutralModelInternal ( row ) and
327323 row .splitAt ( ";" , 0 ) = package and
328324 row .splitAt ( ";" , 1 ) = type and
329325 row .splitAt ( ";" , 2 ) = name and
330326 row .splitAt ( ";" , 3 ) = signature and
331327 row .splitAt ( ";" , 4 ) = provenance
332328 )
333329 or
334- extNegativeSummaryModel ( package , type , name , signature , provenance )
330+ extNeutralModel ( package , type , name , signature , provenance )
335331}
336332
337333private predicate relevantPackage ( string package ) {
@@ -473,7 +469,7 @@ module ModelValidation {
473469 or
474470 summaryModelInternal ( row ) and expect = 10 and pred = "summary"
475471 or
476- negativeSummaryModelInternal ( row ) and expect = 5 and pred = "negative summary "
472+ neutralModelInternal ( row ) and expect = 5 and pred = "neutral "
477473 |
478474 exists ( int cols |
479475 cols = 1 + max ( int n | exists ( row .splitAt ( ";" , n ) ) ) and
@@ -497,9 +493,9 @@ module ModelValidation {
497493 summaryModel ( package , type , _, name , signature , ext , _, _, _, provenance ) and
498494 pred = "summary"
499495 or
500- negativeSummaryModel ( package , type , name , signature , provenance ) and
496+ neutralModel ( package , type , name , signature , provenance ) and
501497 ext = "" and
502- pred = "negative summary "
498+ pred = "neutral "
503499 |
504500 not package .regexpMatch ( "[a-zA-Z0-9_\\.]*" ) and
505501 result = "Dubious package \"" + package + "\" in " + pred + " model."
@@ -541,7 +537,7 @@ private predicate elementSpec(
541537 or
542538 summaryModel ( package , type , subtypes , name , signature , ext , _, _, _, _)
543539 or
544- negativeSummaryModel ( package , type , name , signature , _) and ext = "" and subtypes = false
540+ neutralModel ( package , type , name , signature , _) and ext = "" and subtypes = false
545541}
546542
547543private string paramsStringPart ( Callable c , int i ) {
@@ -590,7 +586,7 @@ private Element interpretElement0(
590586 )
591587}
592588
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. */
594590Element interpretElement (
595591 string package , string type , boolean subtypes , string name , string signature , string ext
596592) {
0 commit comments