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

A Hierarchical Diagnosis Method for Software Errors Based on Bayesian Network Reasoning

A technology of Bayesian network and hierarchical diagnosis, applied in error detection/correction, software testing/debugging, electrical digital data processing, etc.

Inactive Publication Date: 2020-08-21
WUHAN UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] Aiming at the problem that the existing error diagnosis method based on the program dependency graph can only diagnose local anomalies in the process of program execution, and needs to build a large-scale graph structure, the present invention designs a layered error diagnosis framework , first perform error diagnosis at the function layer to help program testers locate the specific function where the bug is located

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
  • A Hierarchical Diagnosis Method for Software Errors Based on Bayesian Network Reasoning
  • A Hierarchical Diagnosis Method for Software Errors Based on Bayesian Network Reasoning
  • A Hierarchical Diagnosis Method for Software Errors Based on Bayesian Network Reasoning

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0096] The technical solution of the present invention will be described in detail below in conjunction with the drawings and embodiments.

[0097] Examples are attached Figure 3a And attached Figure 5a The source program shown is an example.

[0098] Based on the above-mentioned source program, the flow chart of the software error hierarchical diagnosis method based on Bayesian network reasoning designed by the present invention is shown in the appendix figure 1 , all steps can be automatically run by those skilled in the art using computer software technology. The specific implementation process of the embodiment is as follows:

[0099] Step 1. Using functions as code elements, construct a function-layer Bayesian Network based Program Dependence Graph. (BNPDG, BayesianNetwork based Program Dependence Graph) BNPDG is a Bayesian network model that represents code element dependencies. The function layer BNPDG is represented as a triplet (V,E,P). V represents a collecti...

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 relates to a software error hierarchical diagnosis method based on Bayes network reasoning. The method comprises steps as follows: creating a function layer, applying MIC theory, improving the accuracy of statistical dependence, improving and applying a Laplace smoothing strategy, and solving test data rarefaction. Test prediction is performed, and whether a test case is a failure test case of the whole program is judged. Error location is performed, the doubtful degree of functions is calculated and sequenced, a statement level BNPDG of the corresponding function is created, the functions are inspected one by one according to the doubtful degree sequence, test prediction is performed on the statement level BNPDG of the functions, a bug function is found, error location is performed on the statement level BNPDG of the bug function, and the doubtful degree sequence of all statements in the function is obtained. The statements are checked one by one according to the doubtful degree sequence until the bug statement is found. Space consumption and time consumption of error diagnosis are reduced, and the problem of presence of local doubtful degree of calculation of RankCP and other technologies is solved.

Description

technical field [0001] The invention belongs to the technical field of software engineering software testing, in particular to a software error hierarchical diagnosis method based on Bayesian network reasoning. Background technique [0002] (1) Software testing technology [0003] A complete software development cycle is divided into six stages: problem definition and planning, requirements analysis, software design, program coding, software testing and operation and maintenance. Among them, software testing, as the last step before the software faces users, determines the quality of the software, and is particularly important in the entire software development cycle. With the continuous development of commercial software, the complexity of software is getting higher and higher, the development cycle is getting shorter and shorter, and users' requirements for software are becoming more and more stringent, which undoubtedly further enhances the importance of software testing...

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): G06F11/36
CPCG06F11/3688
Inventor 余啸刘进殷晓飞崔晓辉施泽洋井溢洋
Owner WUHAN 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