Hi there, I’ve got confused by the behaviour of CHR combined with CLP. The following can recreate the issue:
:- use_module(library(clpfd)).
:- use_module(library(chr)).
:- chr_constraint chr/1.
test :-
chr(A), chr(B), A #\= B,
findall(V, find_chr_constraint(chr(V)), [X, X]).
The expected outcome should be false, but this gives true. The CLP constraint A #\= B somehow gets lost after find_chr_constraint/1.
Is this something reasonable or a bug?
Any comments appreciated!