mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-23 09:32:53 +03:00
22 lines
308 B
Plaintext
22 lines
308 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: u32 = 0u32;
|
|
|
|
if x == 1u32 {
|
|
c = 1u32;
|
|
} else if x == 2u32 {
|
|
c = 2u32;
|
|
} else {
|
|
c = 3u32;
|
|
}
|
|
return c == x;
|
|
}
|