摘要 |
A matching portion detector (11) detects matching portions the respective contents of which match each other, in a source program (1). A similar portion detector (13) detects, on the basis of the matching portions detected by the matching portion detector (11), similar portions each containing a part that matches a part of another similar portion and another part that does not match, and each satisfying a criterion, in the source program (1). A non-matching portion analyzer (14) analyzes the similar portion detected by the similar portion detector (13), and outputs an index indicating a degree of similarity between the similar portion and another similar portion that partially match each other. |