3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-16 23:25:36 +00:00

Fix #7951: add cancellation checks to polynomial gcd_prs and HNF computation

Add checkpoint() call in gcd_prs() main loop so polynomial GCD
computation respects rlimit/timeout. Add cancellation callback to
HNF calculation so it can be interrupted when the solver is cancelled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Lev Nachmanson 2026-02-27 10:09:51 -10:00
parent d906a0cc2d
commit ffe29b1433
3 changed files with 15 additions and 3 deletions

View file

@ -3922,6 +3922,7 @@ namespace polynomial {
unsigned counter = 0;
while (true) {
checkpoint();
(void)counter;
SASSERT(degree(pp_u, x) >= degree(pp_v, x));
unsigned delta = degree(pp_u, x) - degree(pp_v, x);