fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// MIR for `while_loop` after PreCodegen 2 3fn while_loop(_1: bool) -> () { 4 debug c => _1; 5 let mut _0: (); 6 let mut _2: bool; 7 let mut _3: bool; 8 9 bb0: { 10 goto -> bb1; 11 } 12 13 bb1: { 14 StorageLive(_2); 15 _2 = get_bool(_1) -> [return: bb2, unwind continue]; 16 } 17 18 bb2: { 19 switchInt(move _2) -> [0: bb7, otherwise: bb3]; 20 } 21 22 bb3: { 23 StorageLive(_3); 24 _3 = get_bool(_1) -> [return: bb4, unwind continue]; 25 } 26 27 bb4: { 28 switchInt(move _3) -> [0: bb5, otherwise: bb6]; 29 } 30 31 bb5: { 32 StorageDead(_3); 33 StorageDead(_2); 34 goto -> bb1; 35 } 36 37 bb6: { 38 StorageDead(_3); 39 goto -> bb7; 40 } 41 42 bb7: { 43 StorageDead(_2); 44 return; 45 } 46}