The code generation pass uses whatever final state the debugging run
left behind. Have the debug pass force the final state back to Z when
it finishes.
Also, produce correct output from the debugging pass.
case X0 | 0: st = Z; printf("+ %lu\n", i - 1); break;
}
}
case X0 | 0: st = Z; printf("+ %lu\n", i - 1); break;
}
}
- if (st >= X) printf("+ %lu\n", i);
+ if (st >= X) printf("+ %lu\n", i - 1);
+ st = Z;
#endif
for (i = 0, mp_scan(&sc, p); i < d - 1 && mp_step(&sc); i++) {
#endif
for (i = 0, mp_scan(&sc, p); i < d - 1 && mp_step(&sc); i++) {