]> Repositorios git - scryer-prolog.git/commitdiff
Revert "FIXED: corrections to expansion_simpler/2"
authorMarkus Triska <[email protected]>
Tue, 3 Oct 2023 17:15:17 +0000 (19:15 +0200)
committerMarkus Triska <[email protected]>
Tue, 3 Oct 2023 17:16:04 +0000 (19:16 +0200)
This reverts commit f3b848537aef601b13bd525df09ee74f5bbeeae9.

The root cause of this problem is a mistake in ground/1. See #2073.

src/lib/clpz.pl

index c4ba62fa292237bbcede0b1d658d7339e92549f3..f438043d23e06f2efef46c1e23c79bf079479505 100644 (file)
@@ -3099,13 +3099,13 @@ expansion_simpler(Var is Expr0, Goal) :-
         ground(Expr0), !,
         phrase(expr_conds(Expr0, Expr), Gs),
         (   maplist(call, Gs) -> Value is Expr, Goal = (Var = Value)
-        ;   Goal = (Var is Expr0)
+        ;   Goal = false
         ).
 expansion_simpler(Var =:= Expr0, Goal) :-
         ground(Expr0), !,
         phrase(expr_conds(Expr0, Expr), Gs),
         (   maplist(call, Gs) -> Value is Expr, Goal = (Var =:= Value)
-        ;   Goal = (Var =:= Expr0)
+        ;   Goal = false
         ).
 expansion_simpler(between:between(L,U,V), Goal) :-
         maplist(integer, [L,U,V]),