mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-22 09:41:37 +03:00
21 lines
387 B
Plaintext
21 lines
387 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: inputs/three.in
|
|
*/
|
|
|
|
@program
|
|
function main(a: group, b: group) -> bool {
|
|
// unary
|
|
let e: group = a.double();
|
|
let g: group = a.neg();
|
|
|
|
// binary
|
|
let j: group = a.add(b);
|
|
let o: bool = a.eq(b);
|
|
let t: group = a.mul(2scalar);
|
|
let q: group = 2scalar.mul(a);
|
|
let w: bool = a.neq(b);
|
|
|
|
return a == b;
|
|
} |