Termination analysis of logic programs through combination of type-based norms
Open Access
- 1 April 2007
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 29 (2) , 10
Abstract
This article makes two contributions to the work on semantics-based termination analysis for logic programs. The first involves a novel notion of type - based norm where for a given type, a corresponding norm is defined to count in a term the number of subterms of that type. This provides a collection of candidate norms, one for each type defined in the program. The second enables an analyzer to base termination proofs on the combination of several different norms. This is useful when different norms are better suited to justify the termination of different parts of the program. Application of the two contributions together consists in considering the combination of the type-based candidate norms for a given program. This results in a powerful and practical technique. Both contributions have been introduced into a working termination analyzer. Experimentation indicates that they yield state-of-the-art results in a fully automatic analysis tool, improving with respect to methods that do not use both types and combined norms.Keywords
This publication has 31 references indexed in Scilit:
- Inferring termination conditions for logic programs using backwards analysisTheory and Practice of Logic Programming, 2005
- Inference of Well-Typings for Logic Programs with Application to Termination Analysis2005
- Reuse of Results in Termination Analysis of Typed Logic ProgramsLecture Notes in Computer Science, 2002
- On modular termination proofs of general logic programsTheory and Practice of Logic Programming, 2002
- Combining Norms to Prove TerminationLecture Notes in Computer Science, 2002
- A semantic basis for the termination analysis of logic programsThe Journal of Logic Programming, 1999
- Inferring argument size relationships with CLP( $\mathcal{R}$ )Lecture Notes in Computer Science, 1997
- Deriving linear size relations for logic programs by abstract interpretationNew Generation Computing, 1995
- Reasoning about Termination of Pure Prolog ProgramsInformation and Computation, 1993
- Proving termination with multiset orderingsCommunications of the ACM, 1979