Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-09T06:13:58.993Z Has data issue: false hasContentIssue false

Non-termination analysis of logic programs with integer arithmetics

Published online by Cambridge University Press:  06 July 2011

DEAN VOETS
Affiliation:
Department of Computer Science, K.U. Leuven, Belgium Celestijnenlaan 200A, 3001 Heverlee, Belgium (e-mail: Dean.Voets@cs.kuleuven.be, Danny.DeSchreye@cs.kuleuven.be)
DANNY DE SCHREYE
Affiliation:
Department of Computer Science, K.U. Leuven, Belgium Celestijnenlaan 200A, 3001 Heverlee, Belgium (e-mail: Dean.Voets@cs.kuleuven.be, Danny.DeSchreye@cs.kuleuven.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.

In the past years, analyzers have been introduced to detect classes of non-terminating queries for definite logic programs. Although these non-termination analyzers have shown to be rather precise, their applicability on real-life Prolog programs is limited because most Prolog programs use non-logical features. As a first step towards the analysis of Prolog programs, this paper presents a non-termination condition for Logic Programs containing integer arithmetics. The analyzer is based on our non-termination analyzer presented at International Logic Programming Conference (ICLP) 2009. The analysis starts from a class of queries and infers a subclass of non-terminating ones. In first phase, we ignore the outcome (success or failure) of the arithmetic operations, assuming success of all arithmetic calls. In second phase, we characterize successful arithmetic calls as a constraint problem, the solution of which determines the non-terminating queries.

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2011