mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 17:11:42 +03:00
30 lines
424 B
Plaintext
30 lines
424 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
inputs:
|
|
- i64.in: |
|
|
[main]
|
|
s: bool = true;
|
|
a: i64 = 10;
|
|
b: i64 = 5;
|
|
c: i64 = 10;
|
|
|
|
[registers]
|
|
r0: bool = false;
|
|
- i64_rev.in: |
|
|
[main]
|
|
s: bool = false;
|
|
a: i64 = 10;
|
|
b: i64 = 5;
|
|
c: i64 = 5;
|
|
|
|
[registers]
|
|
r0: bool = false;
|
|
*/
|
|
|
|
function main(s: bool, a: i64, b: i64, c: i64) -> bool {
|
|
let r = s ? a : b;
|
|
|
|
return r == c;
|
|
}
|