Debian Codegraph @

tests/snapshots/testsuite/traps.wast.json

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