Safe reinforcement learning for dynamical systems using barrier certificates | Synapse