File: checked_ops.checked_shl.PreCodegen.after.panic-unwind.mir

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (45 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// MIR for `checked_shl` after PreCodegen

fn checked_shl(_1: u32, _2: u32) -> Option<u32> {
    debug x => _1;
    debug rhs => _2;
    let mut _0: std::option::Option<u32>;
    scope 1 (inlined core::num::<impl u32>::checked_shl) {
        let mut _3: bool;
        let mut _4: u32;
        scope 2 (inlined core::num::<impl u32>::unchecked_shl) {
            scope 3 (inlined core::ub_checks::check_language_ub) {
                scope 4 (inlined core::ub_checks::check_language_ub::runtime) {
                }
            }
        }
    }

    bb0: {
        StorageLive(_3);
        _3 = Lt(copy _2, const core::num::<impl u32>::BITS);
        switchInt(move _3) -> [0: bb1, otherwise: bb2];
    }

    bb1: {
        _0 = const Option::<u32>::None;
        goto -> bb3;
    }

    bb2: {
        StorageLive(_4);
        _4 = ShlUnchecked(copy _1, copy _2);
        _0 = Option::<u32>::Some(move _4);
        StorageDead(_4);
        goto -> bb3;
    }

    bb3: {
        StorageDead(_3);
        return;
    }
}

ALLOC0 (size: 8, align: 4) {
    00 00 00 00 __ __ __ __                         │ ....░░░░
}