Type-based amortized resource analysis with integers and arrays*. (2015)
- Record Type:
- Journal Article
- Title:
- Type-based amortized resource analysis with integers and arrays*. (2015)
- Main Title:
- Type-based amortized resource analysis with integers and arrays*
- Authors:
- HOFFMANN, JAN
SHAO, ZHONG - Abstract:
- Abstract: Proving bounds on the resource consumption of a program by statically analyzing its source code is an important and well-studied problem. Automatic approaches for numeric programs with side effects usually apply abstract interpretation-based invariant generation to derive bounds on loops and recursion depths of function calls. This article presents an alternative approach to resource-bound analysis for numeric and heap-manipulating programs that uses type-based amortized resource analysis. As a first step towards the analysis of imperative code, the technique is developed for a first-order ML-like language with unsigned integers and arrays. The analysis automatically derives bounds that are multivariate polynomials in the numbers and the lengths of the arrays in the input. Experiments with example programs demonstrate two main advantages of amortized analysis over current abstract interpretation–based techniques. For one thing, amortized analysis can handle programs with non-linear intermediate values like f (( n + m ) 2 ). For another thing, amortized analysis is compositional and works naturally for compound programs like f ( g ( x )).
- Is Part Of:
- Journal of functional programming. Volume 25(2015)
- Journal:
- Journal of functional programming
- Issue:
- Volume 25(2015)
- Issue Display:
- Volume 25, Issue 2015 (2015)
- Year:
- 2015
- Volume:
- 25
- Issue:
- 2015
- Issue Sort Value:
- 2015-0025-2015-0000
- Page Start:
- Page End:
- Publication Date:
- 2015
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S0956796815000192 ↗
- Languages:
- English
- ISSNs:
- 0956-7968
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library STI - ELD Digital store
- Ingest File:
- 4776.xml