rust/tests/mir-opt/instrument_coverage.main.InstrumentCoverage.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.2 KiB
Diff
Raw Normal View History

- // MIR for `main` before InstrumentCoverage
+ // MIR for `main` after InstrumentCoverage
fn main() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let mut _1: ();
let mut _2: bool;
let mut _3: !;
bb0: {
2023-06-06 08:47:00 -05:00
+ Coverage::Counter(1) for /the/src/instrument_coverage.rs:11:1 - 11:11;
goto -> bb1;
}
bb1: {
2023-06-06 08:47:00 -05:00
+ Coverage::Expression(4294967295) = 1 + 2 for /the/src/instrument_coverage.rs:12:5 - 13:17;
falseUnwind -> [real: bb2, unwind: bb6];
2021-09-17 19:00:00 -05:00
}
bb2: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
_2 = bar() -> [return: bb3, unwind: bb6];
}
2021-09-17 19:00:00 -05:00
bb3: {
2023-06-06 08:47:00 -05:00
switchInt(move _2) -> [0: bb5, otherwise: bb4];
}
2021-09-17 19:00:00 -05:00
bb4: {
2023-06-06 08:47:00 -05:00
+ Coverage::Expression(4294967293) = 4294967294 + 0 for /the/src/instrument_coverage.rs:17:1 - 17:2;
+ Coverage::Expression(4294967294) = 4294967295 - 2 for /the/src/instrument_coverage.rs:14:13 - 14:18;
_0 = const ();
StorageDead(_2);
return;
}
2021-09-17 19:00:00 -05:00
bb5: {
2023-06-06 08:47:00 -05:00
+ Coverage::Counter(2) for /the/src/instrument_coverage.rs:15:10 - 15:11;
_1 = const ();
StorageDead(_2);
goto -> bb1;
}
2021-09-17 19:00:00 -05:00
bb6 (cleanup): {
2023-06-06 08:47:00 -05:00
resume;
2020-10-04 06:57:53 -05:00
}
}