avoid binding attributed variables.

This commit is contained in:
Vitor Santos Costa 2010-03-27 11:43:03 +00:00
parent c468d8431e
commit 35bbb9e7d1

View File

@ -170,6 +170,9 @@ portray_clause(_).
'$list_get_vars'(Args, M, N).
'$list_transform'([],_) :- !.
'$list_transform'([X|L],M) :-
attvar(X), !,
'$list_transform'(L,N).
'$list_transform'([X,Y|L],M) :- X == Y, X = '$VAR'(M), !, N is M+1,
'$list_transform'(L,N).
'$list_transform'('$VAR'(-1).L,M) :- !, '$list_transform'(L,M).