Summary
The semantics of procedures and parameters were formalized by Hoare [2] in terms of axioms and rules of inference. Igarashi et al. [4] reformulated Hoare's system. This paper extends their rule of inference for procedure calls to allow
-
i)
actual variable parameters to occur in actual value parameters;
-
ii)
the body of a procedure to contain global variables that do not occur in assignment positions;
-
iii)
post-conditions and “internal” assertions of a procedure to refer to the initial values of variable parameters.
None of these are allowed in Hoare's system or the system of Igarashi, London and Luckham. An attractive feature of these extensions is that they do not increase the complexity of the rules of inference.
Similar content being viewed by others
References
Hoare, C.A.R.: An axiomatic basis for computer programming. Comm. ACM 12, 576–581 (1969)
Hoare, C.A.R.: Procedures and parameters: An axiomatic approach. In: Symposium on semantics of algorithmic languages (E. Engler, ed.), Lecture Notes in Mathematics, Vol. 188, pp. 102–116. Berlin-Heidelberg-New York: Springer 1971
Hookway, R.J., Ernst, G.W.: A program verification system. ACM '76: Proceedings of the annual conference, pp. 504–508. New York: Association for Computing Machinery 1976
Igarashi, S., London, R.L., Luckham, D.C.: Automatic program verification. I. A logical basis and its implementation. Acta Informatica 4, 145–182 (1975)
Jensen, K., With, N.: PASCAL user manual and report, 2nd ed. Lecture Notes in Computer Science, Vol. 18. Berlin-Heidelberg-New York: Springer 1975
Author information
Authors and Affiliations
Additional information
This research was supported by the National Science Foundation under Grant No. MCS 75-23412
Rights and permissions
About this article
Cite this article
Ernst, G.W. Rules of inference for procedure calls. Acta Informatica 8, 145–152 (1977). https://doi.org/10.1007/BF00289246
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00289246