TY - GEN
T1 - Automatic inference of upper bounds for recurrence relations in cost analysis
AU - Albert, Elvira
AU - Arenas, Puri
AU - Genaim, Samir
AU - Puebla, Germán
PY - 2008/8/13
Y1 - 2008/8/13
N2 - 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 functions and loop invariants and on partial evaluation.
AB - 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 functions and loop invariants and on partial evaluation.
UR - https://www.scopus.com/pages/publications/48949097684
U2 - 10.1007/978-3-540-69166-2_15
DO - 10.1007/978-3-540-69166-2_15
M3 - Conference contribution
AN - SCOPUS:48949097684
SN - 3540691634
SN - 9783540691631
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 221
EP - 237
BT - Static Analysis - 15th International Symposium, SAS 2008, Proceedings
T2 - 15th International Static Analysis Symposium, SAS 2008
Y2 - 16 July 2008 through 18 July 2008
ER -