Text this: Modeling and verification of safety critical systems : a case study on pacemaker