Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8.66 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c07s01b00x00p02n01i01798ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c07s01b00x00p02n01i01798arch"], "entity" : ["IDENTIFIER", "c07s01b00x00p02n01i01798ent"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["VARIABLE_DECLARATION", {
12
              "names" : [["IDENTIFIER", "x"]], "typ" : {
13
                "name" : ["SIMPLE_NAME", "integer"]}
14
              , "init_val" : ["EXPRESSION", {
15
                "args" : [["EXPRESSION", {
16
                  "args" : [["EXPRESSION", {
17
                    "args" : [["EXPRESSION", {
18
                      "args" : [["CONSTANT_VALUE", {
19
                        "value" : ["CST_LITERAL", "3"]}
20
                      ]]}
21
                    ]]}
22
                  ]]}
23
                ]]}
24
              ]}
25
            ]}
26
          , {
27
            "declaration" : ["VARIABLE_DECLARATION", {
28
              "names" : [["IDENTIFIER", "y"]], "typ" : {
29
                "name" : ["SIMPLE_NAME", "integer"]}
30
              , "init_val" : ["EXPRESSION", {
31
                "args" : [["EXPRESSION", {
32
                  "args" : [["EXPRESSION", {
33
                    "args" : [["EXPRESSION", {
34
                      "args" : [["CONSTANT_VALUE", {
35
                        "value" : ["CST_LITERAL", "5"]}
36
                      ]]}
37
                    ]]}
38
                  ]]}
39
                ]]}
40
              ]}
41
            ]}
42
          , {
43
            "declaration" : ["VARIABLE_DECLARATION", {
44
              "names" : [["IDENTIFIER", "z"]], "typ" : {
45
                "name" : ["SIMPLE_NAME", "integer"]}
46
              , "init_val" : ["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["EXPRESSION", {
50
                      "args" : [["CONSTANT_VALUE", {
51
                        "value" : ["CST_LITERAL", "9"]}
52
                      ]]}
53
                    ]]}
54
                  ]]}
55
                ]]}
56
              ]}
57
            ]}
58
          ], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
59
            "if_cases" : [{
60
              "if_cond" : ["EXPRESSION", {
61
                "id" : "and", "args" : [["EXPRESSION", {
62
                  "id" : "<", "args" : [["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "id" : "-", "args" : [["EXPRESSION", {
65
                        "id" : "+", "args" : [["EXPRESSION", {
66
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
67
                        ], ["EXPRESSION", {
68
                          "args" : [["CALL", ["SIMPLE_NAME", "z"]]]}
69
                        ]]}
70
                      ]]}
71
                    ]]}
72
                  ], ["EXPRESSION", {
73
                    "args" : [["EXPRESSION", {
74
                      "args" : [["EXPRESSION", {
75
                        "id" : "+", "args" : [["EXPRESSION", {
76
                          "args" : [["CALL", ["SIMPLE_NAME", "y"]]]}
77
                        ], ["EXPRESSION", {
78
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
79
                        ]]}
80
                      ]]}
81
                    ]]}
82
                  ]]}
83
                ], ["EXPRESSION", {
84
                  "id" : ">", "args" : [["EXPRESSION", {
85
                    "args" : [["EXPRESSION", {
86
                      "args" : [["EXPRESSION", {
87
                        "id" : "*", "args" : [["EXPRESSION", {
88
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
89
                        ], ["EXPRESSION", {
90
                          "args" : [["CALL", ["SIMPLE_NAME", "z"]]]}
91
                        ]]}
92
                      ]]}
93
                    ]]}
94
                  ], ["EXPRESSION", {
95
                    "args" : [["EXPRESSION", {
96
                      "args" : [["EXPRESSION", {
97
                        "id" : "-", "args" : [["EXPRESSION", {
98
                          "args" : [["CALL", ["SIMPLE_NAME", "y"]]]}
99
                        ], ["EXPRESSION", {
100
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
101
                        ]]}
102
                      ]]}
103
                    ]]}
104
                  ]]}
105
                ]]}
106
              ], "if_block" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
107
                "lhs" : ["SIMPLE_NAME", "x"], "rhs" : ["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["EXPRESSION", {
110
                      "args" : [["EXPRESSION", {
111
                        "id" : "-", "args" : [["EXPRESSION", {
112
                          "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
113
                        ], ["EXPRESSION", {
114
                          "args" : [["CALL", ["SIMPLE_NAME", "z"]]]}
115
                        ]]}
116
                      ]]}
117
                    ]]}
118
                  ]]}
119
                ]}
120
              ]]}
121
            ]}
122
          ], ["ASSERTION_STATEMENT", {
123
            "cond" : ["EXPRESSION", {
124
              "args" : [["EXPRESSION", {
125
                "args" : [["EXPRESSION", {
126
                  "args" : [["EXPRESSION", {
127
                    "id" : "NOT", "args" : [["EXPRESSION", {
128
                      "id" : "=", "args" : [["EXPRESSION", {
129
                        "args" : [["EXPRESSION", {
130
                          "args" : [["EXPRESSION", {
131
                            "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
132
                          ]]}
133
                        ]]}
134
                      ], ["EXPRESSION", {
135
                        "args" : [["EXPRESSION", {
136
                          "id" : "-", "args" : [["EXPRESSION", {
137
                            "args" : [["CONSTANT_VALUE", {
138
                              "value" : ["CST_LITERAL", "6"]}
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", "\"***PASSED TEST: c07s01b00x00p02n01i01798\""]}
153
                    ]]}
154
                  ]]}
155
                ]]}
156
              ]]}
157
            ], "severity" : ["EXPRESSION", {
158
              "args" : [["EXPRESSION", {
159
                "args" : [["EXPRESSION", {
160
                  "args" : [["EXPRESSION", {
161
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
162
                  ]]}
163
                ]]}
164
              ]]}
165
            ]}
166
          ], ["ASSERTION_STATEMENT", {
167
            "cond" : ["EXPRESSION", {
168
              "args" : [["EXPRESSION", {
169
                "args" : [["EXPRESSION", {
170
                  "args" : [["EXPRESSION", {
171
                    "args" : [["EXPRESSION", {
172
                      "id" : "=", "args" : [["EXPRESSION", {
173
                        "args" : [["EXPRESSION", {
174
                          "args" : [["EXPRESSION", {
175
                            "args" : [["CALL", ["SIMPLE_NAME", "x"]]]}
176
                          ]]}
177
                        ]]}
178
                      ], ["EXPRESSION", {
179
                        "args" : [["EXPRESSION", {
180
                          "id" : "-", "args" : [["EXPRESSION", {
181
                            "args" : [["CONSTANT_VALUE", {
182
                              "value" : ["CST_LITERAL", "6"]}
183
                            ]]}
184
                          ]]}
185
                        ]]}
186
                      ]]}
187
                    ]]}
188
                  ]]}
189
                ]]}
190
              ]]}
191
            ], "report" : ["EXPRESSION", {
192
              "args" : [["EXPRESSION", {
193
                "args" : [["EXPRESSION", {
194
                  "args" : [["EXPRESSION", {
195
                    "args" : [["CONSTANT_VALUE", {
196
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c07s01b00x00p02n01i01798 - The expression is a valid expression according to the rules of the syntactic diagram.\""]}
197
                    ]]}
198
                  ]]}
199
                ]]}
200
              ]]}
201
            ], "severity" : ["EXPRESSION", {
202
              "args" : [["EXPRESSION", {
203
                "args" : [["EXPRESSION", {
204
                  "args" : [["EXPRESSION", {
205
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
206
                  ]]}
207
                ]]}
208
              ]]}
209
            ]}
210
          ], ["WAIT_STATEMENT"]]}
211
        ]]}
212
      ]}
213
    ]}
214
  }