Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-09T10:01:04.043Z Has data issue: false hasContentIssue false

Resource Analysis driven by (Conditional) Termination Proofs

Published online by Cambridge University Press:  20 September 2019

ELVIRA ALBERT
Affiliation:
DSIC, Complutense University of Madrid (UCM), E-28040 Madrid, Spain
MIQUEL BOFILL
Affiliation:
IMAE, University of Girona (UdG), E-17003 Girona, Spain
CRISTINA BORRALLERAS
Affiliation:
University of Vic - Central University of Catalonia (UVic-UCC), 08500 Vic (Barcelona), Spain
ENRIQUE MARTIN-MARTIN
Affiliation:
DSIC, Complutense University of Madrid (UCM), E-28040 Madrid, Spain
ALBERT RUBIO
Affiliation:
DSIC, Complutense University of Madrid (UCM), E-28040 Madrid, Spain
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

When programs feature a complex control flow, existing techniques for resource analysis produce cost relation systems (CRS) whose cost functions retain the complex flow of the program and, consequently, might not be solvable into closed-form upper bounds. This paper presents a novel approach to resource analysis that is driven by the result of a termination analysis. The fundamental idea is that the termination proof encapsulates the flows of the program which are relevant for the cost computation so that, by driving the generation of the CRS using the termination proof, we produce a linearly-bounded CRS (LB-CRS). A LB-CRS is composed of cost functions that are guaranteed to be locally bounded by linear ranking functions and thus greatly simplify the process of CRS solving. We have built a new resource analysis tool, named MaxCore, that is guided by the VeryMax termination analyzer and uses CoFloCo and PUBS as CRS solvers. Our experimental results on the set of benchmarks from the Complexity and Termination Competition 2019 for C Integer programs show that MaxCore outperforms all other resource analysis tools.

Information

Type
Original Article
Copyright
© Cambridge University Press 2019