Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/memory_fill.wast/106.print

raw
1 (module
2 (type (;0;) (func (param i64 i64 i32) (result i64)))
3 (type (;1;) (func))
4 (memory (;0;) i64 1 1)
5 (export "checkRange" (func 0))
6 (export "test" (func 1))
7 (func (;0;) (type 0) (param $from i64) (param $to i64) (param $expected i32) (result i64)
8 loop $cont
9 local.get $from
10 local.get $to
11 i64.eq
12 if ;; label = @2
13 i64.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 i64.const 1
23 i64.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 i64.const 4294967040
33 i32.const 85
34 i64.const 257
35 memory.fill
36 )
37 )