Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.77 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s12b00x00p03n01i01617ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s12b00x00p03n01i01617arch"], "entity" : ["IDENTIFIER", "c08s12b00x00p03n01i01617ent"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SUBPROGRAM_BODY", {
11
            "spec" : {
12
              "name" : "f1", "subprogram_type" : "function", "parameters" : [{
13
                "names" : [["IDENTIFIER", "in1"]], "typ" : {
14
                  "name" : ["SIMPLE_NAME", "real"]}
15
                }
16
              ], "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
17
            , "stmts" : [["RETURN_STATEMENT", {
18
              "expr" : ["EXPRESSION", {
19
                "args" : [["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["EXPRESSION", {
23
                        "args" : [["EXPRESSION", {
24
                          "args" : [["EXPRESSION", {
25
                            "args" : [["EXPRESSION", {
26
                              "args" : [["CONSTANT_VALUE", {
27
                                "value" : ["CST_LITERAL", "12"]}
28
                              ]]}
29
                            ]]}
30
                          ]]}
31
                        ]]}
32
                      ]]}
33
                    ]]}
34
                  ]]}
35
                ]]}
36
              ]}
37
            ]]}
38
          ]}
39
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
40
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
41
            "declaration" : ["VARIABLE_DECLARATION", {
42
              "names" : [["IDENTIFIER", "k"]], "typ" : {
43
                "name" : ["SIMPLE_NAME", "integer"]}
44
              , "init_val" : ["EXPRESSION", {
45
                "args" : [["EXPRESSION", {
46
                  "args" : [["EXPRESSION", {
47
                    "args" : [["EXPRESSION", {
48
                      "args" : [["CONSTANT_VALUE", {
49
                        "value" : ["CST_LITERAL", "0"]}
50
                      ]]}
51
                    ]]}
52
                  ]]}
53
                ]]}
54
              ]}
55
            ]}
56
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
57
            "lhs" : ["SIMPLE_NAME", "k"], "rhs" : ["EXPRESSION", {
58
              "args" : [["EXPRESSION", {
59
                "args" : [["EXPRESSION", {
60
                  "args" : [["EXPRESSION", {
61
                    "args" : [["CALL", ["INDEXED_NAME", {
62
                      "id" : ["SIMPLE_NAME", "f1"], "exprs" : [["EXPRESSION", {
63
                        "args" : [["EXPRESSION", {
64
                          "args" : [["EXPRESSION", {
65
                            "args" : [["EXPRESSION", {
66
                              "args" : [["CONSTANT_VALUE", {
67
                                "value" : ["CST_LITERAL", "2.3"]}
68
                              ]]}
69
                            ]]}
70
                          ]]}
71
                        ]]}
72
                      ]]}
73
                    ]]]}
74
                  ]]}
75
                ]]}
76
              ]]}
77
            ]}
78
          ], ["ASSERTION_STATEMENT", {
79
            "cond" : ["EXPRESSION", {
80
              "args" : [["EXPRESSION", {
81
                "args" : [["EXPRESSION", {
82
                  "args" : [["EXPRESSION", {
83
                    "id" : "NOT", "args" : [["EXPRESSION", {
84
                      "id" : "=", "args" : [["EXPRESSION", {
85
                        "args" : [["EXPRESSION", {
86
                          "args" : [["EXPRESSION", {
87
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
88
                          ]]}
89
                        ]]}
90
                      ], ["EXPRESSION", {
91
                        "args" : [["EXPRESSION", {
92
                          "args" : [["EXPRESSION", {
93
                            "args" : [["CONSTANT_VALUE", {
94
                              "value" : ["CST_LITERAL", "12"]}
95
                            ]]}
96
                          ]]}
97
                        ]]}
98
                      ]]}
99
                    ]]}
100
                  ]]}
101
                ]]}
102
              ]]}
103
            ], "report" : ["EXPRESSION", {
104
              "args" : [["EXPRESSION", {
105
                "args" : [["EXPRESSION", {
106
                  "args" : [["EXPRESSION", {
107
                    "args" : [["CONSTANT_VALUE", {
108
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s12b00x00p03n01i01617\""]}
109
                    ]]}
110
                  ]]}
111
                ]]}
112
              ]]}
113
            ], "severity" : ["EXPRESSION", {
114
              "args" : [["EXPRESSION", {
115
                "args" : [["EXPRESSION", {
116
                  "args" : [["EXPRESSION", {
117
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
118
                  ]]}
119
                ]]}
120
              ]]}
121
            ]}
122
          ], ["ASSERTION_STATEMENT", {
123
            "cond" : ["EXPRESSION", {
124
              "args" : [["EXPRESSION", {
125
                "args" : [["EXPRESSION", {
126
                  "args" : [["EXPRESSION", {
127
                    "args" : [["EXPRESSION", {
128
                      "id" : "=", "args" : [["EXPRESSION", {
129
                        "args" : [["EXPRESSION", {
130
                          "args" : [["EXPRESSION", {
131
                            "args" : [["CALL", ["SIMPLE_NAME", "k"]]]}
132
                          ]]}
133
                        ]]}
134
                      ], ["EXPRESSION", {
135
                        "args" : [["EXPRESSION", {
136
                          "args" : [["EXPRESSION", {
137
                            "args" : [["CONSTANT_VALUE", {
138
                              "value" : ["CST_LITERAL", "12"]}
139
                            ]]}
140
                          ]]}
141
                        ]]}
142
                      ]]}
143
                    ]]}
144
                  ]]}
145
                ]]}
146
              ]]}
147
            ], "report" : ["EXPRESSION", {
148
              "args" : [["EXPRESSION", {
149
                "args" : [["EXPRESSION", {
150
                  "args" : [["EXPRESSION", {
151
                    "args" : [["CONSTANT_VALUE", {
152
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s12b00x00p03n01i01617 - A return statement is only allowed within the body of a function\""]}
153
                    ]]}
154
                  ]]}
155
                ]]}
156
              ]]}
157
            ], "severity" : ["EXPRESSION", {
158
              "args" : [["EXPRESSION", {
159
                "args" : [["EXPRESSION", {
160
                  "args" : [["EXPRESSION", {
161
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
162
                  ]]}
163
                ]]}
164
              ]]}
165
            ]}
166
          ], ["WAIT_STATEMENT"]]}
167
        ]]}
168
      ]}
169
    ]}
170
  }