1. A method comprising: receiving a first graphical model representing a dynamic system and a configuration set for the first graphical model, where: the configuration set includes a user-specified change to be performed on the first graphical model, the user-specified change changes a numerical or timing behavior of the first graphical model, the user-specified change includes: adding or removing one or more graphical elements to/from the first graphical model; or modifying one or more parameters associated with the first graphical model; converting the first graphical model into an intermediate representation (IR); altering the IR based on the user-specified change included in the configuration set, where: the altering generates an altered IR, the altered IR represents the dynamic system with the user-specified change; generating a second graphical model based on the altered IR and the configuration set; and generating code in a target language, the code in the target language generated from the second graphical model.