Hostname: page-component-77f85d65b8-v2srd Total loading time: 0 Render date: 2026-03-28T16:33:38.529Z Has data issue: false hasContentIssue false

Total unfolding: theory and applications

Published online by Cambridge University Press:  07 November 2008

Björn Lisper
Affiliation:
The Royal Institute of Technology, Department of Teleinformatics, Electrum/204, S-164 40 Kista, Sweden and Swedish Institute of Computer Science, PO Box 1263, S-164 28 Kista, Sweden
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.

Unfolding is a common technique in program transformations. Here, we present a computation model where unfolding is a simple generalisation of the usual concept of evaluation. The model is a variant of the well-known full substitution evaluation rule for recursive programs. The evaluation mechanism involved is symbolic substitution of function definitions followed by simplification. Simplification is expressed as a confluent rewrite strategy which uses three kinds of reductions: β-reduction, non-erasing reduction, and erasing reduction. Non-erasing reductions include simplification of constant subexpressions. Erasing reductions formalize the behaviour of nonstrict operations. In this computation model, we prove a termination theorem of symbolic unfolding relative to more instantiated calls. A possible application of the model is a technique called total unfolding, where a partially instantiated function call is unfolded until no more calls exist. Under certain conditions the result will be a first order term: such terms correspond to basic blocks in imperative programs and can be efficiently implemented by scheduling techniques. Possible applications are hardware synthesis, and code generation for parallel machines.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 1994
Submit a response

Discussions

No Discussions have been published for this article.