Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.97 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s12b00x00p05n01i01634ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s12b00x00p05n01i01634arch"], "entity" : ["IDENTIFIER", "c08s12b00x00p05n01i01634ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "definition" : ["TYPE_DECLARATION", {
12
              "name" : ["IDENTIFIER", "E"], "definition" : ["ENUMERATION_TYPE_DEFINITION", [["IDENTIFIER", "A"], ["IDENTIFIER", "B"], ["IDENTIFIER", "C"], ["IDENTIFIER", "D"]]]}
13
            ]}
14
          , {
15
            "definition" : ["SUBTYPE_DECLARATION", {
16
              "name" : ["IDENTIFIER", "E1"], "typ" : {
17
                "name" : ["SIMPLE_NAME", "E"], "const" : ["RANGE_CONSTRAINT", {
18
                  "range" : ["RANGE_WITH_DIRECTION", {
19
                    "direction" : "to", "from" : ["EXPRESSION", {
20
                      "args" : [["EXPRESSION", {
21
                        "args" : [["CALL", ["SIMPLE_NAME", "C"]]]}
22
                      ]]}
23
                    ], "_to" : ["EXPRESSION", {
24
                      "args" : [["EXPRESSION", {
25
                        "args" : [["CALL", ["SIMPLE_NAME", "D"]]]}
26
                      ]]}
27
                    ]}
28
                  ]}
29
                ]}
30
              }
31
            ]}
32
          , {
33
            "declaration" : ["SUBPROGRAM_BODY", {
34
              "spec" : {
35
                "name" : "F", "subprogram_type" : "function", "typeMark" : ["SIMPLE_NAME", "E"], "isPure" : false}
36
              , "decl_part" : [["VARIABLE_DECLARATION", {
37
                "names" : [["IDENTIFIER", "V"]], "typ" : {
38
                  "name" : ["SIMPLE_NAME", "E1"]}
39
                , "init_val" : ["EXPRESSION", {
40
                  "args" : [["EXPRESSION", {
41
                    "args" : [["EXPRESSION", {
42
                      "args" : [["EXPRESSION", {
43
                        "args" : [["CALL", ["SIMPLE_NAME", "C"]]]}
44
                      ]]}
45
                    ]]}
46
                  ]]}
47
                ]}
48
              ]], "stmts" : [["RETURN_STATEMENT", {
49
                "expr" : ["EXPRESSION", {
50
                  "args" : [["EXPRESSION", {
51
                    "args" : [["EXPRESSION", {
52
                      "args" : [["EXPRESSION", {
53
                        "args" : [["CALL", ["SIMPLE_NAME", "V"]]]}
54
                      ]]}
55
                    ]]}
56
                  ]]}
57
                ]}
58
              ]]}
59
            ]}
60
          , {
61
            "declaration" : ["VARIABLE_DECLARATION", {
62
              "names" : [["IDENTIFIER", "k"]], "typ" : {
63
                "name" : ["SIMPLE_NAME", "E"]}
64
              , "init_val" : ["EXPRESSION", {
65
                "args" : [["EXPRESSION", {
66
                  "args" : [["EXPRESSION", {
67
                    "args" : [["EXPRESSION", {
68
                      "args" : [["CALL", ["SIMPLE_NAME", "A"]]]}
69
                    ]]}
70
                  ]]}
71
                ]]}
72
              ]}
73
            ]}
74
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
75
            "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
76
              "args" : [["EXPRESSION", {
77
                "args" : [["EXPRESSION", {
78
                  "args" : [["EXPRESSION", {
79
                    "args" : [["CALL", ["SIMPLE_NAME", "F"]]]}
80
                  ]]}
81
                ]]}
82
              ]]}
83
            ]}
84
          ], ["ASSERTION_STATEMENT", {
85
            "cond" : ["EXPRESSION", {
86
              "args" : [["EXPRESSION", {
87
                "args" : [["EXPRESSION", {
88
                  "args" : [["EXPRESSION", {
89
                    "id" : "NOT", "args" : [["EXPRESSION", {
90
                      "id" : "=", "args" : [["EXPRESSION", {
91
                        "args" : [["EXPRESSION", {
92
                          "args" : [["EXPRESSION", {
93
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
94
                          ]]}
95
                        ]]}
96
                      ], ["EXPRESSION", {
97
                        "args" : [["EXPRESSION", {
98
                          "args" : [["EXPRESSION", {
99
                            "args" : [["CALL", ["SIMPLE_NAME", "C"]]]}
100
                          ]]}
101
                        ]]}
102
                      ]]}
103
                    ]]}
104
                  ]]}
105
                ]]}
106
              ]]}
107
            ], "report" : ["EXPRESSION", {
108
              "args" : [["EXPRESSION", {
109
                "args" : [["EXPRESSION", {
110
                  "args" : [["EXPRESSION", {
111
                    "args" : [["CONSTANT_VALUE", {
112
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s12b00x00p05n01i01634\""]}
113
                    ]]}
114
                  ]]}
115
                ]]}
116
              ]]}
117
            ], "severity" : ["EXPRESSION", {
118
              "args" : [["EXPRESSION", {
119
                "args" : [["EXPRESSION", {
120
                  "args" : [["EXPRESSION", {
121
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
122
                  ]]}
123
                ]]}
124
              ]]}
125
            ]}
126
          ], ["ASSERTION_STATEMENT", {
127
            "cond" : ["EXPRESSION", {
128
              "args" : [["EXPRESSION", {
129
                "args" : [["EXPRESSION", {
130
                  "args" : [["EXPRESSION", {
131
                    "args" : [["EXPRESSION", {
132
                      "id" : "=", "args" : [["EXPRESSION", {
133
                        "args" : [["EXPRESSION", {
134
                          "args" : [["EXPRESSION", {
135
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
136
                          ]]}
137
                        ]]}
138
                      ], ["EXPRESSION", {
139
                        "args" : [["EXPRESSION", {
140
                          "args" : [["EXPRESSION", {
141
                            "args" : [["CALL", ["SIMPLE_NAME", "C"]]]}
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: c08s12b00x00p05n01i01634 - The return type must be the same base tyep declared in the specification of the function.\""]}
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
  }