packages-chr icon indicating copy to clipboard operation
packages-chr copied to clipboard

CHR: Leuven Constraint Handling Rules

Results 5 packages-chr issues
Sort by recently updated
recently updated
newest added

The reproduce steps as follows. 1. Create two files. main.pl ``` :- debug. :- use_module(library(chr)). :- chr_constraint c/1. :- include('test.pl'). ``` test.pl ``` test0 :- true. test :- do_test. c(X,Y,Z)...

Hi, For the following program ``` %% test.pl :- use_module(library(chr)). :- chr_constraint c/2. c(K,_I), c(K,_J) writeln('rule 1 fired'). c(_I,K), c(_J,K) writeln('rule 2 fired'). ``` ``` ?- consult(["test.pl"]). true. ?- c(X,Y)....

I am using the 32-bit-Version of SWI-Prolog 8.2.0 on Windows 10 64-bit. In the attached file, [testchr.txt](https://github.com/SWI-Prolog/packages-chr/files/4702061/testchr.txt) (rename to .pl before running), running `testit` should lead to none of the...

Rational: "read" is used for complete Prolog terms.

On SWI-Prolog 9.2.4 on Manjaro, with the program ```prolog :- use_module(library(chr)). :- chr_option(check_guard_bindings, on). :- chr_constraint split/2. split(R, A*X), split(R, B*X) var(X) | C is A+B, split(R, C*X). split(R, A*X)...