1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/propagate.zok
2022-06-28 19:23:45 +02:00

10 lines
No EOL
207 B
Text

def main() -> field {
field a = 1 + 2 + 3;
field b = 1 < a ? 3 : a + 3;
field mut c = b + a == 2 ? 1 : b;
for u32 e in 0..2 {
field g = 4;
c = c + g;
}
return c * a;
}