mirror of
https://github.com/Z3Prover/z3
synced 2025-06-16 10:56:16 +00:00
parent
0b856638e9
commit
426e4cc75c
65 changed files with 135 additions and 146 deletions
|
@ -162,11 +162,11 @@ extern "C" {
|
|||
r = to_optimize_ptr(o)->optimize(asms);
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
if (!mk_c(c)->m().canceled()) {
|
||||
if (mk_c(c)->m().inc()) {
|
||||
mk_c(c)->handle_exception(ex);
|
||||
}
|
||||
r = l_undef;
|
||||
if (ex.msg() == std::string("canceled") && mk_c(c)->m().canceled()) {
|
||||
if (ex.msg() == std::string("canceled") && !mk_c(c)->m().inc()) {
|
||||
to_optimize_ptr(o)->set_reason_unknown(ex.msg());
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -583,7 +583,7 @@ extern "C" {
|
|||
catch (z3_exception & ex) {
|
||||
to_solver_ref(s)->set_reason_unknown(eh);
|
||||
to_solver(s)->set_eh(nullptr);
|
||||
if (!mk_c(c)->m().canceled()) {
|
||||
if (mk_c(c)->m().inc()) {
|
||||
mk_c(c)->handle_exception(ex);
|
||||
}
|
||||
return Z3_L_UNDEF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue