3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-16 02:46:16 +00:00

enable theory_lra on non-linear reals if configured to use

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-04-07 07:23:32 -07:00
parent 9e62a7834d
commit 6cc82f0401

View file

@ -838,7 +838,7 @@ namespace smt {
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));
break; break;
case AS_NEW_ARITH: case AS_NEW_ARITH:
if (st.m_num_non_linear != 0) if (st.m_num_non_linear != 0 && st.m_has_int)
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));
else else
setup_lra_arith(); setup_lra_arith();