3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

expose model update

This commit is contained in:
Nikolaj Bjorner 2022-03-19 09:23:01 -07:00
parent a9d7026724
commit 6d836e7e2f
2 changed files with 7 additions and 6 deletions

View file

@ -2967,11 +2967,9 @@ namespace sat {
}
break;
case PS_SAT_CACHING:
if (m_search_state == s_sat) {
for (unsigned i = 0; i < m_phase.size(); ++i) {
m_phase[i] = m_best_phase[i];
}
}
if (m_search_state == s_sat)
for (unsigned i = 0; i < m_phase.size(); ++i)
m_phase[i] = m_best_phase[i];
break;
case PS_RANDOM:
for (auto& p : m_phase) p = (m_rand() % 2) == 0;