Skip to content

Commit

Permalink
Add additional equality in theory_fpa
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph M. Wintersteiger committed Oct 12, 2021
1 parent f1acc4b commit 8e69f76
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/smt/theory_fpa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,9 @@ namespace smt {
expr * args[] = { bv_val_a->get_arg(0), bv_val_a->get_arg(1), bv_val_a->get_arg(2) };
cc_args = m_bv_util.mk_concat(3, args);
c = m.mk_eq(wrapped, cc_args);
// NB code review: #5454 exposes a bug in fpa_solver that
// could be latent here as well. It needs also the equality
// n == bv_val_e to be asserted such that whenever something is assigned th
// bit-vector value cc_args it is equated with n
// I don't see another way this constraint would be enforced.
assert_cnstr(c);
assert_cnstr(mk_side_conditions());
assert_cnstr(m.mk_eq(n, bv_val_e));
}
else {
expr_ref wu(m);
Expand Down

0 comments on commit 8e69f76

Please sign in to comment.