|
4 | 4 | fn main() -> () { |
5 | 5 | let mut _0: (); |
6 | 6 | let _1: u8; |
| 7 | + let mut _5: u8; |
| 8 | + let mut _6: u8; |
| 9 | + let mut _7: u8; |
| 10 | + let mut _8: u8; |
| 11 | + let mut _14: u32; |
| 12 | + let mut _15: u32; |
7 | 13 | scope 1 { |
8 | 14 | - debug x => _1; |
9 | 15 | + debug x => const 1_u8; |
|
19 | 25 | scope 4 { |
20 | 26 | - debug sum => _4; |
21 | 27 | + debug sum => const 6_u8; |
22 | | - let _5: &str; |
| 28 | + let _9: &str; |
23 | 29 | scope 5 { |
24 | | -- debug s => _5; |
| 30 | +- debug s => _9; |
25 | 31 | + debug s => const "hello, world!"; |
26 | | - let _8: bool; |
27 | | - let _9: bool; |
28 | | - let _10: u32; |
| 32 | + let _10: (bool, bool, u32); |
29 | 33 | scope 6 { |
30 | | -- debug ((f: (bool, bool, u32)).0: bool) => _8; |
31 | | -- debug ((f: (bool, bool, u32)).1: bool) => _9; |
32 | | -- debug ((f: (bool, bool, u32)).2: u32) => _10; |
33 | | -+ debug ((f: (bool, bool, u32)).0: bool) => const true; |
34 | | -+ debug ((f: (bool, bool, u32)).1: bool) => const false; |
35 | | -+ debug ((f: (bool, bool, u32)).2: u32) => const 123_u32; |
36 | | - let _6: std::option::Option<u16>; |
| 34 | + debug f => _10; |
| 35 | + let _11: std::option::Option<u16>; |
37 | 36 | scope 7 { |
38 | | -- debug o => _6; |
39 | | -+ debug o => const Option::<u16>::Some(99_u16); |
40 | | - let _11: u32; |
41 | | - let _12: u32; |
| 37 | + debug o => _11; |
| 38 | + let _12: Point; |
42 | 39 | scope 8 { |
43 | | -- debug ((p: Point).0: u32) => _11; |
44 | | -- debug ((p: Point).1: u32) => _12; |
45 | | -+ debug ((p: Point).0: u32) => const 32_u32; |
46 | | -+ debug ((p: Point).1: u32) => const 32_u32; |
47 | | - let _7: u32; |
| 40 | +- debug p => _12; |
| 41 | ++ debug p => const Point {{ x: 32_u32, y: 32_u32 }}; |
| 42 | + let _13: u32; |
48 | 43 | scope 9 { |
49 | | -- debug a => _7; |
| 44 | +- debug a => _13; |
50 | 45 | + debug a => const 64_u32; |
51 | 46 | } |
52 | 47 | } |
|
59 | 54 | } |
60 | 55 |
|
61 | 56 | bb0: { |
| 57 | + StorageLive(_1); |
62 | 58 | _1 = const 1_u8; |
| 59 | + StorageLive(_2); |
63 | 60 | _2 = const 2_u8; |
| 61 | + StorageLive(_3); |
64 | 62 | _3 = const 3_u8; |
65 | 63 | StorageLive(_4); |
66 | | - _4 = const 6_u8; |
67 | 64 | StorageLive(_5); |
68 | | - _5 = const "hello, world!"; |
69 | | - StorageLive(_8); |
70 | | - StorageLive(_9); |
71 | | - StorageLive(_10); |
72 | | - _8 = const true; |
73 | | - _9 = const false; |
74 | | - _10 = const 123_u32; |
75 | 65 | StorageLive(_6); |
76 | | - _6 = const Option::<u16>::Some(99_u16); |
77 | | - _11 = const 32_u32; |
78 | | - _12 = const 32_u32; |
| 66 | + _6 = const 1_u8; |
79 | 67 | StorageLive(_7); |
80 | | - _7 = const 64_u32; |
| 68 | + _7 = const 2_u8; |
| 69 | + _5 = const 3_u8; |
81 | 70 | StorageDead(_7); |
82 | 71 | StorageDead(_6); |
| 72 | + StorageLive(_8); |
| 73 | + _8 = const 3_u8; |
| 74 | + _4 = const 6_u8; |
83 | 75 | StorageDead(_8); |
84 | | - StorageDead(_9); |
85 | | - StorageDead(_10); |
86 | 76 | StorageDead(_5); |
| 77 | + StorageLive(_9); |
| 78 | + _9 = const "hello, world!"; |
| 79 | + StorageLive(_10); |
| 80 | + _10 = (const true, const false, const 123_u32); |
| 81 | + StorageLive(_11); |
| 82 | + _11 = Option::<u16>::Some(const 99_u16); |
| 83 | + StorageLive(_12); |
| 84 | + _12 = const Point {{ x: 32_u32, y: 32_u32 }}; |
| 85 | + StorageLive(_13); |
| 86 | + StorageLive(_14); |
| 87 | + _14 = const 32_u32; |
| 88 | + StorageLive(_15); |
| 89 | + _15 = const 32_u32; |
| 90 | + _13 = const 64_u32; |
| 91 | + StorageDead(_15); |
| 92 | + StorageDead(_14); |
| 93 | + _0 = const (); |
| 94 | + StorageDead(_13); |
| 95 | + StorageDead(_12); |
| 96 | + StorageDead(_11); |
| 97 | + StorageDead(_10); |
| 98 | + StorageDead(_9); |
87 | 99 | StorageDead(_4); |
| 100 | + StorageDead(_3); |
| 101 | + StorageDead(_2); |
| 102 | + StorageDead(_1); |
88 | 103 | return; |
89 | 104 | } |
90 | 105 | } |
91 | 106 |
|
92 | | - ALLOC0 (size: 4, align: 2) { |
93 | | - 01 00 63 00 │ ..c. |
| 107 | + ALLOC0 (size: 8, align: 4) { |
| 108 | + 20 00 00 00 20 00 00 00 │ ... ... |
94 | 109 | } |
95 | 110 |
|
0 commit comments