Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/i31.wast/23.print

raw
1 (module $tables_of_i31ref
2 (type (;0;) (func (result i32)))
3 (type (;1;) (func (param i32) (result i32)))
4 (type (;2;) (func (param i32 i32) (result i32)))
5 (type (;3;) (func (param i32 i32 i32)))
6 (table $table (;0;) 3 10 i31ref)
7 (export "size" (func 0))
8 (export "get" (func 1))
9 (export "grow" (func 2))
10 (export "fill" (func 3))
11 (export "copy" (func 4))
12 (export "init" (func 5))
13 (elem (;0;) (table $table) (i32.const 0) i31ref (item i32.const 999 ref.i31) (item i32.const 888 ref.i31) (item i32.const 777 ref.i31))
14 (elem $elem (;1;) i31ref (item i32.const 123 ref.i31) (item i32.const 456 ref.i31) (item i32.const 789 ref.i31))
15 (func (;0;) (type 0) (result i32)
16 table.size $table
17 )
18 (func (;1;) (type 1) (param i32) (result i32)
19 local.get 0
20 table.get $table
21 i31.get_u
22 )
23 (func (;2;) (type 2) (param i32 i32) (result i32)
24 local.get 1
25 ref.i31
26 local.get 0
27 table.grow $table
28 )
29 (func (;3;) (type 3) (param i32 i32 i32)
30 local.get 0
31 local.get 1
32 ref.i31
33 local.get 2
34 table.fill $table
35 )
36 (func (;4;) (type 3) (param i32 i32 i32)
37 local.get 0
38 local.get 1
39 local.get 2
40 table.copy
41 )
42 (func (;5;) (type 3) (param i32 i32 i32)
43 local.get 0
44 local.get 1
45 local.get 2
46 table.init $elem
47 )
48 )