mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 02:01:54 +03:00
27 lines
514 B
Plaintext
27 lines
514 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/fields.in
|
|
*/
|
|
|
|
function main(a: field, b: field) -> bool {
|
|
// unary
|
|
let f: field = a.inv();
|
|
let g: field = a.neg();
|
|
let i: field = a.square();
|
|
|
|
// binary
|
|
let j: field = a.add(b);
|
|
let m: field = a.div(b);
|
|
let o: bool = a.eq(b);
|
|
let p: bool = a.ge(b);
|
|
let q: bool = a.gt(b);
|
|
let r: bool = a.le(b);
|
|
let s: bool = a.lt(b);
|
|
let t: field = a.mul(b);
|
|
let w: bool = a.neq(b);
|
|
let z: field = a.pow(b);
|
|
|
|
return f;
|
|
} |