Bug detected in buggy GNU-Prolog
- From: "Advait" <advait_raut@xxxxxxxxxxxxxx>
- Date: 18 May 2006 01:51:25 -0700
Hi,
Here is a bug
gprolog 1.2.16
Knowledege Base
p(X) :- a(X).
p(X) :- b(X),c(X),d(X),e(X).
p(X) :- f(X).
a(1).
b(1).
c(1).
b(2).
c(2).
d(2).
e(2).
f(3).
END Knowledge Base
For query
| ?- p(X).
responce should be
X = 1 ;
X = 2 ;
X = 3 ;
no
but gprolog-1.2.16 gives
X = 1 ? ;
X = 3
----------------
yours
Advait
.
- Follow-Ups:
- Re: Bug detected in buggy GNU-Prolog
- From: Bart Demoen
- Re: Bug detected in buggy GNU-Prolog
- Prev by Date: Meaning of ':' and '{}'
- Next by Date: Re: Bug detected in buggy GNU-Prolog
- Previous by thread: Meaning of ':' and '{}'
- Next by thread: Re: Bug detected in buggy GNU-Prolog
- Index(es):