2022-06-16 23:07:40 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
|
|
|
input_file:
|
|
|
|
- inputs/scalars.in
|
|
|
|
*/
|
|
|
|
|
|
|
|
function main(a: scalar, b: scalar) -> bool {
|
|
|
|
// binary
|
2022-06-16 23:22:32 +03:00
|
|
|
let j: scalar = a.add(b);
|
2022-06-16 23:07:40 +03:00
|
|
|
let o: bool = a.eq(b);
|
2022-06-23 10:19:26 +03:00
|
|
|
let p: bool = a.gte(b);
|
2022-06-16 23:07:40 +03:00
|
|
|
let q: bool = a.gt(b);
|
2022-06-23 10:19:26 +03:00
|
|
|
let r: bool = a.lte(b);
|
2022-06-16 23:07:40 +03:00
|
|
|
let s: bool = a.lt(b);
|
2022-07-29 02:46:30 +03:00
|
|
|
// let t: group = 2group.mul(b);
|
|
|
|
// let u: group = a.mul(2group);
|
2022-06-16 23:07:40 +03:00
|
|
|
let w: bool = a.neq(b);
|
|
|
|
|
|
|
|
return a == b;
|
|
|
|
}
|