An Inference Algorithm for Guaranteeing Safe Destruction

  • Authors:
  • Manuel Montenegro;Ricardo Peña;Clara Segura

  • Affiliations:
  • Universidad Complutense de Madrid, Madrid, Spain 28040;Universidad Complutense de Madrid, Madrid, Spain 28040;Universidad Complutense de Madrid, Madrid, Spain 28040

  • Venue:
  • Logic-Based Program Synthesis and Transformation
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Safe is a first-order eager functional language with destructive pattern matching controlled by the programmer. A previously presented type system is used to avoid dangling pointers arising from the inadequate usage of this facility. In this paper we present a type inference algorithm, prove its correctness w.r.t. the type system, describe its implementation and give a number of successfully typed examples.