mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
22 lines
288 B
Plaintext
22 lines
288 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/u32_3.in
|
|
- inputs/u32_5.in
|
|
- inputs/u32_6.in
|
|
*/
|
|
|
|
function main(x: u32) -> bool {
|
|
let c = 0u32;
|
|
|
|
if x == 1 {
|
|
c = 1;
|
|
} else if x == 2 {
|
|
c = 2;
|
|
} else {
|
|
c = 3;
|
|
}
|
|
return c == x;
|
|
}
|