A characterization of Hoare's logic for programs with Pascal-like procedures

  • Authors:
  • Ernst-Rüdiger Olderog

  • Affiliations:
  • -

  • Venue:
  • STOC '83 Proceedings of the fifteenth annual ACM symposium on Theory of computing
  • Year:
  • 1983

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents a new characterization of applicability and limitations of Hoare's logic. We consider a programming language LPas consisting of nondeterministic programs with a Pascal-like procedure concept and prove as our main theorem: Admissible sublanguages L of LPas have a sound and relatively complete Hoare logic if and only if all programs in L have regular formal call trees. Moreover, we present an explicit Hoare calculus for L whenever such a Hoare logic exists. Our theorem generalizes Clarke's results on completeness and incompleteness for languages with procedures [Cl 79] and improves Lipton's characterization of Hoare's logic which cannot deal with nondeterminism and does not provide explicit calculi [Li 77].