trealla icon indicating copy to clipboard operation
trealla copied to clipboard

CLPZ: Comparison

Open flexoron opened this issue 10 months ago • 3 comments

$ scryer-prolog 
?- use_module(library(clpz)).
   true.
?- #X #= #X * #Y, #X #= -1 * #Y.  % Immediate answer
   clpz:(-1*Y#=X), clpz:(X*Y#=X).
?- halt.

$ tpl
?- use_module(library(clpz)).
   true.
?- #X #= #X * #Y, #X #= -1 * #Y. % Eats cpu/memory
^C
Action or (h)elp: a
  ... .
 false.
?- halt.

Diamond fetishism?
$ tpl
?- use_module(library(clpz)).
   true.
?- #X #= #X * #Y, #X #= #(-1) * #Y.
   clpz:(X*_A#=X), clpz:(_B*Y#=_B), clpz:(-1*Y#=_B), clpz:(-1*_A#=X).
?-

Don't know which behaviour is expected.

flexoron avatar Apr 14 '24 00:04 flexoron

~/trealla ((no branch, bisect started on devel)) $ git bisect good 7c5aa7fd62afc1454235460ac7197799d5889510 is the first bad commit commit 7c5aa7fd62afc1454235460ac7197799d5889510 Author: Andrew Davison [email protected] Date: Fri Mar 15 08:27:30 2024 +1000

Trying sort_r_simple, re issue #509

Makefile | 2 +- src/bif_sort.c | 24 +---- src/sort_r.h | 321 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 326 insertions(+), 21 deletions(-) create mode 100644 src/sort_r.h ~/trealla ((no branch, bisect started on devel)) $

infradig avatar Apr 14 '24 01:04 infradig

Trealla shows intermediate variables like _B which is unfortunate. Need to look at that.

And _A is a synonym for Y here. Also need to look at.

infradig avatar Apr 14 '24 01:04 infradig

Somehow ok but the last test hangs here: Android/Termux : ./tpl tests/issues/test523.pl Neither sort_r nor sort_r_simple solves this hang.

flexoron avatar Apr 15 '24 03:04 flexoron

v2.52.16 Intermediate variables and synonyms walked out.

flexoron avatar Jun 01 '24 12:06 flexoron