Code processing method and device, equipment and storage medium

A processing method and code technology, applied in the computer field, can solve problems such as memory space bottlenecks

Active Publication Date: 2021-04-06
北京鸿渐科技有限公司
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, wh...

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 and device, equipment and storage medium
  • Code processing method and device, equipment and storage medium
  • Code processing method and device, equipment 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 invention provides a code processing method and device, equipment and a storage medium. The method comprises the following steps: processing a to-be-processed source code, constructing an abstract syntax tree corresponding to the source code, carrying out the control flow analysis of the source code based on the abstract syntax tree, obtaining a control flow analysis result of the source code, and releasing the memory space occupied by the abstract syntax tree. The control flow analysis result comprises abstract syntax tree index information with a public part, a positioning part and a verification part, and finally performing defect analysis on the source code based on the control flow analysis result of the source code to obtain a defect detection result of the source code. In the technical scheme, after the source code is subjected to control flow analysis based on the source code of the abstract syntax tree, the memory space occupied by the abstract syntax tree is released, the memory utilization rate can be reduced, and meanwhile, the obtained abstract syntax tree index information is utilized to ensure that the detection precision of the source code is not influenced; AND the problem of high memory utilization rate 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
IPC IPC(8): G06F8/41G06F11/36
CPCG06F8/42G06F11/3624
Inventor 孙永杰
Owner 北京鸿渐科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products