Debian Codegraph @

tests/snapshots/testsuite/labels.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/labels.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "labels.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 291,
13 "action": {
14 "type": "invoke",
15 "field": "block",
16 "args": []
17 },
18 "expected": [
19 {
20 "type": "i32",
21 "value": "1"
22 }
23 ]
24 },
25 {
26 "type": "assert_return",
27 "line": 292,
28 "action": {
29 "type": "invoke",
30 "field": "loop1",
31 "args": []
32 },
33 "expected": [
34 {
35 "type": "i32",
36 "value": "5"
37 }
38 ]
39 },
40 {
41 "type": "assert_return",
42 "line": 293,
43 "action": {
44 "type": "invoke",
45 "field": "loop2",
46 "args": []
47 },
48 "expected": [
49 {
50 "type": "i32",
51 "value": "8"
52 }
53 ]
54 },
55 {
56 "type": "assert_return",
57 "line": 294,
58 "action": {
59 "type": "invoke",
60 "field": "loop3",
61 "args": []
62 },
63 "expected": [
64 {
65 "type": "i32",
66 "value": "1"
67 }
68 ]
69 },
70 {
71 "type": "assert_return",
72 "line": 295,
73 "action": {
74 "type": "invoke",
75 "field": "loop4",
76 "args": [
77 {
78 "type": "i32",
79 "value": "8"
80 }
81 ]
82 },
83 "expected": [
84 {
85 "type": "i32",
86 "value": "16"
87 }
88 ]
89 },
90 {
91 "type": "assert_return",
92 "line": 296,
93 "action": {
94 "type": "invoke",
95 "field": "loop5",
96 "args": []
97 },
98 "expected": [
99 {
100 "type": "i32",
101 "value": "2"
102 }
103 ]
104 },
105 {
106 "type": "assert_return",
107 "line": 297,
108 "action": {
109 "type": "invoke",
110 "field": "loop6",
111 "args": []
112 },
113 "expected": [
114 {
115 "type": "i32",
116 "value": "3"
117 }
118 ]
119 },
120 {
121 "type": "assert_return",
122 "line": 298,
123 "action": {
124 "type": "invoke",
125 "field": "if",
126 "args": []
127 },
128 "expected": [
129 {
130 "type": "i32",
131 "value": "5"
132 }
133 ]
134 },
135 {
136 "type": "assert_return",
137 "line": 299,
138 "action": {
139 "type": "invoke",
140 "field": "if2",
141 "args": []
142 },
143 "expected": [
144 {
145 "type": "i32",
146 "value": "5"
147 }
148 ]
149 },
150 {
151 "type": "assert_return",
152 "line": 300,
153 "action": {
154 "type": "invoke",
155 "field": "switch",
156 "args": [
157 {
158 "type": "i32",
159 "value": "0"
160 }
161 ]
162 },
163 "expected": [
164 {
165 "type": "i32",
166 "value": "50"
167 }
168 ]
169 },
170 {
171 "type": "assert_return",
172 "line": 301,
173 "action": {
174 "type": "invoke",
175 "field": "switch",
176 "args": [
177 {
178 "type": "i32",
179 "value": "1"
180 }
181 ]
182 },
183 "expected": [
184 {
185 "type": "i32",
186 "value": "20"
187 }
188 ]
189 },
190 {
191 "type": "assert_return",
192 "line": 302,
193 "action": {
194 "type": "invoke",
195 "field": "switch",
196 "args": [
197 {
198 "type": "i32",
199 "value": "2"
200 }
201 ]
202 },
203 "expected": [
204 {
205 "type": "i32",
206 "value": "20"
207 }
208 ]
209 },
210 {
211 "type": "assert_return",
212 "line": 303,
213 "action": {
214 "type": "invoke",
215 "field": "switch",
216 "args": [
217 {
218 "type": "i32",
219 "value": "3"
220 }
221 ]
222 },
223 "expected": [
224 {
225 "type": "i32",
226 "value": "3"
227 }
228 ]
229 },
230 {
231 "type": "assert_return",
232 "line": 304,
233 "action": {
234 "type": "invoke",
235 "field": "switch",
236 "args": [
237 {
238 "type": "i32",
239 "value": "4"
240 }
241 ]
242 },
243 "expected": [
244 {
245 "type": "i32",
246 "value": "50"
247 }
248 ]
249 },
250 {
251 "type": "assert_return",
252 "line": 305,
253 "action": {
254 "type": "invoke",
255 "field": "switch",
256 "args": [
257 {
258 "type": "i32",
259 "value": "5"
260 }
261 ]
262 },
263 "expected": [
264 {
265 "type": "i32",
266 "value": "50"
267 }
268 ]
269 },
270 {
271 "type": "assert_return",
272 "line": 306,
273 "action": {
274 "type": "invoke",
275 "field": "return",
276 "args": [
277 {
278 "type": "i32",
279 "value": "0"
280 }
281 ]
282 },
283 "expected": [
284 {
285 "type": "i32",
286 "value": "0"
287 }
288 ]
289 },
290 {
291 "type": "assert_return",
292 "line": 307,
293 "action": {
294 "type": "invoke",
295 "field": "return",
296 "args": [
297 {
298 "type": "i32",
299 "value": "1"
300 }
301 ]
302 },
303 "expected": [
304 {
305 "type": "i32",
306 "value": "2"
307 }
308 ]
309 },
310 {
311 "type": "assert_return",
312 "line": 308,
313 "action": {
314 "type": "invoke",
315 "field": "return",
316 "args": [
317 {
318 "type": "i32",
319 "value": "2"
320 }
321 ]
322 },
323 "expected": [
324 {
325 "type": "i32",
326 "value": "2"
327 }
328 ]
329 },
330 {
331 "type": "assert_return",
332 "line": 309,
333 "action": {
334 "type": "invoke",
335 "field": "br_if0",
336 "args": []
337 },
338 "expected": [
339 {
340 "type": "i32",
341 "value": "29"
342 }
343 ]
344 },
345 {
346 "type": "assert_return",
347 "line": 310,
348 "action": {
349 "type": "invoke",
350 "field": "br_if1",
351 "args": []
352 },
353 "expected": [
354 {
355 "type": "i32",
356 "value": "1"
357 }
358 ]
359 },
360 {
361 "type": "assert_return",
362 "line": 311,
363 "action": {
364 "type": "invoke",
365 "field": "br_if2",
366 "args": []
367 },
368 "expected": [
369 {
370 "type": "i32",
371 "value": "1"
372 }
373 ]
374 },
375 {
376 "type": "assert_return",
377 "line": 312,
378 "action": {
379 "type": "invoke",
380 "field": "br_if3",
381 "args": []
382 },
383 "expected": [
384 {
385 "type": "i32",
386 "value": "2"
387 }
388 ]
389 },
390 {
391 "type": "assert_return",
392 "line": 313,
393 "action": {
394 "type": "invoke",
395 "field": "br",
396 "args": []
397 },
398 "expected": [
399 {
400 "type": "i32",
401 "value": "1"
402 }
403 ]
404 },
405 {
406 "type": "assert_return",
407 "line": 314,
408 "action": {
409 "type": "invoke",
410 "field": "shadowing",
411 "args": []
412 },
413 "expected": [
414 {
415 "type": "i32",
416 "value": "1"
417 }
418 ]
419 },
420 {
421 "type": "assert_return",
422 "line": 315,
423 "action": {
424 "type": "invoke",
425 "field": "redefinition",
426 "args": []
427 },
428 "expected": [
429 {
430 "type": "i32",
431 "value": "5"
432 }
433 ]
434 },
435 {
436 "type": "assert_invalid",
437 "line": 318,
438 "filename": "labels.1.wasm",
439 "module_type": "binary",
440 "text": "type mismatch"
441 },
442 {
443 "type": "assert_invalid",
444 "line": 322,
445 "filename": "labels.2.wasm",
446 "module_type": "binary",
447 "text": "type mismatch"
448 },
449 {
450 "type": "assert_invalid",
451 "line": 326,
452 "filename": "labels.3.wasm",
453 "module_type": "binary",
454 "text": "type mismatch"
455 }
456 ]
457 }