File: derived_ord.%7Bimpl%230%7D-partial_cmp.PreCodegen.after.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 (58 lines) | stat: -rw-r--r-- 1,609 bytes parent folder | download | duplicates (3)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
// MIR for `<impl at $DIR/derived_ord.rs:6:10: 6:20>::partial_cmp` after PreCodegen

fn <impl at $DIR/derived_ord.rs:6:10: 6:20>::partial_cmp(_1: &MultiField, _2: &MultiField) -> Option<std::cmp::Ordering> {
    debug self => _1;
    debug other => _2;
    let mut _0: std::option::Option<std::cmp::Ordering>;
    let mut _6: std::option::Option<std::cmp::Ordering>;
    let mut _7: i8;
    scope 1 {
        debug cmp => _6;
    }
    scope 2 (inlined std::cmp::impls::<impl PartialOrd for char>::partial_cmp) {
        let mut _3: char;
        let mut _4: char;
        let mut _5: std::cmp::Ordering;
    }
    scope 3 (inlined std::cmp::impls::<impl PartialOrd for i16>::partial_cmp) {
        let mut _8: i16;
        let mut _9: i16;
        let mut _10: std::cmp::Ordering;
    }

    bb0: {
        StorageLive(_3);
        _3 = copy ((*_1).0: char);
        StorageLive(_4);
        _4 = copy ((*_2).0: char);
        _5 = Cmp(move _3, move _4);
        StorageDead(_4);
        StorageDead(_3);
        _6 = Option::<std::cmp::Ordering>::Some(copy _5);
        _7 = discriminant(_5);
        switchInt(move _7) -> [0: bb1, otherwise: bb2];
    }

    bb1: {
        StorageLive(_10);
        StorageLive(_8);
        _8 = copy ((*_1).1: i16);
        StorageLive(_9);
        _9 = copy ((*_2).1: i16);
        _10 = Cmp(move _8, move _9);
        StorageDead(_9);
        StorageDead(_8);
        _0 = Option::<std::cmp::Ordering>::Some(move _10);
        StorageDead(_10);
        goto -> bb3;
    }

    bb2: {
        _0 = copy _6;
        goto -> bb3;
    }

    bb3: {
        return;
    }
}