Debian Codegraph @

tests/snapshots/testsuite/memory_fill.wast/13.print

raw
1 (module
2 (type (;0;) (func (param i32 i32 i32) (result i32)))
3 (type (;1;) (func))
4 (memory (;0;) 1 1)
5 (export "checkRange" (func 0))
6 (export "test" (func 1))
7 (func (;0;) (type 0) (param $from i32) (param $to i32) (param $expected i32) (result i32)
8 loop $cont
9 local.get $from
10 local.get $to
11 i32.eq
12 if ;; label = @2
13 i32.const -1
14 return
15 end
16 local.get $from
17 i32.load8_u
18 local.get $expected
19 i32.eq
20 if ;; label = @2
21 local.get $from
22 i32.const 1
23 i32.add
24 local.set $from
25 br $cont
26 end
27 end
28 local.get $from
29 return
30 )
31 (func (;1;) (type 1)
32 i32.const 131072
33 i32.const 85
34 i32.const 0
35 memory.fill
36 )
37 )