Source program processing method
AssigneeKabushiki Kaisha Toshiba
InventorTakeo Imai
Life of this patent
Estimating the term…
Loading patent…
AssigneeKabushiki Kaisha Toshiba
InventorTakeo Imai
Estimating the term…
Comparison indices each for two components incorporated in a source program are used for easy and quantitative evaluation of functional redundancy in the program, effective and accurate extraction of redundant code segments from the program and also effective and accurate extraction of components to be modified simultaneously. A tree T is entered and an initial level of functional redundancy m(P) is set at 0 in a program P expressed by the tree T. The top node of the tree T is selected as a node N. A specific computation is performed for the top node selected as the node N with attribute information including the similarity and the number of children of the node N to obtain a level α. The level α is added to the functional redundancy m(P). The specific computation is performed for every node in the tree T, to obtain functional redundancy m(P) including the total of α for all nodes.
A source-program processing method for processing a source program on a computer comprising:
A method for extracting redundant code segments in a source-program on a computer, comprising:
A class-hierarchy reorganization method for reorganizing class hierarchy in a source program written in an object-oriented language on a computer, comprising extracting a group of class definitions having functionally-redundant code segments as a candidate for reorganization from the source program based on class group information on class definitions and comparison indices for class definitions in the source program, when a user indicates necessity for reorganizing class hierarchy, the extracting the group of class definitions including:
A computer readable medium containing a program for processing a source program on a computer, the program comprising instructions for:
A computer readable medium containing a program for extracting redundant code segments in a source-program on a computer, the program comprising instructions for:
A computer readable medium containing a program for reorganizing class hierarchy in a source program written in an object-oriented language on a computer, the program comprising instructions for extracting a group of class definitions having functionally-redundant code segments as a candidate for reorganization from the source program based on class group information on class definitions and comparison indices for class definitions in the source program, when a user indicates necessity for reorganizing class hierarchy, the extracting the group of class definitions including:
Dependencies are inferred from the claim text.