Programming with Miracles - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2010

Programming with Miracles

Rajeev Joshi
  • Function : Author
  • PersonId : 880358

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.
No file

Dates and versions

inria-00524770 , version 1 (11-10-2010)

Identifiers

  • HAL Id : inria-00524770 , version 1

Cite

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

Share

Gmail Mastodon Facebook X LinkedIn More