Skip to main navigation Skip to search Skip to main content

Refinement types for program analysis

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

In this paper we introduce a system for the detection and elimination of dead code in typed functional programs. The main application of this method is the optimization of programs extracted from proofs in logical frameworks but it could be used as well in the elimination of dead code determined by program specialization. Our algorithm is based on a type inference system suitable for reasoning about dead code information. This system relays on refinement types which allow to exploit the type structure of the language for the investigation of program properties. The detection of dead code is obtained via type inference, which can be performed in an efficient and complete way, by reducing it to the solution of a system of inequalities between type variables. A key feature of our method is that program analysis can be performed in a strictly incremental way. Even though the language considered in the paper is a simply typed λ-calculus we can generalize our approach to polymorphic languages like ML. Although focused on dead code elimination our type inference method can also be applied to the investigation of other program properties like binding time and strictness. Some hints on these applications are given.

Original languageEnglish
Title of host publicationStatic Analysis - 3rd International Symposium, SAS 1996, Proceedings
EditorsRadhia Cousot, David A. Schmidt
PublisherSpringer Verlag
Pages143-158
Number of pages16
ISBN (Print)3540617396, 9783540617396
DOIs
Publication statusPublished - 1996
Externally publishedYes
Event3rd International Static Analysis Symposium, SAS 1996 - Aachen, Germany
Duration: 24 Sept 199626 Sept 1996

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume1145
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference3rd International Static Analysis Symposium, SAS 1996
Country/TerritoryGermany
CityAachen
Period24/09/9626/09/96

Fingerprint

Dive into the research topics of 'Refinement types for program analysis'. Together they form a unique fingerprint.

Cite this