3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 14:13:23 +00:00

Bugfix for theory_fpa

This commit is contained in:
Christoph M. Wintersteiger 2015-11-02 19:08:52 +00:00
parent fb0999b3cf
commit ba70ab9ad2

View file

@ -737,10 +737,11 @@ namespace smt {
expr_ref converted(m); expr_ref converted(m);
converted = m.mk_and(convert(e), mk_side_conditions()); converted = m.mk_and(convert(e), mk_side_conditions());
if (is_true)
assert_cnstr(m.mk_implies(e, converted)); expr_ref cnstr(m);
else cnstr = (is_true) ? m.mk_implies(e, converted) : m.mk_implies(m.mk_not(e), m.mk_not(converted));
assert_cnstr(m.mk_implies(m.mk_not(e), m.mk_not(converted))); m_th_rw(cnstr);
assert_cnstr(cnstr);
} }
void theory_fpa::relevant_eh(app * n) { void theory_fpa::relevant_eh(app * n) {