3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

minor theory_fpa refactoring

This commit is contained in:
Christoph M. Wintersteiger 2015-10-31 19:16:09 +00:00
parent 1d7aa9ba2f
commit 88064fc172

View file

@ -555,13 +555,11 @@ namespace smt {
literal l(ctx.mk_bool_var(atom));
ctx.set_var_theory(l.var(), get_id());
expr_ref bv_atom(m);
bv_atom = convert_atom(atom);
SASSERT(is_app(bv_atom) && m.is_bool(bv_atom));
expr_ref constr(m);
constr = m.mk_iff(atom, m.mk_and(bv_atom, mk_side_conditions()));
m_th_rw(constr);
assert_cnstr(constr);
expr_ref bv_atom(convert_atom(atom));
expr_ref bv_atom_w_side_c(m);
bv_atom_w_side_c = m.mk_and(bv_atom, mk_side_conditions());
m_th_rw(bv_atom_w_side_c);
assert_cnstr(m.mk_eq(atom, bv_atom_w_side_c));
return true;
}