Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.84 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s12b00x00p05n01i01633ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s12b00x00p05n01i01633arch"], "entity" : ["IDENTIFIER", "c08s12b00x00p05n01i01633ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "definition" : ["TYPE_DECLARATION", {
12
              "name" : ["IDENTIFIER", "AR2"], "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", "2"]}
25
                        ]]}
26
                      ]]}
27
                    ]}
28
                  ]]}
29
                ], "definition" : {
30
                  "name" : ["SIMPLE_NAME", "BIT"]}
31
                }
32
              ]}
33
            ]}
34
          , {
35
            "declaration" : ["SUBPROGRAM_BODY", {
36
              "spec" : {
37
                "name" : "K", "subprogram_type" : "function", "typeMark" : ["SIMPLE_NAME", "AR2"], "isPure" : false}
38
              , "stmts" : [["RETURN_STATEMENT", {
39
                "expr" : ["EXPRESSION", {
40
                  "args" : [["EXPRESSION", {
41
                    "args" : [["EXPRESSION", {
42
                      "args" : [["EXPRESSION", {
43
                        "args" : [["AGGREGATE", {
44
                          "elems" : [{
45
                            "choices" : [["EXPRESSION", {
46
                              "args" : [["EXPRESSION", {
47
                                "args" : [["CONSTANT_VALUE", {
48
                                  "value" : ["CST_LITERAL", "1"]}
49
                                ]]}
50
                              ]]}
51
                            ]], "expr" : ["EXPRESSION", {
52
                              "args" : [["EXPRESSION", {
53
                                "args" : [["EXPRESSION", {
54
                                  "args" : [["EXPRESSION", {
55
                                    "args" : [["CONSTANT_VALUE", {
56
                                      "value" : ["CST_LITERAL", "'1'"]}
57
                                    ]]}
58
                                  ]]}
59
                                ]]}
60
                              ]]}
61
                            ]}
62
                          , {
63
                            "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
64
                              "args" : [["EXPRESSION", {
65
                                "args" : [["EXPRESSION", {
66
                                  "args" : [["EXPRESSION", {
67
                                    "args" : [["CONSTANT_VALUE", {
68
                                      "value" : ["CST_LITERAL", "'0'"]}
69
                                    ]]}
70
                                  ]]}
71
                                ]]}
72
                              ]]}
73
                            ]}
74
                          ]}
75
                        ]]}
76
                      ]]}
77
                    ]]}
78
                  ]]}
79
                ]}
80
              ]]}
81
            ]}
82
          , {
83
            "declaration" : ["VARIABLE_DECLARATION", {
84
              "names" : [["IDENTIFIER", "kk"]], "typ" : {
85
                "name" : ["SIMPLE_NAME", "AR2"]}
86
              }
87
            ]}
88
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
89
            "lhs" : ["SIMPLE_NAME", "kk"], "rhs" : ["EXPRESSION", {
90
              "args" : [["EXPRESSION", {
91
                "args" : [["EXPRESSION", {
92
                  "args" : [["EXPRESSION", {
93
                    "args" : [["CALL", ["SIMPLE_NAME", "K"]]]}
94
                  ]]}
95
                ]]}
96
              ]]}
97
            ]}
98
          ], ["ASSERTION_STATEMENT", {
99
            "cond" : ["EXPRESSION", {
100
              "args" : [["EXPRESSION", {
101
                "args" : [["EXPRESSION", {
102
                  "args" : [["EXPRESSION", {
103
                    "args" : [["EXPRESSION", {
104
                      "id" : "=", "args" : [["EXPRESSION", {
105
                        "args" : [["EXPRESSION", {
106
                          "args" : [["EXPRESSION", {
107
                            "args" : [["CALL", ["SIMPLE_NAME", "kk"]]]}
108
                          ]]}
109
                        ]]}
110
                      ], ["EXPRESSION", {
111
                        "args" : [["EXPRESSION", {
112
                          "args" : [["EXPRESSION", {
113
                            "args" : [["CONSTANT_VALUE", {
114
                              "value" : ["CST_LITERAL", "\"010\""]}
115
                            ]]}
116
                          ]]}
117
                        ]]}
118
                      ]]}
119
                    ]]}
120
                  ]]}
121
                ]]}
122
              ]]}
123
            ], "report" : ["EXPRESSION", {
124
              "args" : [["EXPRESSION", {
125
                "args" : [["EXPRESSION", {
126
                  "args" : [["EXPRESSION", {
127
                    "args" : [["CONSTANT_VALUE", {
128
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s12b00x00p05n01i01633 - The return type must be the same base tyep declared in the specification of the function.\""]}
129
                    ]]}
130
                  ]]}
131
                ]]}
132
              ]]}
133
            ], "severity" : ["EXPRESSION", {
134
              "args" : [["EXPRESSION", {
135
                "args" : [["EXPRESSION", {
136
                  "args" : [["EXPRESSION", {
137
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
138
                  ]]}
139
                ]]}
140
              ]]}
141
            ]}
142
          ], ["ASSERTION_STATEMENT", {
143
            "cond" : ["EXPRESSION", {
144
              "args" : [["EXPRESSION", {
145
                "args" : [["EXPRESSION", {
146
                  "args" : [["EXPRESSION", {
147
                    "id" : "NOT", "args" : [["EXPRESSION", {
148
                      "id" : "=", "args" : [["EXPRESSION", {
149
                        "args" : [["EXPRESSION", {
150
                          "args" : [["EXPRESSION", {
151
                            "args" : [["CALL", ["SIMPLE_NAME", "kk"]]]}
152
                          ]]}
153
                        ]]}
154
                      ], ["EXPRESSION", {
155
                        "args" : [["EXPRESSION", {
156
                          "args" : [["EXPRESSION", {
157
                            "args" : [["CONSTANT_VALUE", {
158
                              "value" : ["CST_LITERAL", "\"010\""]}
159
                            ]]}
160
                          ]]}
161
                        ]]}
162
                      ]]}
163
                    ]]}
164
                  ]]}
165
                ]]}
166
              ]]}
167
            ], "report" : ["EXPRESSION", {
168
              "args" : [["EXPRESSION", {
169
                "args" : [["EXPRESSION", {
170
                  "args" : [["EXPRESSION", {
171
                    "args" : [["CONSTANT_VALUE", {
172
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s12b00x00p05n01i01633\""]}
173
                    ]]}
174
                  ]]}
175
                ]]}
176
              ]]}
177
            ], "severity" : ["EXPRESSION", {
178
              "args" : [["EXPRESSION", {
179
                "args" : [["EXPRESSION", {
180
                  "args" : [["EXPRESSION", {
181
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
182
                  ]]}
183
                ]]}
184
              ]]}
185
            ]}
186
          ], ["WAIT_STATEMENT"]]}
187
        ]]}
188
      ]}
189
    ]}
190
  }