A code similarity detection method and system based on relational variable graph
A detection method and variable graph technology, applied in the field of code similarity detection based on relational variable graphs, can solve the problems of high space-time complexity, low detection accuracy, difficulty in dealing with redundant code implantation, etc., and achieve reduced complexity and strong The effect of anti-interference ability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 2
[0092] figure 2 It is a schematic structural diagram of a code similarity detection system based on a relational variable graph in an embodiment of the present invention, as figure 2 As shown, the code similarity detection system based on the relationship variable graph provided in this embodiment includes:
[0093] The removing module 100 is used for removing the comment information in the original code and the detection code.
[0094] The identifier determination module 200 is configured to determine the identifiers that have a transfer data relationship between the processed original code and the processed detection code.
[0095]Corresponding relationship determining module 300, configured to determine a first corresponding relationship and a second corresponding relationship; the first corresponding relationship is the corresponding relationship between identifiers in the processed original code; the second corresponding relationship is the corresponding relationship i...
Embodiment 3
[0099] This embodiment provides a code similarity detection method based on a relational variable graph, the method comprising:
[0100] Step 1, removing comment information in the code program; the code program includes original code and detection code.
[0101] Step 1 plays an auxiliary role in code detection. Removing comment information and header file information is beneficial to the extraction of subsequent identifiers and relationships. The specific steps include:
[0102] Remove the comment information in the code, such as: the content between / ** / and the content after / / , and remove the imported header file information.
[0103] Step 2, extracting identifiers that can transfer data relations in the processed code program.
[0104] The purpose of step 2 is to extract the identifier that can transfer the data relationship in the code, which is to lay the foundation for extracting the relationship later. The specific steps include:
[0105] Here, the C language progra...
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