always copy clauses for backup

This commit is contained in:
Tiago Gomes 2012-12-09 22:57:39 +00:00
parent 90736156ae
commit 9c8827c309

View File

@ -349,7 +349,7 @@ LiftedCircuit::tryIndependence (
return false; return false;
} }
if (Globals::verbosity > 1) { if (Globals::verbosity > 1) {
backupClauses_ = clauses; backupClauses_ = Clause::copyClauses (clauses);
} }
Clauses depClauses = { clauses[0] }; Clauses depClauses = { clauses[0] };
Clauses indepClauses (clauses.begin() + 1, clauses.end()); Clauses indepClauses (clauses.begin() + 1, clauses.end());
@ -827,7 +827,8 @@ LiftedCircuit::createSmoothNode (
if (it != originClausesMap_.end()) { if (it != originClausesMap_.end()) {
backupClauses_ = it->second; backupClauses_ = it->second;
} else { } else {
backupClauses_ = { ((dynamic_cast<LeafNode*>(*prev))->clause()) }; backupClauses_ = Clause::copyClauses (
{((dynamic_cast<LeafNode*>(*prev))->clause())});
} }
} }
Clauses clauses; Clauses clauses;