Semantics of Exceptions

K. Rustan M. Leino, Jan L. A. Snepscheut

CaltechAUTHORS (California Institute of Technology) · 1993 · 16 citations · 0 references

DOIFull text

Open access

Concepts

Abstract

We describe a trace semantics of exceptions and then derive a weakest precondition semantics. A program that contains exceptions terminates in one of two possible ways (if it terminates at all): either it terminates exceptionally or it terminates normally. We will therefore consider weakest preconditions that are functions of two postconditions. As a preparation we study aribitrary functions of two arguments, and their compositions.