Referring to unidimensional motion, it is obvious that it doesn't always make sense to write the speed as a function of position. Seems to me that this is a necessary condition to derive formulas like:
$$v^2=v_0 ^2 +2\int_{x_0}^{x}a\cdot dx$$
In fact, in the first step of the demonstration (the one I saw, but I think that this step is crucial) it's required to write $a=dv/dt=(dv/dx)(dx/dt)$, that doesn't make sense if $v$ isn't a function of $x$.
When can one rigorously write $v=v(x)$?