1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/propagate.zok
2020-09-16 17:57:12 +02:00

9 lines
No EOL
194 B
Text

def main() -> field:
field a = 1 + 2 + 3
field b = if 1 < a then 3 else a + 3 fi
field c = if b + a == 2 then 1 else b fi
for u32 e in 0..2 do
field g = 4
c = c + g
endfor
return c * a