1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/for.zok

11 lines
193 B
Text

def bound(field x) -> u32:
return 41 + 1
def main(field a) -> field:
field x = 7
x = x + 1
for u32 i in 0..bound(x) + bound(x + 1) do
// x = x + a
x = x + a
endfor
return x