mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
add note about a bug
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0eaf5a8510
commit
6df23fbce3
5 changed files with 34 additions and 9 deletions
|
@ -859,7 +859,7 @@ namespace dd {
|
|||
rest = pdd(e->m_rest, this);
|
||||
return;
|
||||
}
|
||||
unsigned const gc_generation = m_gc_generation;
|
||||
|
||||
if (level(p.root) > level_v) {
|
||||
pdd lc1 = zero(), rest1 = zero();
|
||||
pdd vv = mk_var(p.var());
|
||||
|
|
|
@ -84,7 +84,9 @@ namespace polysat {
|
|||
}
|
||||
|
||||
lbool solver::unit_propagate() {
|
||||
flet<uint64_t> _max_d(m_max_decisions, m_stats.m_num_decisions + 1);
|
||||
return l_undef;
|
||||
// disabled to allow debugging unsoundness for watched literals
|
||||
flet<uint64_t> _max_d(m_max_conflicts, m_stats.m_num_conflicts + 2);
|
||||
return check_sat();
|
||||
}
|
||||
|
||||
|
@ -148,8 +150,21 @@ namespace polysat {
|
|||
add_eq(b * q + r - a);
|
||||
add_noovfl(b, q);
|
||||
add_ule(r, b*q+r);
|
||||
add_clause(eq(b), ult(r, b), false);
|
||||
add_clause(diseq(b), eq(q + 1), false);
|
||||
auto c1 = eq(b);
|
||||
auto c2 = ult(r, b);
|
||||
auto c3 = diseq(b);
|
||||
auto c4 = eq(q + 1);
|
||||
add_clause(c1, c2, false);
|
||||
add_clause(c3, c4, false);
|
||||
|
||||
// BUG:
|
||||
// need to watch these constraints.
|
||||
// ... but activation discipline seems to
|
||||
// work only for lemmas. Literals are watched only when assigned true.
|
||||
// The literals are de-activated
|
||||
// after propagation
|
||||
// Should these clauses then be added as lemmas that force a branch?
|
||||
|
||||
return std::tuple<pdd, pdd>(q, r);
|
||||
}
|
||||
|
||||
|
@ -171,6 +186,7 @@ namespace polysat {
|
|||
|
||||
|
||||
void solver::assign_eh(signed_constraint c, dependency dep) {
|
||||
backjump(base_level());
|
||||
SASSERT(at_base_level());
|
||||
SASSERT(c);
|
||||
if (is_conflict())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue