Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.13 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c06s06b00x00p02n01i01159ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c06s06b00x00p02n01i01159arch"], "entity" : ["IDENTIFIER", "c06s06b00x00p02n01i01159ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "definition" : ["TYPE_DECLARATION", {
12
              "name" : ["IDENTIFIER", "arr"], "definition" : ["ARRAY_TYPE_DEFINITION", {
13
                "const" : ["INDEX_CONSTRAINT", {
14
                  "ranges" : [["RANGE_WITH_DIRECTION", {
15
                    "direction" : "to", "from" : ["EXPRESSION", {
16
                      "args" : [["EXPRESSION", {
17
                        "args" : [["CONSTANT_VALUE", {
18
                          "value" : ["CST_LITERAL", "0"]}
19
                        ]]}
20
                      ]]}
21
                    ], "_to" : ["EXPRESSION", {
22
                      "args" : [["EXPRESSION", {
23
                        "args" : [["CONSTANT_VALUE", {
24
                          "value" : ["CST_LITERAL", "50"]}
25
                        ]]}
26
                      ]]}
27
                    ]}
28
                  ]]}
29
                ], "definition" : {
30
                  "name" : ["SIMPLE_NAME", "boolean"]}
31
                }
32
              ]}
33
            ]}
34
          , {
35
            "declaration" : ["SUBPROGRAM_BODY", {
36
              "spec" : {
37
                "name" : "ret_arr", "subprogram_type" : "function", "parameters" : [{
38
                  "names" : [["IDENTIFIER", "I"]], "typ" : {
39
                    "name" : ["SIMPLE_NAME", "integer"]}
40
                  }
41
                ], "typeMark" : ["SIMPLE_NAME", "arr"], "isPure" : false}
42
              , "decl_part" : [["VARIABLE_DECLARATION", {
43
                "names" : [["IDENTIFIER", "RA"]], "typ" : {
44
                  "name" : ["SIMPLE_NAME", "arr"]}
45
                }
46
              ]], "stmts" : [["RETURN_STATEMENT", {
47
                "expr" : ["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["EXPRESSION", {
50
                      "args" : [["EXPRESSION", {
51
                        "args" : [["CALL", ["SIMPLE_NAME", "RA"]]]}
52
                      ]]}
53
                    ]]}
54
                  ]]}
55
                ]}
56
              ]]}
57
            ]}
58
          , {
59
            "declaration" : ["VARIABLE_DECLARATION", {
60
              "names" : [["IDENTIFIER", "k"]], "typ" : {
61
                "name" : ["SIMPLE_NAME", "integer"]}
62
              , "init_val" : ["EXPRESSION", {
63
                "args" : [["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["EXPRESSION", {
66
                      "args" : [["CONSTANT_VALUE", {
67
                        "value" : ["CST_LITERAL", "0"]}
68
                      ]]}
69
                    ]]}
70
                  ]]}
71
                ]]}
72
              ]}
73
            ]}
74
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
75
            "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
76
              "args" : [["EXPRESSION", {
77
                "args" : [["EXPRESSION", {
78
                  "args" : [["EXPRESSION", {
79
                    "args" : [["CALL", ["ATTRIBUTE_NAME", {
80
                      "id" : ["SIMPLE_NAME", "arr"], "designator" : ["SIMPLE_NAME", "low"]}
81
                    ]]]}
82
                  ]]}
83
                ]]}
84
              ]]}
85
            ]}
86
          ], ["ASSERTION_STATEMENT", {
87
            "cond" : ["EXPRESSION", {
88
              "args" : [["EXPRESSION", {
89
                "args" : [["EXPRESSION", {
90
                  "args" : [["EXPRESSION", {
91
                    "id" : "NOT", "args" : [["EXPRESSION", {
92
                      "id" : "=", "args" : [["EXPRESSION", {
93
                        "args" : [["EXPRESSION", {
94
                          "args" : [["EXPRESSION", {
95
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
96
                          ]]}
97
                        ]]}
98
                      ], ["EXPRESSION", {
99
                        "args" : [["EXPRESSION", {
100
                          "args" : [["EXPRESSION", {
101
                            "args" : [["CONSTANT_VALUE", {
102
                              "value" : ["CST_LITERAL", "0"]}
103
                            ]]}
104
                          ]]}
105
                        ]]}
106
                      ]]}
107
                    ]]}
108
                  ]]}
109
                ]]}
110
              ]]}
111
            ], "report" : ["EXPRESSION", {
112
              "args" : [["EXPRESSION", {
113
                "args" : [["EXPRESSION", {
114
                  "args" : [["EXPRESSION", {
115
                    "args" : [["CONSTANT_VALUE", {
116
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c06s06b00x00p02n01i01159\""]}
117
                    ]]}
118
                  ]]}
119
                ]]}
120
              ]]}
121
            ], "severity" : ["EXPRESSION", {
122
              "args" : [["EXPRESSION", {
123
                "args" : [["EXPRESSION", {
124
                  "args" : [["EXPRESSION", {
125
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
126
                  ]]}
127
                ]]}
128
              ]]}
129
            ]}
130
          ], ["ASSERTION_STATEMENT", {
131
            "cond" : ["EXPRESSION", {
132
              "args" : [["EXPRESSION", {
133
                "args" : [["EXPRESSION", {
134
                  "args" : [["EXPRESSION", {
135
                    "args" : [["EXPRESSION", {
136
                      "id" : "=", "args" : [["EXPRESSION", {
137
                        "args" : [["EXPRESSION", {
138
                          "args" : [["EXPRESSION", {
139
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
140
                          ]]}
141
                        ]]}
142
                      ], ["EXPRESSION", {
143
                        "args" : [["EXPRESSION", {
144
                          "args" : [["EXPRESSION", {
145
                            "args" : [["CONSTANT_VALUE", {
146
                              "value" : ["CST_LITERAL", "0"]}
147
                            ]]}
148
                          ]]}
149
                        ]]}
150
                      ]]}
151
                    ]]}
152
                  ]]}
153
                ]]}
154
              ]]}
155
            ], "report" : ["EXPRESSION", {
156
              "args" : [["EXPRESSION", {
157
                "args" : [["EXPRESSION", {
158
                  "args" : [["EXPRESSION", {
159
                    "args" : [["CONSTANT_VALUE", {
160
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c06s06b00x00p02n01i01159 - The prefix of an attribute name may be a selected name.\""]}
161
                    ]]}
162
                  ]]}
163
                ]]}
164
              ]]}
165
            ], "severity" : ["EXPRESSION", {
166
              "args" : [["EXPRESSION", {
167
                "args" : [["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
170
                  ]]}
171
                ]]}
172
              ]]}
173
            ]}
174
          ], ["WAIT_STATEMENT"]]}
175
        ]]}
176
      ]}
177
    ]}
178
  }