rust/tests/mir-opt/building/match/simple_match.match_bool.built.after.mir
2024-03-30 17:37:15 +01:00

43 lines
611 B
Rust

// MIR for `match_bool` after built
fn match_bool(_1: bool) -> usize {
debug x => _1;
let mut _0: usize;
bb0: {
PlaceMention(_1);
switchInt(_1) -> [0: bb2, otherwise: bb4];
}
bb1: {
FakeRead(ForMatchedPlace(None), _1);
unreachable;
}
bb2: {
_0 = const 20_usize;
goto -> bb7;
}
bb3: {
goto -> bb1;
}
bb4: {
falseEdge -> [real: bb6, imaginary: bb2];
}
bb5: {
goto -> bb2;
}
bb6: {
_0 = const 10_usize;
goto -> bb7;
}
bb7: {
return;
}
}