When Do Program-of-Thought Works for Reasoning? | Synapse