Issue No. 03 - May (1982 vol. 8)
V.R. Basili , Department of Computer Science, University of Maryland
This paper reports on an experiment in trying to understand an unfamiliar program of some complexity and to record the authors' understanding of it. The goal was to simulate a practicing programmer in a program maintenance environment using the techniques of program design adapted to program understanding and documentation; that is, given a program, a specification and correctness proof were developed for the program. The approach points out the value of correctness proof ideas in guiding the discovery process. Toward this end, a variety of techniques were used: direct cognition for smaller parts, discovering and verifying loop invariants for larger program parts, and functions determined by additional analysis for larger program parts. An indeterminate bounded variable was introduced into the program documentation to summarize the effect of several program variables and simplify the proof of correctness.
software maintenance, Program analysis, program correctness, program documentation, proof techniques
V.R. Basili, H.D. Mills, "Understanding and Documenting Programs", IEEE Transactions on Software Engineering, vol. 8, no. , pp. 270-283, May 1982, doi:10.1109/TSE.1982.235255