diff --git a/src/smt/arith_eq_adapter.cpp b/src/smt/arith_eq_adapter.cpp index 2777c82ce..e09a2af10 100644 --- a/src/smt/arith_eq_adapter.cpp +++ b/src/smt/arith_eq_adapter.cpp @@ -155,8 +155,8 @@ namespace smt { // Requires that the theory arithmetic internalizer accept non simplified terms of the form t1 - t2 // if t1 and t2 already have slacks (theory variables) associated with them. // It also accepts terms with repeated variables (Issue #429). - app * le = nullptr; - app * ge = nullptr; + + app_ref le(m), ge(m); if (m_util.is_numeral(t1)) std::swap(t1, t2); if (m_util.is_numeral(t2)) {