Analysis for Code Clone Detection Based on Token Matchings
Yanbin Tang · Computer Knowledge and Technology · 2009
In source codes,the code clone is usually referred to as a code fragment that is identical or near-identical to another.Many oth-er software engineering tasks,such as program understanding,code quality analysis,plagiarism detection,virus detection and bug detection may require the extraction of syntactically or semantically similar code fragments.There are currently four types of clone detection tech-niques: text-based technique,token-based technique,tree-based technique and PDG-based technique.The token-based detection tech-nique should preprocess the sources code and then carry out clone detection result by the matching algorithm.Clone code detection is an important part of software analysis.