Debian Codegraph @

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

raw
1 (module
2 (type (;0;) (func (param i32 i32 i32) (result i32)))
3 (type (;1;) (func (param i32 i32 i32)))
4 (memory (;0;) 1 1)
5 (export "checkRange" (func 0))
6 (export "run" (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) (param $offs i32) (param $val i32) (param $len i32)
32 local.get $offs
33 local.get $val
34 local.get $len
35 memory.fill
36 )
37 )