Method and device for detecting similarity of source codes
A source program and similarity technology, applied in program control devices, program control design, instruments, etc., can solve problems such as decreased similarity and inaccurate judgment results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0021] refer to figure 1 , figure 1 It is a flow chart of the method for detecting the similarity between two source programs according to the present invention. In the present invention, the source program can be written in any compiled language, such as C, C++, Java, Fortran, Pascal (Delphi, GNU Pascal, FreePascal) and other languages. Firstly, in step S10, optimize and compile the two source programs to be detected respectively, and generate two binary files. For example, this step can be performed using a commercial compiler or an open-source GCC compiler, and different optimization levels can be set in the compiler. The higher the optimization level, the better the optimization effect.
[0022] In the process of optimizing compilation, because the code typesetting format only affects the readability of the code, the compiler will ignore them, and the comments will be deleted in the preprocessing stage of compilation, thus eliminating the noise caused by modifying commen...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com