The dynamic morse theory of control systems. (2020)