mirror of
https://github.com/Z3Prover/z3
synced 2025-10-11 02:08:07 +00:00
import more from csp
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
02c85dd6de
commit
22783a4bcb
5 changed files with 21 additions and 17 deletions
|
@ -95,7 +95,7 @@ namespace sat {
|
|||
if (ext) ext->set_solver(this);
|
||||
}
|
||||
|
||||
void solver::copy(solver const & src) {
|
||||
void solver::copy(solver const & src, bool copy_learned) {
|
||||
pop_to_base_level();
|
||||
del_clauses(m_clauses);
|
||||
del_clauses(m_learned);
|
||||
|
@ -192,7 +192,7 @@ namespace sat {
|
|||
// copy high quality lemmas
|
||||
unsigned num_learned = 0;
|
||||
for (clause* c : src.m_learned) {
|
||||
if (c->glue() <= 2 || (c->size() <= 40 && c->glue() <= 8)) {
|
||||
if (copy_learned || c->glue() <= 2 || (c->size() <= 40 && c->glue() <= 8)) {
|
||||
buffer.reset();
|
||||
for (literal l : *c) buffer.push_back(l);
|
||||
clause* c1 = mk_clause_core(buffer.size(), buffer.c_ptr(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue