Type-based homeomorphic embedding for online termination

  • Authors:
  • Elvira Albert;John Gallagher;Miguel Gómez-Zamalloa;Germán Puebla

  • Affiliations:
  • DSIC, Complutense University of Madrid, E-28040 Madrid, Spain;CBIT, Roskilde University, DK-4000 Roskilde, Denmark and IMDEA Software, E-28660 Boadilla del Monte, Spain;DSIC, Complutense University of Madrid, E-28040 Madrid, Spain;CLIP, DLSIIS, Technical University of Madrid, E-28660 Boadilla del Monte, Spain

  • Venue:
  • Information Processing Letters
  • Year:
  • 2009

Quantified Score

Hi-index 0.89

Visualization

Abstract

Online termination techniques dynamically guarantee termination of computations by supervising them in such a way that computations whose termination can no longer be guaranteed are stopped. Homeomorphic Embedding (HEm) has proven to be very useful for online termination provided that the computations supervised are performed over a finite signature, i.e., the number of constants and function symbols involved is finite. However, there are many situations, for example numeric computations, which involve an infinite signature and thus HEm does not guarantee termination. Some extensions to HEm for the case of infinite signatures have been proposed which guarantee termination. However, the existing techniques either do not provide systematic means for generating such extensions or the extensions are too simplistic and do not produce the expected results in practice. We propose Type-based Homeomorphic Embedding (TbHEm) as an extension of the standard, untyped, HEm. By taking static information about the behavior of the computation into account, expressed as types, TbHEm allows obtaining more precise results than those of the previous extensions to HEm for the case of infinite signatures. We show that the existing extensions to HEm which are currently used in state-of-the-art specialization tools can be reconstructed as instances of TbHEm. We illustrate the applicability of our proposal in a realistic case study: partial evaluation of an interpreter. We argue that the results obtained provide empirical evidence of the interest of our proposal.