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