Proving loop programs
- 1 March 1975
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 1 (1) , 76-86
- https://doi.org/10.1109/tse.1975.6312822
Abstract
Given a `DO WHILE' program P and a function F on a domain D, the authors investigate the problem of proving (or disproving) if P computes F over D. It is shown that if P satisfies certain natural constraints (well behaved), then there is a loop assertion independent of the structure of the loop body, that is both necessary and sufficient for proving the hypothesis. These results are extended to classes of loop programs which are not well behaved and to FOR loops. The sufficiency of Hoare's DO WHILE axiom for well-behaved loop programs is shown. Applications of these ideas to the problem of mechanical generation of assertions is discussed.Keywords
This publication has 0 references indexed in Scilit: