2023-05-06 23:20:58 -04:00
|
|
|
// unit-test InstSimplify
|
2022-08-02 17:44:25 -07:00
|
|
|
|
2023-05-06 23:20:58 -04:00
|
|
|
// EMIT_MIR equal_true.opt.InstSimplify.diff
|
2020-09-03 19:48:27 +02:00
|
|
|
|
|
|
|
fn opt(x: bool) -> i32 {
|
|
|
|
if x == true { 0 } else { 1 }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
opt(true);
|
|
|
|
}
|