Joint verification method for batch uninterpreted programs
Through the counterexample abstraction refinement framework and path generalization technology, the problems of resource waste and low efficiency in batch unexplained program verification are solved, a fast and effective verification process is achieved, and verification efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202210258615.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-16
AI Technical Summary
The existing technology has problems of resource waste and low efficiency in batch unexplained program verification, especially the resource waste caused by repeated verification of similar programs, which affects verification efficiency and accuracy.
The counterexample abstract refinement framework is used to initially refine the path space of uninterpreted programs. Through path feasibility checking and generalization, verified paths are removed, and the generalization results are saved for reuse to avoid repeated verification and classify processing Coherent , violates memoizing and violates early-assumes path types.
It achieves fast and effective uninterpreted program verification, reduces resource waste, improves the verification efficiency and accuracy of batch uninterpreted programs, and avoids unnecessary repeated verification processes.
Smart Images

Figure CN114706757B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic program analysis, and in particular to a joint verification method for batches of uninterpreted programs. Background Art
[0002] Uninterpreted programs are programs with uninterpreted functions, that is, functions without specific function interpretations. In program analysis, the specific implementation of some functions may not be known, or have no effect on the properties to be analyzed, so it is necessary to abstract such functions as uninterpreted functions to continue program analysis. Figure 1 As shown in the figure, the function f in the program has no specific implementation, so it is abstracted as an uninterpreted function. At this time, the only property that can be used is that the same input will have the same output. The verification of an uninterpreted program is to verify whether the program satisfies a certain property. Figure 1 Taking the program on the left as an example, the verification of the program is to verify whether x and y are equal when the program ends, that is, in the form of assert(x=y). Since uninterpreted functions do not have specific function interpretations, when such functions are interpreted as different function types, the results of whether the program satisfies a certain property may be different, that is, the assertion is not always true based on the interpretation of the function. Figure 1 As shown in the figure, the path through the true branch can satisfy the final assertion no matter what type the function f is interpreted as, while the path through the false branch can satisfy the assertion when f is interpreted as an identity function, but cannot satisfy the assertion when it is interpreted as an auto-increment function. Therefore, the path through the false branch does not satisfy the assertion in all cases.
[0003] The verification problem of uninterpreted programs is usually undecidable, but it is decidable for uninterpreted programs that meet the Coherence property. The Coherence property requires that: during the execution and calculation process of any program path in the uninterpreted program, (i) the information of items that have been discarded will not be repeatedly calculated (memoizing is satisfied); (ii) the equivalent information between items is transmitted in a timely manner (early-assumes is satisfied). Regarding the determination of uninterpreted programs, the existing technology is usually only specific to uninterpreted programs that meet the above-mentioned Coherence property, and in practice it is often necessary to implement the verification of batch uninterpreted programs. In the existing technology, when verifying batch uninterpreted programs, each program is usually verified separately, that is, each uninterpreted program is verified independently. In fact, there may be similar uninterpreted programs in the batch uninterpreted programs. The determination process of similar parts in similar uninterpreted programs is the same. The method of verifying each program separately will require repeated judgment of similar parts, resulting in a waste of verification resources and affecting verification efficiency. For example, in the regression verification of different software versions and the verification of a series of programs obtained by combined development, these programs may actually have similarities, and repeated verification will lead to a waste of resources. Summary of the invention
[0004] The technical problem to be solved by the present invention is: in response to the technical problems existing in the prior art, the present invention provides a joint verification method for batch uninterpreted programs, which can effectively realize the verification of various types of uninterpreted programs, while improving the verification efficiency and accuracy of batch uninterpreted programs.
[0005] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0006] A joint verification method for batch uninterpreted programs, comprising the following steps:
[0007] Step S01. Use the currently saved abstract model to refine the current program automaton to remove the verified path, and obtain a refined program automaton, wherein the program automaton is abstracted from the currently uninterpreted program to be verified, and the abstract model is obtained by saving the counterexample automaton generalizing the infeasible path in the verification process;
[0008] Step S02. Determine whether the refined program automaton is empty. If it is empty, determine that the uninterpreted program to be verified is correct and proceed to step S05. Otherwise, proceed to step S03.
[0009] Step S03. Extract a path from the refined program automaton and perform a path feasibility check. If the path is feasible, determine the unexplained program error to be verified, obtain an error path, and proceed to step S05; if the path is not feasible, proceed to step S04;
[0010] Step S04. Generalize the path according to the path type of the extracted path to obtain a counterexample automaton, use the counterexample automaton to refine the refined program automaton to remove the verified path, and save the counterexample automaton as the abstract model to be reused when verifying a new uninterpreted program, and return to step S02;
[0011] Step S05. Determine whether verification of all uninterpreted programs is completed. If so, exit verification. Otherwise, get a new uninterpreted program and return to step S01.
[0012] Furthermore, in the step S01, the intersection of the result of the inversion operation of the abstract model and the program automaton is calculated so as to remove the verified paths in the program automaton and realize the initial refinement.
[0013] Furthermore, in step S03, a consistency-based path feasibility check method is used to check the feasibility of the extracted path.
[0014] Furthermore, the generalization according to the path type in step S04 includes: determining the path type of the extracted path, completing information for different path types using different completion information methods, and performing path abstraction based on a consistent abstraction method to obtain the generalized counterexample automaton.
[0015] Furthermore, the consistency-based abstraction method for path abstraction includes: calculating the state sequence corresponding to the currently extracted infeasible path, merging equivalent states of the state sequence, and obtaining the abstracted counterexample automaton as the generalization result.
[0016] Furthermore, when judging the path type of the extracted path, if it is a Coherent path type, the abstraction method based on consistency is directly used for abstraction; if it is a path type that violates memoizing, the information of the missing items is completed by adding auxiliary variables, and then the abstraction method based on consistency is used for abstraction; if it is a path type that violates early-assumes, the assume statement is advanced to complete the missing information, and then the abstraction method based on consistency is used for abstraction to obtain the abstracted automaton.
[0017] Furthermore, if the path type is Coherent, equivalent states are directly merged according to the corresponding state sequence to obtain the abstract automaton; if the path type violates memoizing, after adding auxiliary variables to complete the information of the missing items, the information outside the scope of the auxiliary variables (that is, between the first and last calculations of the items stored in the auxiliary variables) is deleted, and then equivalent states are merged according to the corresponding state sequence to obtain the abstract automaton; if the path type violates early-assumes, the statement that violates early-assumes is advanced to the front position of the program, and then equivalent states are merged according to the corresponding state sequence to obtain the abstract automaton.
[0018] Furthermore, in step S04, the counter-example automaton refines the refined program automaton by inverting the counter-example automaton obtained by generalization and then performing an intersection operation with the refined automaton to obtain a final refined result.
[0019] A joint verification device for batch uninterpreted programs includes a processor and a memory, wherein the memory is used to store a computer program, the processor is used to execute the computer program, and the processor is used to execute the computer program to perform the above method.
[0020] A computer-readable storage medium storing a computer program, wherein the computer program implements the above method when executed.
[0021] Compared with the prior art, the advantages of the present invention are:
[0022] 1. The present invention implements the verification of uninterpreted programs based on the counterexample abstraction refinement framework. A path is selected from the path space of the program. If the path is feasible, the program is judged to be wrong. If the path is not feasible, more paths are generalized through the path abstraction method, and then the generalized paths are removed from the program space. If the program space is empty, it is determined that all paths are verified to be infeasible and the original program is correct. Otherwise, paths continue to be extracted from the program space and repeated until the program verification result is obtained. The verification of various types of uninterpreted programs can be realized quickly and effectively.
[0023] 2. The present invention verifies batch uninterpreted programs by adopting the counterexample abstraction refinement method, and at the same time considers the problem of repeated verification between similar programs in the batch uninterpreted programs. By saving the intermediate verification results, the verification results can be reused when encountering similar new batch uninterpreted programs, avoiding a large number of unnecessary repeated verification processes, thereby greatly improving the verification effect of batch uninterpreted programs.
[0024] 3. The present invention further classifies and generalizes the paths according to different types of paths, such as whether the paths are coherent, violate memoizing, or violate eraly-assumes, which can effectively improve the generalization ability of various types of path generalizations, thereby realizing the verification of various types of uninterpreted programs that do not meet the Coherence property. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is an example diagram of an uninterpreted program.
[0026] Figure 2 It is a schematic diagram of the implementation flow of the joint verification of batch uninterpreted programs in this embodiment.
[0027] Figure 3 It is a detailed flowchart for implementing verification of uninterpreted programs in a specific application embodiment of the present invention.
[0028] Figure 4 It is a schematic diagram of three procedures that need to be verified in a specific application embodiment of the present invention.
[0029] Figure 5 It is a schematic diagram of the principle of verifying the first program in a specific application embodiment of the present invention.
[0030] Figure 6 It is a schematic diagram of the principle of verifying the second program in a specific application embodiment of the present invention.
[0031] Figure 7 It is a schematic diagram of the principle of verifying the third program in the specific application embodiment of the present invention.
[0032] Figure 8 It is a schematic diagram of the principle of generalizing the Coherent path in a specific application embodiment of the present invention.
[0033] Fig. 9 It is a schematic diagram of the principle of generalizing the violation of memoizing path in a specific application embodiment of the present invention.
[0034] Fig.10 It is a schematic diagram of the principle of generalizing the early-assumes path violation in a specific application embodiment of the present invention. DETAILED DESCRIPTION
[0035] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.
[0036] The present invention realizes the verification of uninterpreted programs based on a counterexample abstraction refinement framework: by selecting a path from the path space of the program, if the path is feasible, it means that the program is wrong, if the path is not feasible, more paths with the same infeasible reason are generalized through a path abstraction method, and then these paths are removed from the program space, if the program space is empty, it means that all paths are verified to be infeasible and the original program is correct, otherwise, paths are continuously extracted from the program space, and the above process is repeated until the program verification result is obtained; on the basis of verifying batch uninterpreted programs by adopting the above counterexample abstraction refinement method, the problem of repeated verification between similar programs in the batch uninterpreted programs is considered at the same time, and by saving the intermediate verification results, the verification results can be reused when encountering similar new batch uninterpreted programs, thereby avoiding a large number of unnecessary repeated verification processes and saving computing resources, thereby greatly improving the overall verification efficiency of batch uninterpreted programs under the premise of ensuring verification accuracy.
[0037] like Figure 2 As shown, the steps of the joint verification method for batch uninterpreted programs in this embodiment include:
[0038] Step S01. Abstract the uninterpreted program to be verified to obtain a program automaton, and use the currently saved abstract model to refine the program automaton to remove the verified path to obtain a refined automaton. The abstract model is a counterexample automaton obtained by generalizing the infeasible path in the saved verification process;
[0039] Step S02. Determine whether the refined program automaton is empty. If it is empty, determine whether the uninterpreted program to be verified is correct and proceed to step S05. Otherwise, proceed to step S03.
[0040] Step S03. Extract a path from the refined program automaton and perform a path feasibility check. If the path is feasible, the unexplained program error to be verified is determined, and this path is used as an error path to indicate that the current program has an error, and then proceed to step S05; if the path is not feasible, proceed to step S04;
[0041] Step S04. Generalize the path according to the path type of the extracted path to obtain a counterexample automaton, use the counterexample automaton to refine the refined program automaton to remove the verified path, and save the counterexample automaton as an abstract model to be reused when verifying a new uninterpreted program, and return to step S02;
[0042] Step S05. Determine whether verification of all uninterpreted programs is completed. If so, exit verification. Otherwise, get a new uninterpreted program and return to step S01.
[0043] This embodiment implements the verification of uninterpreted programs by means of a counterexample-based abstract refinement framework, and saves the counterexample automaton obtained by generalizing infeasible paths during the verification process during the verification process. The saved counterexample automaton is used as an abstract model to purify the program automaton of the program to be verified, thereby avoiding wasting resources by repeatedly executing unnecessary verification processes, and effectively improving the overall verification efficiency of batch uninterpreted programs.
[0044] In step S01 of this embodiment, the result of the inversion operation of the abstract model is intersected with the program automaton to remove the verified paths in the program automaton, thereby achieving initial refinement. For example, the program automaton of the uninterpreted program pi to be verified is represented by Api, A S It is represented as the automaton corresponding to the saved abstract model, that is, the counterexample automaton obtained by generalizing the infeasible path saved during the verification process. The initial refinement process can be expressed as: If the abstract model stores verified paths, the verified paths in the program automaton can be removed by negating the abstract model and finding the intersection with the program automaton, thereby realizing program automaton refinement.
[0045] like Figure 3 As shown, when verifying a batch of uninterpreted programs in this embodiment, an uninterpreted program pi is taken each time for initial refinement, and the intersection of the result after the inversion operation of the abstract model As and the program automaton Api is obtained, that is, Reuse the saved intermediate verification results (abstract model As) to remove the verified paths in the program automaton Api, and then determine whether the refined program automaton is empty. If it is empty, the uninterpreted program to be verified is correct. If it is not empty, extract a path C from the refined program automaton to perform a path feasibility check. If it is feasible, it can be determined that the program pi is wrong. If it is not feasible, further generalize the path C using the path abstraction generalization method to obtain the generalized counterexample automaton Ac. Use the generalized counterexample automaton Ac to refine the refined program automaton again, and at the same time, use As=As∪A C The generalization results are retained to be reused in subsequent program verification processes.
[0046] Take the verification of three specific programs as an example, Figure 4As shown, Block1 represents x:=Decr(x); x:=Incr(x); y:=Decr(x); y:=Incr(x), Block2 represents x:=Incr(x); y:=Incr(y), Non-focus represents z:=Next(z), assume(z!=n1), assume(z=n1), assume(z!=n2), assume(z=n2). First, verify the program P0. First, abstract P0 into a program automaton, such as Figure 5 As shown in (a), the program is verified by counter-example abstraction and refinement. The extracted path is an infeasible path. The counter-example automaton obtained by abstracting the path is as follows Figure 5 As shown in (b), the program automaton P0 and the counterexample automaton are used to refine the program automaton. As a result, the program automaton is empty and the program P0 is verified to be correct. At the same time, the counterexample automaton is merged with the abstract model and the verification result of the path is saved.
[0047] Continue to verify program P1. Figure 6 (a) shows the program automaton of program P1. After refining the program automaton through the saved abstract model, we get Figure 6 The refined program automaton shown in (b) is further refined by counterexample abstraction. The counterexample automaton of its infeasible path abstraction is as follows Figure 6 As shown in (c), using this counterexample automaton Figure 6 The program automaton in (b) is further refined, and the program automaton is empty. Then the program P1 can be judged to be correct and saved. Figure 6 The counterexample automaton in (c).
[0048] Continue to verify program P2, such as Figure 7 (a) shows the program automaton corresponding to program P2. Figure 7 (b) shows the saved abstract model. It can be seen that the language recognized by the program automaton of program P2 is included in Figure 7 In the abstract model of (b), after refining the program automaton of P2, the program automaton of P2 is empty, and P2 can be judged to be correct.
[0049] In step S03 of this embodiment, a consistency-based path feasibility check method can be used to check the feasibility of the extracted path. The consistency-based path feasibility check method can be implemented in the prior art. Of course, other methods can also be used to implement the path feasibility check.
[0050] In step S04 of this embodiment, generalization according to the path type specifically includes: determining the path type of the extracted path, using different completion information methods to complete the information for different path types, and performing path abstraction based on a consistent abstract method to obtain a generalized result. Path abstraction based on a consistent abstract method includes: calculating the state sequence corresponding to the currently extracted infeasible path, merging the state sequence with equivalent states, and obtaining an abstracted counterexample automaton as a generalized result. That is, when abstracting and refining the infeasible path, a consistent path abstraction method is used to calculate the state sequence corresponding to the infeasible path, and then according to different types of paths, such as coherent, violation of memoizing, violation of eraly-assumes, etc., if it is determined that there is missing information, the information is first completed, and then the state sequence is merged with equivalent states to obtain an abstracted counterexample automaton.
[0051] In this embodiment, when judging the path type of the extracted path, if it is a Coherent path type, the abstraction method based on consistency is directly used for abstraction; if it is a path type that violates memoizing, the information of the missing items is completed by adding auxiliary variables, and then the abstraction method based on consistency is used for abstraction; if it is a path type that violates early-assumes, the assume statement is advanced to complete the missing information, and then the abstraction method based on consistency is used for abstraction to obtain the abstracted counterexample automaton. In the above manner, path generalization is performed according to different path types, which can effectively improve the generalization ability of path generalization, thereby realizing the verification of various uninterpreted programs that do not meet the Coherence property.
[0052] This embodiment adopts different information completion and path abstraction methods for different types of different paths such as Coherent, violation of memoizing, violation of early-assumes, etc. Specifically, for the case of Coherent, since the information is not lost, abstraction is directly performed using a consistency-based abstraction method; for the case of violation of memoizing, the information is completed by adding auxiliary variables and then abstracted using a consistency-based abstraction method; for the case of violation of early-assumes, the information is completed by bringing the assume statement forward and then abstracted using a consistency-based abstraction method.
[0053] In a specific application embodiment, if the path type is Coherent, equivalent states are directly merged according to the corresponding state sequence to obtain an abstracted automaton; if the path type violates memoizing, after adding auxiliary variables to complete the information of the missing items, the information outside the scope of the auxiliary variables (that is, between the first and last calculations of the items stored in the auxiliary variables) is deleted, and then equivalent states are merged according to the corresponding state sequence to obtain an abstracted counterexample automaton; if the path type violates early-assumes, the statement that violates early-assumes is advanced to the front position of the program, and then equivalent states are merged according to the corresponding state sequence to obtain an abstracted counterexample automaton.
[0054] In step S04 of this embodiment, using the counter-example automaton to refine the refined program automaton includes: inverting the abstract counter-example automaton corresponding to the generalized result and then performing an intersection operation with the refined program automaton to obtain a refined result. At the same time, the obtained counter-example automaton Ac is combined with the abstract model As, that is, As=As∪A C , the intermediate results obtained by generalization can be retained, so that the intermediate results can be reused in the subsequent verification of new uninterpreted programs, effectively improving the efficiency of batch uninterpreted program verification.
[0055] Taking the verification of the above programs P1 and P0 as an example, for program P1, the path to enter the false branch is the Coherent path (removing the statements that have no effect on the final assertion), and the equivalent state is directly merged according to its corresponding state sequence, such as Figure 8 As shown, the state after executing x:=y is equivalent to the state after executing x:=y; x:=Incr(x); y:=Incr(y). These two states are merged to obtain the abstracted counterexample automaton.
[0056] When verifying program P0, the path that enters the loop once is a path that violates memoizing (statements that have no effect on the final assertion are removed). Since this path violates memoizing, information is lost in the corresponding state sequence. Information is completed by adding auxiliary variables, such as Fig. 9 As shown in (a), an auxiliary variable g0 is used to save the information of the lost items. Considering the limited scope of g0, the relevant information of g0 is deleted when the items saved by g0 are no longer calculated. Fig. 9 As shown in (a), after completing the information, delete the information related to the position where g0 does not work. It can be seen that state q1 and state q5 are equivalent. Then merge the equivalent states to get Fig. 9 (b) Abstracted counterexample automaton.
[0057] like Fig.10 The leftmost figure shows a path that violates early-assumes. Due to the violation of early-assumes, the corresponding triple information is lost. The information is completed by bringing the assume statement forward. Fig.10 The middle part corresponds to the way of completing the information, that is, moving the statement that violates early-assumes to the earliest possible position. After completing the information, we can see that state q6 is equivalent to state q8. After merging state q6 and q8, we get the generalized automaton as follows: Fig.10 As shown in the rightmost part.
[0058] This embodiment also provides a joint verification device for batch uninterpreted programs, including a processor and a memory, the memory is used to store computer programs, the processor is used to execute the computer program, and the processor is used to execute the computer program to execute the above method.
[0059] This embodiment also provides a computer-readable storage medium storing a computer program, and the computer program implements the above method when executed.
[0060] Those skilled in the art will appreciate that the above description of the computer device is merely an example and does not constitute a limitation on the computer device. The computer device may include more or fewer components than described above, or may combine certain components, or may include different components, such as input and output devices, network access devices, buses, etc. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer device, and uses various interfaces and lines to connect the various parts of the entire computer device.
[0061] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the computer device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0062] If the module / unit integrated in the computer device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned joint verification method for batch uninterpreted programs can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, electrical signal and software distribution medium, etc.
[0063] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.
Claims
1. A joint verification method for batch uninterpreted programs, characterized in that the steps include: Step S01. abstract the uninterpreted program to be verified to obtain a program automaton, and use the currently saved abstract model to refine the program automaton to remove the verified path to obtain a refined program automaton; Step S02. Determine whether the refined program automaton is empty. If it is empty, determine that the uninterpreted program to be verified is correct and proceed to step S05. Otherwise, proceed to step S03. Step S03. Extract a path from the refined program automaton and perform a path feasibility check. If the path is feasible, determine the unexplained program error to be verified, obtain an error path, and proceed to step S05; if the path is not feasible, proceed to step S04; Step S04. Generalize the path according to the path type of the extracted path to obtain a counterexample automaton, use the counterexample automaton to refine the refined program automaton to remove the verified path, and save the counterexample automaton as the abstract model to be reused when verifying a new uninterpreted program, and return to step S02; Step S05. Determine whether all uninterpreted program verification is completed, if so, exit verification, otherwise get a new uninterpreted program and return to step S01; The generalization according to the path type in step S04 includes: determining the path type of the extracted path, using different completion information methods to complete information for different path types, and performing path abstraction based on a consistent abstraction method to obtain a counterexample automaton of the generalization result; the path abstraction based on the consistent abstraction method includes: calculating the state sequence corresponding to the currently extracted infeasible path, merging equivalent states of the state sequence, and obtaining the abstracted automaton as the generalization result.
2. The joint verification method for batch uninterpreted programs according to claim 1, characterized in that: In the step S01, the intersection of the result of the inversion operation of the abstract model and the program automaton is calculated, so that the verified paths in the program automaton are removed to achieve initial refinement.
3. The joint verification method for batch uninterpreted programs according to claim 1, characterized in that: In the step S03, the feasibility of the extracted path is checked using a consistency-based path feasibility check method.
4. The joint verification method for batch uninterpreted programs according to claim 1, characterized in that: When determining the path type of the extracted path, if the path type is Coherent, directly use the consistency-based abstraction method for abstraction; If the path type violates memoizing, the missing information is completed by adding auxiliary variables, and then abstraction is performed using the consistency-based abstraction method; if the path type violates early-assumes, the assume statement is advanced to complete the missing information, and then abstraction is performed using the consistency-based abstraction method to obtain the abstracted automaton.
5. The joint verification method for batch uninterpreted programs according to claim 4 is characterized in that: If the path type is Coherent, directly merge equivalent states according to the corresponding state sequence to obtain the abstracted automaton; If the path type violates memoizing, after adding auxiliary variables to complete the information of the missing items, delete the information outside the scope of the auxiliary variables. The scope of the auxiliary variables is between the first and last calculation positions of the items stored in the auxiliary variables. Then, equivalent states are merged according to the corresponding state sequence to obtain the abstracted automaton. If the path type violates early-assumes, the statement that violates early-assumes is moved forward to the front of the program, the information in the assume statement is obtained in advance, and then equivalent states are merged according to the corresponding state sequence to obtain the abstracted automaton.
6. The joint verification method for batch uninterpreted programs according to any one of claims 1 to 4, characterized in that: In the step S04, the counter-example automaton refines the refined program automaton by inverting the counter-example automaton obtained by generalization and then performing an intersection operation with the refined automaton to obtain a refined result.
7. A joint verification device for batch uninterpreted programs, comprising a processor and a memory, wherein the memory is used to store a computer program, the processor is used to execute the computer program, and the processor is used to execute the computer program to perform the method as described in any one of claims 1 to 6.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed, the method according to any one of claims 1 to 6 is implemented.
