Skip to main content
Log in

Proof rules for gotos

  • Published:
Acta Informatica Aims and scope Submit manuscript

Summary

We offer a program specification format adapted to statements with multiple exits, and use it to present proof rules to replace the somewhat unsatisfactory treatment of jumps in [3]. We justify the “bridled” use of gotos in return exits, failure exits, and loops with jumps in the middle. To exemplify our methodology, we prove the function Lookup.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Alagić, S., Arbib, M.A.: The design of well-structured and correct programs. Berlin-Heidelberg-New York: Springer 1978

    Google Scholar 

  2. Aschroft, E.A., Clint, M., Hoare, C.A.R.: Remarks on “Program proving: Jumps and functions by M. Clint and C.A.R. Hoare”. Acta Informat. 6, 317–318 (1976)

    Google Scholar 

  3. Clint, M., Hoare, C.A.R.: Program proving: Jumps and functions. Acta Informat. 1, 214–224 (1972)

    Google Scholar 

  4. Dijkstra, E.W.: Go to statement considered harmful. Comm. ACM 11, 147–148, 538, 541 (1968)

    Google Scholar 

  5. Hoare, C.A.R.: An axiomatic basis for computer programming. Comm. ACM 12, 576–580, 583 (1969)

    Google Scholar 

  6. Hoare, C.A.R., Wirth, N.: An axiomatic definition of the programming language Pascal. Acta Informat. 2, 335–355 (1973)

    Google Scholar 

  7. Hoare, C.A.R.: Proof of a program: Find. Comm. ACM 14, 39–45 (1971)

    Google Scholar 

  8. Knuth, D.E.: Structured programming with go to statements. Comput. Surveys 6, 261–301 (1974)

    Google Scholar 

  9. Kowaltowski, T.: Axiomatic approach to side effects and general jumps. Acta Informat. 7, 357–360 (1977)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Arbib, M.A., Alagić, S. Proof rules for gotos. Acta Informatica 11, 139–148 (1979). https://doi.org/10.1007/BF00264021

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00264021

Keywords

Navigation