Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-10T03:30:32.182Z Has data issue: false hasContentIssue false

Termination prediction for general logic programs

Published online by Cambridge University Press:  16 June 2009

YI-DONG SHEN
Affiliation:
State Key Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China (e-mail: ydshen@ios.ac.cn)
DANNY DE SCHREYE
Affiliation:
Department of Computer Science, Celestijnenlaan 200 A, B-3001 Heverlee, Belgium (e-mail: danny.deschreye@cs.kuleuven.ac.be, dean.voets@cs.kuleuven.ac.be)
DEAN VOETS
Affiliation:
Department of Computer Science, Celestijnenlaan 200 A, B-3001 Heverlee, Belgium (e-mail: danny.deschreye@cs.kuleuven.ac.be, dean.voets@cs.kuleuven.ac.be)
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.

We present a heuristic framework for attacking the undecidable termination problem of logic programs, as an alternative to current termination/nontermination proof approaches. We introduce an idea of termination prediction, which predicts termination of a logic program in case that neither a termination nor a non-termination proof is applicable. We establish a necessary and sufficient characterization of infinite (generalized) SLDNF-derivations with arbitrary (concrete or moded) queries, and develop an algorithm that predicts termination of general logic programs with arbitrary nonfloundering queries. We have implemented a termination prediction tool and obtained quite satisfactory experimental results. Except for five programs which break the experiment time limit, our prediction is 100% correct for all 296 benchmark programs of the Termination Competition 2007, of which 18 programs cannot be proved by any of the existing state-of-the-art analyzers like AProVE07, NTI, Polytool, and TALP.

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2009