A Convergent Legendre Spectral Collocation Method for the Variable-Order Fractional-Functional Optimal Control Problems | Synapse