2021-12-01 02:54:37 +00:00
|
|
|
- // MIR for `main` before SimplifyConstCondition-after-const-prop
|
|
|
|
+ // MIR for `main` after SimplifyConstCondition-after-const-prop
|
2020-04-02 21:09:01 +00:00
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: bool;
|
|
|
|
let _2: ();
|
2020-04-02 21:09:01 +00:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageLive(_1);
|
|
|
|
_1 = const false;
|
|
|
|
- switchInt(const false) -> [0: bb3, otherwise: bb1];
|
|
|
|
+ goto -> bb3;
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-23 16:53:09 +00:00
|
|
|
_2 = noop() -> [return: bb2, unwind continue];
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
2021-01-01 18:38:11 +00:00
|
|
|
bb2: {
|
2023-06-06 13:47:00 +00:00
|
|
|
goto -> bb4;
|
2021-01-01 18:38:11 +00:00
|
|
|
}
|
|
|
|
|
2020-04-02 21:09:01 +00:00
|
|
|
bb3: {
|
2023-06-06 13:47:00 +00:00
|
|
|
goto -> bb4;
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|