Detecting and removing dead code using rank 2 intersection (1998)
| Venue: | IN INTERNATIONAL WORKSHOP:"TYPES'96", SELECTED PAPERS, LNCS 1512. SPINGER-VERLAG |
| Citations: | 5 - 4 self |
BibTeX
@INPROCEEDINGS{Damiani98detectingand,
author = {Ferrrucio Damiani and Frédéric Prost},
title = {Detecting and removing dead code using rank 2 intersection},
booktitle = {IN INTERNATIONAL WORKSHOP:"TYPES'96", SELECTED PAPERS, LNCS 1512. SPINGER-VERLAG},
year = {1998},
publisher = {}
}
OpenURL
Abstract
In this paper we extend, by allowing rank 2 intersection types, the type assignment system for the detection and elimination of dead code in typed functional programs presented by Coppo et al Giannini and the rst author in the Static Analysis Symposium '96. 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. This system rely on annotated 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 annotated type inference, which canbe performed in a complete way, by reducing it to the solution of a system of inequalities between annotation variables. Even though the language considered in the paper is the simply typed-calculus with cartesian product, if-then-else, xpoint, and arithmetic constants we can generalize our approach to polymorphic languages like Miranda, Haskell, and CAML.







