mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-23 17:43:06 +03:00
14 lines
207 B
Plaintext
14 lines
207 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/tern.in
|
|
- inputs/tern_rev.in
|
|
*/
|
|
|
|
function main(s: bool, a: u128, b: u128, c: u128) -> bool {
|
|
let r: u128 = s ? a : b;
|
|
|
|
return r == c;
|
|
}
|