Debian Codegraph @

tests/snapshots/cli/folding/array_init_elem.wast.json

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