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

12 lines
202 B
Text

def bound(field x) -> u32 {
return 41 + 1;
}
def main(field a) -> field {
field mut x = 7;
x = x + 1;
for u32 i in 0..bound(x) + bound(x + 1) {
x = x + a;
}
return x;
}