mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 00:51:33 +03:00
24 lines
298 B
Plaintext
24 lines
298 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/u32_3.in
|
|
- inputs/u32_5.in
|
|
*/
|
|
|
|
function main(x: u32) -> bool {
|
|
let b = 5u32;
|
|
|
|
if x == 3 {
|
|
b = 1;
|
|
} else {
|
|
b = 0;
|
|
}
|
|
|
|
if x == 3 {
|
|
return (b == 1);
|
|
} else {
|
|
return (b == 0);
|
|
}
|
|
}
|