Debian Codegraph @

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

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) (struct.new $s (i32.const 0) (i32.const 1) (i32.const 2) (i32.const 3)))
6 (global (;1;) (ref $s) (struct.new $s (i32.const 254) (i32.const 255) (i32.const 65534) (i32.const 65535)))
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 (struct.get_s $s 0
21 (global.get 0))
22 (struct.get_u $s 0
23 (global.get 0))
24 )
25 (func (;1;) (type 1) (result i32 i32)
26 (struct.get_s $s 0
27 (global.get 1))
28 (struct.get_u $s 0
29 (global.get 1))
30 )
31 (func (;2;) (type 1) (result i32 i32)
32 (struct.get_s $s 1
33 (global.get 0))
34 (struct.get_u $s 1
35 (global.get 0))
36 )
37 (func (;3;) (type 1) (result i32 i32)
38 (struct.get_s $s 1
39 (global.get 1))
40 (struct.get_u $s 1
41 (global.get 1))
42 )
43 (func (;4;) (type 1) (result i32 i32)
44 (struct.get_s $s 2
45 (global.get 0))
46 (struct.get_u $s 2
47 (global.get 0))
48 )
49 (func (;5;) (type 1) (result i32 i32)
50 (struct.get_s $s 2
51 (global.get 1))
52 (struct.get_u $s 2
53 (global.get 1))
54 )
55 (func (;6;) (type 1) (result i32 i32)
56 (struct.get_s $s 3
57 (global.get 0))
58 (struct.get_u $s 3
59 (global.get 0))
60 )
61 (func (;7;) (type 1) (result i32 i32)
62 (struct.get_s $s 3
63 (global.get 1))
64 (struct.get_u $s 3
65 (global.get 1))
66 )
67 (func (;8;) (type 2) (param i32) (result i32 i32)
68 (struct.set $s 1
69 (global.get 0)
70 (local.get 0))
71 (struct.get_s $s 1
72 (global.get 0))
73 (struct.get_u $s 1
74 (global.get 0))
75 )
76 (func (;9;) (type 2) (param i32) (result i32 i32)
77 (struct.set $s 3
78 (global.get 0)
79 (local.get 0))
80 (struct.get_s $s 3
81 (global.get 0))
82 (struct.get_u $s 3
83 (global.get 0))
84 )
85 )