Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (5.55 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c08s12b00x00p01n01i01613ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c08s12b00x00p01n01i01613arch"], "entity" : ["IDENTIFIER", "c08s12b00x00p01n01i01613ent"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SUBPROGRAM_BODY", {
11
            "spec" : {
12
              "name" : "two", "subprogram_type" : "function", "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
13
            , "decl_part" : [["SUBPROGRAM_BODY", {
14
              "spec" : {
15
                "name" : "one", "subprogram_type" : "function", "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
16
              , "stmts" : [["RETURN_STATEMENT", {
17
                "expr" : ["EXPRESSION", {
18
                  "args" : [["EXPRESSION", {
19
                    "args" : [["EXPRESSION", {
20
                      "args" : [["EXPRESSION", {
21
                        "args" : [["CONSTANT_VALUE", {
22
                          "value" : ["CST_LITERAL", "1"]}
23
                        ]]}
24
                      ]]}
25
                    ]]}
26
                  ]]}
27
                ]}
28
              ]]}
29
            ]], "stmts" : [["RETURN_STATEMENT", {
30
              "expr" : ["EXPRESSION", {
31
                "args" : [["EXPRESSION", {
32
                  "args" : [["EXPRESSION", {
33
                    "args" : [["EXPRESSION", {
34
                      "id" : "+", "args" : [["EXPRESSION", {
35
                        "args" : [["CALL", ["SIMPLE_NAME", "one"]]]}
36
                      ], ["EXPRESSION", {
37
                        "args" : [["CALL", ["SIMPLE_NAME", "one"]]]}
38
                      ]]}
39
                    ]]}
40
                  ]]}
41
                ]]}
42
              ]}
43
            ]]}
44
          ]}
45
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
46
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_STATEMENT_PART" : [["ASSERTION_STATEMENT", {
47
            "cond" : ["EXPRESSION", {
48
              "args" : [["EXPRESSION", {
49
                "args" : [["EXPRESSION", {
50
                  "args" : [["EXPRESSION", {
51
                    "id" : "NOT", "args" : [["EXPRESSION", {
52
                      "id" : "=", "args" : [["EXPRESSION", {
53
                        "args" : [["EXPRESSION", {
54
                          "args" : [["EXPRESSION", {
55
                            "args" : [["CALL", ["SIMPLE_NAME", "two"]]]}
56
                          ]]}
57
                        ]]}
58
                      ], ["EXPRESSION", {
59
                        "args" : [["EXPRESSION", {
60
                          "args" : [["EXPRESSION", {
61
                            "args" : [["CONSTANT_VALUE", {
62
                              "value" : ["CST_LITERAL", "2"]}
63
                            ]]}
64
                          ]]}
65
                        ]]}
66
                      ]]}
67
                    ]]}
68
                  ]]}
69
                ]]}
70
              ]]}
71
            ], "report" : ["EXPRESSION", {
72
              "args" : [["EXPRESSION", {
73
                "args" : [["EXPRESSION", {
74
                  "args" : [["EXPRESSION", {
75
                    "args" : [["CONSTANT_VALUE", {
76
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c08s12b00x00p01n01i01613\""]}
77
                    ]]}
78
                  ]]}
79
                ]]}
80
              ]]}
81
            ], "severity" : ["EXPRESSION", {
82
              "args" : [["EXPRESSION", {
83
                "args" : [["EXPRESSION", {
84
                  "args" : [["EXPRESSION", {
85
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
86
                  ]]}
87
                ]]}
88
              ]]}
89
            ]}
90
          ], ["ASSERTION_STATEMENT", {
91
            "cond" : ["EXPRESSION", {
92
              "args" : [["EXPRESSION", {
93
                "args" : [["EXPRESSION", {
94
                  "args" : [["EXPRESSION", {
95
                    "args" : [["EXPRESSION", {
96
                      "id" : "=", "args" : [["EXPRESSION", {
97
                        "args" : [["EXPRESSION", {
98
                          "args" : [["EXPRESSION", {
99
                            "args" : [["CALL", ["SIMPLE_NAME", "two"]]]}
100
                          ]]}
101
                        ]]}
102
                      ], ["EXPRESSION", {
103
                        "args" : [["EXPRESSION", {
104
                          "args" : [["EXPRESSION", {
105
                            "args" : [["CONSTANT_VALUE", {
106
                              "value" : ["CST_LITERAL", "2"]}
107
                            ]]}
108
                          ]]}
109
                        ]]}
110
                      ]]}
111
                    ]]}
112
                  ]]}
113
                ]]}
114
              ]]}
115
            ], "report" : ["EXPRESSION", {
116
              "args" : [["EXPRESSION", {
117
                "args" : [["EXPRESSION", {
118
                  "args" : [["EXPRESSION", {
119
                    "args" : [["CONSTANT_VALUE", {
120
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c08s12b00x00p01n01i01613 - Return statement applies to the innermost enclosing function.\""]}
121
                    ]]}
122
                  ]]}
123
                ]]}
124
              ]]}
125
            ], "severity" : ["EXPRESSION", {
126
              "args" : [["EXPRESSION", {
127
                "args" : [["EXPRESSION", {
128
                  "args" : [["EXPRESSION", {
129
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
130
                  ]]}
131
                ]]}
132
              ]]}
133
            ]}
134
          ], ["WAIT_STATEMENT"]]}
135
        ]]}
136
      ]}
137
    ]}
138
  }