Case-reduced verification condition generation system and method using weakest precondition operator expressed using strongest postcondition operators
Abstract
The instructions in a computer program are converted into a form of weakest precondition so as to produce a verification condition that is to be evaluated by a theorem prover. In generating the weakest precondition, labels are introduced for values of variables at control join points. In two preferred embodiments, the computer program is converted into a set of guarded commands prior to the application of weakest precondition operators. In one embodiment, as part of the process of generating the verification condition, assignment commands that assign values to variables are removed from the program through use of a “dynamic single assumption” technique. In another embodiment, the weakest precondition is expressed in terms of strongest postconditions. In both embodiments, a simplified verification condition is produced in which duplications of sets of instructions following a choice operator is avoided.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 16.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of generating a verification condition for a computer program that comprises a collection of program statements and that contains a pair of conditional program execution paths preceding a control join point and an expression following the control join point, the method comprising: applying at least one precondition operator to the computer program to produce a verification condition which includes a single instance of a subexpression derived from the expression following the control join point, wherein, while applying the at least one precondition operator to the computer program, a l
- Claim 2Depends on #1
The method of claim 1 , wherein said at least one precondition operator is a weakest
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 16 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (1)
- Mark N. Wegman; F. Kenneth Zadeck, Constant Propagation With Conditional Branches, ACM Transaction on Programming Languages and Systems (TOPLAS), vol. 13, Issue 2 (Apr. 1991), pp. 181-210.