3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-30 15:00:08 +00:00
This commit is contained in:
Nikolaj Bjorner 2024-11-16 18:20:06 -08:00
parent 5fd1231ec0
commit 2310514e02
2 changed files with 7 additions and 1 deletions

View file

@ -255,9 +255,12 @@ namespace sls {
}
void smt_plugin::sls_phase_to_smt() {
if (!m_has_new_sls_phase)
return;
IF_VERBOSE(2, verbose_stream() << "SLS -> SMT phase\n");
for (auto v : m_shared_bool_vars)
ctx.force_phase(sat::literal(v, !m_sls_phase[v]));
ctx.force_phase(sat::literal(v, !m_sls_phase[v]));
m_has_new_sls_phase = false;
}
void smt_plugin::sls_activity_to_smt() {
@ -347,6 +350,7 @@ namespace sls {
expr_ref val(tr(sync_val), m);
ctx.set_value(t, val);
}
m_has_new_sls_values = false;
}
void smt_plugin::add_shared_term(expr* t) {