Defect positioning method based on context awareness

A positioning method and context technology, applied in neural learning methods, instruments, biological neural network models, etc., can solve the problem of not considering the accuracy of defect positioning, and achieve the effect of improving defect positioning and improving effectiveness
CN112965894AActive Publication Date: 2021-06-15CHONGQING UNIV

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
CHONGQING UNIV
Publication Date
2021-06-15

Smart Images

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

Abstract

The invention relates to a defect positioning method based on context awareness, which is characterized in that a program slicing technology is utilized to construct a defect context, the context can be expressed as a directed graph expressed by a program dependency graph, nodes in the graph are statements having a direct or indirect association relationship with failures, and edges are association relationships among the statements. On the basis of the graph, the CAN embeds each node in the graph into a node representation vector by adopting one-hot coding, a dependency relationship between statements is obtained by utilizing GNN, and the CAN is trained by utilizing a test case on the basis of the node representation vectors, so that a more accurate node representation vector can be obtained. And finally, a virtual test case set is constructed through a method that each statement in the defective context statements of the defective target program is covered by only one test case and only one defective context statement is covered by one test case. The test case set is input into the trained GNN to obtain a suspicious value of each statement. According to the method, defect context is analyzed and incorporated into suspicious evaluation to improve defect positioning, and experimental analysis shows that the method can obviously improve the effectiveness of defect positioning.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a defect location method, in particular to a context-aware defect location method. Background technique

[0002] Automated software debugging technology plays a very necessary role in helping developers reduce the time-consuming and laborious labor in the testing process, and it can greatly reduce the burden on developers. Researchers have therefore proposed many software defect localization methods to assist developers in finding defects in programs by analyzing program execution that leads to unexpected outputs. Among them, the method based on program spectrum (SFL) is one of the most popular defect localization methods.

[0003] The defect localization method based on program spectrum (SFL) uses program coverage information and test case results to build a defect localization model and calculates the suspicious value of each executable statement in a program as a defect statement. SFL defines an information model called a ...

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