Debian Codegraph @

tests/snapshots/testsuite/func_ptrs.wast/12.print

raw
1 (module
2 (type $T (;0;) (func (result i32)))
3 (type $U (;1;) (func (result i32)))
4 (type (;2;) (func (param i32) (result i32)))
5 (table (;0;) 7 7 funcref)
6 (export "callt" (func 5))
7 (export "callu" (func 6))
8 (elem (;0;) (table 0) (i32.const 0) func $t1 $t2 $t3 $u1 $u2 $t1 $t3)
9 (func $t1 (;0;) (type $T) (result i32)
10 i32.const 1
11 )
12 (func $t2 (;1;) (type $T) (result i32)
13 i32.const 2
14 )
15 (func $t3 (;2;) (type $T) (result i32)
16 i32.const 3
17 )
18 (func $u1 (;3;) (type $U) (result i32)
19 i32.const 4
20 )
21 (func $u2 (;4;) (type $U) (result i32)
22 i32.const 5
23 )
24 (func (;5;) (type 2) (param $i i32) (result i32)
25 local.get $i
26 call_indirect (type $T)
27 )
28 (func (;6;) (type 2) (param $i i32) (result i32)
29 local.get $i
30 call_indirect (type $U)
31 )
32 )