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