protect base choice-point from nasty cutting.
This commit is contained in:
parent
e605da8685
commit
661b9c3b7d
@ -2023,6 +2023,8 @@ YAP_PruneGoal(void)
|
|||||||
B = B->cp_b;
|
B = B->cp_b;
|
||||||
}
|
}
|
||||||
Yap_TrimTrail();
|
Yap_TrimTrail();
|
||||||
|
/* make sure that we do not destroy the guard choice-point */
|
||||||
|
if (Yap_op_from_opcode(B->cp_ap->opc) != _Nstop)
|
||||||
B = B->cp_b;
|
B = B->cp_b;
|
||||||
|
|
||||||
RECOVER_B();
|
RECOVER_B();
|
||||||
@ -2619,6 +2621,7 @@ YAP_Reset(void)
|
|||||||
}
|
}
|
||||||
/* reinitialise the engine */
|
/* reinitialise the engine */
|
||||||
Yap_InitYaamRegs();
|
Yap_InitYaamRegs();
|
||||||
|
Yap_Initialised = TRUE;
|
||||||
|
|
||||||
RECOVER_MACHINE_REGS();
|
RECOVER_MACHINE_REGS();
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
|
Reference in New Issue
Block a user