Method for detecting redundant code defects based on static analysis
A defect detection and redundant code technology, applied in the field of redundant code detection
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach 1
[0016] Specific implementation mode one: combine figure 1 Describe this implementation mode, the concrete steps that this implementation mode comprises are as follows:
[0017] Step 1: Input the program to be tested and parse it into an abstract syntax tree;
[0018] Step 2: Analyze statements that may contain explicit idempotent operations, and detect explicit idempotent operations: traverse the abstract syntax tree of the program, process specific types of abstract syntax tree subtrees that may contain idempotent operations, and determine whether there are defects ;
[0019] Step 3: For locally defined variables, use the process internal analysis method to detect redundant assignment statements: on the basis of the abstract syntax tree, track each assigned variable, if it is not assigned before the end of the function or before it is reassigned use, it is judged as a defect;
[0020] Step 4: traverse the abstract syntax tree of the program, create a corresponding Program ...
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