Source program processing method
Abstract
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A source-program processing method for processing a source program on a computer comprising: dividing code of the source program into components and extracting a group of components by the computer; comparing every two components among the extracted group of components by the computer, thus obtaining a comparison index for the two components; classifying the extracted group of components in a tree-like hierarchical structure by the computer, based on the extracted group of components and the comparison index for every two components, the hierarchical structure having nodes each possessing thre
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (4)
- Jean Mayrand, et al., "Evaluating the Benefits of Clone Detection in the Software Maintenance Activities in Large Scale Systems", 1996, 3 Pages.
- Jean Mayrand, et al., "Experiment on the Automatic Detection of Function Clones in a Software System Using Metrics", IEEE, 1063-6773/96, 1996, pp. 244-253.
- Magdalena Balazinska, et al., "Measuring Clone Based Reengineering Opportunities", 1999, pp. 1-12.
- W.J. Krzanowski, et al., "The Dendrogram", Kendall's Library of Statistics 2, Maltivariate Analysis Part 2, 1995, Chapter 10, Section 4, pp. 65-67.