Eliminating array bound checking through dependent types

  • Authors:
  • Hongwei Xi;Frank Pfenning

  • Affiliations:
  • Department of Mathematical Sciences, Carnegie Mellon University;Department of Computer Science, Carnegie Mellon University

  • Venue:
  • PLDI '98 Proceedings of the ACM SIGPLAN 1998 conference on Programming language design and implementation
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a type-based approach to eliminating array bound checking and list tag checking by conservatively extending Standard ML with a restricted form of dependent types. This enables the programmer to capture more invariants through types while type-checking remains decidable in theory and can still be performed efficiently in practice. We illustrate our approach through concrete examples and present the result of our preliminary experiments which support support the feasibility and effectiveness of our approach.