From 884b0ca10eac28e300dbfddb1455f3cfd7ad0aa6 Mon Sep 17 00:00:00 2001 From: Markus Triska Date: Wed, 8 Mar 2023 21:16:54 +0100 Subject: [PATCH] FIXED: Take all variables into account during goal projection. This addresses #1751. --- src/lib/dif.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dif.pl b/src/lib/dif.pl index 20842b27..73d65518 100644 --- a/src/lib/dif.pl +++ b/src/lib/dif.pl @@ -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)] ; [] -- 2.54.0