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.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.