mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 04:56:03 +00:00
clause_builder::set_redundant
This commit is contained in:
parent
9b10733ebd
commit
29180e7d0b
4 changed files with 15 additions and 6 deletions
|
@ -29,6 +29,7 @@ namespace polysat {
|
|||
void clause_builder::reset() {
|
||||
m_literals.reset();
|
||||
m_is_tautology = false;
|
||||
m_redundant = clause::redundant_default;
|
||||
SASSERT(empty());
|
||||
}
|
||||
|
||||
|
@ -49,6 +50,9 @@ namespace polysat {
|
|||
}
|
||||
m_literals.shrink(j);
|
||||
clause_ref cl = clause::from_literals(std::move(m_literals));
|
||||
SASSERT(cl);
|
||||
cl->set_redundant(m_redundant);
|
||||
m_redundant = clause::redundant_default;
|
||||
SASSERT(empty());
|
||||
return cl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue