School Homepage

Papers of Patricia M. Hill

Software Support for CLP: Papers

Technical Reports at Leeds

Mode Analysis Domains for Typed Logic Programs

[Page last updated on 2000/10/25.]

Jan-Georg Smaus
INRIA-Roquencourt
BP 105,
78153 Le Chesnay Cedex,
France
jan.smaus@inria.fr

Patricia M. Hill
School of Computing
The University of Leeds
Leeds LS2 9JT
England

Andy King
Computing Laboratory
The University of Kent at Canterbury
Canterbury CT2 7NF
England

Abstract:

Precise mode information is important for compiler optimisations and in program development tools. Within the framework of abstract compilation, the precision of a mode analysis depends, in part, on the expressiveness of the abstract domain and its associated abstraction function. This paper considers abstract domains for polymorphically typed logic programs and shows how specialised domains may be constructed for each type in the program. These domains capture the degree of instantiation to a high level of precision. By providing a generic definition of abstract unification, the abstraction of a program using these domains is formalised. The domain construction procedure is fully implemented using the Godel language and tested on a number of example programs to demonstrate the viability of the approach.


Available: Gzipped Postscript. BibTeX entry.