From 5e1869d8eb32f0d2d1641f8e9d7fad9fc7a79cf2 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Fri, 26 May 2023 09:48:58 +0100 Subject: [PATCH] fix #6734 Signed-off-by: Nikolaj Bjorner --- src/smt/smt_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/smt/smt_context.cpp b/src/smt/smt_context.cpp index d84535a9c..82f56ab76 100644 --- a/src/smt/smt_context.cpp +++ b/src/smt/smt_context.cpp @@ -3024,7 +3024,8 @@ namespace smt { SASSERT(is_well_sorted(m, e)); TRACE("begin_assert_expr", tout << mk_pp(e, m) << " " << mk_pp(pr, m) << "\n";); TRACE("begin_assert_expr_ll", tout << mk_ll_pp(e, m) << "\n";); - pop_to_base_lvl(); + if (!m_searching) + pop_to_base_lvl(); if (pr == nullptr) m_asserted_formulas.assert_expr(e); else