1
0
Fork 0
mirror of synced 2025-09-23 04:08:33 +00:00
ZoKrates/zokrates_cli/examples/no_flatten.zok
2022-04-06 20:23:58 +02:00

8 lines
272 B
Text

// this code does not need to be flattened
def main(field x, field y, field z) -> field {
field a = x + 3 * y - z * 2 - x * 12;
assert(3*y - z * 2 - x * 12 == a - x);
assert((x + y) - ((z + 3*x) - y) == (x - y) + ((2*x - 4*y) + (4*y - 2*z)));
return x;
}