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

Floating point number error detection method and device based on atomic state function

A state function and error detection technology, applied in error detection/correction, electrical digital data processing, software testing/debugging, etc., can solve the problem of not being able to find test cases that trigger significant errors, running time that cannot be applied to large-scale projects, and cannot be effectively guided Search direction and other issues, to achieve the effect of shortening the running time, improving the error rate, and reducing the additional cost

Active Publication Date: 2021-04-20
PEKING UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the absence of a test oracle, floating-point errors are hidden (no error message) and thus cannot be detected
[0007] (2) The existing method is based on black-box testing technology, and the error rate is not high
Due to the complexity of floating-point arithmetic, the numerical value of the error has no obvious correlation with the numerical value of the test case
The technology based on black-box testing does not attempt to obtain the runtime state of the program, so that the search algorithm can obtain very little information, and cannot effectively guide the direction of the search, resulting in poor search results and the inability to find test cases that trigger significant errors
[0008] (3) Existing technology relies on high-precision test oracle, and the running time is slow
A large amount of computational overhead makes the existing technology unable to be applied to large-scale projects at the runtime level, and is not practically feasible

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
  • Floating point number error detection method and device based on atomic state function
  • Floating point number error detection method and device based on atomic state function
  • Floating point number error detection method and device based on atomic state function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Below in conjunction with accompanying drawing, further describe the present invention through embodiment, but do not limit the scope of the present invention in any way.

[0039] figure 1 Shown is the flow process of the inventive method, specifically comprises the following steps:

[0040] 1) Instrument the source code or program to obtain runtime information;

[0041] 2) Execute the program after stubbing, and obtain the internal state of its runtime;

[0042] 3) Calculate the atomic state function on each floating-point number atomic operation based on the internal state at runtime;

[0043] 4) Use a search algorithm to search for the largest atomic state function on each floating-point number atomic operation;

[0044] 5) Obtain test cases that trigger large errors.

[0045] The present invention includes an instrumentation stage, an inference stage and a search stage.

[0046] 1) Pile insertion stage

[0047] The purpose of instrumentation is to obtain the int...

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 floating-point number error detection method and device based on an atomic state function. The invention inserts the source code or program to obtain the internal state of the program when it is running; calculates the atomic state function of each floating-point number operation through the internal state of the program when it is running, and excavates the internal relationship between the atomic state function and the floating-point number error, Infer the strong correlation between the atomic state function and the error; build a search framework, and use the search algorithm to obtain a test case set that will trigger a high-risk atomic state function; this test case set is the input that has a high error rate and triggers a significant floating-point error . Since the calculation of the atomic state function does not need to introduce high-precision floating-point numbers and does not depend on test oracle, the present invention does not depend on test oracle, has high error detection rate, low running overhead, does not rely on high-precision floating-point numbers, and has fast running time.

Description

technical field [0001] The invention belongs to the technical field of software testing, and relates to a numerical operation program and an error detection method of a floating-point number program, in particular to a floating-point number error detection method and device based on an atomic state function. The method significantly improves the error detection probability and operating efficiency of the floating-point error detection tool, enabling testers to detect more floating-point errors (defects) with larger errors in a shorter time during the testing process. Background technique [0002] Floating-point error detection is the most effective means to ensure the quality of numerical calculation programs and floating-point programs. Static analysis, dynamic testing and other methods are widely used in floating-point error detection technology. Numerical calculation programs and floating-point program testers use static analysis tools for error detection, use interval c...

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/3672
Inventor 邹达明曾沐焓熊英飞张路
Owner PEKING UNIV
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