Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/table_set.wast.json

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