Debian Codegraph @

tests/snapshots/testsuite/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 i32) (result i32)))
7 (table $t2 (;0;) 2 externref)
8 (table $t3 (;1;) 3 funcref)
9 (export "init" (func 1))
10 (export "get-externref" (func 2))
11 (export "get-funcref" (func $f3))
12 (export "is_null-funcref" (func 4))
13 (elem (;0;) (table $t3) (i32.const 1) func $dummy)
14 (func $dummy (;0;) (type 0))
15 (func (;1;) (type 1) (param $r externref)
16 i32.const 1
17 local.get $r
18 table.set $t2
19 i32.const 2
20 i32.const 1
21 table.get $t3
22 table.set $t3
23 )
24 (func (;2;) (type 2) (param $i i32) (result externref)
25 local.get $i
26 table.get $t2
27 )
28 (func $f3 (;3;) (type 3) (param $i i32) (result funcref)
29 local.get $i
30 table.get $t3
31 )
32 (func (;4;) (type 4) (param $i i32) (result i32)
33 local.get $i
34 call $f3
35 ref.is_null
36 )
37 )