Skip to Main content Skip to Navigation
Conference papers

Programming with Miracles

Rajeev Joshi 1 
1 Laboratory for Reliable Software [JPL]
JPL - Jet Propulsion Laboratory
Abstract : In his seminal book, A Discipline of Programming [EWD 76], Dijkstra proposed that all sequential programs satisfy four laws for their weakest preconditions. By far the catchiest name was reserved for the Law of the Excluded Miracle, which captured the intuition that, started in a given state, a program execution must either terminate or loop forever. In the late 1980s, both Nelson [GN 89] and Morgan [CCM 90] noted that the law was unnecessarily restrictive when writing programs to be used as specications. In the years since, \miracles" have become a standard feature in specication languages (for instance, the assume statement in JML [LLP+00] and BoogiePL [DL 05]). What is perhaps surprising is that miracles are not as commonly used in programs written as implementations. This is surprising because for many everyday tasks, programming in a language with miracles is often far superior to the popular scripting languages that are used instead. In this talk, we build upon pioneering work by Burrows and Nelson [GN 05] who designed the language LIM (\Language of the Included Miracle"). We describe a language LIMe (\LIM with extensions"), and discuss its application in the context of flight software testing, including the analysis of spacecraft telemetry logs.
Complete list of metadata
Contributor : Ist Inria Nancy Grand Est Connect in order to contact the contributor
Submitted on : Monday, October 11, 2010 - 11:46:37 AM
Last modification on : Monday, November 27, 2017 - 6:50:01 PM


  • HAL Id : inria-00524770, version 1



Rajeev Joshi. Programming with Miracles. Integrated Formal Methods - IFM 2010, INRIA Nancy Grand Est, Oct 2010, Nancy, France. pp.27. ⟨inria-00524770⟩



Record views