dif/2: Omit entailed residual goals, if the arguments are not unifiable.
This addresses #135.
This commit is contained in:
@@ -49,7 +49,9 @@ dif(X, Y) :-
|
|||||||
|
|
||||||
gather_dif_goals([]) --> [].
|
gather_dif_goals([]) --> [].
|
||||||
gather_dif_goals([(X \== Y) | Goals]) -->
|
gather_dif_goals([(X \== Y) | Goals]) -->
|
||||||
[dif(X, Y)],
|
( { X \= Y } -> []
|
||||||
|
; [dif(X, Y)]
|
||||||
|
),
|
||||||
gather_dif_goals(Goals).
|
gather_dif_goals(Goals).
|
||||||
|
|
||||||
attribute_goals(X) -->
|
attribute_goals(X) -->
|
||||||
|
|||||||
Reference in New Issue
Block a user