Abstract
The axiomatic definition of PASCAL takes no account of the finite bounds of real computers. It is proposed that the bounds of differing machines may be accounted for in the PASCAL definition by the use of an axiom schema with machine dependent parameters. If these parameters are available to the program prover and to the program it is possible to prove the clean termination of a program on a particular bounded machine. The use of a parameterised definition for all PASCAL machines, means that clean termination can be guaranteed over a range of machines. In particular a programmer may prove his program against a set of bounds chosen for ease of proof, as long as the implemented machine is “larger”.
Similar content being viewed by others
References
Hoare, C.A.R.: An Axiomatic Basis for Computer Programming, CACM 12, 576–583 (1969)
Hoare, C.A.R.: An Axiomatic Definition of the Programming Language PASCAL. Lecture Notes in Computer Science, vol. 5. International Symposium in Theoretical Programming, Berlin-Heidelberg-New York: Springer-Verlag 1974
Hoare, C.A.R., Lauer, P.E.: Consistent and Complementary Formal Theories of the Semantics of Programming Languages, Acta Informatica 3, 135–153 (1974)
Hoare, C.A.R., Wirth, N.: An Axiomatic Definition of the Programming Language PASCAL, Acta Informatica 2, 335–355 (1973)
Jensen, K., Wirth, N.: PASCAL User Manual, 2nd Edition, Berlin-Heidelberg-New York: Springer-Verlag 1975
Knuth, D.E.: Art of Computer Programming, vol. 2, Seminumerical Algorithms, Addison-Wesley.
Sites, R.L.: Proving that Computer Programs Terminate Cleanly, Stamford Report, CS-74-418, 1974
Wirth, N.: On PASCAL Code Generation, and the CDC 6000 Computer. STAN-CS-72-257, Computer Science Dept., Stanford University, 1972
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Coleman, D., Hughes, J.W. The clean termination of Pascal programs. Acta Informatica 11, 195–210 (1979). https://doi.org/10.1007/BF00289066
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00289066