let f(x) { x=2*x; if (x>0) then x=x-1 else x; while (x>0) do { x=x-1 } } in f(3)