English

Non-termination Analysis of Logic Programs with Integer arithmetics

Programming Languages 2011-09-16 v1 Logic in Computer Science

Abstract

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 ICLP 2009. The analysis starts from a class of queries and infers a subclass of non-terminating ones. In a first phase, we ignore the outcome (success or failure) of the arithmetic operations, assuming success of all arithmetic calls. In a second phase, we characterize successful arithmetic calls as a constraint problem, the solution of which determines the non-terminating queries.

Keywords

Cite

@article{arxiv.1109.3256,
  title  = {Non-termination Analysis of Logic Programs with Integer arithmetics},
  author = {Dean Voets and Danny De Schreye},
  journal= {arXiv preprint arXiv:1109.3256},
  year   = {2011}
}

Comments

15 pages, 2 figures, journal TPLP (special issue on the international conference of logic programming)

R2 v1 2026-06-21T19:05:06.277Z