Automatic synthesis and verification of real-time embedded software for mobile and ubiquitous systems