Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code processing method, apparatus, device and storage medium

A processing method and code technology, applied in the computer field, can solve problems such as memory space bottlenecks, and achieve the effect of reducing the usage rate and solving the large memory usage rate

Active Publication Date: 2021-11-09
北京鸿渐科技有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present application provides a code processing method, device, equipment and storage medium, which are used to solve the problem of bottlenecks in memory space when a large number of source codes are detected

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code processing method, apparatus, device and storage medium
  • Code processing method, apparatus, device and storage medium
  • Code processing method, apparatus, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0080] The terms "first", "second", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application provides a code processing method, device, device and storage medium. By processing the source code to be processed, an abstract syntax tree corresponding to the source code is constructed, and then the source code is analyzed based on the abstract syntax tree to obtain the source code. The control flow analysis results of the abstract syntax tree are released, and the memory space occupied by the abstract syntax tree is released. The control flow analysis results include: the index information of the abstract syntax tree with common parts, positioning parts and verification parts. Finally, the source code is analyzed based on the control flow analysis results of the source code. Defect analysis is performed to obtain the defect detection results of the source code. In this technical solution, after the control flow analysis of the source code based on the source code of the abstract syntax tree, the memory space occupied by the abstract syntax tree is released, which can reduce the memory usage rate, and at the same time, use the obtained abstract syntax tree index information to ensure The detection accuracy of the source code is not affected, and the problem of large memory usage in the prior art is solved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a code processing method, device, equipment and storage medium. Background technique [0002] Static code analysis technology refers to scanning the program code through lexical analysis, syntax analysis, control flow, data flow analysis and other technologies without running the program code, and verifying whether the code meets the requirements of standardization, security, reliability, and reliability. A code analysis technique for indicators such as maintainability. [0003] In the prior art, the main principle of the code analysis method is: firstly, the code is processed to construct an abstract syntax tree; secondly, the information of the abstract syntax tree is used for control flow analysis; , value dependency analysis and other superior analysis methods, and finally aiming at specific problems, comprehensive analysis methods at various levels, to deter...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41G06F11/36
CPCG06F8/42G06F11/3624
Inventor 孙永杰
Owner 北京鸿渐科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products