1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/test1.code
2018-08-20 16:43:53 +02:00

13 lines
297 B
Text

// only using sub, no need to flatten
def main(field x) -> (field):
field a = 5
field b = 7
field c = if a == b then 4 else 3 fi
c == 3
field d = if a == 5 then 1 else 2 fi
d == 1
field e = if a < b then 5 else 6 fi
e == 5
field f = if b < a then 7 else 8 fi
f == 8
return x