C language-oriented source code clone detection method
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- UNIV OF ELECTRONICS SCI & TECH OF CHINA
- Publication Date
- 2022-03-15
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention belongs to the technical field of clone code detection, and in particular relates to C language-oriented source code clone detection. Background technique
[0002] The current research on clone code detection generally divides clone code into three categories:
[0003] (1) Type1: Except for spaces and comments, the cloned code is exactly the same;
[0004] (2) Type2: The cloned code with the same syntax and modified identifiers, constants, and types;
[0005] (3) Type3: On the basis of Type2, further modify the statement, such as adding a statement, removing the statement, modifying the statement statement, etc. to generate cloned code.
[0006] The early idea of code cloning detection is very intuitive, and the code is directly treated as pure text (string), and the similarity of the code is judged from the similarity of the text. The representative technology is Baker's Dup, which, like a general web page similarity detection tool,...