mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 20:54:16 +03:00
15 lines
212 B
Plaintext
15 lines
212 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/tern.in
|
|
- inputs/tern_rev.in
|
|
*/
|
|
|
|
@program
|
|
function main(s: bool, a: u16, b: u16, c: u16) -> bool {
|
|
let r: u16 = s ? a : b;
|
|
|
|
return r == c;
|
|
}
|