Filters

1,550 Hits in 4.3 sec

### On Van Gelder's loop detection algorithm

Dimiter Skordev
1992 The Journal of Logic Programming
execution of a Prolog program.  ...  The incorrectness of Van Gelder's algorithm for loop detection in Prolog is shown. a In [l], an algorithm is proposed for the detection of a certain kind of infinite loops in the depth-first parts of the  ...  * 182 DIMITER SKORDEV Consider for example the degenerated propositional Prolog program consisting only of the fact p. Let the query ? -p, p be evaluated.  ...

### On the detection of some periodic loops during the execution of Prolog programs

Dimiter Skordev
1993 Banach Center Publications
Lettmann; the discussions with them helped the author to better feel some specific features of the above problem in the case of Prolog programs. The author is also very grateful to Professor Dr. E.  ...  The author is indebted to the participants of the Institute Seminar for useful comments concerning the loop detection problem. Special thanks are due to Professor Dr. H. Kleine Büning and to Dr. Th.  ...  sort of loops is that such loops are not typical for the execution of Prolog programs and therefore it would be very insufficient to be able to detect only them.  ...

### A logical reconstruction of Prolog II

M.H. van Emden, J.W. Lloyd
1984 The Journal of Logic Programming
Colmerauer has proposed a theoretical model for Prolog II based on tree rewriting rather than logic. In this paper, we show that Prolog II can be regarded as a logic programming language. a  ...  Proposition 2. Let P be a program, P' its homogeneous form, G a goal, and E the above equality theory for Prolog II. If Prolog II solves the goal G, then P' U E U { G } is unsatisfiable.  ...  Thus G is false in M' and hence in M. Hence P U { G } is unsatisfiable. •I Proposition 1 shows that the equality theory for Prolog is the single axiom Vx x = x.  ...

### Analysis of Logic Programs with Delay [chapter]

Andrew Heaton, Pat Hill, Andy King
1998 Lecture Notes in Computer Science
The paper focuses on practical analyses for logic programs with delay. The method described is for downward-closed program properties and, in particular, groundness.  ...  A program transformation is deÞned which eliminates the delay statements but still enables an accurate approximation of the behaviour of delayed goals to be traced by the analyser.  ...  Groundness analysis detects which program variables are bound to ground terms and is important in detecting determinacy, simplifying uniÞcation, etc.  ...

### Efficient Description Logic Reasoning in Prolog: The DLog system [article]

Gergely Lukácsy, Péter Szeredi
2009 arXiv   pre-print
To appear in Theory and Practice of Logic Programming (TPLP).  ...  DLog transforms Description Logic axioms into a Prolog program and uses the standard Prolog execution for efficiently answering instance retrieval queries.  ...  Finally, we would like to thank the anonymous reviewers whose valuable suggestions were of great help in improving the quality of the paper.  ...

### Measuring Coverage of Prolog Programs Using Mutation Testing [article]

Alexandros Efremidis, Joshua Schmidt, Sebastian Krings, Philipp Körner
2018 arXiv   pre-print
Yet, frameworks for logic programs remain scarce. In this paper, we introduce a framework for Prolog programs measuring test coverage using mutations.  ...  To do so, we discuss the usefulness of different mutations in the context of Prolog and empirically evaluate them in a new mutation testing framework on different examples.  ...  To give a short impression of the complexity of a program, we list the number of predicates, clauses and lines of code for each Prolog program in Table 2 .  ...

### Book announcements

1996 Discrete Applied Mathematics
Chapter I: Propositional Logic. Orders and trees. Propositions, connectives and truth tables. Truth assignments and valuations. Tableau proofs in propositional calculus.  ...  Chapter III: PROLOG. SLD-resolution. Implementations: Searching and back- tracking. Controlling the implementation: Cut. Termination conditions for PROLOG programs. Equality.  ...

### Extending Prolog with nonmonotonic reasoning

Weidong Chen
1996 The Journal of Logic Programming
The dependency maintenance for detecting completion of tabled calls can also be used for detecting tabled calls that are possibly involved in loops through negation.  ...  Assuming a leftmost selection rule as in Prolog, a simple left recursive predicate definition can send Prolog into an infinite loop.  ...

### The applicability of logic program analysis and transformation to theorem proving [chapter]

D. A. Waal, J. P. Gallagher
1994 Lecture Notes in Computer Science
The specialisation techniques developed in this paper are independent of the proof system and can therefore be applied to theorem provers for any logic written as logic programs. 2  ...  Analysis and transformation techniques developed for logic programming can be successfully applied to automatic theorem proving.  ...  Proposition 3.4 safe approximation for detecting useless clause Let P and P 0 be normal programs, where P 0 is a safe approximation of P. Let A B be a clause in P.  ...

### Reference List of Indexed Articles

2002 The Journal of Logic and Algebraic Programming
Hsiang, On Rewrite Programs: Semantics and Relationship with Prolog 14 (1-2) (1992) 155-180 204. D. Skordev, On Van Gelder's Loop Detection Algorithm (Short Note) 14 (1-2) (1992) 181-183 205. A.  ...  Seki, Unfold/Fold Transformation of General Logic Programs for the Well-Founded Semantics 16 (1-2) (1993) 5-23 227. R. Bol, Loop Checking in Partial Deduction 16 (1-2) (1993) 25-46 228. A.  ...

### Non-termination analysis of logic programs with integer arithmetics

DEAN VOETS, DANNY DE SCHREYE
2011 Theory and Practice of Logic Programming
AbstractIn 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.  ...  Proposition 1 already implies that the first argument of all integer constructors are free variables in the subsequent iterations of the loop.  ...

### XSB: A system for efficiently computing well-founded semantics [chapter]

Prasad Rao, Konstantinos Sagonas, Terrance Swift, David S. Warren, Juliana Freire
1997 Lecture Notes in Computer Science
To compute the well-founded semantics, the SLG-WAM adds to an efficient tabling engine for definite programs three operations --negative loop detection, delay and simplification --which serve to detect  ...  , to break and to resolve cycles through negation that might arise in evaluating normal programs.  ...  Prolog, of course, would be trapped in an infinite loop in this program. XSB's treatment of negation is discussed extensively in Section 2.  ...

### An open-ended finite domain constraint solver [chapter]

Mats Carlsson, Greger Ottosson, Björn Carlson
1997 Lecture Notes in Computer Science
The solver has an open-ended design: the user can introduce new constraints, either in terms of indexicals by writing rules in a functional notation, or as global constraints via a Prolog programming interface  ...  We describe the design and implementation of a nite domain constraint solver embedded in a Prolog system using an extended uni cation mechanism via attributed variables as a generic constraint interface  ...  Acknowledgements The research reported herein was supported in part by the Advanced Software Technology Center of Competence at Uppsala University (ASTEC), and in part by the Swedish Institute of Computer  ...

### N-Prolog: An extension of Prolog with hypothetical implications. I

D.M. Gabbay, U. Reyle
1984 The Journal of Logic Programming
Loop detection. In the previous example we wanted to install a loop detection device in the clause: Of course, Add of ordinary PROLOG is not a logical declarative operator.  ...  By the way, this device can be used as a loop detection device in ordinary PROLOG. If a clause of the form Xif Yl,...  ...  An (I) An (2) An (3) In this order.  ...

### Focal structures and information types in Prolog

PABLO ROMERO
2001 International Journal of Human-Computer Studies
In order to investigate this issue this thesis focused on Prolog, a programming language with important differences to those of the procedural paradigm.  ...  Which criteria influences this organisation might depend on the programming language employed and the programming task in hand.  ...  In the second option, the assumption has been that errors located in code segments related to propositions high in the hierarchy will be detected more easily than those located in segments related to propositions  ...
« Previous Showing results 1 — 15 out of 1,550 results