]> Repositorios git - scryer-prolog.git/commitdiff
FIXED: Take all variables into account during goal projection.
authorMarkus Triska <[email protected]>
Wed, 8 Mar 2023 20:16:54 +0000 (21:16 +0100)
committerMarkus Triska <[email protected]>
Wed, 8 Mar 2023 20:16:54 +0000 (21:16 +0100)
This addresses #1751.

src/lib/dif.pl

index 20842b271d585e7a35dbab51556b619c22e56052..73d65518cafaaa779d232c6ecbfdc47d50457375 100644 (file)
@@ -65,7 +65,7 @@ dif(X, Y) :-
 
 gather_dif_goals(_, []) --> [].
 gather_dif_goals(V, [(X \== Y) | Goals]) -->
-    (  { term_variables(X, [V0 | _]),
+    (  { term_variables(X-Y, [V0 | _]),
          V == V0 } ->
        [dif:dif(X, Y)]
     ;  []