@@ -90,9 +90,9 @@ extensible predicate summaryModel(
9090) ;
9191
9292/**
93- * Holds if a neutral model of kind `kind` exists for the function with canonical path `path`. The
94- * only effect of a neutral model is to prevent generated and inherited models of the corresponding
95- * `kind` (`source`, `sink` or `summary`) from being applied.
93+ * Holds if a neutral model exists for the function with canonical path `path`. The only
94+ * effect of a neutral model is to prevent generated and inherited models of the corresponding
95+ * `kind` (`source`, `sink` or `summary`) from being applied to that function .
9696 */
9797extensible predicate neutralModel (
9898 string path , string kind , string provenance , QlBuiltins:: ExtensionId madId
@@ -148,18 +148,16 @@ private predicate summaryModelRelevant(
148148 summaryModel ( f , input , output , kind , provenance , isInherited , madId ) and
149149 // Only apply generated or inherited models to functions in library code and
150150 // when no strictly better model (or neutral model) exists
151- (
152- if provenance .isGenerated ( ) or isInherited = true
153- then
154- not f .fromSource ( ) and
155- not exists ( Provenance other | summaryModel ( f , _, _, _, other , false , _) |
156- provenance .isGenerated ( ) and other .isManual ( )
157- or
158- provenance = other and isInherited = true
159- ) and
160- not neutralModel ( f .getCanonicalPath ( ) , "summary" , _, _)
161- else any ( )
162- )
151+ if provenance .isGenerated ( ) or isInherited = true
152+ then
153+ not f .fromSource ( ) and
154+ not exists ( Provenance other | summaryModel ( f , _, _, _, other , false , _) |
155+ provenance .isGenerated ( ) and other .isManual ( )
156+ or
157+ provenance = other and isInherited = true
158+ ) and
159+ not neutralModel ( f .getCanonicalPath ( ) , "summary" , _, _)
160+ else any ( )
163161}
164162
165163private class SummarizedCallableFromModel extends SummarizedCallable:: Range {
0 commit comments