Python program type defect detection method based on abstract syntax trees

An abstract syntax tree, defect detection technology, applied in the computer field, can solve problems such as failure to detect defect error types, lack of type defect analysis, etc.
CN108932192AActive Publication Date: 2018-12-04NANJING UNIV

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Applications(China)
Current Assignee / Owner
NANJING UNIV
Publication Date
2018-12-04

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a Python program type defect detection method based on abstract syntax trees. The method comprises the steps of (1) collecting Python software defect report information and extracting a defect identifier and a defect error type, (2) obtaining source codes of two versions of programs before and after defect repair, (3) generating abstract syntax trees corresponding to the twoversions of source codes, matching and obtaining a change function node and marking the defect error type, (4) generating a feature vector of a defect code according to the context information of thechange function node, (5) training a multi-classification models on a defect code feature vector by using the machine learning technology, and (6) reminding a developers of possible type defect information in testing a Python program file. The invention aims to solve the problems of the lack of the type defect analysis for a Python language and the inability to detect a possible defect error typeat present, thus the management of software quality is guided, and the maintainability of the software is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the field of computer technology, in particular to the field of software technology, and in particular relates to a Python program type defect detection method based on an abstract syntax tree. Background technique

[0002] A software defect is a problem or error that exists in a computer program or system that will destroy the normal operation capability of the software, and is the failure or violation of a certain function that the system needs to achieve. In the process of software development and maintenance, due to the influence of various factors, software defects are difficult to avoid and often appear. In the software development stage, software defects accompany each process of the software development process. If the requirements are not fully clarified in the requirements analysis, it will bring many unnecessary software defects. If the development process does not adopt excellent management methods, it will also lea...

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