mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5fac396c2f
commit
e05f5ef6d1
3 changed files with 10 additions and 10 deletions
|
@ -139,6 +139,10 @@ namespace euf {
|
|||
sat::literal lit2 = literal(v, false);
|
||||
s().mk_clause(~lit, lit2, sat::status::th(m_is_redundant, m.get_basic_family_id()));
|
||||
s().mk_clause(lit, ~lit2, sat::status::th(m_is_redundant, m.get_basic_family_id()));
|
||||
if (relevancy_enabled()) {
|
||||
add_root(~lit, lit2);
|
||||
add_root(lit, ~lit2);
|
||||
}
|
||||
lit = lit2;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace q {
|
|||
quantifier* q = to_quantifier(e);
|
||||
|
||||
auto const& exp = expand(q);
|
||||
if (exp.size() > 1 && is_forall(q)) {
|
||||
if (exp.size() > 1 && is_forall(q) && !l.sign()) {
|
||||
for (expr* e : exp) {
|
||||
sat::literal lit = ctx.internalize(e, l.sign(), false, false);
|
||||
add_clause(~l, lit);
|
||||
|
@ -50,14 +50,13 @@ namespace q {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (exp.size() > 1 && is_exists(q)) {
|
||||
if (exp.size() > 1 && is_exists(q) /* && l.sign() */) {
|
||||
sat::literal_vector lits;
|
||||
lits.push_back(~l);
|
||||
for (expr* e : exp)
|
||||
lits.push_back(ctx.internalize(e, l.sign(), false, false));
|
||||
add_clause(lits);
|
||||
if (ctx.relevancy_enabled())
|
||||
ctx.add_root(lits);
|
||||
ctx.add_root(lits);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue