2021-05-03 17:28:53 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
|
|
|
inputs:
|
|
|
|
- i8.in: |
|
|
|
|
[main]
|
|
|
|
s: bool = true;
|
|
|
|
a: i8 = 10;
|
|
|
|
b: i8 = 5;
|
|
|
|
c: i8 = 10;
|
2021-05-10 20:19:19 +03:00
|
|
|
|
|
|
|
[registers]
|
|
|
|
r0: bool = false;
|
2021-05-03 17:28:53 +03:00
|
|
|
- i8_rev.in: |
|
|
|
|
[main]
|
|
|
|
s: bool = false;
|
|
|
|
a: i8 = 10;
|
|
|
|
b: i8 = 5;
|
|
|
|
c: i8 = 5;
|
2021-05-10 20:19:19 +03:00
|
|
|
|
|
|
|
[registers]
|
|
|
|
r0: bool = false;
|
2021-05-03 17:28:53 +03:00
|
|
|
*/
|
|
|
|
|
2021-05-10 20:19:19 +03:00
|
|
|
function main(s: bool, a: i8, b: i8, c: i8) -> bool {
|
2021-05-06 14:27:42 +03:00
|
|
|
let r = s ? a : b;
|
2020-07-31 02:20:31 +03:00
|
|
|
|
2021-05-10 20:19:19 +03:00
|
|
|
return r == c;
|
2021-05-06 14:27:42 +03:00
|
|
|
}
|