mirror of
https://github.com/Z3Prover/z3
synced 2025-10-11 02:08:07 +00:00
updates
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1a95c33775
commit
8b7bafbd9f
9 changed files with 221 additions and 29 deletions
|
@ -54,6 +54,7 @@ namespace sat {
|
|||
m_conflicts = 0;
|
||||
m_next_simplify = 0;
|
||||
m_num_checkpoints = 0;
|
||||
if (m_ext) m_ext->set_solver(this);
|
||||
}
|
||||
|
||||
solver::~solver() {
|
||||
|
@ -84,13 +85,15 @@ namespace sat {
|
|||
VERIFY(v == mk_var(ext, dvar));
|
||||
}
|
||||
}
|
||||
unsigned sz = src.scope_lvl() == 0 ? src.m_trail.size() : src.m_scopes[0].m_trail_lim;
|
||||
for (unsigned i = 0; i < sz; ++i) {
|
||||
assign(src.m_trail[i], justification());
|
||||
{
|
||||
unsigned sz = src.scope_lvl() == 0 ? src.m_trail.size() : src.m_scopes[0].m_trail_lim;
|
||||
for (unsigned i = 0; i < sz; ++i) {
|
||||
assign(src.m_trail[i], justification());
|
||||
}
|
||||
}
|
||||
|
||||
// copy binary clauses
|
||||
{
|
||||
// copy binary clauses
|
||||
unsigned sz = src.m_watches.size();
|
||||
for (unsigned l_idx = 0; l_idx < sz; ++l_idx) {
|
||||
literal l = ~to_literal(l_idx);
|
||||
|
@ -107,6 +110,7 @@ namespace sat {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
literal_vector buffer;
|
||||
// copy clause
|
||||
|
@ -120,6 +124,10 @@ namespace sat {
|
|||
mk_clause_core(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
if (src.get_extension()) {
|
||||
m_ext = src.get_extension()->copy(this);
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue