File: basic_function.stdout

package info (click to toggle)
rustc 1.87.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 925,564 kB
  • sloc: xml: 158,127; python: 36,039; javascript: 19,761; sh: 19,737; cpp: 18,981; ansic: 13,133; asm: 4,376; makefile: 710; perl: 29; lisp: 28; ruby: 19; sql: 11
file content (74 lines) | stat: -rw-r--r-- 1,658 bytes parent folder | download | duplicates (10)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// WARNING: This is highly experimental output it's intended for stable-mir developers only.
// If you find a bug or want to improve the output open a issue at https://github.com/rust-lang/project-stable-mir.
fn foo(_1: i32) -> i32 {
    let mut _0: i32;
    let mut _2: (i32, bool);
    debug i => _1;
    bb0: {
        _2 = CheckedAdd(_1, 1_i32);
        assert(!move (_2.1: bool), "attempt to compute `{} + {}`, which would overflow", _1, 1_i32) -> [success: bb1, unwind continue];
    }
    bb1: {
        _0 = move (_2.0: i32);
        return;
    }
}
fn bar(_1: &mut Vec<i32>) -> Vec<i32> {
    let mut _0: Vec<i32>;
    let mut _2: Vec<i32>;
    let mut _3: &Vec<i32>;
    let  _4: ();
    let mut _5: &mut Vec<i32>;
    debug vec => _1;
    debug new_vec => _2;
    bb0: {
        _3 = &(*_1);
        _2 = <Vec<i32> as Clone>::clone(move _3) -> [return: bb1, unwind continue];
    }
    bb1: {
        _5 = &mut _2;
        _4 = Vec::<i32>::push(move _5, 1_i32) -> [return: bb2, unwind: bb3];
    }
    bb2: {
        _0 = move _2;
        return;
    }
    bb3: {
        drop(_2) -> [return: bb4, unwind terminate];
    }
    bb4: {
        resume;
    }
}
fn demux(_1: u8) -> u8 {
    let mut _0: u8;
    debug input => _1;
    bb0: {
        switchInt(_1) -> [0: bb4, 1: bb3, 2: bb2, otherwise: bb1];
    }
    bb1: {
        _0 = 0_u8;
        goto -> bb5;
    }
    bb2: {
        _0 = 8_u8;
        goto -> bb5;
    }
    bb3: {
        _0 = 6_u8;
        goto -> bb5;
    }
    bb4: {
        _0 = 10_u8;
        goto -> bb5;
    }
    bb5: {
        return;
    }
}
fn main() -> () {
    let mut _0: ();
    bb0: {
        return;
    }
}