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

making try-for tactic exception resilient on cancelation

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-04-26 15:58:12 -07:00
parent 245c117aba
commit 7461103802
2 changed files with 8 additions and 18 deletions

View file

@ -1056,7 +1056,13 @@ public:
cancel_eh<reslimit> eh(in->m().limit());
{
scoped_timer timer(m_timeout, &eh);
m_t->operator()(in, result);
try {
m_t->operator()(in, result);
} catch (z3_exception &) {
if (in->m().limit().is_canceled())
return;
throw;
}
}
}