mirror of
https://github.com/circify/circ.git
synced 2026-01-09 13:48:02 -05:00
8 lines
186 B
Plaintext
8 lines
186 B
Plaintext
def mult(field x, field y) -> field {
|
|
assert(x != y);
|
|
return x * y;
|
|
}
|
|
|
|
def main(private field x, private field y) -> field {
|
|
return if x == y { x * x } else { mult(x, y) };
|
|
} |