Detection method of code copy

A detection method and code technology, applied to the detection of plagiarism of computer program codes, the field of detection of code plagiarism

Inactive Publication Date: 2009-04-01
BEIHANG UNIV
View PDF0 Cites 45 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Moreover, most tools can only detect a small amount of plagiarism methods, and the code only needs to make some equivalent changes in syntax and semantics to escape plagiarism detection

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Detection method of code copy
  • Detection method of code copy
  • Detection method of code copy

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0085] See figure 1 , figure 2 , image 3 As shown, a method for detecting code plagiarism, its specific implementation is as follows:

[0086] Step 1 Obtaining the values ​​of optimized compilation and disassembly code similarity 1 (SCD1) and optimized compilation and disassembly code similarity 2 (SCD2);

[0087] The detection program is optimized and compiled into an executable binary file, and the binary file is disassembled into assembly code, from which the assembly instructions of the original code program part are extracted, and information irrelevant to the program code segment is deleted. After noise processing, the similarity decision function is used to calculate Assemble the set of instructions to get the values ​​of SCD1 and SCD2.

[0088] Noise processing is to filter the offset address, function address and immediate value in the assembly code, and convert them into identifiers OFFSET, FUNCTION and CONSTANT.

[0089] Let P 1 ,P 2 are two programs to be ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a detection method for codes plagiarism, which collects the similar values of two codes to be detected on different aspects as the input vector of an NN and obtains a conclusion whether plagiarism exists according to the study of the NN. The detection method can eliminate the effects of the codes on the two aspects of distribution and grammar equivalent transformation, can identify the plagiarism means on the aspect of semantic analysis as possible and improve the detection tool of the original detection tool. The detection method has a high detection precision and a good effect, can detect more plagiarism means and is suitable to be popularized.

Description

technical field [0001] The invention relates to a detection method for code plagiarism, in particular to a detection method for computer program code plagiarism, which belongs to the technical field of computer program detection. Background technique [0002] Currently, with the continuous development of computer technology. From small programming coursework for computer science to large software products. Cloning, plagiarism, and plagiarism in program codes are becoming more and more serious. This has a lot to do with the fact that electronic files such as program codes are easy to copy. Compared with natural language, the grammatical rules of programming language are relatively simple, and plagiarists only need to change the appearance of the code through an editor to achieve the purpose of plagiarism. [0003] Generally speaking, if a piece of code is completely copied or only slightly modified from another piece of code, it can be considered as plagiarized code. Plag...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F9/45G06N3/06
Inventor 熊浩晏海华
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products