36 lines
2.4 KiB
Diff
36 lines
2.4 KiB
Diff
- // MIR for `pointer_to_int` before DeadStoreElimination
|
|
+ // MIR for `pointer_to_int` after DeadStoreElimination
|
|
|
|
fn pointer_to_int(_1: *mut i32) -> () {
|
|
debug p => _1; // in scope 0 at $DIR/provenance_soundness.rs:+0:19: +0:20
|
|
let mut _0: (); // return place in scope 0 at $DIR/provenance_soundness.rs:+0:32: +0:32
|
|
let _2: usize; // in scope 0 at $DIR/provenance_soundness.rs:+1:9: +1:11
|
|
let mut _3: *mut i32; // in scope 0 at $DIR/provenance_soundness.rs:+1:14: +1:15
|
|
let mut _5: *mut i32; // in scope 0 at $DIR/provenance_soundness.rs:+2:14: +2:15
|
|
scope 1 {
|
|
debug _x => _2; // in scope 1 at $DIR/provenance_soundness.rs:+1:9: +1:11
|
|
let _4: isize; // in scope 1 at $DIR/provenance_soundness.rs:+2:9: +2:11
|
|
scope 2 {
|
|
debug _y => _4; // in scope 2 at $DIR/provenance_soundness.rs:+2:9: +2:11
|
|
}
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_2); // scope 0 at $DIR/provenance_soundness.rs:+1:9: +1:11
|
|
StorageLive(_3); // scope 0 at $DIR/provenance_soundness.rs:+1:14: +1:15
|
|
_3 = _1; // scope 0 at $DIR/provenance_soundness.rs:+1:14: +1:15
|
|
_2 = move _3 as usize (PointerExposeAddress); // scope 0 at $DIR/provenance_soundness.rs:+1:14: +1:24
|
|
StorageDead(_3); // scope 0 at $DIR/provenance_soundness.rs:+1:23: +1:24
|
|
StorageLive(_4); // scope 1 at $DIR/provenance_soundness.rs:+2:9: +2:11
|
|
StorageLive(_5); // scope 1 at $DIR/provenance_soundness.rs:+2:14: +2:15
|
|
_5 = _1; // scope 1 at $DIR/provenance_soundness.rs:+2:14: +2:15
|
|
_4 = move _5 as isize (PointerExposeAddress); // scope 1 at $DIR/provenance_soundness.rs:+2:14: +2:24
|
|
StorageDead(_5); // scope 1 at $DIR/provenance_soundness.rs:+2:23: +2:24
|
|
_0 = const (); // scope 0 at $DIR/provenance_soundness.rs:+0:32: +3:2
|
|
StorageDead(_4); // scope 1 at $DIR/provenance_soundness.rs:+3:1: +3:2
|
|
StorageDead(_2); // scope 0 at $DIR/provenance_soundness.rs:+3:1: +3:2
|
|
return; // scope 0 at $DIR/provenance_soundness.rs:+3:2: +3:2
|
|
}
|
|
}
|
|
|