
Add case to r1cs swap_sub Add fmt::Debug implementation for absy Rewrite exampe simple_ifelse.code for new IfElse syntax Add example brackets.code
6 lines
143 B
Text
6 lines
143 B
Text
// simple ifelse example
|
|
// e.g.: x = 5
|
|
def qeval(x):
|
|
y = if x < 3 then 1 else 5 fi
|
|
z = if y < x then x**3 else y**3 fi
|
|
return x + y + z
|