mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-30 13:42:24 +03:00
20 lines
378 B
Plaintext
20 lines
378 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: inputs/three.in
|
|
*/
|
|
|
|
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;
|
|
} |