Merge branch 'master' of git://yap.git.sourceforge.net/gitroot/yap/yap-6.3
This commit is contained in:
commit
9e50de9efc
@ -897,7 +897,7 @@ AllAttVars( USES_REGS1 ) {
|
|||||||
CELL *pt = H0;
|
CELL *pt = H0;
|
||||||
CELL *myH = H;
|
CELL *myH = H;
|
||||||
|
|
||||||
while (pt < H) {
|
while (pt < myH) {
|
||||||
switch(*pt) {
|
switch(*pt) {
|
||||||
case (CELL)FunctorAttVar:
|
case (CELL)FunctorAttVar:
|
||||||
if (IsUnboundVar(pt+1)) {
|
if (IsUnboundVar(pt+1)) {
|
||||||
|
@ -3696,6 +3696,11 @@ compaction_phase(tr_fr_ptr old_TR, CELL *current_env, yamop *curp USES_REGS)
|
|||||||
}
|
}
|
||||||
if (CurrentH0) {
|
if (CurrentH0) {
|
||||||
H0 = CurrentH0;
|
H0 = CurrentH0;
|
||||||
|
#ifdef TABLING
|
||||||
|
/* make sure that we have the correct H_FZ if we're not tabling */
|
||||||
|
if (B_FZ == (choiceptr)LCL0)
|
||||||
|
H_FZ = H0;
|
||||||
|
#endif /* TABLING */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,8 @@ clpbn_flag(parameter_softening,Before,After) :-
|
|||||||
% we use a mutable variable to avoid unnecessary trailing.
|
% we use a mutable variable to avoid unnecessary trailing.
|
||||||
%
|
%
|
||||||
store_var(El) :-
|
store_var(El) :-
|
||||||
nb_current(clpbn_qvars, Mutable), !,
|
nb_current(clpbn_qvars, Mutable),
|
||||||
|
nonvar(Mutable), !,
|
||||||
get_mutable(Tail, Mutable),
|
get_mutable(Tail, Mutable),
|
||||||
update_mutable(El.Tail, Mutable).
|
update_mutable(El.Tail, Mutable).
|
||||||
store_var(El) :-
|
store_var(El) :-
|
||||||
|
@ -128,9 +128,12 @@ store_cl(Cl) :-
|
|||||||
|
|
||||||
add_new_clause(_,(_ :- true),_,_) :- !.
|
add_new_clause(_,(_ :- true),_,_) :- !.
|
||||||
add_new_clause(_,(H :- B),_,_) :-
|
add_new_clause(_,(H :- B),_,_) :-
|
||||||
|
%trace,
|
||||||
% user:db_usage,
|
% user:db_usage,
|
||||||
% user:db_dynamic,
|
% user:db_dynamic,
|
||||||
domain(H, K, V, D),
|
domain(H, K, V, D),
|
||||||
|
user:cost((H :- B), _, Cost),
|
||||||
|
format(user_error,'Current Cost: ~w.~n', [Cost]),
|
||||||
rewrite_body(B, IB, Vs, _, ( !, { V = K with p(D, CPTList, Vs) })),
|
rewrite_body(B, IB, Vs, _, ( !, { V = K with p(D, CPTList, Vs) })),
|
||||||
% need to remember which CPT we want
|
% need to remember which CPT we want
|
||||||
get_dist_key(Id, K),
|
get_dist_key(Id, K),
|
||||||
|
Reference in New Issue
Block a user