Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/memory_copy.wast/8651.print

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