"Carbon Credits" for Resource-Bounded Computations Using Amortised Analysis

  • Authors:
  • Steffen Jost;Hans-Wolfgang Loidl;Kevin Hammond;Norman Scaife;Martin Hofmann

  • Affiliations:
  • St Andrews University, St Andrews, Scotland, UK;Ludwig-Maximilians University, Munich, Germany;St Andrews University, St Andrews, Scotland, UK;Université Blaise-Pascal, Clermont-Ferrand, France;Ludwig-Maximilians University, Munich, Germany

  • Venue:
  • FM '09 Proceedings of the 2nd World Congress on Formal Methods
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Bounding resource usage is important for a number of areas, notably real-time embedded systems and safety-critical systems. In this paper, we present a fully automatic static type-based analysis for inferring upper bounds on resource usage for programs involving general algebraic datatypes and full recursion. Our method can easily be used to bound any countable resource, without needing to revisit proofs. We apply the analysis to the important metrics of worst-case execution time, stack- and heap-space usage. Our results from several realistic embedded control applications demonstrate good matches between our inferred bounds and measured worst-case costs for heap and stack usage. For time usage we infer good bounds for one application. Where we obtain less tight bounds, this is due to the use of software floating-point libraries.