Check patentability & draft patents in minutes with Patsnap Eureka AI!

An intelligent analysis method for software programs

A technology of intelligent parsing and software programs, applied in the field of parsing, can solve problems such as difficulty in capturing dependencies, increased depth, easy loss of dependent information, etc.

Active Publication Date: 2021-03-19
BEIHANG UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. The neural network that only relies on the tree structure is easy to cause the problem of gradient disappearance;
[0006] 2. The method of traversing the entire AST from the bottom up or using a sliding window is easy to lose the dependency information between the code blocks contained in the original program;
[0007] 3. Most of the existing tree-based methods convert the original AST into a binary tree form, which destroys the original structural information, and will greatly increase the depth of the tree and further bring difficulties in capturing dependencies

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
  • An intelligent analysis method for software programs
  • An intelligent analysis method for software programs
  • An intelligent analysis method for software programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0012] Such as figure 1 Shown is the overall architecture of the AST-based serialized neural network of the present invention, and the neural network structure of the present invention is a hierarchical vector representation method. The steps of this method are as follows:

[0013] Step 1: At the bottom layer, the original program is converted into AST and further divided to obtain the corresp...

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 invention proposes an intelligent analysis method for a software program. The intelligent analysis method is an AST-based serialized neural network, and the AST-based serialized neural network is a hierarchical vector representation method. The implementation steps are as follows: Step 1-1: At the bottom layer, after converting the original program into AST, it is further divided to obtain the corresponding code block sequence. The code blocks are ordered and match the original statement order; Step 1- 2: Each code block uses a recursive encoder to encode this subtree into a vector e 1 , e 2 ,...,e t ; Step 1-3: Pass the obtained vector sequence through a bidirectional recurrent layer to extract the dependent features between code blocks; Step 1-4: All the multi-dimensional features of the time step are sampled by the pooling layer to obtain the final single vector representation.

Description

technical field [0001] The invention relates to an analysis method, in particular to an intelligent analysis method for software programs. Background technique [0002] Program comprehension plays a vital role in many software engineering applications. On the one hand, it can help developers improve development efficiency and code quality, and on the other hand, it can also help software maintenance. Typical applications include code classification, code clone detection, defect prediction, and code summary generation. Among them, the most important and difficult part of realizing program understanding is how to establish an effective program representation method to capture the semantics of the program itself as much as possible, such as the function of a program. [0003] Although we can manually design or extract program features to achieve many related applications, the disadvantage of this method is that it requires a lot of labor and the features obtained are often li...

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/41
CPCG06F8/427G06F8/44G06F8/4441G06N20/00G06N3/10
Inventor 王旭孙海龙张建刘旭东
Owner BEIHANG UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More