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:
parent
d99d5a736f
commit
0e07b218bc
1 changed files with 17 additions and 2 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue