Debian Codegraph @

tests/snapshots/testsuite/table_size.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/table_size.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "table_size.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 26,
13 "action": {
14 "type": "invoke",
15 "field": "size-t0",
16 "args": []
17 },
18 "expected": [
19 {
20 "type": "i32",
21 "value": "0"
22 }
23 ]
24 },
25 {
26 "type": "assert_return",
27 "line": 27,
28 "action": {
29 "type": "invoke",
30 "field": "grow-t0",
31 "args": [
32 {
33 "type": "i32",
34 "value": "1"
35 }
36 ]
37 },
38 "expected": []
39 },
40 {
41 "type": "assert_return",
42 "line": 28,
43 "action": {
44 "type": "invoke",
45 "field": "size-t0",
46 "args": []
47 },
48 "expected": [
49 {
50 "type": "i32",
51 "value": "1"
52 }
53 ]
54 },
55 {
56 "type": "assert_return",
57 "line": 29,
58 "action": {
59 "type": "invoke",
60 "field": "grow-t0",
61 "args": [
62 {
63 "type": "i32",
64 "value": "4"
65 }
66 ]
67 },
68 "expected": []
69 },
70 {
71 "type": "assert_return",
72 "line": 30,
73 "action": {
74 "type": "invoke",
75 "field": "size-t0",
76 "args": []
77 },
78 "expected": [
79 {
80 "type": "i32",
81 "value": "5"
82 }
83 ]
84 },
85 {
86 "type": "assert_return",
87 "line": 31,
88 "action": {
89 "type": "invoke",
90 "field": "grow-t0",
91 "args": [
92 {
93 "type": "i32",
94 "value": "0"
95 }
96 ]
97 },
98 "expected": []
99 },
100 {
101 "type": "assert_return",
102 "line": 32,
103 "action": {
104 "type": "invoke",
105 "field": "size-t0",
106 "args": []
107 },
108 "expected": [
109 {
110 "type": "i32",
111 "value": "5"
112 }
113 ]
114 },
115 {
116 "type": "assert_return",
117 "line": 34,
118 "action": {
119 "type": "invoke",
120 "field": "size-t1",
121 "args": []
122 },
123 "expected": [
124 {
125 "type": "i32",
126 "value": "1"
127 }
128 ]
129 },
130 {
131 "type": "assert_return",
132 "line": 35,
133 "action": {
134 "type": "invoke",
135 "field": "grow-t1",
136 "args": [
137 {
138 "type": "i32",
139 "value": "1"
140 }
141 ]
142 },
143 "expected": []
144 },
145 {
146 "type": "assert_return",
147 "line": 36,
148 "action": {
149 "type": "invoke",
150 "field": "size-t1",
151 "args": []
152 },
153 "expected": [
154 {
155 "type": "i32",
156 "value": "2"
157 }
158 ]
159 },
160 {
161 "type": "assert_return",
162 "line": 37,
163 "action": {
164 "type": "invoke",
165 "field": "grow-t1",
166 "args": [
167 {
168 "type": "i32",
169 "value": "4"
170 }
171 ]
172 },
173 "expected": []
174 },
175 {
176 "type": "assert_return",
177 "line": 38,
178 "action": {
179 "type": "invoke",
180 "field": "size-t1",
181 "args": []
182 },
183 "expected": [
184 {
185 "type": "i32",
186 "value": "6"
187 }
188 ]
189 },
190 {
191 "type": "assert_return",
192 "line": 39,
193 "action": {
194 "type": "invoke",
195 "field": "grow-t1",
196 "args": [
197 {
198 "type": "i32",
199 "value": "0"
200 }
201 ]
202 },
203 "expected": []
204 },
205 {
206 "type": "assert_return",
207 "line": 40,
208 "action": {
209 "type": "invoke",
210 "field": "size-t1",
211 "args": []
212 },
213 "expected": [
214 {
215 "type": "i32",
216 "value": "6"
217 }
218 ]
219 },
220 {
221 "type": "assert_return",
222 "line": 42,
223 "action": {
224 "type": "invoke",
225 "field": "size-t2",
226 "args": []
227 },
228 "expected": [
229 {
230 "type": "i32",
231 "value": "0"
232 }
233 ]
234 },
235 {
236 "type": "assert_return",
237 "line": 43,
238 "action": {
239 "type": "invoke",
240 "field": "grow-t2",
241 "args": [
242 {
243 "type": "i32",
244 "value": "3"
245 }
246 ]
247 },
248 "expected": []
249 },
250 {
251 "type": "assert_return",
252 "line": 44,
253 "action": {
254 "type": "invoke",
255 "field": "size-t2",
256 "args": []
257 },
258 "expected": [
259 {
260 "type": "i32",
261 "value": "0"
262 }
263 ]
264 },
265 {
266 "type": "assert_return",
267 "line": 45,
268 "action": {
269 "type": "invoke",
270 "field": "grow-t2",
271 "args": [
272 {
273 "type": "i32",
274 "value": "1"
275 }
276 ]
277 },
278 "expected": []
279 },
280 {
281 "type": "assert_return",
282 "line": 46,
283 "action": {
284 "type": "invoke",
285 "field": "size-t2",
286 "args": []
287 },
288 "expected": [
289 {
290 "type": "i32",
291 "value": "1"
292 }
293 ]
294 },
295 {
296 "type": "assert_return",
297 "line": 47,
298 "action": {
299 "type": "invoke",
300 "field": "grow-t2",
301 "args": [
302 {
303 "type": "i32",
304 "value": "0"
305 }
306 ]
307 },
308 "expected": []
309 },
310 {
311 "type": "assert_return",
312 "line": 48,
313 "action": {
314 "type": "invoke",
315 "field": "size-t2",
316 "args": []
317 },
318 "expected": [
319 {
320 "type": "i32",
321 "value": "1"
322 }
323 ]
324 },
325 {
326 "type": "assert_return",
327 "line": 49,
328 "action": {
329 "type": "invoke",
330 "field": "grow-t2",
331 "args": [
332 {
333 "type": "i32",
334 "value": "4"
335 }
336 ]
337 },
338 "expected": []
339 },
340 {
341 "type": "assert_return",
342 "line": 50,
343 "action": {
344 "type": "invoke",
345 "field": "size-t2",
346 "args": []
347 },
348 "expected": [
349 {
350 "type": "i32",
351 "value": "1"
352 }
353 ]
354 },
355 {
356 "type": "assert_return",
357 "line": 51,
358 "action": {
359 "type": "invoke",
360 "field": "grow-t2",
361 "args": [
362 {
363 "type": "i32",
364 "value": "1"
365 }
366 ]
367 },
368 "expected": []
369 },
370 {
371 "type": "assert_return",
372 "line": 52,
373 "action": {
374 "type": "invoke",
375 "field": "size-t2",
376 "args": []
377 },
378 "expected": [
379 {
380 "type": "i32",
381 "value": "2"
382 }
383 ]
384 },
385 {
386 "type": "assert_return",
387 "line": 54,
388 "action": {
389 "type": "invoke",
390 "field": "size-t3",
391 "args": []
392 },
393 "expected": [
394 {
395 "type": "i32",
396 "value": "3"
397 }
398 ]
399 },
400 {
401 "type": "assert_return",
402 "line": 55,
403 "action": {
404 "type": "invoke",
405 "field": "grow-t3",
406 "args": [
407 {
408 "type": "i32",
409 "value": "1"
410 }
411 ]
412 },
413 "expected": []
414 },
415 {
416 "type": "assert_return",
417 "line": 56,
418 "action": {
419 "type": "invoke",
420 "field": "size-t3",
421 "args": []
422 },
423 "expected": [
424 {
425 "type": "i32",
426 "value": "4"
427 }
428 ]
429 },
430 {
431 "type": "assert_return",
432 "line": 57,
433 "action": {
434 "type": "invoke",
435 "field": "grow-t3",
436 "args": [
437 {
438 "type": "i32",
439 "value": "3"
440 }
441 ]
442 },
443 "expected": []
444 },
445 {
446 "type": "assert_return",
447 "line": 58,
448 "action": {
449 "type": "invoke",
450 "field": "size-t3",
451 "args": []
452 },
453 "expected": [
454 {
455 "type": "i32",
456 "value": "7"
457 }
458 ]
459 },
460 {
461 "type": "assert_return",
462 "line": 59,
463 "action": {
464 "type": "invoke",
465 "field": "grow-t3",
466 "args": [
467 {
468 "type": "i32",
469 "value": "0"
470 }
471 ]
472 },
473 "expected": []
474 },
475 {
476 "type": "assert_return",
477 "line": 60,
478 "action": {
479 "type": "invoke",
480 "field": "size-t3",
481 "args": []
482 },
483 "expected": [
484 {
485 "type": "i32",
486 "value": "7"
487 }
488 ]
489 },
490 {
491 "type": "assert_return",
492 "line": 61,
493 "action": {
494 "type": "invoke",
495 "field": "grow-t3",
496 "args": [
497 {
498 "type": "i32",
499 "value": "2"
500 }
501 ]
502 },
503 "expected": []
504 },
505 {
506 "type": "assert_return",
507 "line": 62,
508 "action": {
509 "type": "invoke",
510 "field": "size-t3",
511 "args": []
512 },
513 "expected": [
514 {
515 "type": "i32",
516 "value": "7"
517 }
518 ]
519 },
520 {
521 "type": "assert_return",
522 "line": 63,
523 "action": {
524 "type": "invoke",
525 "field": "grow-t3",
526 "args": [
527 {
528 "type": "i32",
529 "value": "1"
530 }
531 ]
532 },
533 "expected": []
534 },
535 {
536 "type": "assert_return",
537 "line": 64,
538 "action": {
539 "type": "invoke",
540 "field": "size-t3",
541 "args": []
542 },
543 "expected": [
544 {
545 "type": "i32",
546 "value": "8"
547 }
548 ]
549 },
550 {
551 "type": "assert_invalid",
552 "line": 70,
553 "filename": "table_size.1.wasm",
554 "module_type": "binary",
555 "text": "type mismatch"
556 },
557 {
558 "type": "assert_invalid",
559 "line": 79,
560 "filename": "table_size.2.wasm",
561 "module_type": "binary",
562 "text": "type mismatch"
563 }
564 ]
565 }