You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong answer produced by clp(q) after a copy_term/2 #94
G = (M=<X,X=<N,N1>=0,K>=1,N1=K-1,K=N-M+1),
T = (_A=<_B,_B=<_C,_D>=0,_E>=1,_D=_E-1,_E=_C-_A+1),
F = (_A=<_B),
R = (_B=<_C,_D>=0,_E>=1,_D=_E-1,_E=_C-_A+1),
{N1= -1+K},
{N= -1+M+K},
{M-X=<0},
{_A-_B=<0},
{M-X+K>=1}
According to Paulo Moura this is the answer given by Sictus Prolog.
Besides, the same goal where the order of the integer constraints in G is slightly changed:
Activity
andreaf96 commentedon Feb 2, 2020
This goal @maximilianocristia
produces this output (with the latest development version of CLP(Q,R)).
From https://www.swi-prolog.org/pldoc/doc_for?object=copy_term_nat/2