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, wherein the generated output is program code, and wherein the original model is extensible markup language (XML) code that is interpreted by the specific code generation application and converted into the program code of the generated output; 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 of the inferred version of the original model as compared to the current version of the original model; and using, by one or more processors, detected differences to identify redundant elements in the generated output, wherein the redundant elements are elements in the generated output that would not be produced in a cleaned generated output by the specific code generation application using the current model.