]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/example/relooper-fuzz1.txt
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / example / relooper-fuzz1.txt
1 (module
2 (type $i (func (result i32)))
3 (type $v (func))
4 (type $vi (func (param i32)))
5 (import "spectest" "print" (func $print (param i32)))
6 (memory $0 1 1)
7 (export "mem" (memory $0))
8 (start $main)
9 (func $check (; 1 ;) (type $i) (result i32)
10 (if
11 (i32.eq
12 (i32.load
13 (i32.const 4)
14 )
15 (i32.const 120)
16 )
17 (unreachable)
18 )
19 (i32.store
20 (i32.const 4)
21 (i32.add
22 (i32.load
23 (i32.const 4)
24 )
25 (i32.const 4)
26 )
27 )
28 (call $print
29 (i32.sub
30 (i32.const 0)
31 (i32.load offset=4
32 (i32.load
33 (i32.const 4)
34 )
35 )
36 )
37 )
38 (i32.load offset=4
39 (i32.load
40 (i32.const 4)
41 )
42 )
43 )
44 (func $main (; 2 ;) (type $v)
45 (local $0 i32)
46 (local $1 i32)
47 (i32.store
48 (i32.const 8)
49 (i32.const 67)
50 )
51 (i32.store
52 (i32.const 12)
53 (i32.const 131)
54 )
55 (i32.store
56 (i32.const 16)
57 (i32.const 49)
58 )
59 (i32.store
60 (i32.const 20)
61 (i32.const 36)
62 )
63 (i32.store
64 (i32.const 24)
65 (i32.const 112)
66 )
67 (i32.store
68 (i32.const 28)
69 (i32.const 161)
70 )
71 (i32.store
72 (i32.const 32)
73 (i32.const 62)
74 )
75 (i32.store
76 (i32.const 36)
77 (i32.const 166)
78 )
79 (i32.store
80 (i32.const 40)
81 (i32.const 16)
82 )
83 (i32.store
84 (i32.const 44)
85 (i32.const 88)
86 )
87 (i32.store
88 (i32.const 48)
89 (i32.const 176)
90 )
91 (i32.store
92 (i32.const 52)
93 (i32.const 152)
94 )
95 (i32.store
96 (i32.const 56)
97 (i32.const 161)
98 )
99 (i32.store
100 (i32.const 60)
101 (i32.const 194)
102 )
103 (i32.store
104 (i32.const 64)
105 (i32.const 117)
106 )
107 (i32.store
108 (i32.const 68)
109 (i32.const 180)
110 )
111 (i32.store
112 (i32.const 72)
113 (i32.const 60)
114 )
115 (i32.store
116 (i32.const 76)
117 (i32.const 166)
118 )
119 (i32.store
120 (i32.const 80)
121 (i32.const 55)
122 )
123 (i32.store
124 (i32.const 84)
125 (i32.const 183)
126 )
127 (i32.store
128 (i32.const 88)
129 (i32.const 150)
130 )
131 (i32.store
132 (i32.const 92)
133 (i32.const 73)
134 )
135 (i32.store
136 (i32.const 96)
137 (i32.const 196)
138 )
139 (i32.store
140 (i32.const 100)
141 (i32.const 143)
142 )
143 (i32.store
144 (i32.const 104)
145 (i32.const 76)
146 )
147 (i32.store
148 (i32.const 108)
149 (i32.const 182)
150 )
151 (i32.store
152 (i32.const 112)
153 (i32.const 97)
154 )
155 (i32.store
156 (i32.const 116)
157 (i32.const 140)
158 )
159 (i32.store
160 (i32.const 120)
161 (i32.const 126)
162 )
163 (i32.store
164 (i32.const 124)
165 (i32.const 3)
166 )
167 (block
168 (block $block$10$break
169 (block $block$4$break
170 (block $block$3$break
171 (block
172 (call $print
173 (i32.const 0)
174 )
175 (set_local $0
176 (call $check)
177 )
178 )
179 (if
180 (i32.eq
181 (i32.rem_u
182 (get_local $0)
183 (i32.const 4)
184 )
185 (i32.const 0)
186 )
187 (br $block$3$break)
188 (if
189 (i32.eq
190 (i32.rem_u
191 (get_local $0)
192 (i32.const 4)
193 )
194 (i32.const 2)
195 )
196 (block
197 (block
198 (call $print
199 (i32.const 7)
200 )
201 (set_local $0
202 (call $check)
203 )
204 )
205 (if
206 (i32.eq
207 (i32.rem_u
208 (get_local $0)
209 (i32.const 3)
210 )
211 (i32.const 0)
212 )
213 (br $block$3$break)
214 (br $block$10$break)
215 )
216 )
217 (br $block$4$break)
218 )
219 )
220 )
221 (block
222 (block
223 (call $print
224 (i32.const 2)
225 )
226 (set_local $0
227 (call $check)
228 )
229 )
230 (if
231 (i32.eq
232 (i32.rem_u
233 (get_local $0)
234 (i32.const 2)
235 )
236 (i32.const 0)
237 )
238 (br $block$4$break)
239 (br $block$10$break)
240 )
241 )
242 )
243 (loop $shape$6$continue
244 (block
245 (call $print
246 (i32.const 3)
247 )
248 (set_local $0
249 (call $check)
250 )
251 )
252 (block
253 (br $shape$6$continue)
254 )
255 )
256 )
257 (block
258 (block
259 (call $print
260 (i32.const 9)
261 )
262 (set_local $0
263 (call $check)
264 )
265 )
266 )
267 )
268 )
269 )
270 (module
271 (type $i (func (result i32)))
272 (type $v (func))
273 (type $vi (func (param i32)))
274 (import "spectest" "print" (func $print (param i32)))
275 (memory $0 1 1)
276 (export "mem" (memory $0))
277 (start $main)
278 (func $check (; 1 ;) (type $i) (result i32)
279 (if
280 (i32.eq
281 (i32.load
282 (i32.const 4)
283 )
284 (i32.const 120)
285 )
286 (unreachable)
287 )
288 (i32.store
289 (i32.const 4)
290 (i32.add
291 (i32.load
292 (i32.const 4)
293 )
294 (i32.const 4)
295 )
296 )
297 (call $print
298 (i32.sub
299 (i32.const 0)
300 (i32.load offset=4
301 (i32.load
302 (i32.const 4)
303 )
304 )
305 )
306 )
307 (i32.load offset=4
308 (i32.load
309 (i32.const 4)
310 )
311 )
312 )
313 (func $main (; 2 ;) (type $v)
314 (local $0 i32)
315 (i32.store
316 (i32.const 8)
317 (i32.const 67)
318 )
319 (i32.store
320 (i32.const 12)
321 (i32.const 131)
322 )
323 (i32.store
324 (i32.const 16)
325 (i32.const 49)
326 )
327 (i32.store
328 (i32.const 20)
329 (i32.const 36)
330 )
331 (i32.store
332 (i32.const 24)
333 (i32.const 112)
334 )
335 (i32.store
336 (i32.const 28)
337 (i32.const 161)
338 )
339 (i32.store
340 (i32.const 32)
341 (i32.const 62)
342 )
343 (i32.store
344 (i32.const 36)
345 (i32.const 166)
346 )
347 (i32.store
348 (i32.const 40)
349 (i32.const 16)
350 )
351 (i32.store
352 (i32.const 44)
353 (i32.const 88)
354 )
355 (i32.store
356 (i32.const 48)
357 (i32.const 176)
358 )
359 (i32.store
360 (i32.const 52)
361 (i32.const 152)
362 )
363 (i32.store
364 (i32.const 56)
365 (i32.const 161)
366 )
367 (i32.store
368 (i32.const 60)
369 (i32.const 194)
370 )
371 (i32.store
372 (i32.const 64)
373 (i32.const 117)
374 )
375 (i32.store
376 (i32.const 68)
377 (i32.const 180)
378 )
379 (i32.store
380 (i32.const 72)
381 (i32.const 60)
382 )
383 (i32.store
384 (i32.const 76)
385 (i32.const 166)
386 )
387 (i32.store
388 (i32.const 80)
389 (i32.const 55)
390 )
391 (i32.store
392 (i32.const 84)
393 (i32.const 183)
394 )
395 (i32.store
396 (i32.const 88)
397 (i32.const 150)
398 )
399 (i32.store
400 (i32.const 92)
401 (i32.const 73)
402 )
403 (i32.store
404 (i32.const 96)
405 (i32.const 196)
406 )
407 (i32.store
408 (i32.const 100)
409 (i32.const 143)
410 )
411 (i32.store
412 (i32.const 104)
413 (i32.const 76)
414 )
415 (i32.store
416 (i32.const 108)
417 (i32.const 182)
418 )
419 (i32.store
420 (i32.const 112)
421 (i32.const 97)
422 )
423 (i32.store
424 (i32.const 116)
425 (i32.const 140)
426 )
427 (i32.store
428 (i32.const 120)
429 (i32.const 126)
430 )
431 (i32.store
432 (i32.const 124)
433 (i32.const 3)
434 )
435 (block $block$10$break
436 (block $block$4$break
437 (call $print
438 (i32.const 0)
439 )
440 (if
441 (i32.rem_u
442 (tee_local $0
443 (call $check)
444 )
445 (i32.const 4)
446 )
447 (if
448 (i32.eq
449 (i32.rem_u
450 (get_local $0)
451 (i32.const 4)
452 )
453 (i32.const 2)
454 )
455 (block
456 (call $print
457 (i32.const 7)
458 )
459 (br_if $block$10$break
460 (i32.rem_u
461 (call $check)
462 (i32.const 3)
463 )
464 )
465 )
466 (br $block$4$break)
467 )
468 )
469 (call $print
470 (i32.const 2)
471 )
472 (br_if $block$10$break
473 (i32.rem_u
474 (call $check)
475 (i32.const 2)
476 )
477 )
478 )
479 (loop $shape$6$continue
480 (call $print
481 (i32.const 3)
482 )
483 (drop
484 (call $check)
485 )
486 (br $shape$6$continue)
487 )
488 )
489 (call $print
490 (i32.const 9)
491 )
492 (drop
493 (call $check)
494 )
495 )
496 )