Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.71 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s08b00x00p04n03i01487ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s08b00x00p04n03i01487arch"], "entity" : ["IDENTIFIER", "c08s08b00x00p04n03i01487ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "definition" : ["TYPE_DECLARATION", {
12
              "name" : ["IDENTIFIER", "t_enum1"], "definition" : ["ENUMERATION_TYPE_DEFINITION", [["IDENTIFIER", "en1"], ["IDENTIFIER", "en2"], ["IDENTIFIER", "en3"], ["IDENTIFIER", "en4"]]]}
13
            ]}
14
          , {
15
            "declaration" : ["VARIABLE_DECLARATION", {
16
              "names" : [["IDENTIFIER", "m"]], "typ" : {
17
                "name" : ["SIMPLE_NAME", "t_enum1"]}
18
              , "init_val" : ["EXPRESSION", {
19
                "args" : [["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["CALL", ["SIMPLE_NAME", "en1"]]]}
23
                    ]]}
24
                  ]]}
25
                ]]}
26
              ]}
27
            ]}
28
          , {
29
            "declaration" : ["VARIABLE_DECLARATION", {
30
              "names" : [["IDENTIFIER", "k"]], "typ" : {
31
                "name" : ["SIMPLE_NAME", "integer"]}
32
              , "init_val" : ["EXPRESSION", {
33
                "args" : [["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["EXPRESSION", {
36
                      "args" : [["CONSTANT_VALUE", {
37
                        "value" : ["CST_LITERAL", "0"]}
38
                      ]]}
39
                    ]]}
40
                  ]]}
41
                ]]}
42
              ]}
43
            ]}
44
          ], "PROCESS_STATEMENT_PART" : [["CASE_STATEMENT_TREE", {
45
            "guard" : ["EXPRESSION", {
46
              "args" : [["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["CALL", ["SIMPLE_NAME", "m"]]]}
50
                  ]]}
51
                ]]}
52
              ]]}
53
            ], "branches" : [{
54
              "when_cond" : [["EXPRESSION", {
55
                "args" : [["EXPRESSION", {
56
                  "args" : [["CALL", ["SIMPLE_NAME", "en1"]]]}
57
                ]]}
58
              ], ["EXPRESSION", {
59
                "args" : [["EXPRESSION", {
60
                  "args" : [["CALL", ["SIMPLE_NAME", "en2"]]]}
61
                ]]}
62
              ]], "when_stmt" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
63
                "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["EXPRESSION", {
66
                      "args" : [["EXPRESSION", {
67
                        "args" : [["CONSTANT_VALUE", {
68
                          "value" : ["CST_LITERAL", "5"]}
69
                        ]]}
70
                      ]]}
71
                    ]]}
72
                  ]]}
73
                ]}
74
              ]]}
75
            , {
76
              "when_cond" : [["EXPRESSION", {
77
                "args" : [["EXPRESSION", {
78
                  "args" : [["CALL", ["SIMPLE_NAME", "en3"]]]}
79
                ]]}
80
              ], ["EXPRESSION", {
81
                "args" : [["EXPRESSION", {
82
                  "args" : [["CALL", ["SIMPLE_NAME", "en4"]]]}
83
                ]]}
84
              ]], "when_stmt" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
85
                "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
86
                  "args" : [["EXPRESSION", {
87
                    "args" : [["EXPRESSION", {
88
                      "args" : [["EXPRESSION", {
89
                        "args" : [["CONSTANT_VALUE", {
90
                          "value" : ["CST_LITERAL", "4"]}
91
                        ]]}
92
                      ]]}
93
                    ]]}
94
                  ]]}
95
                ]}
96
              ]]}
97
            , {
98
              "when_cond" : [["OTHERS"]], "when_stmt" : [["NULL_STATEMENT", {
99
                }
100
              ]]}
101
            ]}
102
          ], ["ASSERTION_STATEMENT", {
103
            "cond" : ["EXPRESSION", {
104
              "args" : [["EXPRESSION", {
105
                "args" : [["EXPRESSION", {
106
                  "args" : [["EXPRESSION", {
107
                    "id" : "NOT", "args" : [["EXPRESSION", {
108
                      "id" : "=", "args" : [["EXPRESSION", {
109
                        "args" : [["EXPRESSION", {
110
                          "args" : [["EXPRESSION", {
111
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
112
                          ]]}
113
                        ]]}
114
                      ], ["EXPRESSION", {
115
                        "args" : [["EXPRESSION", {
116
                          "args" : [["EXPRESSION", {
117
                            "args" : [["CONSTANT_VALUE", {
118
                              "value" : ["CST_LITERAL", "5"]}
119
                            ]]}
120
                          ]]}
121
                        ]]}
122
                      ]]}
123
                    ]]}
124
                  ]]}
125
                ]]}
126
              ]]}
127
            ], "report" : ["EXPRESSION", {
128
              "args" : [["EXPRESSION", {
129
                "args" : [["EXPRESSION", {
130
                  "args" : [["EXPRESSION", {
131
                    "args" : [["CONSTANT_VALUE", {
132
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s08b00x00p04n03i01487\""]}
133
                    ]]}
134
                  ]]}
135
                ]]}
136
              ]]}
137
            ], "severity" : ["EXPRESSION", {
138
              "args" : [["EXPRESSION", {
139
                "args" : [["EXPRESSION", {
140
                  "args" : [["EXPRESSION", {
141
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
142
                  ]]}
143
                ]]}
144
              ]]}
145
            ]}
146
          ], ["ASSERTION_STATEMENT", {
147
            "cond" : ["EXPRESSION", {
148
              "args" : [["EXPRESSION", {
149
                "args" : [["EXPRESSION", {
150
                  "args" : [["EXPRESSION", {
151
                    "args" : [["EXPRESSION", {
152
                      "id" : "=", "args" : [["EXPRESSION", {
153
                        "args" : [["EXPRESSION", {
154
                          "args" : [["EXPRESSION", {
155
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
156
                          ]]}
157
                        ]]}
158
                      ], ["EXPRESSION", {
159
                        "args" : [["EXPRESSION", {
160
                          "args" : [["EXPRESSION", {
161
                            "args" : [["CONSTANT_VALUE", {
162
                              "value" : ["CST_LITERAL", "5"]}
163
                            ]]}
164
                          ]]}
165
                        ]]}
166
                      ]]}
167
                    ]]}
168
                  ]]}
169
                ]]}
170
              ]]}
171
            ], "report" : ["EXPRESSION", {
172
              "args" : [["EXPRESSION", {
173
                "args" : [["EXPRESSION", {
174
                  "args" : [["EXPRESSION", {
175
                    "args" : [["CONSTANT_VALUE", {
176
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s08b00x00p04n03i01487 - Each choice in a case statement alternative must be of the same type as the expression.\""]}
177
                    ]]}
178
                  ]]}
179
                ]]}
180
              ]]}
181
            ], "severity" : ["EXPRESSION", {
182
              "args" : [["EXPRESSION", {
183
                "args" : [["EXPRESSION", {
184
                  "args" : [["EXPRESSION", {
185
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
186
                  ]]}
187
                ]]}
188
              ]]}
189
            ]}
190
          ], ["WAIT_STATEMENT"]]}
191
        ]]}
192
      ]}
193
    ]}
194
  }