@inproceedings{gallagher-lafave-dagstuhl,
author={J. P. Gallagher and L. Lafave},
title={Regular Approximation of Computation Paths in Logic and Functional Languages},
booktitle={Proceedings of the Dagstuhl Workshop on Partial Evaluation},
ISBN={in press},
publisher={Springer-Verlag},
pages={1--16},
month={February},
year={1996},
abstract={The aim of this work is to compute descriptions of successful computation paths in logic or functional program executions. Computation paths are represented as terms, built from special constructor symbols, each constructor symbol corresponding to a specific clause or equation in a program. Such terms, called \em trace-terms, are abstractions of computation trees, which capture information about the control flow of the program. A method of approximating trace-terms is described, based on well-established methods for computing regular approximations of terms. The special function symbols are first introduced into programs as extra arguments in predicates or functions. Then a regular approximation of the program is computed, describing the terms occurring in some set of program executions. The approximation of the extra arguments (the trace-terms) can then be examined to see what computation paths were followed during the computation. This information can then be used to control both off-line or on-line specialisation systems. A key aspect of the analysis is the use of suitable \em widening operations during the regular approximation, in order to preserve information on determinacy and branching structure of the computation. This method is applicable to both logic and functional languages, and appears to offer appropriate control information in both formalisms. },
abstract-url={http://www.cs.bris.ac.uk/Publications/pub_master.jsp?id=1000129},
keyword={},
pubtype={102}
}