1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/compile_errors/out_of_bounds.zok
2021-08-23 00:56:45 +02:00

4 lines
No EOL
142 B
Text

def main(field a, field b) -> field:
field[10] arr = [0; 10]
u32 index = if [a, 1] != [b, 0] then 1000 else 0 fi
return arr[index]