2020-06-10 09:54:02 -07:00
|
|
|
- // MIR for `main` before InstrumentCoverage
|
|
|
|
|
+ // MIR for `main` after InstrumentCoverage
|
|
|
|
|
|
|
|
|
|
fn main() -> () {
|
2020-08-01 20:03:59 -07:00
|
|
|
let mut _0: (); // return place in scope 0 at /the/src/instrument_coverage.rs:10:11: 10:11
|
|
|
|
|
let mut _1: (); // in scope 0 at /the/src/instrument_coverage.rs:10:1: 16:2
|
|
|
|
|
let mut _2: bool; // in scope 0 at /the/src/instrument_coverage.rs:12:12: 12:17
|
|
|
|
|
let mut _3: !; // in scope 0 at /the/src/instrument_coverage.rs:12:18: 14:10
|
2020-06-10 09:54:02 -07:00
|
|
|
|
|
|
|
|
bb0: {
|
2020-08-15 04:42:13 -07:00
|
|
|
+ Coverage { kind: Counter { function_source_hash: 16004455475339839479, id: CounterValueReference(0) }, code_region: /the/src/instrument_coverage.rs:10:11 - 16:2 }; // scope 0 at /the/src/instrument_coverage.rs:11:5: 15:6
|
|
|
|
|
falseUnwind -> [real: bb1, cleanup: bb2]; // scope 0 at /the/src/instrument_coverage.rs:11:5: 15:6
|
2020-06-10 09:54:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bb1: {
|
2020-08-01 20:03:59 -07:00
|
|
|
StorageLive(_2); // scope 0 at /the/src/instrument_coverage.rs:12:12: 12:17
|
2020-08-20 09:44:20 +00:00
|
|
|
_2 = bar() -> [return: bb3, unwind: bb2]; // scope 0 at /the/src/instrument_coverage.rs:12:12: 12:17
|
2020-06-10 09:54:02 -07:00
|
|
|
// mir::Constant
|
2020-08-01 20:03:59 -07:00
|
|
|
// + span: /the/src/instrument_coverage.rs:12:12: 12:15
|
2020-06-10 09:54:02 -07:00
|
|
|
// + literal: Const { ty: fn() -> bool {bar}, val: Value(Scalar(<ZST>)) }
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-10 12:48:30 -07:00
|
|
|
bb2 (cleanup): {
|
2020-08-01 20:03:59 -07:00
|
|
|
resume; // scope 0 at /the/src/instrument_coverage.rs:10:1: 16:2
|
2020-06-10 09:54:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bb3: {
|
2020-08-01 20:03:59 -07:00
|
|
|
FakeRead(ForMatchedPlace, _2); // scope 0 at /the/src/instrument_coverage.rs:12:12: 12:17
|
|
|
|
|
switchInt(_2) -> [false: bb5, otherwise: bb4]; // scope 0 at /the/src/instrument_coverage.rs:12:9: 14:10
|
2020-06-10 09:54:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bb4: {
|
2020-08-01 20:03:59 -07:00
|
|
|
falseEdge -> [real: bb6, imaginary: bb5]; // scope 0 at /the/src/instrument_coverage.rs:12:9: 14:10
|
2020-06-10 12:48:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bb5: {
|
2020-08-01 20:03:59 -07:00
|
|
|
_1 = const (); // scope 0 at /the/src/instrument_coverage.rs:12:9: 14:10
|
|
|
|
|
StorageDead(_2); // scope 0 at /the/src/instrument_coverage.rs:15:5: 15:6
|
|
|
|
|
goto -> bb0; // scope 0 at /the/src/instrument_coverage.rs:11:5: 15:6
|
2020-06-10 09:54:02 -07:00
|
|
|
}
|
|
|
|
|
|
2020-06-10 12:48:30 -07:00
|
|
|
bb6: {
|
2020-08-01 20:03:59 -07:00
|
|
|
_0 = const (); // scope 0 at /the/src/instrument_coverage.rs:13:13: 13:18
|
|
|
|
|
StorageDead(_2); // scope 0 at /the/src/instrument_coverage.rs:15:5: 15:6
|
|
|
|
|
return; // scope 0 at /the/src/instrument_coverage.rs:16:2: 16:2
|
2020-06-10 09:54:02 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|