1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/book/conditional_panic.zok
2022-04-06 15:41:38 +02:00

3 lines
No EOL
127 B
Text

def main(field x) -> field {
return x == 0 ? 0 : 1 / x; // executed even for x := 0, which leads to the execution failing
}