Cost analysis using automatic size and time inference

  • Authors:
  • Álvaro J. Rebón Portillo;Kevin Hammond;Hans-Wolfgang Loidl;Pedro Vasconcelos

  • Affiliations:
  • School of Computer Science, University of St Andrews, St Andrews, UK;School of Computer Science, University of St Andrews, St Andrews, UK;Ludwig-Maximilians-Universität München, Institut für Informatik, München, Germany;School of Computer Science, University of St Andrews, St Andrews, UK

  • Venue:
  • IFL'02 Proceedings of the 14th international conference on Implementation of functional languages
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

Cost information can be exploited in a variety of contexts, including parallelizing compilers, autonomic GRIDs and real-time systems. In this paper, we introduce a novel type and effect system - the sized time system that is capable of determining upper bounds for both time and space costs, and which we initially intend to apply to determining good granularity for parallel tasks. The analysis is defined for a simple, strict, higher-order and polymorphic functional language, L, incorporating arbitrarily-sized list data structures. The inference algorithm implementing this analysis constructs cost- and size-terms for L- expressions, plus constraints over free size and cost variables in those terms that can be solved to produce information for higher-order functions. The paper presents both the analysis and the inference algorithm, providing examples that illustrate the primary features of the analysis.