Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (9.04 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s07b00x00p01n01i01452ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s07b00x00p01n01i01452arch"], "entity" : ["IDENTIFIER", "c08s07b00x00p01n01i01452ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "expr_check"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["VARIABLE_DECLARATION", {
12
              "names" : [["IDENTIFIER", "x"]], "typ" : {
13
                "name" : ["SIMPLE_NAME", "integer"]}
14
              , "init_val" : ["EXPRESSION", {
15
                "args" : [["EXPRESSION", {
16
                  "args" : [["EXPRESSION", {
17
                    "args" : [["EXPRESSION", {
18
                      "args" : [["CONSTANT_VALUE", {
19
                        "value" : ["CST_LITERAL", "3"]}
20
                      ]]}
21
                    ]]}
22
                  ]]}
23
                ]]}
24
              ]}
25
            ]}
26
          , {
27
            "declaration" : ["VARIABLE_DECLARATION", {
28
              "names" : [["IDENTIFIER", "y"]], "typ" : {
29
                "name" : ["SIMPLE_NAME", "integer"]}
30
              , "init_val" : ["EXPRESSION", {
31
                "args" : [["EXPRESSION", {
32
                  "args" : [["EXPRESSION", {
33
                    "args" : [["EXPRESSION", {
34
                      "args" : [["CONSTANT_VALUE", {
35
                        "value" : ["CST_LITERAL", "5"]}
36
                      ]]}
37
                    ]]}
38
                  ]]}
39
                ]]}
40
              ]}
41
            ]}
42
          , {
43
            "declaration" : ["VARIABLE_DECLARATION", {
44
              "names" : [["IDENTIFIER", "z"]], "typ" : {
45
                "name" : ["SIMPLE_NAME", "integer"]}
46
              , "init_val" : ["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["EXPRESSION", {
50
                      "args" : [["CONSTANT_VALUE", {
51
                        "value" : ["CST_LITERAL", "9"]}
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" : [["IF_STATEMENT", {
75
            "if_cases" : [{
76
              "if_cond" : ["EXPRESSION", {
77
                "id" : "and", "args" : [["EXPRESSION", {
78
                  "id" : "<", "args" : [["EXPRESSION", {
79
                    "args" : [["EXPRESSION", {
80
                      "id" : "-", "args" : [["EXPRESSION", {
81
                        "id" : "+", "args" : [["EXPRESSION", {
82
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
83
                        ], ["EXPRESSION", {
84
                          "args" : [["CALL", ["SIMPLE_NAME", "z"]]]}
85
                        ]]}
86
                      ]]}
87
                    ]]}
88
                  ], ["EXPRESSION", {
89
                    "args" : [["EXPRESSION", {
90
                      "args" : [["EXPRESSION", {
91
                        "id" : "+", "args" : [["EXPRESSION", {
92
                          "args" : [["CALL", ["SIMPLE_NAME", "y"]]]}
93
                        ], ["EXPRESSION", {
94
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
95
                        ]]}
96
                      ]]}
97
                    ]]}
98
                  ]]}
99
                ], ["EXPRESSION", {
100
                  "id" : ">", "args" : [["EXPRESSION", {
101
                    "args" : [["EXPRESSION", {
102
                      "args" : [["EXPRESSION", {
103
                        "id" : "*", "args" : [["EXPRESSION", {
104
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
105
                        ], ["EXPRESSION", {
106
                          "args" : [["CALL", ["SIMPLE_NAME", "z"]]]}
107
                        ]]}
108
                      ]]}
109
                    ]]}
110
                  ], ["EXPRESSION", {
111
                    "args" : [["EXPRESSION", {
112
                      "args" : [["EXPRESSION", {
113
                        "id" : "-", "args" : [["EXPRESSION", {
114
                          "args" : [["CALL", ["SIMPLE_NAME", "y"]]]}
115
                        ], ["EXPRESSION", {
116
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
117
                        ]]}
118
                      ]]}
119
                    ]]}
120
                  ]]}
121
                ]]}
122
              ], "if_block" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
123
                "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
124
                  "args" : [["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
126
                      "args" : [["EXPRESSION", {
127
                        "args" : [["CONSTANT_VALUE", {
128
                          "value" : ["CST_LITERAL", "1"]}
129
                        ]]}
130
                      ]]}
131
                    ]]}
132
                  ]]}
133
                ]}
134
              ]]}
135
            ]}
136
          ], ["ASSERTION_STATEMENT", {
137
            "cond" : ["EXPRESSION", {
138
              "args" : [["EXPRESSION", {
139
                "args" : [["EXPRESSION", {
140
                  "args" : [["EXPRESSION", {
141
                    "args" : [["EXPRESSION", {
142
                      "id" : "=", "args" : [["EXPRESSION", {
143
                        "args" : [["EXPRESSION", {
144
                          "args" : [["EXPRESSION", {
145
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
146
                          ]]}
147
                        ]]}
148
                      ], ["EXPRESSION", {
149
                        "args" : [["EXPRESSION", {
150
                          "args" : [["EXPRESSION", {
151
                            "args" : [["CONSTANT_VALUE", {
152
                              "value" : ["CST_LITERAL", "1"]}
153
                            ]]}
154
                          ]]}
155
                        ]]}
156
                      ]]}
157
                    ]]}
158
                  ]]}
159
                ]]}
160
              ]]}
161
            ], "report" : ["EXPRESSION", {
162
              "args" : [["EXPRESSION", {
163
                "args" : [["EXPRESSION", {
164
                  "args" : [["EXPRESSION", {
165
                    "args" : [["CONSTANT_VALUE", {
166
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s07b00x00p01n01i01452 - expression type of IF statement wrong\""]}
167
                    ]]}
168
                  ]]}
169
                ]]}
170
              ]]}
171
            ], "severity" : ["EXPRESSION", {
172
              "args" : [["EXPRESSION", {
173
                "args" : [["EXPRESSION", {
174
                  "args" : [["EXPRESSION", {
175
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
176
                  ]]}
177
                ]]}
178
              ]]}
179
            ]}
180
          ], ["ASSERTION_STATEMENT", {
181
            "cond" : ["EXPRESSION", {
182
              "args" : [["EXPRESSION", {
183
                "args" : [["EXPRESSION", {
184
                  "args" : [["EXPRESSION", {
185
                    "id" : "NOT", "args" : [["EXPRESSION", {
186
                      "id" : "=", "args" : [["EXPRESSION", {
187
                        "args" : [["EXPRESSION", {
188
                          "args" : [["EXPRESSION", {
189
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
190
                          ]]}
191
                        ]]}
192
                      ], ["EXPRESSION", {
193
                        "args" : [["EXPRESSION", {
194
                          "args" : [["EXPRESSION", {
195
                            "args" : [["CONSTANT_VALUE", {
196
                              "value" : ["CST_LITERAL", "1"]}
197
                            ]]}
198
                          ]]}
199
                        ]]}
200
                      ]]}
201
                    ]]}
202
                  ]]}
203
                ]]}
204
              ]]}
205
            ], "report" : ["EXPRESSION", {
206
              "args" : [["EXPRESSION", {
207
                "args" : [["EXPRESSION", {
208
                  "args" : [["EXPRESSION", {
209
                    "args" : [["CONSTANT_VALUE", {
210
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s07b00x00p01n01i01452\""]}
211
                    ]]}
212
                  ]]}
213
                ]]}
214
              ]]}
215
            ], "severity" : ["EXPRESSION", {
216
              "args" : [["EXPRESSION", {
217
                "args" : [["EXPRESSION", {
218
                  "args" : [["EXPRESSION", {
219
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
220
                  ]]}
221
                ]]}
222
              ]]}
223
            ]}
224
          ], ["WAIT_STATEMENT"]]}
225
        ]]}
226
      ]}
227
    ]}
228
  }