Skip to content

Commit

Permalink
Merge pull request #2319 from triska/clpz_t
Browse files Browse the repository at this point in the history
ADDED: clpz_t/2, generalizing support for use with library(reif)
  • Loading branch information
mthom authored Feb 7, 2024
2 parents 140a15f + aa98a7e commit 89d3451
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/lib/clpz.pl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
fd_dom/2,

% for use in predicates from library(reif)
clpz_t/2,
(#=)/3,
(#<)/3

Expand Down Expand Up @@ -7981,13 +7982,13 @@
Reified predicates for use with predicates from library(reif).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#=(X, Y, T) :-
X #= Y #<==> #B,
clpz_t(Expr, T) :-
Expr #<==> #B,
zo_t(B, T).

#<(X, Y, T) :-
X #< Y #<==> #B,
zo_t(B, T).
#=(X, Y, T) :- clpz_t(X #= Y, T).

#<(X, Y, T) :- clpz_t(X #< Y, T).

zo_t(0, false).
zo_t(1, true).
Expand Down

0 comments on commit 89d3451

Please sign in to comment.