Termination Prediction for General Logic Programs

05/13/2009
by   Yi-Dong Shen, et al.
0

We present a heuristic framework for attacking the undecidable termination problem of logic programs, as an alternative to current termination/non-termination 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 non-floundering 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 296 benchmark programs of the Termination Competition 2007, of which eighteen programs cannot be proved by any of the existing state-of-the-art analyzers like AProVE07, NTI, Polytool and TALP.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/24/2020

A Separation Logic to Verify Termination of Busy-Waiting for Abrupt Program Exit

Programs for multiprocessor machines commonly perform busy-waiting for s...
research
06/21/2000

Verifying Termination of General Logic Programs with Concrete Queries

We introduce a method of verifying termination of logic programs with re...
research
07/21/2023

Binary Non-Termination in Term Rewriting and Logic Programming

We present a new syntactic criterion for the automatic detection of non-...
research
06/23/2009

On Chase Termination Beyond Stratification

We study the termination problem of the chase algorithm, a central tool ...
research
10/22/2020

Ghost Signals: Verifying Termination of Busy-Waiting

Programs for multiprocessor machines commonly perform busy-waiting for s...
research
02/05/2023

AProVE: Modular Termination Analysis of Memory-Manipulating C Programs

Termination analysis of C programs is a challenging task. On the one han...
research
12/13/2015

Using Linear Constraints for Logic Program Termination Analysis

It is widely acknowledged that function symbols are an important feature...

Please sign up or login with your details

Forgot password? Click here to reset