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

Representation Method of Source Code Encoding Sequence Based on Static Program Analysis

A static program analysis, coding sequence technology, applied in the creation/generation of source code, reverse engineering, software maintenance/management, etc., can solve problems such as multiple computing resources and time, ignoring abstract syntax tree processing, etc., to achieve good retrieval performance and Matching performance, the effect of simplifying the tree structure

Active Publication Date: 2021-04-02
NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, when applying methods based on abstract syntax trees, most of them directly use abstract syntax trees, ignoring the further processing of abstract syntax trees, resulting in the data processing methods for tree structures usually requiring more computing resources and time.

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
  • Representation Method of Source Code Encoding Sequence Based on Static Program Analysis
  • Representation Method of Source Code Encoding Sequence Based on Static Program Analysis
  • Representation Method of Source Code Encoding Sequence Based on Static Program Analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0028] figure 1 The source code encoding sequence representation method based on static program analysis is an embodiment of the present invention.

[0029] Such as figure 1 As shown, the source code encoding sequence representation method based on static program analysis in the embodiment of the present invention includes steps:

[0030] S1, get source code text.

[0031] S2, converting the source code text to obtain the original abstract syntax tree corre...

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 source code coding sequence representation method based on static program analysis. The source code coding sequence representation method comprises the steps of obtaining a source code text; converting the source code text to obtain an original abstract syntax tree corresponding to the source code text; simplifying the original abstract syntax tree; and performing traversal encoding on the simplified original abstract syntax tree to obtain an encoded sequence representation of the source code text. According to the method, the tree structure of the original abstract syntax tree corresponding to the source code text can be simplified, the tree structure of the original abstract syntax tree can be well converted into the coding sequence, and meanwhile it can be guaranteed that the coding sequence has good retrieval performance and matching performance.

Description

technical field [0001] The invention relates to the technical field of static program analysis of codes, in particular to a source code encoding sequence representation method based on static program analysis. Background technique [0002] In the software industry, an ordered collection of programming languages ​​that can complete a predetermined function is usually regarded as a code segment, so there are a large number of code segments in the software industry. And with the development of the software industry, the rapid increase of private code libraries and open source software projects has further accumulated a large number of code segments that can realize various functions. Therefore, in the current software development, the effective reuse of existing code segments, Has become a fast and efficient software development activity. How to find existing code segments that meet the needs of developers from the existing code base, and accelerate the software development pr...

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/75G06F8/36
CPCG06F8/36G06F8/75
Inventor 黄志球喻垚慎李伟湋沈国华张静艾磊
Owner NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
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