mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
18 lines
251 B
Plaintext
18 lines
251 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
x: u32
|
|
}
|
|
|
|
// Using let makes a circuit variable mutable.
|
|
function main(y: bool) -> bool{
|
|
let a = Foo { x: 1 };
|
|
a.x = 0;
|
|
|
|
return (a.x == 0u32) == y;
|
|
}
|