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

fixing setup for LRA, re-enable LRA

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-05-11 09:34:07 -07:00
parent 7e004fe331
commit eb8da3fb9d

View file

@ -725,8 +725,8 @@ namespace smt {
void setup::setup_r_arith() { void setup::setup_r_arith() {
// to disable theory lra // to disable theory lra
m_context.register_plugin(alloc(smt::theory_mi_arith, m_manager, m_params)); // m_context.register_plugin(alloc(smt::theory_mi_arith, m_manager, m_params));
// m_context.register_plugin(alloc(smt::theory_lra, m_manager, m_params)); m_context.register_plugin(alloc(smt::theory_lra, m_manager, m_params));
} }
void setup::setup_mi_arith() { void setup::setup_mi_arith() {
@ -940,7 +940,7 @@ namespace smt {
} }
if (st.num_theories() == 1 && is_arith(st)) { if (st.num_theories() == 1 && is_arith(st)) {
if (st.m_has_int && st.m_has_real) if ((st.m_has_int && st.m_has_real) || (st.m_num_non_linear != 0))
setup_QF_LIRA(st); setup_QF_LIRA(st);
else if (st.m_has_real) else if (st.m_has_real)
setup_QF_LRA(st); setup_QF_LRA(st);