Automatic Inference of Upper Bounds for Recurrence Relations in Cost Analysis

  • Authors:
  • Elvira Albert;Puri Arenas;Samir Genaim;Germán Puebla

  • Affiliations:
  • DSIC, Complutense University of Madrid, Madrid, Spain E-28040;DSIC, Complutense University of Madrid, Madrid, Spain E-28040;CLIP, Technical University of Madrid, Madrid, Spain E-28660;CLIP, Technical University of Madrid, Madrid, Spain E-28660

  • Venue:
  • SAS '08 Proceedings of the 15th international symposium on Static Analysis
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

The classical approach to automatic cost analysis consists of two phases. Given a program and some measure of cost, we first produce recurrence relations(RRs) which capture the cost of our program in terms of the size of its input data. Second, we convert such RRs into closed form(i.e., without recurrences). Whereas the first phase has received considerable attention, with a number of cost analyses available for a variety of programming languages, the second phase has received comparatively little attention. In this paper we first study the features of RRs generated by automatic cost analysis and discuss why existing computer algebra systems are not appropriate for automatically obtaining closed form solutions nor upper bounds of them. Then we present, to our knowledge, the first practical framework for the fully automatic generation of reasonably accurate upper bounds of RRs originating from cost analysis of a wide range of programs. It is based on the inference of ranking functionsand loop invariantsand on partial evaluation.