mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +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
|
@ -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