fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before SimplifyCfg-initial 2+ // MIR for `main` after SimplifyCfg-initial 3 4 fn main() -> () { 5 let mut _0: (); 6 let mut _1: (); 7 let mut _2: bool; 8 let mut _3: !; 9 10 bb0: { 11 goto -> bb1; 12 } 13 14 bb1: { 15- falseUnwind -> [real: bb2, unwind: bb11]; 16+ falseUnwind -> [real: bb2, unwind: bb6]; 17 } 18 19 bb2: { 20 StorageLive(_2); 21- _2 = bar() -> [return: bb3, unwind: bb11]; 22+ _2 = bar() -> [return: bb3, unwind: bb6]; 23 } 24 25 bb3: { 26 switchInt(move _2) -> [0: bb5, otherwise: bb4]; 27 } 28 29 bb4: { 30 _0 = const (); 31- goto -> bb10; 32+ StorageDead(_2); 33+ return; 34 } 35 36 bb5: { 37- goto -> bb8; 38- } 39- 40- bb6: { 41- unreachable; 42- } 43- 44- bb7: { 45- goto -> bb9; 46- } 47- 48- bb8: { 49 _1 = const (); 50- goto -> bb9; 51- } 52- 53- bb9: { 54 StorageDead(_2); 55 goto -> bb1; 56 } 57 58- bb10: { 59- StorageDead(_2); 60- return; 61- } 62- 63- bb11 (cleanup): { 64+ bb6 (cleanup): { 65 resume; 66 } 67 } 68