Certified Absence of Dangling Pointers in a Language with Explicit Deallocation - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2010

Certified Absence of Dangling Pointers in a Language with Explicit Deallocation

Abstract

Safe is a first-order eager functional language with facilities for programmer controlled destruction of data structures. It provides also regions, i.e. disjoint parts of the heap, where the program allocates data structures, so that the runtime system does not need a garbage collector. A region is a collection of cells, each one big enough to allocate a data constructor. Deallocating cells or regions may create dangling pointers. The language is aimed at inferring and certifying memory safety properties in a Proof Carrying Code like environment. Some of its analyses have been presented elsewhere. The one relevant to this paper is a type system and a type inference algorithm guaranteeing that well-typed programs will be free of dangling pointers at runtime. Here we present how to generate formal certificates about the absence of dangling pointers property inferred by the compiler. The certificates are Isabelle/HOL proof scripts which can be proof-checked by this tool when loaded with a database of previously proved theorems. The key idea is proving an Isabelle/HOL theorem for each syntactic construction of the language, relating the static types inferred by the compiler to the dynamic properties about the heap that will be satisfied at runtime.
Fichier principal
Vignette du fichier
main306.pdf (223.02 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

inria-00524597 , version 1 (08-10-2010)

Identifiers

  • HAL Id : inria-00524597 , version 1

Cite

Javier de Dios, Manuel Montenegro, Ricardo Peña. Certified Absence of Dangling Pointers in a Language with Explicit Deallocation. Integrated Formal Methods - IFM 2010, INRIA Nancy Grand Est, Oct 2010, Nancy, France. pp.305-319. ⟨inria-00524597⟩
38 View
169 Download

Share

Gmail Facebook X LinkedIn More