Inferring cost equations for recursive, polymorphic and higher-order functional programs

  • Authors:
  • Pedro B. Vasconcelos;Kevin Hammond

  • Affiliations:
  • School of Computer Science, University of St Andrews, St Andrews, UK;School of Computer Science, University of St Andrews, St Andrews, UK

  • Venue:
  • IFL'03 Proceedings of the 15th international conference on Implementation of Functional Languages
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents a type-based analysis for inferring size- and cost-equations for recursive, higher-order and polymorphic functional programs without requiring user annotations or unusual syntax. Our type reconstruction algorithm is capable of inferring first-order cost equations for a non-trivial subset of higher-order, recursive and polymorphic functions. We illustrate the approach with reference to some standard examples of recursive programs.