Patent ID: 8621442

Claim:
A method for managing translation of a computer program source code in a first programming language, at a processing device, the method comprising: analyzing, by the processing device, the source code, prior to performing translation of the source code, to determine a plurality of look-alike code snippets; generating a report, by the processing device, to indicate at least one parameter associated with the plurality of look-alike code snippets; generating a super-set code snippet for at least one of the look-alike code snippets; associating the super-set code snippet with at least one of the look-alike code snippets; storing each super-set code snippet in a database; modifying, by the processing device, at least one of the plurality of look-alike code snippets by substituting with at least one pre-stored code snippet based on the at least one parameter, to generate intermediate code in the first programming language; modifying, by the processing device, at least one of the plurality of look-alike code snippets by substituting with at least one stored super-set code snippet based on the at least one parameter, to generate code that is supported by both the first programming language and at least one second programming language different from the first programming language; and translating the intermediate code into at least one second programming language different from the first programming language.