Skip to content

Commit

Permalink
update restart next
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Jan 23, 2025
1 parent ec39152 commit beb9d2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ast/sls/sat_ddfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ namespace sat {
m_reinit_next = m_config.m_reinit_base;

m_restart_count = 0;
m_restart_next = m_config.m_restart_base*2;
m_restart_next = m_config.m_restart_base;

m_min_sz = m_clauses.size();
m_flips = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/ast/sls/sls_smt_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ namespace sls {
m_sat_phase[v] = ctx.get_best_phase(v);
}

bool smt_plugin::export_to_sls() {
bool smt_plugin::export_to_sls() {
bool updated = false;
if (m_has_units) {
std::lock_guard<std::mutex> lock(m_mutex);
Expand Down Expand Up @@ -275,7 +275,7 @@ namespace sls {
void smt_plugin::sls_phase_to_smt() {
if (!m_has_new_sls_phase)
return;
IF_VERBOSE(2, verbose_stream() << "SLS -> SMT phase " << m_min_unsat_size << "\n");
IF_VERBOSE(2, verbose_stream() << "SLS -> SMT phase. unsat size: " << m_min_unsat_size << "\n");
for (auto v : m_shared_bool_vars)
ctx.force_phase(sat::literal(v, !m_sls_phase[v]));
m_has_new_sls_phase = false;
Expand Down
1 change: 0 additions & 1 deletion src/smt/theory_sls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ namespace smt {
verbose_stream() << "\n";
}
#endif

for (auto const& cl : m_shared_clauses)
if (all_of(cl, [this](sat::literal lit) { return ctx.get_assignment(lit) != l_true; }))
return false;
Expand Down

0 comments on commit beb9d2e

Please sign in to comment.