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