Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (13.8 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c07s02b02x00p08n02i02004ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c07s02b02x00p08n02i02004arch"], "entity" : ["IDENTIFIER", "c07s02b02x00p08n02i02004ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "definition" : ["TYPE_DECLARATION", {
12
              "name" : ["IDENTIFIER", "array_x"], "definition" : ["ARRAY_TYPE_DEFINITION", {
13
                "indexes" : [["SIMPLE_NAME", "positive"]], "definition" : {
14
                  "name" : ["SIMPLE_NAME", "integer"]}
15
                }
16
              ]}
17
            ]}
18
          , {
19
            "definition" : ["SUBTYPE_DECLARATION", {
20
              "name" : ["IDENTIFIER", "array_three"], "typ" : {
21
                "name" : ["SIMPLE_NAME", "array_x"], "const" : ["INDEX_CONSTRAINT", {
22
                  "ranges" : [["RANGE_WITH_DIRECTION", {
23
                    "direction" : "to", "from" : ["EXPRESSION", {
24
                      "args" : [["EXPRESSION", {
25
                        "args" : [["CONSTANT_VALUE", {
26
                          "value" : ["CST_LITERAL", "1"]}
27
                        ]]}
28
                      ]]}
29
                    ], "_to" : ["EXPRESSION", {
30
                      "args" : [["EXPRESSION", {
31
                        "args" : [["CONSTANT_VALUE", {
32
                          "value" : ["CST_LITERAL", "6"]}
33
                        ]]}
34
                      ]]}
35
                    ]}
36
                  ]]}
37
                ]}
38
              }
39
            ]}
40
          , {
41
            "definition" : ["SUBTYPE_DECLARATION", {
42
              "name" : ["IDENTIFIER", "array_four"], "typ" : {
43
                "name" : ["SIMPLE_NAME", "array_x"], "const" : ["INDEX_CONSTRAINT", {
44
                  "ranges" : [["RANGE_WITH_DIRECTION", {
45
                    "direction" : "downto", "from" : ["EXPRESSION", {
46
                      "args" : [["EXPRESSION", {
47
                        "args" : [["CONSTANT_VALUE", {
48
                          "value" : ["CST_LITERAL", "6"]}
49
                        ]]}
50
                      ]]}
51
                    ], "_to" : ["EXPRESSION", {
52
                      "args" : [["EXPRESSION", {
53
                        "args" : [["CONSTANT_VALUE", {
54
                          "value" : ["CST_LITERAL", "1"]}
55
                        ]]}
56
                      ]]}
57
                    ]}
58
                  ]]}
59
                ]}
60
              }
61
            ]}
62
          , {
63
            "declaration" : ["VARIABLE_DECLARATION", {
64
              "names" : [["IDENTIFIER", "x"]], "typ" : {
65
                "name" : ["SIMPLE_NAME", "array_four"]}
66
              , "init_val" : ["EXPRESSION", {
67
                "args" : [["EXPRESSION", {
68
                  "args" : [["EXPRESSION", {
69
                    "args" : [["EXPRESSION", {
70
                      "args" : [["AGGREGATE", {
71
                        "elems" : [{
72
                          "expr" : ["EXPRESSION", {
73
                            "args" : [["EXPRESSION", {
74
                              "args" : [["EXPRESSION", {
75
                                "args" : [["EXPRESSION", {
76
                                  "args" : [["CONSTANT_VALUE", {
77
                                    "value" : ["CST_LITERAL", "1"]}
78
                                  ]]}
79
                                ]]}
80
                              ]]}
81
                            ]]}
82
                          ]}
83
                        , {
84
                          "expr" : ["EXPRESSION", {
85
                            "args" : [["EXPRESSION", {
86
                              "args" : [["EXPRESSION", {
87
                                "args" : [["EXPRESSION", {
88
                                  "args" : [["CONSTANT_VALUE", {
89
                                    "value" : ["CST_LITERAL", "2"]}
90
                                  ]]}
91
                                ]]}
92
                              ]]}
93
                            ]]}
94
                          ]}
95
                        , {
96
                          "expr" : ["EXPRESSION", {
97
                            "args" : [["EXPRESSION", {
98
                              "args" : [["EXPRESSION", {
99
                                "args" : [["EXPRESSION", {
100
                                  "args" : [["CONSTANT_VALUE", {
101
                                    "value" : ["CST_LITERAL", "3"]}
102
                                  ]]}
103
                                ]]}
104
                              ]]}
105
                            ]]}
106
                          ]}
107
                        , {
108
                          "expr" : ["EXPRESSION", {
109
                            "args" : [["EXPRESSION", {
110
                              "args" : [["EXPRESSION", {
111
                                "args" : [["EXPRESSION", {
112
                                  "args" : [["CONSTANT_VALUE", {
113
                                    "value" : ["CST_LITERAL", "4"]}
114
                                  ]]}
115
                                ]]}
116
                              ]]}
117
                            ]]}
118
                          ]}
119
                        , {
120
                          "expr" : ["EXPRESSION", {
121
                            "args" : [["EXPRESSION", {
122
                              "args" : [["EXPRESSION", {
123
                                "args" : [["EXPRESSION", {
124
                                  "args" : [["CONSTANT_VALUE", {
125
                                    "value" : ["CST_LITERAL", "5"]}
126
                                  ]]}
127
                                ]]}
128
                              ]]}
129
                            ]]}
130
                          ]}
131
                        , {
132
                          "expr" : ["EXPRESSION", {
133
                            "args" : [["EXPRESSION", {
134
                              "args" : [["EXPRESSION", {
135
                                "args" : [["EXPRESSION", {
136
                                  "args" : [["CONSTANT_VALUE", {
137
                                    "value" : ["CST_LITERAL", "6"]}
138
                                  ]]}
139
                                ]]}
140
                              ]]}
141
                            ]]}
142
                          ]}
143
                        ]}
144
                      ]]}
145
                    ]]}
146
                  ]]}
147
                ]]}
148
              ]}
149
            ]}
150
          , {
151
            "declaration" : ["VARIABLE_DECLARATION", {
152
              "names" : [["IDENTIFIER", "y"]], "typ" : {
153
                "name" : ["SIMPLE_NAME", "array_three"]}
154
              , "init_val" : ["EXPRESSION", {
155
                "args" : [["EXPRESSION", {
156
                  "args" : [["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "args" : [["AGGREGATE", {
159
                        "elems" : [{
160
                          "expr" : ["EXPRESSION", {
161
                            "args" : [["EXPRESSION", {
162
                              "args" : [["EXPRESSION", {
163
                                "args" : [["EXPRESSION", {
164
                                  "args" : [["CONSTANT_VALUE", {
165
                                    "value" : ["CST_LITERAL", "1"]}
166
                                  ]]}
167
                                ]]}
168
                              ]]}
169
                            ]]}
170
                          ]}
171
                        , {
172
                          "expr" : ["EXPRESSION", {
173
                            "args" : [["EXPRESSION", {
174
                              "args" : [["EXPRESSION", {
175
                                "args" : [["EXPRESSION", {
176
                                  "args" : [["CONSTANT_VALUE", {
177
                                    "value" : ["CST_LITERAL", "2"]}
178
                                  ]]}
179
                                ]]}
180
                              ]]}
181
                            ]]}
182
                          ]}
183
                        , {
184
                          "expr" : ["EXPRESSION", {
185
                            "args" : [["EXPRESSION", {
186
                              "args" : [["EXPRESSION", {
187
                                "args" : [["EXPRESSION", {
188
                                  "args" : [["CONSTANT_VALUE", {
189
                                    "value" : ["CST_LITERAL", "3"]}
190
                                  ]]}
191
                                ]]}
192
                              ]]}
193
                            ]]}
194
                          ]}
195
                        , {
196
                          "expr" : ["EXPRESSION", {
197
                            "args" : [["EXPRESSION", {
198
                              "args" : [["EXPRESSION", {
199
                                "args" : [["EXPRESSION", {
200
                                  "args" : [["CONSTANT_VALUE", {
201
                                    "value" : ["CST_LITERAL", "4"]}
202
                                  ]]}
203
                                ]]}
204
                              ]]}
205
                            ]]}
206
                          ]}
207
                        , {
208
                          "expr" : ["EXPRESSION", {
209
                            "args" : [["EXPRESSION", {
210
                              "args" : [["EXPRESSION", {
211
                                "args" : [["EXPRESSION", {
212
                                  "args" : [["CONSTANT_VALUE", {
213
                                    "value" : ["CST_LITERAL", "5"]}
214
                                  ]]}
215
                                ]]}
216
                              ]]}
217
                            ]]}
218
                          ]}
219
                        , {
220
                          "expr" : ["EXPRESSION", {
221
                            "args" : [["EXPRESSION", {
222
                              "args" : [["EXPRESSION", {
223
                                "args" : [["EXPRESSION", {
224
                                  "args" : [["CONSTANT_VALUE", {
225
                                    "value" : ["CST_LITERAL", "6"]}
226
                                  ]]}
227
                                ]]}
228
                              ]]}
229
                            ]]}
230
                          ]}
231
                        ]}
232
                      ]]}
233
                    ]]}
234
                  ]]}
235
                ]]}
236
              ]}
237
            ]}
238
          ], "PROCESS_STATEMENT_PART" : [["ASSERTION_STATEMENT", {
239
            "cond" : ["EXPRESSION", {
240
              "args" : [["EXPRESSION", {
241
                "args" : [["EXPRESSION", {
242
                  "args" : [["EXPRESSION", {
243
                    "id" : "NOT", "args" : [["EXPRESSION", {
244
                      "id" : "=", "args" : [["EXPRESSION", {
245
                        "args" : [["EXPRESSION", {
246
                          "args" : [["EXPRESSION", {
247
                            "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
248
                          ]]}
249
                        ]]}
250
                      ], ["EXPRESSION", {
251
                        "args" : [["EXPRESSION", {
252
                          "args" : [["EXPRESSION", {
253
                            "args" : [["CALL", ["SIMPLE_NAME", "y"]]]}
254
                          ]]}
255
                        ]]}
256
                      ]]}
257
                    ]]}
258
                  ]]}
259
                ]]}
260
              ]]}
261
            ], "report" : ["EXPRESSION", {
262
              "args" : [["EXPRESSION", {
263
                "args" : [["EXPRESSION", {
264
                  "args" : [["EXPRESSION", {
265
                    "args" : [["CONSTANT_VALUE", {
266
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c07s02b02x00p08n02i02004\""]}
267
                    ]]}
268
                  ]]}
269
                ]]}
270
              ]]}
271
            ], "severity" : ["EXPRESSION", {
272
              "args" : [["EXPRESSION", {
273
                "args" : [["EXPRESSION", {
274
                  "args" : [["EXPRESSION", {
275
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
276
                  ]]}
277
                ]]}
278
              ]]}
279
            ]}
280
          ], ["ASSERTION_STATEMENT", {
281
            "cond" : ["EXPRESSION", {
282
              "args" : [["EXPRESSION", {
283
                "args" : [["EXPRESSION", {
284
                  "args" : [["EXPRESSION", {
285
                    "args" : [["EXPRESSION", {
286
                      "id" : "=", "args" : [["EXPRESSION", {
287
                        "args" : [["EXPRESSION", {
288
                          "args" : [["EXPRESSION", {
289
                            "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
290
                          ]]}
291
                        ]]}
292
                      ], ["EXPRESSION", {
293
                        "args" : [["EXPRESSION", {
294
                          "args" : [["EXPRESSION", {
295
                            "args" : [["CALL", ["SIMPLE_NAME", "y"]]]}
296
                          ]]}
297
                        ]]}
298
                      ]]}
299
                    ]]}
300
                  ]]}
301
                ]]}
302
              ]]}
303
            ], "report" : ["EXPRESSION", {
304
              "args" : [["EXPRESSION", {
305
                "args" : [["EXPRESSION", {
306
                  "args" : [["EXPRESSION", {
307
                    "args" : [["CONSTANT_VALUE", {
308
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c07s02b02x00p08n02i02004 - Two composite values of the same type are equal if and only if for each element of the left operand there is a matching element of the right operand and vice versa.\""]}
309
                    ]]}
310
                  ]]}
311
                ]]}
312
              ]]}
313
            ], "severity" : ["EXPRESSION", {
314
              "args" : [["EXPRESSION", {
315
                "args" : [["EXPRESSION", {
316
                  "args" : [["EXPRESSION", {
317
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
318
                  ]]}
319
                ]]}
320
              ]]}
321
            ]}
322
          ], ["WAIT_STATEMENT"]]}
323
        ]]}
324
      ]}
325
    ]}
326
  }