3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 18:00:23 +00:00

fix drat for units learned from binary clause resolution

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-01-12 00:12:20 -08:00
parent 63d480fd92
commit 836f156d54
6 changed files with 76 additions and 59 deletions

View file

@ -94,6 +94,11 @@ namespace sat {
mark_strengthened();
}
}
void clause::restore(unsigned num_lits) {
SASSERT(num_lits <= m_capacity);
m_size = num_lits;
}
bool clause::satisfied_by(model const & m) const {
for (literal l : *this) {