@@ -160,7 +160,7 @@ predicate modelCoverage(string namespace, int namespaces, string kind, string pa
160160/** Provides a query predicate to check the MaD models for validation errors. */
161161module ModelValidation {
162162 private string getInvalidModelInput ( ) {
163- exists ( string pred , AccessPath input , string part |
163+ exists ( string pred , AccessPath input , AccessPathToken part |
164164 sinkModel ( _, _, _, _, _, _, input , _, _) and pred = "sink"
165165 or
166166 summaryModel ( _, _, _, _, _, _, input , _, _, _) and pred = "summary"
@@ -169,7 +169,8 @@ module ModelValidation {
169169 invalidSpecComponent ( input , part ) and
170170 not part = "" and
171171 not ( part = "Argument" and pred = "sink" ) and
172- not parseArg ( part , _)
172+ not parseArg ( part , _) and
173+ not part .getName ( ) = [ "Field" , "Property" ]
173174 or
174175 part = input .getToken ( _) and
175176 parseParam ( part , _)
@@ -181,15 +182,16 @@ module ModelValidation {
181182 }
182183
183184 private string getInvalidModelOutput ( ) {
184- exists ( string pred , string output , string part |
185+ exists ( string pred , AccessPath output , AccessPathToken part |
185186 sourceModel ( _, _, _, _, _, _, output , _, _) and pred = "source"
186187 or
187188 summaryModel ( _, _, _, _, _, _, _, output , _, _) and pred = "summary"
188189 |
189190 (
190191 invalidSpecComponent ( output , part ) and
191192 not part = "" and
192- not ( part = [ "Argument" , "Parameter" ] and pred = "source" )
193+ not ( part = [ "Argument" , "Parameter" ] and pred = "source" ) and
194+ not part .getName ( ) = [ "Field" , "Property" ]
193195 or
194196 invalidIndexComponent ( output , part )
195197 ) and
0 commit comments