1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% simple constraint solver for inequalities between variables
4 %% thom fruehwirth ECRC 950519, LMU 980207, 980311
6 %% ported to hProlog by Tom Schrijvers
9 :- use_module(library(chr)).
12 reflexivity @ leq(X,X) <=> true.
13 antisymmetry @ leq(X,Y), leq(Y,X) <=> X = Y.
14 idempotence @ leq(X,Y) \ leq(X,Y) <=> true.
15 transitivity @ leq(X,Y), leq(Y,Z) ==> leq(X,Z).
27 genleq([Last],Last) :- ! .
28 genleq([X,Y|Xs],Last):-
33 statistics( runtime, [Tm,_]),