Automated translation of C/C++ models into a synchronous formalism