fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `main` before ConstProp 2+ // MIR for `main` after ConstProp 3 4 fn main() -> () { 5 let mut _0: (); 6 let mut _1: bool; 7 let _2: bool; 8 scope 1 { 9 debug x => _2; 10 } 11 12 bb0: { 13 _2 = const false; 14- switchInt(_2) -> [0: bb1, otherwise: bb2]; 15+ switchInt(const false) -> [0: bb1, otherwise: bb2]; 16 } 17 18 bb1: { 19 goto -> bb3; 20 } 21 22 bb2: { 23 _0 = noop() -> [return: bb3, unwind unreachable]; 24 } 25 26 bb3: { 27 return; 28 } 29 } 30