3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-21 01:24:43 +00:00

clause_builder: rename push to insert

This commit is contained in:
Jakob Rath 2022-11-17 15:08:27 +01:00
parent dbe814d568
commit f12ae0af12
7 changed files with 21 additions and 36 deletions

View file

@ -1033,12 +1033,8 @@ namespace polysat {
void solver::add_clause(unsigned n, signed_constraint* cs, bool is_redundant) {
clause_builder cb(*this);
for (unsigned i = 0; i < n; ++i) {
signed_constraint c = cs[i];
if (c.is_always_false())
continue;
cb.push(c);
}
for (unsigned i = 0; i < n; ++i)
cb.insert(cs[i]);
clause_ref clause = cb.build();
if (clause) {
clause->set_redundant(is_redundant);