trealla: clpb missing a solution
The only example from the clpb.pl doc that is out-right wrong (so far)…
~/trealla (devel) $ tpl
Trealla Prolog (c) Infradig 2020-2023, v2.27.20-1-gc049-dirty
?- use_module(library(clpb)).
true.
?- sat(X*Y + X*Z), labeling([X,Y,Z]).
X = 1, Y = X, Z = 0
; X = 1, Y = X, Z = X
; false.
?-
The first solution is missing, as per below…
~/trealla (devel) $ scryer-prolog
?- use_module(library(clpb)).
true.
?- sat(X*Y + X*Z), labeling([X,Y,Z]).
X = 1, Y = 0, Z = 1
; X = 1, Y = 1, Z = 0
; X = 1, Y = 1, Z = 1.
?-
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Fix clpb blackboard problem, re issue #338 — committed to trealla-prolog/trealla by infradig 9 months ago
- Fixes for clpb (just disable optimization for now), re issue #338 — committed to trealla-prolog/trealla by infradig 9 months ago
- Fixes for clpb (just disable optimization for now), re issue #338 — committed to trealla-prolog/trealla by infradig 9 months ago
Ok, I think all the issues above are resolved excpet the original problem, which is back to missing one solution…
~/trealla (devel) $ tpl Trealla Prolog © Infradig 2020-2023, v2.29.7 ?- use_module(library(clpb)). true. ?- sat(XY + XZ), labeling([X,Y,Z]). X = 1, Y = X, Z = 0 ; X = 1, Y = X, Z = X. ?-
Well there’s something that interacts badly with TCO because -O0 just disables that.
On Mon, 9 Oct 2023, 07:25 Markus Triska, @.***> wrote: