A Transformational Approach to Polyvariant BTA of Higher-Order Functional Programs

  • Authors:
  • Gustavo Arroyo;J. Guadalupe Ramos;Salvador Tamarit;Germán Vidal

  • Affiliations:
  • DSIC, Technical University of Valencia, Valencia, Spain E-46022;Instituto Tecnológico de la Piedad, La Piedad, Michoacan, México;DSIC, Technical University of Valencia, Valencia, Spain E-46022;DSIC, Technical University of Valencia, Valencia, Spain E-46022

  • Venue:
  • Logic-Based Program Synthesis and Transformation
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We introduce a transformational approach to improve the first stage of offline partial evaluation of functional programs, the so called binding-time analysis (BTA). For this purpose, we first introduce an improved defunctionalization algorithm that transforms higher-order functions into first-order ones, so that existing techniques for termination analysis and propagation of binding-times of first-order programs can be applied. Then, we define another transformation (tailored to defunctionalized programs) that allows us to get the accuracy of a polyvariant BTA from a monovariant BTA over the transformed program. Finally, we show a summary of experimental results that demonstrate the usefulness of our approach.