Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/table_get.wast/0.print

raw
1 (module
2 (type (;0;) (func))
3 (type (;1;) (func (param externref)))
4 (type (;2;) (func (param i32) (result externref)))
5 (type (;3;) (func (param i32) (result funcref)))
6 (type (;4;) (func (param i64) (result funcref)))
7 (type (;5;) (func (param i32) (result i32)))
8 (table $t2 (;0;) 2 externref)
9 (table $t3 (;1;) 3 funcref)
10 (table $t64 (;2;) i64 3 funcref)
11 (export "init" (func 1))
12 (export "get-externref" (func 2))
13 (export "get-funcref" (func $f3))
14 (export "get-funcref-t64" (func $f4))
15 (export "is_null-funcref" (func 5))
16 (elem (;0;) (table $t3) (i32.const 1) func $dummy)
17 (func $dummy (;0;) (type 0))
18 (func (;1;) (type 1) (param $r externref)
19 i32.const 1
20 local.get $r
21 table.set $t2
22 i32.const 2
23 i32.const 1
24 table.get $t3
25 table.set $t3
26 )
27 (func (;2;) (type 2) (param $i i32) (result externref)
28 local.get $i
29 table.get $t2
30 )
31 (func $f3 (;3;) (type 3) (param $i i32) (result funcref)
32 local.get $i
33 table.get $t3
34 )
35 (func $f4 (;4;) (type 4) (param $i i64) (result funcref)
36 local.get $i
37 table.get $t64
38 )
39 (func (;5;) (type 5) (param $i i32) (result i32)
40 local.get $i
41 call $f3
42 ref.is_null
43 )
44 )