mirror of
https://github.com/Z3Prover/z3
synced 2025-05-06 23:35:46 +00:00
Update use of insert_eval and lemma scores to support propagation
This commit is contained in:
parent
fca4f18194
commit
85715eb164
6 changed files with 76 additions and 59 deletions
|
@ -75,13 +75,14 @@ namespace polysat {
|
|||
m_literals.push_back(c.blit());
|
||||
}
|
||||
|
||||
void clause_builder::insert_eval(sat::literal lit) {
|
||||
insert_eval(m_solver->lit2cnstr(lit));
|
||||
void clause_builder::insert_eval(sat::literal lit, bool status) {
|
||||
insert_eval(m_solver->lit2cnstr(lit), status);
|
||||
}
|
||||
|
||||
void clause_builder::insert_eval(signed_constraint c) {
|
||||
void clause_builder::insert_eval(signed_constraint c, bool status) {
|
||||
if (c.bvalue(*m_solver) == l_undef) {
|
||||
m_solver->assign_eval(~c.blit());
|
||||
sat::literal lit = c.blit();
|
||||
m_solver->assign_eval(status ? lit : ~lit);
|
||||
}
|
||||
insert(c);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue