Debian Codegraph @

tests/snapshots/cli/folding/struct.wast/19.print

raw
1 (module
2 (type $s (;0;) (struct (field i8) (field (mut i8)) (field i16) (field (mut i16))))
3 (type (;1;) (func (result i32 i32)))
4 (type (;2;) (func (param i32) (result i32 i32)))
5 (global (;0;) (ref $s) i32.const 0 i32.const 1 i32.const 2 i32.const 3 struct.new $s)
6 (global (;1;) (ref $s) i32.const 254 i32.const 255 i32.const 65534 i32.const 65535 struct.new $s)
7 (export "g0" (global 0))
8 (export "g1" (global 1))
9 (export "get_packed_g0_0" (func 0))
10 (export "get_packed_g1_0" (func 1))
11 (export "get_packed_g0_1" (func 2))
12 (export "get_packed_g1_1" (func 3))
13 (export "get_packed_g0_2" (func 4))
14 (export "get_packed_g1_2" (func 5))
15 (export "get_packed_g0_3" (func 6))
16 (export "get_packed_g1_3" (func 7))
17 (export "set_get_packed_g0_1" (func 8))
18 (export "set_get_packed_g0_3" (func 9))
19 (func (;0;) (type 1) (result i32 i32)
20 global.get 0
21 struct.get_s $s 0
22 global.get 0
23 struct.get_u $s 0
24 )
25 (func (;1;) (type 1) (result i32 i32)
26 global.get 1
27 struct.get_s $s 0
28 global.get 1
29 struct.get_u $s 0
30 )
31 (func (;2;) (type 1) (result i32 i32)
32 global.get 0
33 struct.get_s $s 1
34 global.get 0
35 struct.get_u $s 1
36 )
37 (func (;3;) (type 1) (result i32 i32)
38 global.get 1
39 struct.get_s $s 1
40 global.get 1
41 struct.get_u $s 1
42 )
43 (func (;4;) (type 1) (result i32 i32)
44 global.get 0
45 struct.get_s $s 2
46 global.get 0
47 struct.get_u $s 2
48 )
49 (func (;5;) (type 1) (result i32 i32)
50 global.get 1
51 struct.get_s $s 2
52 global.get 1
53 struct.get_u $s 2
54 )
55 (func (;6;) (type 1) (result i32 i32)
56 global.get 0
57 struct.get_s $s 3
58 global.get 0
59 struct.get_u $s 3
60 )
61 (func (;7;) (type 1) (result i32 i32)
62 global.get 1
63 struct.get_s $s 3
64 global.get 1
65 struct.get_u $s 3
66 )
67 (func (;8;) (type 2) (param i32) (result i32 i32)
68 global.get 0
69 local.get 0
70 struct.set $s 1
71 global.get 0
72 struct.get_s $s 1
73 global.get 0
74 struct.get_u $s 1
75 )
76 (func (;9;) (type 2) (param i32) (result i32 i32)
77 global.get 0
78 local.get 0
79 struct.set $s 3
80 global.get 0
81 struct.get_s $s 3
82 global.get 0
83 struct.get_u $s 3
84 )
85 )