From ebbcfafd81ed1421849f1a1db7b293aec7840ea2 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Sat, 24 Aug 2024 17:58:49 -0700 Subject: [PATCH] include 5% reset probability Signed-off-by: Nikolaj Bjorner --- src/ast/sls/sls_arith_base.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ast/sls/sls_arith_base.cpp b/src/ast/sls/sls_arith_base.cpp index b484520b9..2a0a4fa64 100644 --- a/src/ast/sls/sls_arith_base.cpp +++ b/src/ast/sls/sls_arith_base.cpp @@ -537,12 +537,12 @@ namespace sls { bool arith_base::repair(sat::literal lit) { //verbose_stream() << "repair " << lit << " " << (ctx.is_unit(lit)?"unit":"") << "\n"; - m_last_literal = lit; - find_moves(lit); - static unsigned num_fail = 0; - - if (apply_update()) - return true; + if (ctx.rand(20) != 0) { + m_last_literal = lit; + find_moves(lit); + if (apply_update()) + return true; + } flet _tabu(m_use_tabu, false); @@ -1757,7 +1757,7 @@ namespace sls { else ; } - if (!ineq->m_is_linear) { + if (false && !ineq->m_is_linear) { for (auto const& [coeff, x] : ineq->m_args) { if (is_fixed(x)) continue;