Debian Codegraph @

tests/snapshots/cli/folding/array_init_elem.wast/3.print

raw
1 (module
2 (type $t_f (;0;) (func))
3 (type $arrref (;1;) (array (ref $t_f)))
4 (type $arrref_mut (;2;) (array (mut funcref)))
5 (type (;3;) (func (param i32)))
6 (type (;4;) (func (param i32 i32 i32)))
7 (table $t (;0;) 1 funcref)
8 (global $g_arrref (;0;) (ref $arrref) ref.func $dummy i32.const 12 array.new $arrref)
9 (global $g_arrref_mut (;1;) (ref $arrref_mut) i32.const 12 array.new_default $arrref_mut)
10 (export "array_call_nth" (func 1))
11 (export "array_init_elem-null" (func 2))
12 (export "array_init_elem" (func 3))
13 (export "drop_segs" (func 4))
14 (elem $e1 (;0;) func $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy $dummy)
15 (func $dummy (;0;) (type $t_f))
16 (func (;1;) (type 3) (param $1 i32)
17 i32.const 0
18 global.get $g_arrref_mut
19 local.get $1
20 array.get $arrref_mut
21 table.set $t
22 i32.const 0
23 call_indirect (type $t_f)
24 )
25 (func (;2;) (type $t_f)
26 ref.null $arrref_mut
27 i32.const 0
28 i32.const 0
29 i32.const 0
30 array.init_elem $arrref_mut $e1
31 )
32 (func (;3;) (type 4) (param $1 i32) (param $2 i32) (param $3 i32)
33 global.get $g_arrref_mut
34 local.get $1
35 local.get $2
36 local.get $3
37 array.init_elem $arrref_mut $e1
38 )
39 (func (;4;) (type $t_f)
40 elem.drop $e1
41 )
42 )