Prescriptive Safety-Checks through Automated Proofs for Control-Flow Integrity