3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-14 04:41:48 +00:00

Remove dlimit variable in theory_recfun.cpp disable_guard - use direct call

Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-12 18:08:51 +00:00
parent 9cdcb56cd6
commit 055bce306a

View file

@ -161,9 +161,8 @@ namespace smt {
*/
void theory_recfun::disable_guard(expr* guard, expr_ref_vector const& guards) {
SASSERT(!is_enabled_guard(guard));
app_ref dlimit = m_util.mk_num_rounds_pred(m_num_rounds);
expr_ref_vector core(m);
core.push_back(std::move(dlimit));
core.push_back(m_util.mk_num_rounds_pred(m_num_rounds));
core.push_back(guard);
if (!m_guard2pending.contains(guard)) {
m_disabled_guards.push_back(guard);