Safe reinforcement learning: A control barrier function optimization approach | Synapse