1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/examples/test1.code
2017-03-01 00:15:30 +01:00

13 lines
244 B
Text

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