Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/i31.wast/50.print

raw
1 (module $anyref_global_of_i31ref
2 (type (;0;) (func (result i32 i32)))
3 (type (;1;) (func (param i32)))
4 (global $c (;0;) anyref i32.const 1234 ref.i31)
5 (global $m (;1;) (mut anyref) i32.const 5678 ref.i31)
6 (export "get_globals" (func 0))
7 (export "set_global" (func 1))
8 (func (;0;) (type 0) (result i32 i32)
9 global.get $c
10 ref.cast i31ref
11 i31.get_u
12 global.get $m
13 ref.cast i31ref
14 i31.get_u
15 )
16 (func (;1;) (type 1) (param i32)
17 local.get 0
18 ref.i31
19 global.set $m
20 )
21 )