Method for detecting error of program control flow

A technology of error detection and control flow, applied in the direction of program control design, error detection/correction, instrumentation, etc., can solve problems such as difficult to handle nested calls and recursive calls, unresolved reliability and performance, and increased impact on program performance

Inactive Publication Date: 2010-06-30
NAT UNIV OF DEFENSE TECH
View PDF0 Cites 52 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

False branches will cause the program to exit normally but the execution result is an error, so it is very dangerous. At the same time, it is also a difficult point in the control flow error detection. At present, many methods cannot solve this problem.
[0015] (2) Control flow error detection inside the basic block: the existing control flow detection methods mainly focus on the correctness of the control flow between the basic blocks, but there is no relatively perfect solution to the control flow error inside the basic block
Some methods do not consider the control flow detection between procedures, that is, they do not use function call i

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 detecting error of program control flow
  • Method for detecting error of program control flow
  • Method for detecting error of program control flow

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0057] figure 1 is a schematic diagram of the basic block label format.

[0058] The basic block tag consists of two parts: the basic tag encoding and the encoding used for the detection of control flow inside the basic block. The basic label encoding of each basic block is the encoding of the sequence number of the basic block in the general basic block list of the program, which is unique; and the encoding of the internal control flow detection of the basic block is the internal control flow detection instruction required by the block. Binary encoding of the count, which accounts for the last few bits of the entire basic block label.

[0059] figure 2 is the general flow chart of the present invention. Include the following steps:

[0060] In the first step, the program that needs to be checked for control flow is compiled into assembly code by the compiler.

[0061] The second step is to identify the basic blocks of the program based on the program assembly code and d...

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 detecting the error of a program control flow and intends to overcome the difficulties in increasing the detection rate of the errors of the control flow by the conventional method and solve the difficult problem with the detection of the control flow inside basic blocks and among processes. The method comprises the following steps according to the technical scheme of the invention: firstly, identifying basic blocks and confirming the routing relation among the basic blocks; then, confirming the maximum required number of detection commands of the internal control flow of each basic block according to the requirements of the internal control flow and the constitutive characteristics of the basic blocks; designing the labels for the basic blocks on that basis, and distributing the unique static label to each basic block; then, inserting the detection commands into the head part, inner part and tail part of each basic block in the program respectively, re-assembling and re-linking the assembler of the inserted detection commands of the control flow, and generating an executable program for achieving the detection of the error of the control flow.

Description

technical field [0001] The invention relates to a method for detecting program control flow errors, in particular to a method for detecting control flow errors caused by hardware transient faults in a space radiation environment. Background technique [0002] Space exploration activities require a lot of investment and high risk, and have extremely high requirements for computing reliability. The main factor affecting the safety of space probes in space is the radiation of cosmic rays, because there are a large number of high-energy particles including electrons, protons, particles and heavy ions in the cosmic environment. When the cosmic rays composed of these particles bombard the semiconductor of the aerospace computer When the circuit is damaged, it may cause a transient change in the stored power in the PN structure. This transient fault is also commonly referred to as the single event effect SEE (Single Event Effect). Although single event effects generally do not cau...

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
IPC IPC(8): G06F11/00G06F9/45
Inventor 谭庆平徐建军宁洪周会平李建立李剑明罗宇邓胜兰
Owner NAT UNIV OF DEFENSE TECH
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