2022-12-04 02:20:10 -06:00
|
|
|
// MIR for `switch_bool` after built
|
|
|
|
|
|
|
|
fn switch_bool(_1: bool) -> u32 {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: u32;
|
2022-12-04 02:20:10 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt(copy _1) -> [1: bb1, 0: bb2, otherwise: bb2];
|
2022-12-04 02:20:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 5_u32;
|
|
|
|
return;
|
2022-12-04 02:20:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 10_u32;
|
|
|
|
return;
|
2022-12-04 02:20:10 -06:00
|
|
|
}
|
|
|
|
}
|