Journal of Automated Reasoning

, Volume 46, Issue 2, pp 161–203

Closed-Form Upper Bounds in Static Cost Analysis

  • Elvira Albert
  • Puri Arenas
  • Samir Genaim
  • Germán Puebla
Article

DOI: 10.1007/s10817-010-9174-1

Cite this article as:
Albert, E., Arenas, P., Genaim, S. et al. J Autom Reasoning (2011) 46: 161. doi:10.1007/s10817-010-9174-1

Abstract

The classical approach to automatic cost analysis consists of two phases. Given a program and some measure of cost, the analysis first produces cost relations (CRs), i.e., recursive equations which capture the cost of the program in terms of the size of its input data. Second, CRs are converted 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 been comparatively less studied. This article presents, to our knowledge, the first practical framework for the generation of closed-form upper bounds for CRs which (1) is fully automatic, (2) can handle the distinctive features of CRs, originating from cost analysis of realistic programming languages, (3) is not restricted to simple complexity classes, and (4) produces reasonably accurate solutions. A key idea in our approach is to view CRs as programs, which allows applying semantic-based static analyses and transformations to bound them, namely our method is based on the inference of ranking functions and loop invariants and on the use of partial evaluation.

Keywords

Cost analysis Closed-form upper bounds Resource analysis Automatic complexity analysis Static analysis Abstract interpretation Programming languages 

Copyright information

© Springer Science+Business Media B.V. 2010

Authors and Affiliations

  • Elvira Albert
    • 1
  • Puri Arenas
    • 1
  • Samir Genaim
    • 1
  • Germán Puebla
    • 2
  1. 1.DSIC, Complutense University of Madrid (UCM)MadridSpain
  2. 2.DLSIISTechnical University of Madrid (UPM)Boadilla del MonteSpain

Personalised recommendations