Duplicated code detection method and device based on abstract syntax tree
An abstract syntax tree and code detection technology, which is applied in the field of repeated code detection based on abstract syntax trees, can solve the problem of reducing detection accuracy by irrelevant information such as blanks and comments
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
[0056] Such as figure 1 As shown, the repetitive code detection method based on the abstract syntax tree provided in the embodiment of the present invention specifically includes the following steps:
[0057] Step 1, construct the abstract syntax tree of the code to be tested and the sample code respectively;
[0058]Step 2, classify the subtrees of the two abstract syntax trees according to the type of the root node;
[0059] Step 3, comparing the subtrees ...
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