mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 12:53:38 +00:00
Merge branch 'master' into opt
This commit is contained in:
commit
f59bf4c464
2 changed files with 6 additions and 1 deletions
|
@ -140,6 +140,9 @@ extern "C" {
|
||||||
r = to_optimize_ptr(o)->optimize();
|
r = to_optimize_ptr(o)->optimize();
|
||||||
}
|
}
|
||||||
catch (z3_exception& ex) {
|
catch (z3_exception& ex) {
|
||||||
|
if (!mk_c(c)->m().canceled()) {
|
||||||
|
mk_c(c)->handle_exception(ex);
|
||||||
|
}
|
||||||
r = l_undef;
|
r = l_undef;
|
||||||
if (ex.msg() == std::string("canceled") && mk_c(c)->m().canceled()) {
|
if (ex.msg() == std::string("canceled") && mk_c(c)->m().canceled()) {
|
||||||
to_optimize_ptr(o)->set_reason_unknown(ex.msg());
|
to_optimize_ptr(o)->set_reason_unknown(ex.msg());
|
||||||
|
|
|
@ -392,7 +392,9 @@ extern "C" {
|
||||||
}
|
}
|
||||||
catch (z3_exception & ex) {
|
catch (z3_exception & ex) {
|
||||||
to_solver_ref(s)->set_reason_unknown(eh);
|
to_solver_ref(s)->set_reason_unknown(eh);
|
||||||
mk_c(c)->handle_exception(ex);
|
if (!mk_c(c)->m().canceled()) {
|
||||||
|
mk_c(c)->handle_exception(ex);
|
||||||
|
}
|
||||||
return Z3_L_UNDEF;
|
return Z3_L_UNDEF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue