fix numbervars to number atts
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1136 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
8402df6bb2
commit
7e9c32fd52
@ -55,9 +55,11 @@ numbervars(Term, M, N) :-
|
||||
'$numbermarked_vars'(L, M, N).
|
||||
|
||||
'$numbermarked_vars'([], M, M).
|
||||
/*
|
||||
'$numbermarked_vars'([V|L], M, N) :-
|
||||
attvar(V), !,
|
||||
'$numbermarked_vars'(L, M, N).
|
||||
*/
|
||||
'$numbermarked_vars'(['$VAR'(M)|L], M, N) :-
|
||||
M1 is M+1,
|
||||
'$numbermarked_vars'(L, M1, N).
|
||||
|
Reference in New Issue
Block a user