From b03d4e4fc2495cdbad256a09098bd0ed42aaa8d4 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Mon, 3 Oct 2022 15:26:10 -0400 Subject: [PATCH] update solver only if there is a manager Signed-off-by: Nikolaj Bjorner --- src/cmd_context/cmd_context.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cmd_context/cmd_context.cpp b/src/cmd_context/cmd_context.cpp index 1bae574d5..0de13252b 100644 --- a/src/cmd_context/cmd_context.cpp +++ b/src/cmd_context/cmd_context.cpp @@ -624,10 +624,11 @@ void cmd_context::set_produce_proofs(bool f) { if (m_params.m_proof == f) return; SASSERT(!has_assertions()); - if (has_manager()) - m().toggle_proof_mode(f ? PGM_ENABLED : PGM_DISABLED); m_params.m_proof = f; - mk_solver(); + if (has_manager()) { + m().toggle_proof_mode(f ? PGM_ENABLED : PGM_DISABLED); + mk_solver(); + } }