mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-21 17:21:34 +03:00
26 lines
470 B
Plaintext
26 lines
470 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/false_false.in
|
|
- inputs/false_true.in
|
|
- inputs/true_false.in
|
|
- inputs/true_true.in
|
|
*/
|
|
|
|
@program
|
|
function main(a: bool, b: bool) -> bool {
|
|
// unary
|
|
let h: bool = a.not();
|
|
|
|
// binary
|
|
let l: bool = a.and(b);
|
|
let o: bool = a.eq(b);
|
|
let v: bool = a.nand(b);
|
|
let w: bool = a.neq(b);
|
|
let x: bool = a.nor(b);
|
|
let y: bool = a.or(b);
|
|
let ar: bool = a.xor(b);
|
|
|
|
return h;
|
|
} |