Software homology detection method and device based on abstract syntax tree and semantic matching
A semantic matching and syntax tree technology, applied in computer security devices, platform integrity maintenance, instruments, etc., can solve problems such as inability to deal with plagiarism in the order of software source codes, and achieve the effect of effective software homology detection
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0043] The embodiment of the present invention provides a software homology detection method based on summary syntax tree and semantic matching, as shown in the attached figure 1 shown, including:
[0044] Step 11, generating an abstract syntax tree corresponding to the software source code, and adjusting the subtrees in the abstract syntax tree that match the same semantic feature rules and have the same semantics into a unified structure;
[0045] Step 12, calculating the hash (Hash) value of the subtree in the summary syntax tree;
[0046] In step 13, software homology detection is performed by judging whether the hash values of subtrees with the same number of nodes are consistent.
[0047] Through the implementation of the software homology detection method based on abstract syntax tree and semantic matching provided by the embodiment of the present invention, accurate and effective software homology detection can be performed on the grammatical level combined with sem...
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