3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-07 19:05:22 +00:00

exception protection for nlsat_tactic

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-04-26 13:11:59 -07:00
parent d99d5a736f
commit 0e07b218bc

View file

@ -133,8 +133,23 @@ class nlsat_tactic : public tactic {
return ok;
}
void operator()(goal_ref const & g,
goal_ref_buffer & result) {
void operator()(goal_ref const &g, goal_ref_buffer &result) {
try {
check(g, result);
}
catch (z3_exception &ex) {
if (m.limit().is_canceled()) {
if (result.empty()) {
g->inc_depth();
result.push_back(g.get());
}
return;
}
throw;
}
}
void check(goal_ref const & g, goal_ref_buffer & result) {
tactic_report report("nlsat", *g);
if (g->is_decided()) {