Skip to main navigation Skip to search Skip to main content

Automatic time-bound analysis for a higher-order language

  • Indiana University Bloomington

Research output: Contribution to conferencePaperpeer-review

14 Scopus citations

Abstract

Analysis of program running time is important for several applications, including reactive systems, interactive environments, compiler optimizations and performance evaluation. Automatic and efficient prediction of accurate time bounds is particularly important, and being able to do so for high-level languages is particularly desirable. This paper presents a general approach for automatic and accurate time-bound analysis for a functional high-level language, that combines methods and techniques studied in theory, languages, and systems. The approach consists of transformations for building time-bound functions in the presence of partially known input structures, symbolic evaluation of the time-bound function based on input parameters, optimizations to make the analysis efficient as well as accurate, and measurements of primitive parameters, all at the source-language level. To handle higher-order functions, special transformations are needed to build lambda expressions for computing running times, to optimize the construction of the time lambda expressions, and to optimize the symbolic evaluation. It took us several tries to obtain the simple and concise transformations for handling lambda expressions. We describe analysis and transformation algorithms and explain how they work. We have implemented this approach and performed a large number of experiments analyzing Scheme programs. The measured worst-case times are closely bounded by the calculated bounds. We describe our prototype system, ALPA, as well as the analysis and measurement results.

Original languageEnglish
Pages75-86
Number of pages12
DOIs
StatePublished - 2002
Event2002 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'02) - Portland, OR, United States
Duration: Jan 14 2002Jan 15 2002

Conference

Conference2002 ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'02)
Country/TerritoryUnited States
CityPortland, OR
Period01/14/0201/15/02

Fingerprint

Dive into the research topics of 'Automatic time-bound analysis for a higher-order language'. Together they form a unique fingerprint.

Cite this