Verifying Program Performance
- 1 October 1976
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 23 (4), 691-699
- https://doi.org/10.1145/321978.321987
Abstract
It is shown that specifications of program performance can be formally verified. Formal verification techniques, in particular, the method of inductive assertions, can be adapted to show that a program's maximum or mean execution time is correctly described by specifications supplied with the program. To formally establish the mean execution time, branching probabilities are expressed using inductive assertions which involve probability distributions. Verification conditions are formed and proved which establish that if the input distribution is correctly described by the input specifications, then the inductive assertions correctly describe the probability distributions of the data during execution. Once the inductive assertions are shown to be correct, branching probabilities are obtained and mean computation time is computed.Keywords
This publication has 2 references indexed in Scilit:
- Mechanical program analysisCommunications of the ACM, 1975
- Assigning meanings to programsPublished by American Mathematical Society (AMS) ,1967