mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
Bugfix for rewriter exceptions in theory_fpa. Relates to #570.
This commit is contained in:
parent
3a6ce8f8a1
commit
ee60ba824f
|
@ -334,6 +334,7 @@ namespace smt {
|
|||
TRACE("t_fpa_detail", tout << "term: " << mk_ismt2_pp(e, get_manager()) << std::endl;
|
||||
tout << "converted term: " << mk_ismt2_pp(e_conv, get_manager()) << std::endl;);
|
||||
|
||||
try {
|
||||
if (m_fpa_util.is_rm(e)) {
|
||||
SASSERT(m_fpa_util.is_bv2rm(e_conv));
|
||||
expr_ref bv_rm(m);
|
||||
|
@ -351,6 +352,12 @@ namespace smt {
|
|||
}
|
||||
else
|
||||
UNREACHABLE();
|
||||
}
|
||||
catch (rewriter_exception &)
|
||||
{
|
||||
m_th_rw.reset();
|
||||
throw;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue