A Hoare-like proof system for analysing the computation time of programs (Q1091122)
From MaRDI portal
scientific article
Language | Label | Description | Also known as |
---|---|---|---|
English | A Hoare-like proof system for analysing the computation time of programs |
scientific article |
Statements
A Hoare-like proof system for analysing the computation time of programs (English)
0 references
1987
0 references
Versions of Hoare logic have been introduced to prove partial and total correctness properties of programs. In this paper it is shown how a Hoare-like proof system for while programs may be extended to prove properties of the computation time as well, it should be stressed that the system does not require the programs to be modified by inserting explicit operations upon a clock variable. We generalize the notions of arithmetically sound and complete and show that the proof system satisfies these. Also we derive formal rules corresponding to the informal rules for determining the computation time of while programs. The applicability of the proof system is illustrated by an example, the bubble sorting algorithm.
0 references
Hoare logic
0 references
partial and total correctness properties of programs
0 references
while programs
0 references
clock variable
0 references
bubble sorting algorithm
0 references