Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.82 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s08b00x00p04n03i01485ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s08b00x00p04n03i01485arch"], "entity" : ["IDENTIFIER", "c08s08b00x00p04n03i01485ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["VARIABLE_DECLARATION", {
12
              "names" : [["IDENTIFIER", "m"]], "typ" : {
13
                "name" : ["SIMPLE_NAME", "severity_level"]}
14
              , "init_val" : ["EXPRESSION", {
15
                "args" : [["EXPRESSION", {
16
                  "args" : [["EXPRESSION", {
17
                    "args" : [["EXPRESSION", {
18
                      "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
19
                    ]]}
20
                  ]]}
21
                ]]}
22
              ]}
23
            ]}
24
          , {
25
            "declaration" : ["VARIABLE_DECLARATION", {
26
              "names" : [["IDENTIFIER", "k"]], "typ" : {
27
                "name" : ["SIMPLE_NAME", "integer"]}
28
              , "init_val" : ["EXPRESSION", {
29
                "args" : [["EXPRESSION", {
30
                  "args" : [["EXPRESSION", {
31
                    "args" : [["EXPRESSION", {
32
                      "args" : [["CONSTANT_VALUE", {
33
                        "value" : ["CST_LITERAL", "0"]}
34
                      ]]}
35
                    ]]}
36
                  ]]}
37
                ]]}
38
              ]}
39
            ]}
40
          ], "PROCESS_STATEMENT_PART" : [["CASE_STATEMENT_TREE", {
41
            "guard" : ["EXPRESSION", {
42
              "args" : [["EXPRESSION", {
43
                "args" : [["EXPRESSION", {
44
                  "args" : [["EXPRESSION", {
45
                    "args" : [["CALL", ["SIMPLE_NAME", "m"]]]}
46
                  ]]}
47
                ]]}
48
              ]]}
49
            ], "branches" : [{
50
              "when_cond" : [["EXPRESSION", {
51
                "args" : [["EXPRESSION", {
52
                  "args" : [["CALL", ["ATTRIBUTE_NAME", {
53
                    "id" : ["SIMPLE_NAME", "severity_level"], "designator" : ["SIMPLE_NAME", "low"]}
54
                  ]]]}
55
                ]]}
56
              ], ["EXPRESSION", {
57
                "args" : [["EXPRESSION", {
58
                  "args" : [["CALL", ["ATTRIBUTE_NAME", {
59
                    "id" : ["SIMPLE_NAME", "severity_level"], "designator" : ["SIMPLE_NAME", "high"]}
60
                  ]]]}
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" : [["OTHERS"]], "when_stmt" : [["NULL_STATEMENT", {
77
                }
78
              ]]}
79
            ]}
80
          ], ["ASSERTION_STATEMENT", {
81
            "cond" : ["EXPRESSION", {
82
              "args" : [["EXPRESSION", {
83
                "args" : [["EXPRESSION", {
84
                  "args" : [["EXPRESSION", {
85
                    "id" : "NOT", "args" : [["EXPRESSION", {
86
                      "id" : "=", "args" : [["EXPRESSION", {
87
                        "args" : [["EXPRESSION", {
88
                          "args" : [["EXPRESSION", {
89
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
90
                          ]]}
91
                        ]]}
92
                      ], ["EXPRESSION", {
93
                        "args" : [["EXPRESSION", {
94
                          "args" : [["EXPRESSION", {
95
                            "args" : [["CONSTANT_VALUE", {
96
                              "value" : ["CST_LITERAL", "5"]}
97
                            ]]}
98
                          ]]}
99
                        ]]}
100
                      ]]}
101
                    ]]}
102
                  ]]}
103
                ]]}
104
              ]]}
105
            ], "report" : ["EXPRESSION", {
106
              "args" : [["EXPRESSION", {
107
                "args" : [["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["CONSTANT_VALUE", {
110
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s08b00x00p04n03i01485\""]}
111
                    ]]}
112
                  ]]}
113
                ]]}
114
              ]]}
115
            ], "severity" : ["EXPRESSION", {
116
              "args" : [["EXPRESSION", {
117
                "args" : [["EXPRESSION", {
118
                  "args" : [["EXPRESSION", {
119
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
120
                  ]]}
121
                ]]}
122
              ]]}
123
            ]}
124
          ], ["ASSERTION_STATEMENT", {
125
            "cond" : ["EXPRESSION", {
126
              "args" : [["EXPRESSION", {
127
                "args" : [["EXPRESSION", {
128
                  "args" : [["EXPRESSION", {
129
                    "args" : [["EXPRESSION", {
130
                      "id" : "=", "args" : [["EXPRESSION", {
131
                        "args" : [["EXPRESSION", {
132
                          "args" : [["EXPRESSION", {
133
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
134
                          ]]}
135
                        ]]}
136
                      ], ["EXPRESSION", {
137
                        "args" : [["EXPRESSION", {
138
                          "args" : [["EXPRESSION", {
139
                            "args" : [["CONSTANT_VALUE", {
140
                              "value" : ["CST_LITERAL", "5"]}
141
                            ]]}
142
                          ]]}
143
                        ]]}
144
                      ]]}
145
                    ]]}
146
                  ]]}
147
                ]]}
148
              ]]}
149
            ], "report" : ["EXPRESSION", {
150
              "args" : [["EXPRESSION", {
151
                "args" : [["EXPRESSION", {
152
                  "args" : [["EXPRESSION", {
153
                    "args" : [["CONSTANT_VALUE", {
154
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s08b00x00p04n03i01485 - Each choice in a case statement alternative must be of the same type as the expression.\""]}
155
                    ]]}
156
                  ]]}
157
                ]]}
158
              ]]}
159
            ], "severity" : ["EXPRESSION", {
160
              "args" : [["EXPRESSION", {
161
                "args" : [["EXPRESSION", {
162
                  "args" : [["EXPRESSION", {
163
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
164
                  ]]}
165
                ]]}
166
              ]]}
167
            ]}
168
          ], ["WAIT_STATEMENT"]]}
169
        ]]}
170
      ]}
171
    ]}
172
  }