2024-01-20 13:11:45 -06:00
|
|
|
- // MIR for `assume` before JumpThreading
|
|
|
|
+ // MIR for `assume` after JumpThreading
|
|
|
|
|
|
|
|
fn assume(_1: u8, _2: bool) -> u8 {
|
|
|
|
let mut _0: u8;
|
|
|
|
|
|
|
|
bb0: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy _1) -> [7: bb1, otherwise: bb2];
|
2024-01-20 13:11:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-08-18 16:26:34 -05:00
|
|
|
assume(copy _2);
|
2024-01-20 13:11:45 -06:00
|
|
|
- goto -> bb3;
|
|
|
|
+ goto -> bb6;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
|
|
|
goto -> bb3;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy _2) -> [0: bb4, otherwise: bb5];
|
2024-01-20 13:11:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
|
|
|
_0 = const 4_u8;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
|
|
|
_0 = const 5_u8;
|
|
|
|
return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bb6: {
|
|
|
|
+ goto -> bb5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|