Deriving Specifications of Control Programs for Cyber Physical Systems. (30th April 2019)