Debian Codegraph @

tests/snapshots/cli/gc/gc-struct.wast/0.print

raw
1 (module
2 (type (;0;) (struct))
3 (type (;1;) (struct (field i32)))
4 (type (;2;) (struct (field (mut i32))))
5 (type (;3;) (struct (field i32) (field i32)))
6 (type (;4;) (struct (field i32) (field (mut i32))))
7 (type (;5;) (struct (field (mut i32)) (field (mut i32))))
8 (type $a (;6;) (struct (field $field_a f32)))
9 (type $b (;7;) (struct (field $field_b (mut f32))))
10 (type (;8;) (struct (field $field_a externref)))
11 (type (;9;) (struct (field $field_b externref) (field $field_c funcref)))
12 (type (;10;) (func (param (ref $a) (ref $b))))
13 (func (;0;) (type 10) (param (ref $a) (ref $b))
14 f32.const 0x1p+0 (;=1;)
15 struct.new $a
16 drop
17 struct.new_default $a
18 drop
19 local.get 0
20 struct.get $a $field_a
21 drop
22 local.get 1
23 f32.const 0x1p+0 (;=1;)
24 struct.set $b $field_b
25 )
26 )