Fully automatic binding-time analysis for prolog

  • Authors:
  • Stephen-John Craig;John P. Gallagher;Michael Leuschel;Kim S. Henriksen

  • Affiliations:
  • Department of Electronics and Computer Science, University of Southampton, Highfield, Southampton, UK;Department of Computer Science, University of Roskilde, Roskilde, Denmark;Department of Electronics and Computer Science, University of Southampton, Highfield, Southampton, UK;Department of Computer Science, University of Roskilde, Roskilde, Denmark

  • Venue:
  • LOPSTR'04 Proceedings of the 14th international conference on Logic Based Program Synthesis and Transformation
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Offline partial evaluation techniques rely on an annotated version of the source program to control the specialisation process. These annotations guide the specialisation and ensure the termination of the partial evaluation. We present an algorithm for generating these annotations automatically. The algorithm uses state-of-the-art termination analysis techniques, combined with a new type-based abstract interpretation for propagating the binding types. This algorithm has been implemented as part of the logen partial evaluation system, along with a graphical annotation visualiser and editor, and we report on the performance of the algorithm for a series of benchmarks.