Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Aug 16, 2021
1 parent 3d13c03 commit 429e5ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/sat/smt/fpa_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ namespace fpa {

if (is_attached_to_var(n))
return;
if (m.is_ite(n->get_expr()))
return;
attach_new_th_var(n);

expr* owner = n->get_expr();
Expand Down Expand Up @@ -213,7 +215,10 @@ namespace fpa {

mpf_manager& mpfm = m_fpa_util.fm();

if (m_fpa_util.is_float(n) || m_fpa_util.is_rm(n)) {
if (m.is_ite(n)) {
// skip
}
else if (m_fpa_util.is_float(n) || m_fpa_util.is_rm(n)) {
expr* a = nullptr, * b = nullptr, * c = nullptr;
if (!m_fpa_util.is_fp(n)) {
app_ref wrapped = m_converter.wrap(n);
Expand All @@ -236,9 +241,6 @@ namespace fpa {
add_unit(eq_internalize(bv_val_e, n));
add_units(mk_side_conditions());
}
else if (m.is_ite(n)) {
// pass
}
else
add_unit(eq_internalize(m_converter.unwrap(wrapped, n->get_sort()), n));
}
Expand Down

0 comments on commit 429e5ed

Please sign in to comment.