Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (24.3 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s05b01x00p01n01i01413ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s05b01x00p01n01i01413arch"], "entity" : ["IDENTIFIER", "c08s05b01x00p01n01i01413ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["SUBPROGRAM_BODY", {
12
              "spec" : {
13
                "name" : "check", "subprogram_type" : "function", "parameters" : [{
14
                  "names" : [["IDENTIFIER", "i"]], "typ" : {
15
                    "name" : ["SIMPLE_NAME", "integer"]}
16
                  }
17
                ], "typeMark" : ["SIMPLE_NAME", "real"], "isPure" : false}
18
              , "stmts" : [["RETURN_STATEMENT", {
19
                "expr" : ["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["EXPRESSION", {
23
                        "args" : [["EXPRESSION", {
24
                          "args" : [["EXPRESSION", {
25
                            "args" : [["EXPRESSION", {
26
                              "args" : [["EXPRESSION", {
27
                                "args" : [["CONSTANT_VALUE", {
28
                                  "value" : ["CST_LITERAL", "1.0"]}
29
                                ]]}
30
                              ]]}
31
                            ]]}
32
                          ]]}
33
                        ]]}
34
                      ]]}
35
                    ]]}
36
                  ]]}
37
                ]}
38
              ]]}
39
            ]}
40
          , {
41
            "definition" : ["TYPE_DECLARATION", {
42
              "name" : ["IDENTIFIER", "rec_type"], "definition" : ["RECORD_TYPE_DEFINITION", [{
43
                "names" : [["IDENTIFIER", "x"]], "definition" : {
44
                  "name" : ["SIMPLE_NAME", "integer"]}
45
                }
46
              , {
47
                "names" : [["IDENTIFIER", "y"]], "definition" : {
48
                  "name" : ["SIMPLE_NAME", "real"]}
49
                }
50
              , {
51
                "names" : [["IDENTIFIER", "z"]], "definition" : {
52
                  "name" : ["SIMPLE_NAME", "boolean"]}
53
                }
54
              , {
55
                "names" : [["IDENTIFIER", "b"]], "definition" : {
56
                  "name" : ["SIMPLE_NAME", "bit"]}
57
                }
58
              ]]}
59
            ]}
60
          , {
61
            "definition" : ["TYPE_DECLARATION", {
62
              "name" : ["IDENTIFIER", "array_type"], "definition" : ["ARRAY_TYPE_DEFINITION", {
63
                "const" : ["INDEX_CONSTRAINT", {
64
                  "ranges" : [["RANGE_WITH_DIRECTION", {
65
                    "direction" : "to", "from" : ["EXPRESSION", {
66
                      "args" : [["EXPRESSION", {
67
                        "args" : [["CONSTANT_VALUE", {
68
                          "value" : ["CST_LITERAL", "1"]}
69
                        ]]}
70
                      ]]}
71
                    ], "_to" : ["EXPRESSION", {
72
                      "args" : [["EXPRESSION", {
73
                        "args" : [["CONSTANT_VALUE", {
74
                          "value" : ["CST_LITERAL", "10"]}
75
                        ]]}
76
                      ]]}
77
                    ]}
78
                  ]]}
79
                ], "definition" : {
80
                  "name" : ["SIMPLE_NAME", "rec_type"]}
81
                }
82
              ]}
83
            ]}
84
          , {
85
            "declaration" : ["VARIABLE_DECLARATION", {
86
              "names" : [["IDENTIFIER", "v1"]], "typ" : {
87
                "name" : ["SIMPLE_NAME", "array_type"]}
88
              }
89
            ]}
90
          , {
91
            "declaration" : ["CONSTANT_DECLARATION", {
92
              "names" : [["IDENTIFIER", "i"]], "typ" : {
93
                "name" : ["SIMPLE_NAME", "integer"]}
94
              , "init_val" : ["EXPRESSION", {
95
                "args" : [["EXPRESSION", {
96
                  "args" : [["EXPRESSION", {
97
                    "args" : [["EXPRESSION", {
98
                      "args" : [["CONSTANT_VALUE", {
99
                        "value" : ["CST_LITERAL", "20"]}
100
                      ]]}
101
                    ]]}
102
                  ]]}
103
                ]]}
104
              ]}
105
            ]}
106
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
107
            "lhs" : ["SELECTED_NAME", [["FUNCTION_CALL", {
108
              "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
109
                "actual_expr" : ["EXPRESSION", {
110
                  "args" : [["EXPRESSION", {
111
                    "args" : [["EXPRESSION", {
112
                      "args" : [["EXPRESSION", {
113
                        "args" : [["CONSTANT_VALUE", {
114
                          "value" : ["CST_LITERAL", "1"]}
115
                        ]]}
116
                      ]]}
117
                    ]]}
118
                  ]]}
119
                ]}
120
              ]}
121
            ], ["IDENTIFIER", "x"]]], "rhs" : ["EXPRESSION", {
122
              "args" : [["EXPRESSION", {
123
                "args" : [["EXPRESSION", {
124
                  "args" : [["EXPRESSION", {
125
                    "args" : [["CALL", ["SIMPLE_NAME", "i"]]]}
126
                  ]]}
127
                ]]}
128
              ]]}
129
            ]}
130
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
131
            "lhs" : ["SELECTED_NAME", [["FUNCTION_CALL", {
132
              "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
133
                "actual_expr" : ["EXPRESSION", {
134
                  "args" : [["EXPRESSION", {
135
                    "args" : [["EXPRESSION", {
136
                      "args" : [["EXPRESSION", {
137
                        "args" : [["CONSTANT_VALUE", {
138
                          "value" : ["CST_LITERAL", "1"]}
139
                        ]]}
140
                      ]]}
141
                    ]]}
142
                  ]]}
143
                ]}
144
              ]}
145
            ], ["IDENTIFIER", "y"]]], "rhs" : ["EXPRESSION", {
146
              "args" : [["EXPRESSION", {
147
                "args" : [["EXPRESSION", {
148
                  "args" : [["EXPRESSION", {
149
                    "args" : [["CALL", ["INDEXED_NAME", {
150
                      "id" : ["SIMPLE_NAME", "check"], "exprs" : [["EXPRESSION", {
151
                        "args" : [["EXPRESSION", {
152
                          "args" : [["EXPRESSION", {
153
                            "args" : [["EXPRESSION", {
154
                              "args" : [["CALL", ["SIMPLE_NAME", "i"]]]}
155
                            ]]}
156
                          ]]}
157
                        ]]}
158
                      ]]}
159
                    ]]]}
160
                  ]]}
161
                ]]}
162
              ]]}
163
            ]}
164
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
165
            "lhs" : ["SELECTED_NAME", [["FUNCTION_CALL", {
166
              "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
167
                "actual_expr" : ["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["EXPRESSION", {
170
                      "args" : [["EXPRESSION", {
171
                        "args" : [["CONSTANT_VALUE", {
172
                          "value" : ["CST_LITERAL", "1"]}
173
                        ]]}
174
                      ]]}
175
                    ]]}
176
                  ]]}
177
                ]}
178
              ]}
179
            ], ["IDENTIFIER", "z"]]], "rhs" : ["EXPRESSION", {
180
              "args" : [["EXPRESSION", {
181
                "args" : [["EXPRESSION", {
182
                  "args" : [["EXPRESSION", {
183
                    "args" : [["CALL", ["SIMPLE_NAME", "true"]]]}
184
                  ]]}
185
                ]]}
186
              ]]}
187
            ]}
188
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
189
            "lhs" : ["SELECTED_NAME", [["FUNCTION_CALL", {
190
              "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
191
                "actual_expr" : ["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["EXPRESSION", {
194
                      "args" : [["EXPRESSION", {
195
                        "args" : [["CONSTANT_VALUE", {
196
                          "value" : ["CST_LITERAL", "1"]}
197
                        ]]}
198
                      ]]}
199
                    ]]}
200
                  ]]}
201
                ]}
202
              ]}
203
            ], ["IDENTIFIER", "b"]]], "rhs" : ["EXPRESSION", {
204
              "args" : [["EXPRESSION", {
205
                "args" : [["EXPRESSION", {
206
                  "args" : [["EXPRESSION", {
207
                    "args" : [["QUALIFIED_EXPRESSION", {
208
                      "type_mark" : ["SIMPLE_NAME", "bit"], "expression" : ["EXPRESSION", {
209
                        "args" : [["EXPRESSION", {
210
                          "args" : [["EXPRESSION", {
211
                            "args" : [["EXPRESSION", {
212
                              "args" : [["CONSTANT_VALUE", {
213
                                "value" : ["CST_LITERAL", "'0'"]}
214
                              ]]}
215
                            ]]}
216
                          ]]}
217
                        ]]}
218
                      ]}
219
                    ]]}
220
                  ]]}
221
                ]]}
222
              ]]}
223
            ]}
224
          ], ["ASSERTION_STATEMENT", {
225
            "cond" : ["EXPRESSION", {
226
              "args" : [["EXPRESSION", {
227
                "args" : [["EXPRESSION", {
228
                  "args" : [["EXPRESSION", {
229
                    "id" : "NOT", "args" : [["EXPRESSION", {
230
                      "id" : "and", "args" : [["EXPRESSION", {
231
                        "id" : "and", "args" : [["EXPRESSION", {
232
                          "id" : "and", "args" : [["EXPRESSION", {
233
                            "id" : "=", "args" : [["EXPRESSION", {
234
                              "args" : [["EXPRESSION", {
235
                                "args" : [["EXPRESSION", {
236
                                  "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
237
                                    "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
238
                                      "actual_expr" : ["EXPRESSION", {
239
                                        "args" : [["EXPRESSION", {
240
                                          "args" : [["EXPRESSION", {
241
                                            "args" : [["EXPRESSION", {
242
                                              "args" : [["CONSTANT_VALUE", {
243
                                                "value" : ["CST_LITERAL", "1"]}
244
                                              ]]}
245
                                            ]]}
246
                                          ]]}
247
                                        ]]}
248
                                      ]}
249
                                    ]}
250
                                  ], ["IDENTIFIER", "x"]]]]]}
251
                                ]]}
252
                              ]]}
253
                            ], ["EXPRESSION", {
254
                              "args" : [["EXPRESSION", {
255
                                "args" : [["EXPRESSION", {
256
                                  "args" : [["CONSTANT_VALUE", {
257
                                    "value" : ["CST_LITERAL", "20"]}
258
                                  ]]}
259
                                ]]}
260
                              ]]}
261
                            ]]}
262
                          ], ["EXPRESSION", {
263
                            "id" : "=", "args" : [["EXPRESSION", {
264
                              "args" : [["EXPRESSION", {
265
                                "args" : [["EXPRESSION", {
266
                                  "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
267
                                    "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
268
                                      "actual_expr" : ["EXPRESSION", {
269
                                        "args" : [["EXPRESSION", {
270
                                          "args" : [["EXPRESSION", {
271
                                            "args" : [["EXPRESSION", {
272
                                              "args" : [["CONSTANT_VALUE", {
273
                                                "value" : ["CST_LITERAL", "1"]}
274
                                              ]]}
275
                                            ]]}
276
                                          ]]}
277
                                        ]]}
278
                                      ]}
279
                                    ]}
280
                                  ], ["IDENTIFIER", "y"]]]]]}
281
                                ]]}
282
                              ]]}
283
                            ], ["EXPRESSION", {
284
                              "args" : [["EXPRESSION", {
285
                                "args" : [["EXPRESSION", {
286
                                  "args" : [["CONSTANT_VALUE", {
287
                                    "value" : ["CST_LITERAL", "1.0"]}
288
                                  ]]}
289
                                ]]}
290
                              ]]}
291
                            ]]}
292
                          ]]}
293
                        ], ["EXPRESSION", {
294
                          "id" : "=", "args" : [["EXPRESSION", {
295
                            "args" : [["EXPRESSION", {
296
                              "args" : [["EXPRESSION", {
297
                                "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
298
                                  "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
299
                                    "actual_expr" : ["EXPRESSION", {
300
                                      "args" : [["EXPRESSION", {
301
                                        "args" : [["EXPRESSION", {
302
                                          "args" : [["EXPRESSION", {
303
                                            "args" : [["CONSTANT_VALUE", {
304
                                              "value" : ["CST_LITERAL", "1"]}
305
                                            ]]}
306
                                          ]]}
307
                                        ]]}
308
                                      ]]}
309
                                    ]}
310
                                  ]}
311
                                ], ["IDENTIFIER", "z"]]]]]}
312
                              ]]}
313
                            ]]}
314
                          ], ["EXPRESSION", {
315
                            "args" : [["EXPRESSION", {
316
                              "args" : [["EXPRESSION", {
317
                                "args" : [["CALL", ["SIMPLE_NAME", "true"]]]}
318
                              ]]}
319
                            ]]}
320
                          ]]}
321
                        ]]}
322
                      ], ["EXPRESSION", {
323
                        "id" : "=", "args" : [["EXPRESSION", {
324
                          "args" : [["EXPRESSION", {
325
                            "args" : [["EXPRESSION", {
326
                              "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
327
                                "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
328
                                  "actual_expr" : ["EXPRESSION", {
329
                                    "args" : [["EXPRESSION", {
330
                                      "args" : [["EXPRESSION", {
331
                                        "args" : [["EXPRESSION", {
332
                                          "args" : [["CONSTANT_VALUE", {
333
                                            "value" : ["CST_LITERAL", "1"]}
334
                                          ]]}
335
                                        ]]}
336
                                      ]]}
337
                                    ]]}
338
                                  ]}
339
                                ]}
340
                              ], ["IDENTIFIER", "b"]]]]]}
341
                            ]]}
342
                          ]]}
343
                        ], ["EXPRESSION", {
344
                          "args" : [["EXPRESSION", {
345
                            "args" : [["EXPRESSION", {
346
                              "args" : [["CONSTANT_VALUE", {
347
                                "value" : ["CST_LITERAL", "'0'"]}
348
                              ]]}
349
                            ]]}
350
                          ]]}
351
                        ]]}
352
                      ]]}
353
                    ]]}
354
                  ]]}
355
                ]]}
356
              ]]}
357
            ], "report" : ["EXPRESSION", {
358
              "args" : [["EXPRESSION", {
359
                "args" : [["EXPRESSION", {
360
                  "args" : [["EXPRESSION", {
361
                    "args" : [["CONSTANT_VALUE", {
362
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s05b01x00p01n01i01413\""]}
363
                    ]]}
364
                  ]]}
365
                ]]}
366
              ]]}
367
            ], "severity" : ["EXPRESSION", {
368
              "args" : [["EXPRESSION", {
369
                "args" : [["EXPRESSION", {
370
                  "args" : [["EXPRESSION", {
371
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
372
                  ]]}
373
                ]]}
374
              ]]}
375
            ]}
376
          ], ["ASSERTION_STATEMENT", {
377
            "cond" : ["EXPRESSION", {
378
              "args" : [["EXPRESSION", {
379
                "args" : [["EXPRESSION", {
380
                  "args" : [["EXPRESSION", {
381
                    "args" : [["EXPRESSION", {
382
                      "id" : "and", "args" : [["EXPRESSION", {
383
                        "id" : "and", "args" : [["EXPRESSION", {
384
                          "id" : "and", "args" : [["EXPRESSION", {
385
                            "id" : "=", "args" : [["EXPRESSION", {
386
                              "args" : [["EXPRESSION", {
387
                                "args" : [["EXPRESSION", {
388
                                  "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
389
                                    "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
390
                                      "actual_expr" : ["EXPRESSION", {
391
                                        "args" : [["EXPRESSION", {
392
                                          "args" : [["EXPRESSION", {
393
                                            "args" : [["EXPRESSION", {
394
                                              "args" : [["CONSTANT_VALUE", {
395
                                                "value" : ["CST_LITERAL", "1"]}
396
                                              ]]}
397
                                            ]]}
398
                                          ]]}
399
                                        ]]}
400
                                      ]}
401
                                    ]}
402
                                  ], ["IDENTIFIER", "x"]]]]]}
403
                                ]]}
404
                              ]]}
405
                            ], ["EXPRESSION", {
406
                              "args" : [["EXPRESSION", {
407
                                "args" : [["EXPRESSION", {
408
                                  "args" : [["CONSTANT_VALUE", {
409
                                    "value" : ["CST_LITERAL", "20"]}
410
                                  ]]}
411
                                ]]}
412
                              ]]}
413
                            ]]}
414
                          ], ["EXPRESSION", {
415
                            "id" : "=", "args" : [["EXPRESSION", {
416
                              "args" : [["EXPRESSION", {
417
                                "args" : [["EXPRESSION", {
418
                                  "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
419
                                    "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
420
                                      "actual_expr" : ["EXPRESSION", {
421
                                        "args" : [["EXPRESSION", {
422
                                          "args" : [["EXPRESSION", {
423
                                            "args" : [["EXPRESSION", {
424
                                              "args" : [["CONSTANT_VALUE", {
425
                                                "value" : ["CST_LITERAL", "1"]}
426
                                              ]]}
427
                                            ]]}
428
                                          ]]}
429
                                        ]]}
430
                                      ]}
431
                                    ]}
432
                                  ], ["IDENTIFIER", "y"]]]]]}
433
                                ]]}
434
                              ]]}
435
                            ], ["EXPRESSION", {
436
                              "args" : [["EXPRESSION", {
437
                                "args" : [["EXPRESSION", {
438
                                  "args" : [["CONSTANT_VALUE", {
439
                                    "value" : ["CST_LITERAL", "1.0"]}
440
                                  ]]}
441
                                ]]}
442
                              ]]}
443
                            ]]}
444
                          ]]}
445
                        ], ["EXPRESSION", {
446
                          "id" : "=", "args" : [["EXPRESSION", {
447
                            "args" : [["EXPRESSION", {
448
                              "args" : [["EXPRESSION", {
449
                                "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
450
                                  "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
451
                                    "actual_expr" : ["EXPRESSION", {
452
                                      "args" : [["EXPRESSION", {
453
                                        "args" : [["EXPRESSION", {
454
                                          "args" : [["EXPRESSION", {
455
                                            "args" : [["CONSTANT_VALUE", {
456
                                              "value" : ["CST_LITERAL", "1"]}
457
                                            ]]}
458
                                          ]]}
459
                                        ]]}
460
                                      ]]}
461
                                    ]}
462
                                  ]}
463
                                ], ["IDENTIFIER", "z"]]]]]}
464
                              ]]}
465
                            ]]}
466
                          ], ["EXPRESSION", {
467
                            "args" : [["EXPRESSION", {
468
                              "args" : [["EXPRESSION", {
469
                                "args" : [["CALL", ["SIMPLE_NAME", "true"]]]}
470
                              ]]}
471
                            ]]}
472
                          ]]}
473
                        ]]}
474
                      ], ["EXPRESSION", {
475
                        "id" : "=", "args" : [["EXPRESSION", {
476
                          "args" : [["EXPRESSION", {
477
                            "args" : [["EXPRESSION", {
478
                              "args" : [["CALL", ["SELECTED_NAME", [["FUNCTION_CALL", {
479
                                "id" : ["SIMPLE_NAME", "v1"], "assoc_list" : [{
480
                                  "actual_expr" : ["EXPRESSION", {
481
                                    "args" : [["EXPRESSION", {
482
                                      "args" : [["EXPRESSION", {
483
                                        "args" : [["EXPRESSION", {
484
                                          "args" : [["CONSTANT_VALUE", {
485
                                            "value" : ["CST_LITERAL", "1"]}
486
                                          ]]}
487
                                        ]]}
488
                                      ]]}
489
                                    ]]}
490
                                  ]}
491
                                ]}
492
                              ], ["IDENTIFIER", "b"]]]]]}
493
                            ]]}
494
                          ]]}
495
                        ], ["EXPRESSION", {
496
                          "args" : [["EXPRESSION", {
497
                            "args" : [["EXPRESSION", {
498
                              "args" : [["CONSTANT_VALUE", {
499
                                "value" : ["CST_LITERAL", "'0'"]}
500
                              ]]}
501
                            ]]}
502
                          ]]}
503
                        ]]}
504
                      ]]}
505
                    ]]}
506
                  ]]}
507
                ]]}
508
              ]]}
509
            ], "report" : ["EXPRESSION", {
510
              "args" : [["EXPRESSION", {
511
                "args" : [["EXPRESSION", {
512
                  "args" : [["EXPRESSION", {
513
                    "args" : [["CONSTANT_VALUE", {
514
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s05b01x00p01n01i01413 Each element of the array variable there is a matching element on the right hand side.\""]}
515
                    ]]}
516
                  ]]}
517
                ]]}
518
              ]]}
519
            ], "severity" : ["EXPRESSION", {
520
              "args" : [["EXPRESSION", {
521
                "args" : [["EXPRESSION", {
522
                  "args" : [["EXPRESSION", {
523
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
524
                  ]]}
525
                ]]}
526
              ]]}
527
            ]}
528
          ], ["WAIT_STATEMENT"]]}
529
        ]]}
530
      ]}
531
    ]}
532
  }