Hostname: page-component-745bb68f8f-cphqk Total loading time: 0 Render date: 2025-02-11T13:48:49.644Z Has data issue: false hasContentIssue false

Inferring termination conditions for logic programs using backwards analysis

Published online by Cambridge University Press:  10 January 2005

SAMIR GENAIM
Affiliation:
Dipartimento di Informatica, Università degli Studi di Verona, Verona, Italy (e-mail: genaim@sci.univr.it)
MICHAEL CODISH
Affiliation:
Department of Computer Science, Ben-Gurion University, Israel (e-mail: mcodish@cs.bgu.ac.il)
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.

This paper focuses on the inference of modes for which a logic program is guaranteed to terminate. This generalises traditional termination analysis where an analyser tries to verify termination for a specified mode. Our contribution is a methodology in which components of traditional termination analysis are combined with backwards analysis to obtain an analyser for termination inference. We identify a condition on the components of the analyser which guarantees that termination inference will infer all modes which can be checked to terminate. The application of this methodology to enhance a traditional termination analyser to perform also termination inference is demonstrated.

Type
Regular Papers
Copyright
© 2005 Cambridge University Press