Method for program error location based on conditional probability

A positioning method and technology for program errors, applied in error detection/correction, software testing/debugging, instruments, etc., can solve problems such as difficult, time-consuming, and boring selection of breakpoint locations

Inactive Publication Date: 2017-05-31
ZHEJIANG SCI-TECH UNIV
View PDF1 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Defect localization aims to detect and find faulty codes that cause software failures, and is a very tedious and time-consuming activity
The traditional manual debugging method of setting breakpoints is not only difficult to select the breakpoint location, but also has a huge time cost; therefore, the automation of defect location has become a common goal pursued by software academia and industry
At present, the automatic defect localization method is not yet mature, and it is still a research hotspot in the field of software engineering. In recent years, researchers have tried to propose a series of defect localization methods from different perspectives, including fault localization methods based on slices, and fault localization methods based on invariants. Localization methods, model checking methods, error localization methods based on program spectrum, etc.

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
  • Method for program error location based on conditional probability
  • Method for program error location based on conditional probability
  • Method for program error location based on conditional probability

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to describe the present invention more specifically, the technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0034] In order to facilitate browsing and calculation, the present invention can use symbols to represent four kinds of operating conditions of a certain statement under different test cases, as shown in Table 1:

[0035] Table 1

[0036]

[0037] For example, a 11 Represents the statistics of the statement that was executed when the test case was run and the result of the test case was a failure. If a statement happens to be executed under a certain use case and the result of the test case is a failure, then the statement's a 11 The count is incremented by 1. In the following content, this form will be used to represent different spectrum formulas.

[0038]Among the existing program error location methods, some refer to formulas in other fields an...

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 discloses a method for program error location based on conditional probability. According to the method, by empirical research on inherent relevancy between a program frequency spectrum and execution results, conditional probability thought of statistics is introduced, and a P model for quantitative analysis on relationship strength evaluation of the program frequency spectrum and execution results is constructed. According to some classical SFL methods, a specific anomaly degree calculation formula is analyzed by means of the P model put forward, and thus essential reasons for defect location precision and efficiency difference are studied. In order to verify effectiveness of the method, in empirical research, 7 programs in a Siemens suite and a Space program are taken as standard evaluating objects, and test results indicate that compared with 13 existing classical defect location methods, the method has a better defect location effect.

Description

technical field [0001] The invention belongs to the technical field of software program error location detection, and in particular relates to a program error location method based on conditional probability. Background technique [0002] The increasing scale and complexity of software has brought great challenges to software development and debugging technology. In the face of software defects that follow in the software development process, software testing is an important technical means to improve its quality and reliability. Therefore, people's investment in software testing is increasing year by year. During the software testing process, when the behavior of the tested software is inconsistent with expectations (that is, failure), developers need to carry out software debugging immediately. The primary task of software debugging is the defect Positioning, which provides the basis for subsequent bug fixes. [0003] Defect localization aims to detect and find the wrong ...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/3696
Inventor 舒挺黄明献王磊
Owner ZHEJIANG SCI-TECH UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products