Affiliation:
1. Complutense University of Madrid, Spain
2. Technical University of Madrid, Spain
Abstract
Cost analysis
aims at determining the amount of resources required to run a program in terms of its input data sizes. The most challenging step is to infer the cost of executing the
loops
in the program. This requires bounding the number of iterations of each loop and finding tight bounds for the cost of each of its iterations. This article presents a novel approach to infer
upper
and
lower
bounds from
cost relations
. These relations are an extended form of standard
recurrence equations
that can be nondeterministic, contain inexact size constraints and have multiple arguments that increase and/or decrease. We propose novel techniques to automatically transform cost relations into
worst-case
and
best-case
deterministic one-argument recurrence relations. The solution of each recursive relation provides a precise upper-bound and lower-bound for executing a corresponding loop in the program. Importantly, since the approach is developed at the level of the cost equations, our techniques are programming language independent.
Funder
Ministerio de Ciencia e Innovación
Madrid Regional Government
Seventh Framework Programme
Publisher
Association for Computing Machinery (ACM)
Subject
Computational Mathematics,Logic,General Computer Science,Theoretical Computer Science
Cited by
27 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Automatic Amortized Resource Analysis with Regular Recursive Types;2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS);2023-06-26
2. Denotational semantics as a foundation for cost recurrence extraction for functional languages;Journal of Functional Programming;2022
3. Improving Automatic Complexity Analysis of Integer Programs;The Logic of Software. A Tasting Menu of Formal Methods;2022
4. When COSTA Met KeY: Verified Cost Bounds;The Logic of Software. A Tasting Menu of Formal Methods;2022
5. Regular Path Clauses and Their Application in Solving Loops;Electronic Proceedings in Theoretical Computer Science;2021-09-13