Patent ID: 8464204

Claim:
One or more tangible computer-readable storage media for storing computer-executable instructions executable by processing logic, the media storing one or more instructions for: receiving a model of a target system; receiving code generated for the model by a code generation tool; generating or receiving a first intermediate representation data structure (IR1) of the model independently of the code generation tool, the IR1 comprising IR1 elements corresponding to elements of the model; generating or receiving a second intermediate representation data structure (IR2) of the code generated for the model, the IR2 comprising IR2 components corresponding to fragments of the code generated for the model; identifying correspondence between IR1 elements of the first intermediate representation and IR2 components of the second intermediate representation by, for each IR1 element from a subset of IR1 elements, performing: determining a set of one or more IR2 components corresponding to an IR1 element; locating each of the set of IR2 components corresponding to the IR1 element in the second intermediate representation; identifying each of the located IR2 components as corresponding to the IR1 element of the first intermediate representation; and identifying IR2 components of the second intermediate representation that have not been identified as corresponding to at least one IR1 element of the first intermediate representation.