diff --git a/C/c_interface.c b/C/c_interface.c index e183d5d8e..713a61182 100755 --- a/C/c_interface.c +++ b/C/c_interface.c @@ -2421,6 +2421,8 @@ YAP_RunGoalOnce(Term t) Int oldPrologMode = LOCAL_PrologMode; BACKUP_MACHINE_REGS(); + Yap_InitYaamRegs( 0 ); + LOCAL_PrologMode = UserMode; // Yap_heap_regs->yap_do_low_level_trace=true; out = Yap_RunTopGoal(t);