Debian Codegraph @

tests/snapshots/testsuite/memory_copy.wast/4183.print

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