2020-04-02 21:09:01 +00:00
|
|
|
// MIR for `while_loop` after PreCodegen
|
|
|
|
|
|
|
|
fn while_loop(_1: bool) -> () {
|
|
|
|
debug c => _1; // in scope 0 at $DIR/while-storage.rs:9:15: 9:16
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/while-storage.rs:9:24: 9:24
|
|
|
|
let mut _2: bool; // in scope 0 at $DIR/while-storage.rs:10:11: 10:22
|
|
|
|
let mut _3: bool; // in scope 0 at $DIR/while-storage.rs:10:20: 10:21
|
|
|
|
let mut _4: bool; // in scope 0 at $DIR/while-storage.rs:11:12: 11:23
|
|
|
|
let mut _5: bool; // in scope 0 at $DIR/while-storage.rs:11:21: 11:22
|
|
|
|
|
|
|
|
bb0: {
|
2020-04-25 11:01:43 +02:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/while-storage.rs:10:11: 10:22
|
|
|
|
StorageLive(_3); // scope 0 at $DIR/while-storage.rs:10:20: 10:21
|
|
|
|
_3 = _1; // scope 0 at $DIR/while-storage.rs:10:20: 10:21
|
2020-08-20 09:44:20 +00:00
|
|
|
_2 = get_bool(move _3) -> bb1; // scope 0 at $DIR/while-storage.rs:10:11: 10:22
|
2020-04-02 21:09:01 +00:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/while-storage.rs:10:11: 10:19
|
|
|
|
// + literal: Const { ty: fn(bool) -> bool {get_bool}, val: Value(Scalar(<ZST>)) }
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2020-04-25 11:01:43 +02:00
|
|
|
StorageDead(_3); // scope 0 at $DIR/while-storage.rs:10:21: 10:22
|
2021-09-01 22:52:17 +01:00
|
|
|
switchInt(move _2) -> [false: bb6, otherwise: bb2]; // scope 0 at $DIR/while-storage.rs:10:11: 10:22
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2020-04-25 11:01:43 +02:00
|
|
|
StorageLive(_4); // scope 0 at $DIR/while-storage.rs:11:12: 11:23
|
|
|
|
StorageLive(_5); // scope 0 at $DIR/while-storage.rs:11:21: 11:22
|
|
|
|
_5 = _1; // scope 0 at $DIR/while-storage.rs:11:21: 11:22
|
2021-09-01 22:52:17 +01:00
|
|
|
_4 = get_bool(move _5) -> bb3; // scope 0 at $DIR/while-storage.rs:11:12: 11:23
|
2020-04-09 12:58:36 +02:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/while-storage.rs:11:12: 11:20
|
|
|
|
// + literal: Const { ty: fn(bool) -> bool {get_bool}, val: Value(Scalar(<ZST>)) }
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
2021-03-15 21:58:54 -04:00
|
|
|
bb3: {
|
2021-08-08 11:49:13 -03:00
|
|
|
StorageDead(_5); // scope 0 at $DIR/while-storage.rs:11:22: 11:23
|
2021-09-01 22:52:17 +01:00
|
|
|
switchInt(move _4) -> [false: bb5, otherwise: bb4]; // scope 0 at $DIR/while-storage.rs:11:12: 11:23
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
|
2021-09-01 22:52:17 +01:00
|
|
|
bb4: {
|
2021-08-08 11:49:13 -03:00
|
|
|
StorageDead(_4); // scope 0 at $DIR/while-storage.rs:13:9: 13:10
|
|
|
|
goto -> bb7; // scope 0 at no-location
|
|
|
|
}
|
|
|
|
|
2021-09-01 22:52:17 +01:00
|
|
|
bb5: {
|
2021-01-01 15:38:11 -03:00
|
|
|
StorageDead(_4); // scope 0 at $DIR/while-storage.rs:13:9: 13:10
|
|
|
|
StorageDead(_2); // scope 0 at $DIR/while-storage.rs:14:5: 14:6
|
|
|
|
goto -> bb0; // scope 0 at $DIR/while-storage.rs:10:5: 14:6
|
2020-04-09 12:58:36 +02:00
|
|
|
}
|
|
|
|
|
2021-09-01 22:52:17 +01:00
|
|
|
bb6: {
|
|
|
|
goto -> bb7; // scope 0 at no-location
|
|
|
|
}
|
|
|
|
|
2021-08-08 11:49:13 -03:00
|
|
|
bb7: {
|
2020-04-25 11:01:43 +02:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/while-storage.rs:14:5: 14:6
|
|
|
|
return; // scope 0 at $DIR/while-storage.rs:15:2: 15:2
|
2020-04-02 21:09:01 +00:00
|
|
|
}
|
|
|
|
}
|