We present two type inference systems for the detection and elimination of useless-code in higher-order typed functional programs. Type inference can be performed in an efficient and complete way, by reducing it to the solution of a system of inequalities. We also give a strictly incremental useless-code detection and elimination algorithm which is based on a combined use of these type inference systems. The main application of the technique is the optimization of programs extracted from proofs in logical frameworks but it could be used as well in the elimination of useless-code determined by program transformations.

Automatic useless-code detection and elimination for hot functional programs

DAMIANI, Ferruccio;
2000-01-01

Abstract

We present two type inference systems for the detection and elimination of useless-code in higher-order typed functional programs. Type inference can be performed in an efficient and complete way, by reducing it to the solution of a system of inequalities. We also give a strictly incremental useless-code detection and elimination algorithm which is based on a combined use of these type inference systems. The main application of the technique is the optimization of programs extracted from proofs in logical frameworks but it could be used as well in the elimination of useless-code determined by program transformations.
2000
10(6)
509
559
http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=66699
Functional languages; Type-based program analysis; Type ingerence; Useless-code eliminitaion
F. DAMIANI; GIANNINI P.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2318/4903
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 10
  • ???jsp.display-item.citation.isi??? ND
social impact