mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-11 03:19:00 +03:00
17 lines
305 B
Plaintext
17 lines
305 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: inputs/flag.in
|
|
*/
|
|
|
|
program test.aleo {
|
|
transition main(flag: u8, value: u8) -> u8 {
|
|
if (flag == 0u8) {
|
|
value += 1u8;
|
|
return value;
|
|
} else {
|
|
value += 2u8;
|
|
}
|
|
return value;
|
|
}}
|