mirror of
https://github.com/Z3Prover/z3
synced 2025-05-06 23:35:46 +00:00
clause_builder: rename push to insert
This commit is contained in:
parent
dbe814d568
commit
f12ae0af12
7 changed files with 21 additions and 36 deletions
|
@ -54,11 +54,11 @@ namespace polysat {
|
|||
}
|
||||
|
||||
|
||||
void clause_builder::push(sat::literal lit) {
|
||||
push(m_solver->lit2cnstr(lit));
|
||||
void clause_builder::insert(sat::literal lit) {
|
||||
insert(m_solver->lit2cnstr(lit));
|
||||
}
|
||||
|
||||
void clause_builder::push(signed_constraint c) {
|
||||
void clause_builder::insert(signed_constraint c) {
|
||||
SASSERT(c);
|
||||
if (c.is_always_false()) // filter out trivial constraints such as "4 < 2"
|
||||
return;
|
||||
|
@ -66,11 +66,6 @@ namespace polysat {
|
|||
m_is_tautology = true;
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
if (c->unit_clause()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
m_literals.push_back(c.blit());
|
||||
}
|
||||
|
||||
|
@ -82,6 +77,6 @@ namespace polysat {
|
|||
if (c.bvalue(*m_solver) == l_undef) {
|
||||
m_solver->assign_eval(~c.blit());
|
||||
}
|
||||
push(c);
|
||||
insert(c);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue