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