3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 13:58:45 +00:00

fix build of tests

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-03-13 14:39:12 -07:00
parent 05c5b3b07b
commit 0c7603e925
2 changed files with 7 additions and 5 deletions

View file

@ -152,11 +152,11 @@ namespace sat {
void update_prefix(literal l) {
bool_var x = l.var();
unsigned p = m_prefix[x].m_prefix;
if (m_prefix[x].m_length >= m_trail_lim.size() ||
unsigned p = m_vprefix[x].m_prefix;
if (m_vprefix[x].m_length >= m_trail_lim.size() ||
((p | m_prefix) != m_prefix)) {
m_prefix[x].m_length = m_trail_lim.size();
m_prefix[x].m_prefix = m_prefix;
m_vprefix[x].m_length = m_trail_lim.size();
m_vprefix[x].m_prefix = m_prefix;
}
}

View file

@ -76,7 +76,9 @@ void tst_sat_local_search(char ** argv, int argc, int& i) {
reslimit limit;
params_ref params;
sat::solver solver(params, limit);
sat::local_search local_search(solver);
sat::local_search local_search;
local_search.import(solver, true);
char const* file_name = argv[i + 1];
++i;