Reusing existing computation
notReused :: Comp [Field]
notReused = do
x <- input Public
let y = x * x * x * x
return [y, y]> elaborate notReused
Right {
expression:
[ $FI0 * $FI0 * $FI0 * $FI0
, $FI0 * $FI0 * $FI0 * $FI0
]
compuation state:
{
variable counter: 0
input variable counter: 1
address counter: 0
input variables: $I0
num assignments: []
bool assignments: []
assertions: []
}
}reuse to the rescue!
reuse to the rescue!Last updated