1. A computing device-implemented method, comprising: providing a state diagram in a state diagram environment, where the state diagram includes a first input signal that include a first sample rate and a second input signal that includes a second sample rate; generating an intermediate representation of the state diagram that propagates the first sample rate and the second sample rate through the state diagram; and generating code corresponding to the state diagram based on the intermediate representation, where the generated code includes the propagated first sample rate and second sample rate.