mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
parent
ea6f9eb9b6
commit
55c285c0df
1 changed files with 3 additions and 1 deletions
|
@ -1276,6 +1276,8 @@ namespace sat {
|
||||||
};
|
};
|
||||||
|
|
||||||
lbool solver::invoke_local_search(unsigned num_lits, literal const* lits) {
|
lbool solver::invoke_local_search(unsigned num_lits, literal const* lits) {
|
||||||
|
literal_vector _lits(num_lits, lits);
|
||||||
|
for (literal lit : m_user_scope_literals) _lits.push_back(~lit);
|
||||||
SASSERT(m_local_search);
|
SASSERT(m_local_search);
|
||||||
scoped_ptr<i_local_search> _ptr = m_local_search;
|
scoped_ptr<i_local_search> _ptr = m_local_search;
|
||||||
if (inconsistent()) return l_false;
|
if (inconsistent()) return l_false;
|
||||||
|
@ -1284,7 +1286,7 @@ namespace sat {
|
||||||
m_local_search->add(*this);
|
m_local_search->add(*this);
|
||||||
m_local_search->updt_params(m_params);
|
m_local_search->updt_params(m_params);
|
||||||
scoped_rl.push_child(&(m_local_search->rlimit()));
|
scoped_rl.push_child(&(m_local_search->rlimit()));
|
||||||
lbool r = m_local_search->check(num_lits, lits, nullptr);
|
lbool r = m_local_search->check(_lits.size(), _lits.c_ptr(), nullptr);
|
||||||
if (r == l_true) {
|
if (r == l_true) {
|
||||||
m_model = m_local_search->get_model();
|
m_model = m_local_search->get_model();
|
||||||
m_model_is_current = true;
|
m_model_is_current = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue