Automated synthesis of embedded control software