Debian Codegraph @

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

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