Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/memory_copy.wast/8633.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 10
9 i32.const 85
10 i64.const 10
11 memory.fill
12 i64.const 9
13 i64.const 10
14 i64.const 5
15 memory.copy
16 )
17 (func (;1;) (type 1) (param $from i64) (param $to i64) (param $expected i32) (result i64)
18 loop $cont
19 local.get $from
20 local.get $to
21 i64.eq
22 if ;; label = @2
23 i64.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 i64.const 1
33 i64.add
34 local.set $from
35 br $cont
36 end
37 end
38 local.get $from
39 return
40 )
41 )