2021-05-10 20:19:19 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
|
|
|
inputs:
|
|
|
|
- i128.in: |
|
|
|
|
[main]
|
|
|
|
s: bool = true;
|
2022-05-03 05:43:46 +03:00
|
|
|
a: i128 = 10i128;
|
|
|
|
b: i128 = 5i128;
|
|
|
|
c: i128 = 10i128;
|
2020-07-31 02:20:31 +03:00
|
|
|
|
2021-05-10 20:19:19 +03:00
|
|
|
[registers]
|
|
|
|
r0: bool = false;
|
|
|
|
- i128_rev.in: |
|
|
|
|
[main]
|
|
|
|
s: bool = false;
|
2022-05-03 05:43:46 +03:00
|
|
|
a: i128 = 10i128;
|
|
|
|
b: i128 = 5i128;
|
|
|
|
c: i128 = 5i128;
|
2021-05-10 20:19:19 +03:00
|
|
|
|
|
|
|
[registers]
|
|
|
|
r0: bool = false;
|
|
|
|
*/
|
|
|
|
|
|
|
|
function main(s: bool, a: i128, b: i128, c: i128) -> bool {
|
2022-05-03 05:43:46 +03:00
|
|
|
let r: i128 = s ? a : b;
|
2021-05-10 20:19:19 +03:00
|
|
|
|
|
|
|
return r == c;
|
|
|
|
}
|