fix setof cleanup vars (patch from Bart Demoen).

This commit is contained in:
Costa Vitor 2009-07-02 14:46:07 -05:00
parent 5d966928b9
commit df8f194d80

View File

@ -148,7 +148,7 @@ bagof(Template, Generator, Bag) :-
'$variables_in_term'(X+Y, [], NY),
'$excess_vars'((P,S), _, NY, L0, L).
'$excess_vars'(findall(X,P,S), findall(X,P,S), Y, L0, L) :- !,
'$excess_vars'(S, Y, L0, L).
'$excess_vars'(S, _, Y, L0, L).
'$excess_vars'(findall(X,P,S0,S), (X,P,S0,S), Y, L0, L) :- !,
'$excess_vars'(S, _, Y, L0, L).
'$excess_vars'(\+G, \+G, _, L0, LF) :- !,