rust/tests/mir-opt/issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
995 B
Rust
Raw Normal View History

2022-11-02 16:54:49 -05:00
// MIR for `<impl at $DIR/issue_41697.rs:18:1: 18:23>::{constant#0}` after SimplifyCfg-promote-consts
2020-04-02 16:09:01 -05:00
2022-11-02 16:54:49 -05:00
<impl at $DIR/issue_41697.rs:18:1: 18:23>::{constant#0}: usize = {
let mut _0: usize; // return place in scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
let mut _1: (usize, bool); // in scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
2020-04-02 16:09:01 -05:00
bb0: {
2022-11-02 16:54:49 -05:00
_1 = CheckedAdd(const 1_usize, const 1_usize); // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
assert(!move (_1.1: bool), "attempt to compute `{} + {}`, which would overflow", const 1_usize, const 1_usize) -> [success: bb1, unwind: bb2]; // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb1: {
2022-11-02 16:54:49 -05:00
_0 = move (_1.0: usize); // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
return; // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
2020-05-02 13:59:05 -05:00
}
2020-10-02 15:11:24 -05:00
bb2 (cleanup): {
2022-11-02 16:54:49 -05:00
resume; // scope 0 at $DIR/issue_41697.rs:+0:19: +0:22
2020-10-02 15:11:24 -05:00
}
2020-04-02 16:09:01 -05:00
}