Source code transformation
AssigneeInternational Business Machines Corporation
InventorsCary Lee Bates, John Matthew Santosuosso
Life of this patent
Estimating the term…
Abstract
Embodiments of the invention generally provide a method, article of manufacture, and apparatus for code transformation. In one embodiment, the invention provides a method of transforming source code. The method determines if a source code statement includes a first operation that receives input from a result of a second operation, where the second operation acts on a plurality of arguments. If the source code includes the first operation, then the method transforms the source code into a plurality of statements that include the first operation acting on one of the arguments.
Claims23
A method of transforming source code, comprising:
- determining if a source code statement includes a first operation that receives input from a result of a second operation wherein the second operation acts on a plurality of arguments;
- and
- if the source code includes the first operation, then transforming the source code into a plurality of statements, wherein each statement contains the first operation acting on one of the plurality of arguments.
A method of transforming source code, comprising:
- parsing a source code statement;
- determining if the source code statement includes a first operation that receives as input a result of a second operation wherein the second operation acts on a plurality of arguments;
- if the source code includes the first operation then;
- determining the order of the arguments;
- and
- transforming the source code statement into a plurality of statements,
- wherein each statement contains the first operation acting on one of the plurality of arguments.
A computer readable medium storing a software program that, when executed by a processor of a computer, causes the computer to perform an operation comprising:
- determining if a source code statement includes a first operation that receives as input a result of a second operation wherein the second operation acts on a plurality of arguments;
- and
- if the source code includes the first operation then transforming the source code into a plurality of statements, wherein each statement contains the first operation acting on one of the arguments.
Dependencies are inferred from the claim text.