fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `is_line_doc_comment_2` before DeduplicateBlocks 2+ // MIR for `is_line_doc_comment_2` after DeduplicateBlocks 3 4 fn is_line_doc_comment_2(_1: &str) -> bool { 5 debug s => _1; 6 let mut _0: bool; 7 let mut _2: &[u8]; 8 let mut _3: &str; 9 let mut _4: usize; 10 let mut _5: usize; 11 let mut _6: bool; 12 let mut _7: usize; 13 let mut _8: usize; 14 let mut _9: bool; 15 16 bb0: { 17 StorageLive(_2); 18 StorageLive(_3); 19 _3 = &(*_1); 20 _2 = core::str::<impl str>::as_bytes(move _3) -> [return: bb1, unwind continue]; 21 } 22 23 bb1: { 24 StorageDead(_3); 25 _7 = Len((*_2)); 26 _8 = const 4_usize; 27 _9 = Ge(move _7, move _8); 28 switchInt(move _9) -> [0: bb6, otherwise: bb2]; 29 } 30 31 bb2: { 32 switchInt((*_2)[0 of 4]) -> [47: bb3, otherwise: bb6]; 33 } 34 35 bb3: { 36 switchInt((*_2)[1 of 4]) -> [47: bb4, otherwise: bb6]; 37 } 38 39 bb4: { 40 switchInt((*_2)[2 of 4]) -> [47: bb5, otherwise: bb6]; 41 } 42 43 bb5: { 44- switchInt((*_2)[3 of 4]) -> [47: bb11, otherwise: bb6]; 45+ switchInt((*_2)[3 of 4]) -> [47: bb10, otherwise: bb6]; 46 } 47 48 bb6: { 49 _4 = Len((*_2)); 50 _5 = const 3_usize; 51 _6 = Ge(move _4, move _5); 52 switchInt(move _6) -> [0: bb10, otherwise: bb7]; 53 } 54 55 bb7: { 56 switchInt((*_2)[0 of 3]) -> [47: bb8, otherwise: bb10]; 57 } 58 59 bb8: { 60 switchInt((*_2)[1 of 3]) -> [47: bb9, otherwise: bb10]; 61 } 62 63 bb9: { 64- switchInt((*_2)[2 of 3]) -> [47: bb12, 33: bb13, otherwise: bb10]; 65+ switchInt((*_2)[2 of 3]) -> [47: bb11, 33: bb11, otherwise: bb10]; 66 } 67 68 bb10: { 69 _0 = const false; 70- goto -> bb14; 71+ goto -> bb12; 72 } 73 74 bb11: { 75- _0 = const false; 76- goto -> bb14; 77- } 78- 79- bb12: { 80 _0 = const true; 81- goto -> bb14; 82+ goto -> bb12; 83 } 84 85- bb13: { 86- _0 = const true; 87- goto -> bb14; 88- } 89- 90- bb14: { 91+ bb12: { 92 StorageDead(_2); 93 return; 94 } 95 } 96