allow uninstanted arguments in erased_statistics.
This commit is contained in:
parent
a2e6a0157c
commit
ef53ed696b
@ -877,8 +877,9 @@ predicate_statistics(P,NCls,Sz,ISz) :-
|
|||||||
'$predicate_statistics'(P,M,NCls,Sz,ISz) :-
|
'$predicate_statistics'(P,M,NCls,Sz,ISz) :-
|
||||||
'$static_pred_statistics'(P,M,NCls,Sz,ISz).
|
'$static_pred_statistics'(P,M,NCls,Sz,ISz).
|
||||||
|
|
||||||
predicate_erased_statistics(V,NCls,Sz,ISz) :- var(V), !,
|
predicate_erased_statistics(P,NCls,Sz,ISz) :-
|
||||||
'$do_error'(instantiation_error,predicate_statistics(V,NCls,Sz,ISz)).
|
current_predicate(_,P),
|
||||||
|
predicate_erased_statistics(P,NCls,Sz,ISz).
|
||||||
predicate_erased_statistics(M:P,NCls,Sz,ISz) :- !,
|
predicate_erased_statistics(M:P,NCls,Sz,ISz) :- !,
|
||||||
'$predicate_erased_statistics'(M:P,NCls,Sz,_,ISz).
|
'$predicate_erased_statistics'(M:P,NCls,Sz,_,ISz).
|
||||||
predicate_erased_statistics(P,NCls,Sz,ISz) :-
|
predicate_erased_statistics(P,NCls,Sz,ISz) :-
|
||||||
|
Reference in New Issue
Block a user