mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 04:35:33 +03:00
16 lines
269 B
Plaintext
16 lines
269 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
*/
|
|
|
|
@program
|
|
function main(public a: u32, b: u32) -> u32 {
|
|
let c: u32 = a + b * 1u32; // c = 3
|
|
let str:string = "a a a";
|
|
if(str == "b b b") {
|
|
c = 123u32;
|
|
} else {
|
|
c = 321u32;
|
|
}
|
|
return c;
|
|
} |