mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 09:01:35 +03:00
22 lines
293 B
Plaintext
22 lines
293 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
function iteration() -> u32 {
|
|
let a = 0u32;
|
|
|
|
for i in 0..10 {
|
|
a += 1;
|
|
}
|
|
|
|
return a;
|
|
}
|
|
|
|
function main(y: bool) -> bool {
|
|
const total = iteration() + iteration();
|
|
|
|
return (total == 20) == y;
|
|
}
|