Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.87 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c07s03b03x00p05n01i02499ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c07s03b03x00p05n01i02499arch"], "entity" : ["IDENTIFIER", "c07s03b03x00p05n01i02499ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["SUBPROGRAM_BODY", {
12
              "spec" : {
13
                "name" : "check", "subprogram_type" : "function", "parameters" : [{
14
                  "names" : [["IDENTIFIER", "x"]], "typ" : {
15
                    "name" : ["SIMPLE_NAME", "boolean"]}
16
                  }
17
                ], "typeMark" : ["SIMPLE_NAME", "boolean"], "isPure" : false}
18
              , "stmts" : [["RETURN_STATEMENT", {
19
                "expr" : ["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["EXPRESSION", {
23
                        "args" : [["CALL", ["SIMPLE_NAME", "false"]]]}
24
                      ]]}
25
                    ]]}
26
                  ]]}
27
                ]}
28
              ]]}
29
            ]}
30
          , {
31
            "declaration" : ["VARIABLE_DECLARATION", {
32
              "names" : [["IDENTIFIER", "q1"]], "typ" : {
33
                "name" : ["SIMPLE_NAME", "boolean"]}
34
              , "init_val" : ["EXPRESSION", {
35
                "args" : [["EXPRESSION", {
36
                  "args" : [["EXPRESSION", {
37
                    "args" : [["EXPRESSION", {
38
                      "args" : [["CALL", ["SIMPLE_NAME", "true"]]]}
39
                    ]]}
40
                  ]]}
41
                ]]}
42
              ]}
43
            ]}
44
          , {
45
            "declaration" : ["VARIABLE_DECLARATION", {
46
              "names" : [["IDENTIFIER", "q2"]], "typ" : {
47
                "name" : ["SIMPLE_NAME", "boolean"]}
48
              }
49
            ]}
50
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
51
            "lhs" : ["SIMPLE_NAME", "q2"], "rhs" : ["EXPRESSION", {
52
              "args" : [["EXPRESSION", {
53
                "args" : [["EXPRESSION", {
54
                  "args" : [["EXPRESSION", {
55
                    "args" : [["CALL", ["INDEXED_NAME", {
56
                      "id" : ["SIMPLE_NAME", "check"], "exprs" : [["EXPRESSION", {
57
                        "args" : [["EXPRESSION", {
58
                          "args" : [["EXPRESSION", {
59
                            "args" : [["EXPRESSION", {
60
                              "args" : [["CALL", ["INDEXED_NAME", {
61
                                "id" : ["SIMPLE_NAME", "check"], "exprs" : [["EXPRESSION", {
62
                                  "args" : [["EXPRESSION", {
63
                                    "args" : [["EXPRESSION", {
64
                                      "args" : [["EXPRESSION", {
65
                                        "args" : [["CALL", ["SIMPLE_NAME", "q1"]]]}
66
                                      ]]}
67
                                    ]]}
68
                                  ]]}
69
                                ]]}
70
                              ]]]}
71
                            ]]}
72
                          ]]}
73
                        ]]}
74
                      ]]}
75
                    ]]]}
76
                  ]]}
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", "q2"]]]}
90
                          ]]}
91
                        ]]}
92
                      ], ["EXPRESSION", {
93
                        "args" : [["EXPRESSION", {
94
                          "args" : [["EXPRESSION", {
95
                            "args" : [["CALL", ["SIMPLE_NAME", "FALSE"]]]}
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: c07s03b03x00p05n01i02499\""]}
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", "q2"]]]}
132
                          ]]}
133
                        ]]}
134
                      ], ["EXPRESSION", {
135
                        "args" : [["EXPRESSION", {
136
                          "args" : [["EXPRESSION", {
137
                            "args" : [["CALL", ["SIMPLE_NAME", "FALSE"]]]}
138
                          ]]}
139
                        ]]}
140
                      ]]}
141
                    ]]}
142
                  ]]}
143
                ]]}
144
              ]]}
145
            ], "report" : ["EXPRESSION", {
146
              "args" : [["EXPRESSION", {
147
                "args" : [["EXPRESSION", {
148
                  "args" : [["EXPRESSION", {
149
                    "args" : [["CONSTANT_VALUE", {
150
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c07s03b03x00p05n01i02499 - Actual parameter must belong to the subtype of the associated formal parameter.\""]}
151
                    ]]}
152
                  ]]}
153
                ]]}
154
              ]]}
155
            ], "severity" : ["EXPRESSION", {
156
              "args" : [["EXPRESSION", {
157
                "args" : [["EXPRESSION", {
158
                  "args" : [["EXPRESSION", {
159
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
160
                  ]]}
161
                ]]}
162
              ]]}
163
            ]}
164
          ], ["WAIT_STATEMENT"]]}
165
        ]]}
166
      ]}
167
    ]}
168
  }