mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix #5271
This commit is contained in:
parent
93a9847815
commit
d2bd92eab9
|
@ -319,7 +319,14 @@ namespace smt {
|
||||||
struct scoped_ctx_push {
|
struct scoped_ctx_push {
|
||||||
context* c;
|
context* c;
|
||||||
scoped_ctx_push(context* c): c(c) { c->push(); }
|
scoped_ctx_push(context* c): c(c) { c->push(); }
|
||||||
~scoped_ctx_push() { c->pop(1); }
|
~scoped_ctx_push() {
|
||||||
|
try {
|
||||||
|
c->pop(1);
|
||||||
|
}
|
||||||
|
catch (...) {
|
||||||
|
;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -193,14 +193,25 @@ namespace smt {
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (z3_error & err) {
|
catch (z3_error & err) {
|
||||||
error_code = err.error_code();
|
if (finished_id == UINT_MAX) {
|
||||||
ex_kind = ERROR_EX;
|
error_code = err.error_code();
|
||||||
done = true;
|
ex_kind = ERROR_EX;
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (z3_exception & ex) {
|
catch (z3_exception & ex) {
|
||||||
ex_msg = ex.msg();
|
if (finished_id == UINT_MAX) {
|
||||||
ex_kind = DEFAULT_EX;
|
ex_msg = ex.msg();
|
||||||
done = true;
|
ex_kind = DEFAULT_EX;
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (...) {
|
||||||
|
if (finished_id == UINT_MAX) {
|
||||||
|
ex_msg = "unknown exception";
|
||||||
|
ex_kind = ERROR_EX;
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue