1 // MIR for `main` after ConstProp
4 let mut _0: (); // return place in scope 0 at $DIR/const_allocation3.rs:+0:11: +0:11
5 let _1: &Packed; // in scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
6 let mut _2: &&Packed; // in scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
9 StorageLive(_1); // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
10 StorageLive(_2); // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
11 _2 = const {alloc1: &&Packed}; // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
13 // + span: $DIR/const_allocation3.rs:5:5: 5:8
14 // + literal: Const { ty: &&Packed, val: Value(Scalar(alloc1)) }
15 _1 = (*_2); // scope 0 at $DIR/const_allocation3.rs:+1:5: +1:8
16 StorageDead(_2); // scope 0 at $DIR/const_allocation3.rs:+1:8: +1:9
17 StorageDead(_1); // scope 0 at $DIR/const_allocation3.rs:+1:8: +1:9
18 nop; // scope 0 at $DIR/const_allocation3.rs:+0:11: +2:2
19 return; // scope 0 at $DIR/const_allocation3.rs:+2:2: +2:2
23 alloc1 (static: FOO, size: 8, align: 8) {
24 ╾───────alloc11───────╼ │ ╾──────╼
27 alloc11 (size: 180, align: 1) {
28 0x00 │ ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab │ ................
29 0x10 │ ab ab ab ab ab ab ab ab ab ab ab ab ╾──alloc6── │ ............╾───
30 0x20 │ ──────────╼ 01 ef cd ab 00 00 00 00 00 00 00 00 │ ───╼............
31 0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
32 0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
33 0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
34 0x60 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
35 0x70 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
36 0x80 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ╾──── │ ..............╾─
37 0x90 │ ─────alloc8─────╼ 00 00 ╾─────alloc9+0x63─────╼ │ ─────╼..╾──────╼
38 0xa0 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
39 0xb0 │ 00 00 00 00 │ ....
42 alloc6 (size: 4, align: 4) {
48 alloc9 (size: 100, align: 1) {
49 0x00 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
50 0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
51 0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
52 0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
53 0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
54 0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
55 0x60 │ 00 00 00 00 │ ....