Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/instance.wast/10.print

raw
1 (module
2 (type (;0;) (func))
3 (type (;1;) (func (result i32)))
4 (type (;2;) (func (result funcref)))
5 (import "I1" "glob" (global $glob1 (;0;) (mut i32)))
6 (import "I1" "glob" (global $glob2 (;1;) (mut i32)))
7 (import "I1" "tab" (table $tab1 (;0;) 10 funcref))
8 (import "I1" "tab" (table $tab2 (;1;) 10 funcref))
9 (import "I1" "mem" (memory $mem1 (;0;) 1))
10 (import "I1" "mem" (memory $mem2 (;1;) 1))
11 (import "I1" "tag" (tag $tag1 (;0;) (type 0)))
12 (import "I1" "tag" (tag $tag2 (;1;) (type 0)))
13 (export "glob" (func 1))
14 (export "tab" (func 2))
15 (export "mem" (func 3))
16 (export "tag" (func 4))
17 (elem (;0;) declare func $f)
18 (func $f (;0;) (type 0))
19 (func (;1;) (type 1) (result i32)
20 i32.const 1
21 global.set $glob1
22 global.get $glob2
23 )
24 (func (;2;) (type 2) (result funcref)
25 i32.const 0
26 ref.func $f
27 table.set $tab1
28 i32.const 0
29 table.get $tab2
30 )
31 (func (;3;) (type 1) (result i32)
32 i32.const 0
33 i32.const 1
34 i32.store
35 i32.const 0
36 i32.load $mem2
37 )
38 (func (;4;) (type 1) (result i32)
39 block $on_tag1
40 block $on_other
41 try_table (catch $tag1 $on_tag1) (catch_all $on_other) ;; label = @3
42 throw $tag2
43 end
44 unreachable
45 end
46 i32.const 0
47 return
48 end
49 i32.const 1
50 return
51 )
52 )