System and method for transplanting source code
AssigneeInternational Business Machines Corporation
InventorsAndrew Lawrence Frenkiel, Bugra Gedik
Life of this patent
Estimating the term…
Abstract
A method of integrating an existing source code into a target source code, the method including mapping a plurality of candidate mappings between a change point of the existing source code and a plurality of change points of the target source code, selecting a candidate mapping of the plurality of candidate mappings, automatically updating the existing source code based on the candidate mapping having been selected, and transplanting the existing source code having been updated into the target source code.
Claims19
A processor-executed method of integrating an existing source code into a target source code, the method comprising:
- mapping a plurality of candidate mappings between a change point of the existing source code and a plurality of change points of the target source code;
- selecting a candidate mapping of the plurality of candidate mappings;
- forming a plurality of change point pairs by pairing the change point of the existing source code with each change point of the plurality of change points of the target source code;
- selecting the plurality of suggested candidate mappings from the plurality of change point pairs;
- filtering a number of available change point pairs to be selected from, based on a previously selected candidate mapping;
- automatically updating the existing source code based on the candidate mapping having been selected, using a processor on a computer;
- and
- transplanting the existing source code having been updated into the target source code.
14-15. (canceled)
A method for integrating a fragment of an existing source code into a target source code, the method comprising:
- mapping a plurality of candidate mappings between a change point of the fragment of existing source code and a plurality of change points of the target source code;
- selecting a candidate mapping of the plurality of candidate mappings;
- forming a plurality of change point pairs by pairing the change point of the existing source code with each change point of the plurality of change points of the target source code;
- selecting the plurality of suggested candidate mappings from the plurality of change point pairs;
- filtering a number of available change point pairs to be selected from, based on a previously selected candidate mapping;
- automatically updating the fragment of the existing source code based on the candidate mapping having been selected, using a processor on a computer;
- and
- transplanting the fragment of the existing source code having been updated into the target source code.
A non-transitory tangible computer-readable storage medium embodying a program of machine-readable instructions executable by a digital processing apparatus to perform an instruction control method, wherein the program integrates an existing source code or a fragment thereof into a target source code, the instruction control method comprising:
- mapping a plurality of candidate mappings between a change point of existing source code or a fragment thereof and a plurality of change points of the target source code;
- selecting a candidate mapping of the plurality of candidate mappings;
- forming a plurality of change point pairs by pairing the change point of the existing source code with each change point of the plurality of change points of the target source code;
- selecting the plurality of suggested candidate mappings from the plurality of change point pairs;
- filtering a number of available change point pairs to be selected from, based on a previously selected candidate mapping;
- automatically updating the existing source code or the fragment thereof based on the candidate mapping having been selected;
- and
- transplanting the existing source code or the fragment thereof having been updated into the target source code.
Dependencies are inferred from the claim text.