fun f(x1, x2, x3, ...): t1 = 3*x1 + 2*x2 t2 = 4*t1 + 5*x3 ... return (some subset of t vars)
The cost model is just the number of additions performed.
The cost model is just the number of additions performed.