mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
fix crash reported by Nikhil on F* due to unhandled exception while using the rewriter during search
This commit is contained in:
parent
5c2a9d9936
commit
fa605454fb
3 changed files with 16 additions and 3 deletions
|
@ -1575,6 +1575,13 @@ namespace smt {
|
|||
bool already_internalized_theory_core(theory * th, expr_ref_vector const & s) const;
|
||||
#endif
|
||||
bool check_preamble(bool reset_cancel);
|
||||
|
||||
struct search_completion {
|
||||
context& ctx;
|
||||
search_completion(context& ctx) : ctx(ctx) { ctx.m_search_finalized = false; }
|
||||
~search_completion() { if (!ctx.m_search_finalized) ctx.m_last_search_failure = CANCELED; }
|
||||
};
|
||||
bool m_search_finalized = true;
|
||||
lbool check_finalize(lbool r);
|
||||
|
||||
// -----------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue