summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/custom/operators.f.built.after.mir
blob: 33eb6b720e87cc702b4b85150bbf29f8ca20cfc9 (plain)
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
// MIR for `f` after built

fn f(_1: i32, _2: bool) -> i32 {
    let mut _0: i32;
    let mut _3: (i32, bool);

    bb0: {
        _1 = Neg(_1);
        _2 = Not(_2);
        _1 = Add(_1, _1);
        _1 = Sub(_1, _1);
        _1 = Mul(_1, _1);
        _1 = Div(_1, _1);
        _1 = Rem(_1, _1);
        _1 = BitXor(_1, _1);
        _1 = BitAnd(_1, _1);
        _1 = Shl(_1, _1);
        _1 = Shr(_1, _1);
        _2 = Eq(_1, _1);
        _2 = Lt(_1, _1);
        _2 = Le(_1, _1);
        _2 = Ge(_1, _1);
        _2 = Gt(_1, _1);
        _3 = CheckedAdd(_1, _1);
        _2 = (_3.1: bool);
        _1 = (_3.0: i32);
        _0 = _1;
        return;
    }
}