Enabling Flow Preservation and Portability in Multicore Implementations of Simulink Models