Fault confirmation method and system thereof
A fault and fault point technology, applied in the field of fault confirmation method and its system, can solve the problems of long execution time, unlimited testing, high false alarm rate, etc., and achieve the effect of solving massive false alarms at a small cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0062] In this embodiment, when detecting a fault point, adding a constraint judgment statement before the suspected fault statement is equivalent to adding a node on the control flow graph, so that the constraint condition of reaching this node is the condition for the occurrence of the fault. Then the fault confirmation is transformed into the problem of judging whether this node has a reachable path, as long as it is proved that this node is reachable, the fault problem is confirmed.
[0063] The control flow graph CFG is a directed graph G=(N, E, nentry, nexit). Among them, N is a node set, and each statement in the program corresponds to a node in the graph; the edge set E={|n1, n2∈N and after n1 is executed, n2} may be executed immediately.
[0064] In this embodiment, the division by zero fault is taken as an example, and the initial procedure is as follows:
[0065]
[0066] When performing fault detection, just add a conditional judgment statement if(j==0){} before...
Embodiment 2
[0072] This embodiment takes path-related faults as an example, and the initial procedure is as follows:
[0073]
[0074]
[0075] image 3 shows the fault point control flow diagram of the second embodiment of the fault confirmation method of the present invention; Figure 4 A schematic diagram showing a fault confirmation mode of the second embodiment of the fault confirmation method of the present invention.
[0076] refer to image 3 , if the program is executed according to the true branch of line 15 of the code, before the line 18 judges the terminator of the string, arg is added 1 twice, and there is no judgment whether the string ends. If the string ends at the first arg++, the incremental skip terminator points to invalid memory because the end judgment operation has not passed.
[0077] In the above cases, the fault is related to the path of program execution, so the entire path where the fault occurs is taken as the condition for fault confirmation. Such ...
Embodiment 3
[0079] Figure 5 A structural diagram showing a set of fault points in the third embodiment of the fault confirmation method of the present invention; Figure 6 A structural diagram of the troubleshooting unreachable path and nodes of the third embodiment of the fault confirmation method of the present invention; Figure 7 It shows the execution process diagram of a fault confirmation method of the third embodiment of the fault confirmation method of the present invention.
[0080] In this embodiment, multiple faults can be confirmed at the same time. Firstly, in the program preprocessing, use the selected failure mode set to analyze all the suspected fault location sets, and then generate the connected path set of the fault point set according to the control flow graph, and eliminate the disconnected fault points, such as Figure 5 shown.
[0081] In the execution process, the inaccessible nodes and branches without calling relationship are excluded through the calling rel...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com