Hoare Logic and Model Checking