fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before SimplifyCfg-early-opt 2+ // MIR for `main` after SimplifyCfg-early-opt 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- goto -> bb2; 16+ StorageLive(_2); 17+ _2 = bar() -> [return: bb2, unwind: bb5]; 18 } 19 20 bb2: { 21- StorageLive(_2); 22- _2 = bar() -> [return: bb3, unwind: bb6]; 23+ switchInt(move _2) -> [0: bb4, otherwise: bb3]; 24 } 25 26 bb3: { 27- switchInt(move _2) -> [0: bb5, otherwise: bb4]; 28- } 29- 30- bb4: { 31 _0 = const (); 32 StorageDead(_2); 33 return; 34 } 35 36- bb5: { 37+ bb4: { 38 _1 = const (); 39 StorageDead(_2); 40 goto -> bb1; 41 } 42 43- bb6 (cleanup): { 44+ bb5 (cleanup): { 45 resume; 46 } 47 } 48