A defect positioning-oriented code searching method
A defect-oriented and search method technology, applied in the field of code search for defect location, can solve the problems of difficult to accurately determine parameters, reduce the number of data processing, and reduce the pertinence and accuracy, so as to improve pertinence, accuracy, and processing efficiency Improve and simplify the effect of processing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0043] combine figure 1 , the code search method oriented to defect location of the present invention includes the following content:
[0044] Step 1. Use the bug report information in the APACHE project to extract the source code file corresponding to the bug report, create ASTpaser, and then parse the source code file to construct the abstract syntax tree of the code file. In this embodiment, a part of the code of the source code file is taken as an example:
[0045]
[0046] Using ASTpaser to analyze, the abstract syntax tree of the code can be obtained as follows Figure 5 shown.
[0047] Step 2. Modify the continuous code in the codediff file as a chunk, use the abstract syntax tree obtained in step 1, traverse the abstract syntax tree for different codediff files, mark and retain the nodes related to the chunk on the tree diagram, and delete irrelevant of nodes. In this embodiment, take the example code in the above step 1 as an example. In the codediff file, 1, 3, ...
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