FIXED: Take all variables into account during goal projection.
This addresses #1751.
This commit is contained in:
@@ -65,7 +65,7 @@ dif(X, Y) :-
|
|||||||
|
|
||||||
gather_dif_goals(_, []) --> [].
|
gather_dif_goals(_, []) --> [].
|
||||||
gather_dif_goals(V, [(X \== Y) | Goals]) -->
|
gather_dif_goals(V, [(X \== Y) | Goals]) -->
|
||||||
( { term_variables(X, [V0 | _]),
|
( { term_variables(X-Y, [V0 | _]),
|
||||||
V == V0 } ->
|
V == V0 } ->
|
||||||
[dif:dif(X, Y)]
|
[dif:dif(X, Y)]
|
||||||
; []
|
; []
|
||||||
|
|||||||
Reference in New Issue
Block a user