fix handling of attributed vars.

This commit is contained in:
Vítor Santos Costa 2014-10-11 14:06:57 +01:00
parent 1461f44184
commit cf7dccdcdf

View File

@ -262,6 +262,9 @@ residuals_and_delete_attributes(Vs, Gs, Term) :-
delete_attributes(Term).
attvars_residuals([]) --> [].
attvars_residuals([V|Vs]) -->
{ nonvar(V) }, !,
attvars_residuals(Vs).
attvars_residuals([V|Vs]) -->
( { get_attrs(V, As) }
-> attvar_residuals(As, V)