Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.74 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s08b00x00p14n01i01497ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s08b00x00p14n01i01497arch"], "entity" : ["IDENTIFIER", "c08s08b00x00p14n01i01497ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["VARIABLE_DECLARATION", {
12
              "names" : [["IDENTIFIER", "k"]], "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", "0"]}
20
                      ]]}
21
                    ]]}
22
                  ]]}
23
                ]]}
24
              ]}
25
            ]}
26
          , {
27
            "declaration" : ["VARIABLE_DECLARATION", {
28
              "names" : [["IDENTIFIER", "p"]], "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", "20"]}
36
                      ]]}
37
                    ]]}
38
                  ]]}
39
                ]]}
40
              ]}
41
            ]}
42
          ], "PROCESS_STATEMENT_PART" : [["CASE_STATEMENT_TREE", {
43
            "guard" : ["EXPRESSION", {
44
              "id" : "and", "args" : [["EXPRESSION", {
45
                "id" : ">=", "args" : [["EXPRESSION", {
46
                  "args" : [["EXPRESSION", {
47
                    "args" : [["EXPRESSION", {
48
                      "args" : [["CALL", ["SIMPLE_NAME", "p"]]]}
49
                    ]]}
50
                  ]]}
51
                ], ["EXPRESSION", {
52
                  "args" : [["EXPRESSION", {
53
                    "args" : [["EXPRESSION", {
54
                      "args" : [["CONSTANT_VALUE", {
55
                        "value" : ["CST_LITERAL", "20"]}
56
                      ]]}
57
                    ]]}
58
                  ]]}
59
                ]]}
60
              ], ["EXPRESSION", {
61
                "id" : "<", "args" : [["EXPRESSION", {
62
                  "args" : [["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "args" : [["CALL", ["SIMPLE_NAME", "p"]]]}
65
                    ]]}
66
                  ]]}
67
                ], ["EXPRESSION", {
68
                  "args" : [["EXPRESSION", {
69
                    "args" : [["EXPRESSION", {
70
                      "args" : [["CONSTANT_VALUE", {
71
                        "value" : ["CST_LITERAL", "30"]}
72
                      ]]}
73
                    ]]}
74
                  ]]}
75
                ]]}
76
              ]]}
77
            ], "branches" : [{
78
              "when_cond" : [["EXPRESSION", {
79
                "args" : [["EXPRESSION", {
80
                  "args" : [["CALL", ["SIMPLE_NAME", "TRUE"]]]}
81
                ]]}
82
              ]], "when_stmt" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
83
                "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
84
                  "args" : [["EXPRESSION", {
85
                    "args" : [["EXPRESSION", {
86
                      "args" : [["EXPRESSION", {
87
                        "args" : [["CONSTANT_VALUE", {
88
                          "value" : ["CST_LITERAL", "5"]}
89
                        ]]}
90
                      ]]}
91
                    ]]}
92
                  ]]}
93
                ]}
94
              ]]}
95
            , {
96
              "when_cond" : [["EXPRESSION", {
97
                "args" : [["EXPRESSION", {
98
                  "args" : [["CALL", ["SIMPLE_NAME", "FALSE"]]]}
99
                ]]}
100
              ]], "when_stmt" : [["NULL_STATEMENT", {
101
                }
102
              ]]}
103
            , {
104
              "when_cond" : [["OTHERS"]], "when_stmt" : [["NULL_STATEMENT", {
105
                }
106
              ]]}
107
            ]}
108
          ], ["ASSERTION_STATEMENT", {
109
            "cond" : ["EXPRESSION", {
110
              "args" : [["EXPRESSION", {
111
                "args" : [["EXPRESSION", {
112
                  "args" : [["EXPRESSION", {
113
                    "id" : "NOT", "args" : [["EXPRESSION", {
114
                      "id" : "=", "args" : [["EXPRESSION", {
115
                        "args" : [["EXPRESSION", {
116
                          "args" : [["EXPRESSION", {
117
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
118
                          ]]}
119
                        ]]}
120
                      ], ["EXPRESSION", {
121
                        "args" : [["EXPRESSION", {
122
                          "args" : [["EXPRESSION", {
123
                            "args" : [["CONSTANT_VALUE", {
124
                              "value" : ["CST_LITERAL", "5"]}
125
                            ]]}
126
                          ]]}
127
                        ]]}
128
                      ]]}
129
                    ]]}
130
                  ]]}
131
                ]]}
132
              ]]}
133
            ], "report" : ["EXPRESSION", {
134
              "args" : [["EXPRESSION", {
135
                "args" : [["EXPRESSION", {
136
                  "args" : [["EXPRESSION", {
137
                    "args" : [["CONSTANT_VALUE", {
138
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s08b00x00p14n01i01497\""]}
139
                    ]]}
140
                  ]]}
141
                ]]}
142
              ]]}
143
            ], "severity" : ["EXPRESSION", {
144
              "args" : [["EXPRESSION", {
145
                "args" : [["EXPRESSION", {
146
                  "args" : [["EXPRESSION", {
147
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
148
                  ]]}
149
                ]]}
150
              ]]}
151
            ]}
152
          ], ["ASSERTION_STATEMENT", {
153
            "cond" : ["EXPRESSION", {
154
              "args" : [["EXPRESSION", {
155
                "args" : [["EXPRESSION", {
156
                  "args" : [["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "id" : "=", "args" : [["EXPRESSION", {
159
                        "args" : [["EXPRESSION", {
160
                          "args" : [["EXPRESSION", {
161
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
162
                          ]]}
163
                        ]]}
164
                      ], ["EXPRESSION", {
165
                        "args" : [["EXPRESSION", {
166
                          "args" : [["EXPRESSION", {
167
                            "args" : [["CONSTANT_VALUE", {
168
                              "value" : ["CST_LITERAL", "5"]}
169
                            ]]}
170
                          ]]}
171
                        ]]}
172
                      ]]}
173
                    ]]}
174
                  ]]}
175
                ]]}
176
              ]]}
177
            ], "report" : ["EXPRESSION", {
178
              "args" : [["EXPRESSION", {
179
                "args" : [["EXPRESSION", {
180
                  "args" : [["EXPRESSION", {
181
                    "args" : [["CONSTANT_VALUE", {
182
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s08b00x00p14n01i01497 - Case expression may be a complex static expression\""]}
183
                    ]]}
184
                  ]]}
185
                ]]}
186
              ]]}
187
            ], "severity" : ["EXPRESSION", {
188
              "args" : [["EXPRESSION", {
189
                "args" : [["EXPRESSION", {
190
                  "args" : [["EXPRESSION", {
191
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
192
                  ]]}
193
                ]]}
194
              ]]}
195
            ]}
196
          ], ["WAIT_STATEMENT"]]}
197
        ]]}
198
      ]}
199
    ]}
200
  }