1. A method for maintaining integrity of output of a code generator, the method comprising: determining, by one or more processors, a generated output that has been generated by a specific code generation application based on an original model, wherein the original model is a structured model used to construct a software program; analyzing, by one or more processors, the generated output to infer contents of an inferred version of the original model; comparing, by one or more processors, the inferred version of the original model with a current version of the original model to detect differences in source elements; and using, by one or more processors, detected differences to identify redundant elements in the generated output.