From 49610f51595be6811f70cee5d81e5664a26c92aa Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Thu, 6 Jun 2024 08:11:19 +0200 Subject: [PATCH] fix #7246 Signed-off-by: Nikolaj Bjorner --- src/sat/sat_solver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sat/sat_solver.cpp b/src/sat/sat_solver.cpp index 5829b18d11f..1cd0c1400c6 100644 --- a/src/sat/sat_solver.cpp +++ b/src/sat/sat_solver.cpp @@ -3712,6 +3712,8 @@ namespace sat { } void solver::user_pop(unsigned num_scopes) { + if (m_user_scope_literals.empty()) + return; unsigned old_sz = m_user_scope_literals.size() - num_scopes; bool_var max_var = m_user_scope_literals[old_sz].var(); m_user_scope_literals.shrink(old_sz);