Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / billowitch / compliant / tc2477.json @ 3fd18385

History | View | Annotate | Download (11.9 KB)

1 3fd18385 Arnaud Dieumegard
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c07s03b02x02p13n04i02477ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c07s03b02x02p13n04i02477arch"], "entity" : ["IDENTIFIER", "c07s03b02x02p13n04i02477ent"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "definition" : ["TYPE_DECLARATION", {
11
            "name" : ["IDENTIFIER", "index_values"], "definition" : ["ENUMERATION_TYPE_DEFINITION", [["IDENTIFIER", "one"], ["IDENTIFIER", "two"], ["IDENTIFIER", "three"]]]}
12
          ]}
13
        , {
14
          "definition" : ["TYPE_DECLARATION", {
15
            "name" : ["IDENTIFIER", "ucarr"], "definition" : ["ARRAY_TYPE_DEFINITION", {
16
              "indexes" : [["SIMPLE_NAME", "index_values"]], "definition" : {
17
                "name" : ["SIMPLE_NAME", "Boolean"]}
18
              }
19
            ]}
20
          ]}
21
        , {
22
          "definition" : ["SUBTYPE_DECLARATION", {
23
            "name" : ["IDENTIFIER", "carr"], "typ" : {
24
              "name" : ["SIMPLE_NAME", "ucarr"], "const" : ["INDEX_CONSTRAINT", {
25
                "ranges" : [["RANGE_WITH_DIRECTION", {
26
                  "direction" : "to", "from" : ["EXPRESSION", {
27
                    "args" : [["EXPRESSION", {
28
                      "args" : [["CALL", ["ATTRIBUTE_NAME", {
29
                        "id" : ["SIMPLE_NAME", "index_values"], "designator" : ["SIMPLE_NAME", "low"]}
30
                      ]]]}
31
                    ]]}
32
                  ], "_to" : ["EXPRESSION", {
33
                    "args" : [["EXPRESSION", {
34
                      "args" : [["CALL", ["ATTRIBUTE_NAME", {
35
                        "id" : ["SIMPLE_NAME", "index_values"], "designator" : ["SIMPLE_NAME", "high"]}
36
                      ]]]}
37
                    ]]}
38
                  ]}
39
                ]]}
40
              ]}
41
            }
42
          ]}
43
        , {
44
          "declaration" : ["SUBPROGRAM_BODY", {
45
            "spec" : {
46
              "name" : "f2", "subprogram_type" : "function", "parameters" : [{
47
                "names" : [["IDENTIFIER", "i"]], "typ" : {
48
                  "name" : ["SIMPLE_NAME", "integer"]}
49
                }
50
              ], "typeMark" : ["SIMPLE_NAME", "carr"], "isPure" : false}
51
            , "stmts" : [["RETURN_STATEMENT", {
52
              "expr" : ["EXPRESSION", {
53
                "args" : [["EXPRESSION", {
54
                  "args" : [["EXPRESSION", {
55
                    "args" : [["EXPRESSION", {
56
                      "args" : [["AGGREGATE", {
57
                        "elems" : [{
58
                          "expr" : ["EXPRESSION", {
59
                            "args" : [["EXPRESSION", {
60
                              "args" : [["EXPRESSION", {
61
                                "args" : [["EXPRESSION", {
62
                                  "args" : [["CALL", ["SIMPLE_NAME", "True"]]]}
63
                                ]]}
64
                              ]]}
65
                            ]]}
66
                          ]}
67
                        , {
68
                          "expr" : ["EXPRESSION", {
69
                            "args" : [["EXPRESSION", {
70
                              "args" : [["EXPRESSION", {
71
                                "args" : [["EXPRESSION", {
72
                                  "args" : [["CALL", ["SIMPLE_NAME", "True"]]]}
73
                                ]]}
74
                              ]]}
75
                            ]]}
76
                          ]}
77
                        , {
78
                          "expr" : ["EXPRESSION", {
79
                            "args" : [["EXPRESSION", {
80
                              "args" : [["EXPRESSION", {
81
                                "args" : [["EXPRESSION", {
82
                                  "args" : [["CALL", ["SIMPLE_NAME", "False"]]]}
83
                                ]]}
84
                              ]]}
85
                            ]]}
86
                          ]}
87
                        ]}
88
                      ]]}
89
                    ]]}
90
                  ]]}
91
                ]]}
92
              ]}
93
            ]]}
94
          ]}
95
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
96
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
97
            "declaration" : ["VARIABLE_DECLARATION", {
98
              "names" : [["IDENTIFIER", "k"]], "typ" : {
99
                "name" : ["SIMPLE_NAME", "carr"]}
100
              }
101
            ]}
102
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
103
            "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
104
              "args" : [["EXPRESSION", {
105
                "args" : [["EXPRESSION", {
106
                  "args" : [["EXPRESSION", {
107
                    "args" : [["CALL", ["INDEXED_NAME", {
108
                      "id" : ["SIMPLE_NAME", "f2"], "exprs" : [["EXPRESSION", {
109
                        "args" : [["EXPRESSION", {
110
                          "args" : [["EXPRESSION", {
111
                            "args" : [["EXPRESSION", {
112
                              "args" : [["CONSTANT_VALUE", {
113
                                "value" : ["CST_LITERAL", "1"]}
114
                              ]]}
115
                            ]]}
116
                          ]]}
117
                        ]]}
118
                      ]]}
119
                    ]]]}
120
                  ]]}
121
                ]]}
122
              ]]}
123
            ]}
124
          ], ["ASSERTION_STATEMENT", {
125
            "cond" : ["EXPRESSION", {
126
              "args" : [["EXPRESSION", {
127
                "args" : [["EXPRESSION", {
128
                  "args" : [["EXPRESSION", {
129
                    "id" : "NOT", "args" : [["EXPRESSION", {
130
                      "id" : "=", "args" : [["EXPRESSION", {
131
                        "args" : [["EXPRESSION", {
132
                          "args" : [["EXPRESSION", {
133
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
134
                          ]]}
135
                        ]]}
136
                      ], ["EXPRESSION", {
137
                        "args" : [["EXPRESSION", {
138
                          "args" : [["EXPRESSION", {
139
                            "args" : [["AGGREGATE", {
140
                              "elems" : [{
141
                                "expr" : ["EXPRESSION", {
142
                                  "args" : [["EXPRESSION", {
143
                                    "args" : [["EXPRESSION", {
144
                                      "args" : [["EXPRESSION", {
145
                                        "args" : [["CALL", ["SIMPLE_NAME", "True"]]]}
146
                                      ]]}
147
                                    ]]}
148
                                  ]]}
149
                                ]}
150
                              , {
151
                                "expr" : ["EXPRESSION", {
152
                                  "args" : [["EXPRESSION", {
153
                                    "args" : [["EXPRESSION", {
154
                                      "args" : [["EXPRESSION", {
155
                                        "args" : [["CALL", ["SIMPLE_NAME", "True"]]]}
156
                                      ]]}
157
                                    ]]}
158
                                  ]]}
159
                                ]}
160
                              , {
161
                                "expr" : ["EXPRESSION", {
162
                                  "args" : [["EXPRESSION", {
163
                                    "args" : [["EXPRESSION", {
164
                                      "args" : [["EXPRESSION", {
165
                                        "args" : [["CALL", ["SIMPLE_NAME", "False"]]]}
166
                                      ]]}
167
                                    ]]}
168
                                  ]]}
169
                                ]}
170
                              ]}
171
                            ]]}
172
                          ]]}
173
                        ]]}
174
                      ]]}
175
                    ]]}
176
                  ]]}
177
                ]]}
178
              ]]}
179
            ], "report" : ["EXPRESSION", {
180
              "args" : [["EXPRESSION", {
181
                "args" : [["EXPRESSION", {
182
                  "args" : [["EXPRESSION", {
183
                    "args" : [["CONSTANT_VALUE", {
184
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c07s03b02x02p13n04i02477\""]}
185
                    ]]}
186
                  ]]}
187
                ]]}
188
              ]]}
189
            ], "severity" : ["EXPRESSION", {
190
              "args" : [["EXPRESSION", {
191
                "args" : [["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
194
                  ]]}
195
                ]]}
196
              ]]}
197
            ]}
198
          ], ["ASSERTION_STATEMENT", {
199
            "cond" : ["EXPRESSION", {
200
              "args" : [["EXPRESSION", {
201
                "args" : [["EXPRESSION", {
202
                  "args" : [["EXPRESSION", {
203
                    "args" : [["EXPRESSION", {
204
                      "id" : "=", "args" : [["EXPRESSION", {
205
                        "args" : [["EXPRESSION", {
206
                          "args" : [["EXPRESSION", {
207
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
208
                          ]]}
209
                        ]]}
210
                      ], ["EXPRESSION", {
211
                        "args" : [["EXPRESSION", {
212
                          "args" : [["EXPRESSION", {
213
                            "args" : [["AGGREGATE", {
214
                              "elems" : [{
215
                                "expr" : ["EXPRESSION", {
216
                                  "args" : [["EXPRESSION", {
217
                                    "args" : [["EXPRESSION", {
218
                                      "args" : [["EXPRESSION", {
219
                                        "args" : [["CALL", ["SIMPLE_NAME", "True"]]]}
220
                                      ]]}
221
                                    ]]}
222
                                  ]]}
223
                                ]}
224
                              , {
225
                                "expr" : ["EXPRESSION", {
226
                                  "args" : [["EXPRESSION", {
227
                                    "args" : [["EXPRESSION", {
228
                                      "args" : [["EXPRESSION", {
229
                                        "args" : [["CALL", ["SIMPLE_NAME", "True"]]]}
230
                                      ]]}
231
                                    ]]}
232
                                  ]]}
233
                                ]}
234
                              , {
235
                                "expr" : ["EXPRESSION", {
236
                                  "args" : [["EXPRESSION", {
237
                                    "args" : [["EXPRESSION", {
238
                                      "args" : [["EXPRESSION", {
239
                                        "args" : [["CALL", ["SIMPLE_NAME", "False"]]]}
240
                                      ]]}
241
                                    ]]}
242
                                  ]]}
243
                                ]}
244
                              ]}
245
                            ]]}
246
                          ]]}
247
                        ]]}
248
                      ]]}
249
                    ]]}
250
                  ]]}
251
                ]]}
252
              ]]}
253
            ], "report" : ["EXPRESSION", {
254
              "args" : [["EXPRESSION", {
255
                "args" : [["EXPRESSION", {
256
                  "args" : [["EXPRESSION", {
257
                    "args" : [["CONSTANT_VALUE", {
258
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c07s03b02x02p13n04i02477 - The leftmost bound is determined by the applicable index constraint.\""]}
259
                    ]]}
260
                  ]]}
261
                ]]}
262
              ]]}
263
            ], "severity" : ["EXPRESSION", {
264
              "args" : [["EXPRESSION", {
265
                "args" : [["EXPRESSION", {
266
                  "args" : [["EXPRESSION", {
267
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
268
                  ]]}
269
                ]]}
270
              ]]}
271
            ]}
272
          ], ["WAIT_STATEMENT"]]}
273
        ]]}
274
      ]}
275
    ]}
276
  }