mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
This commit is contained in:
parent
7cda90c06a
commit
ae6aea7a4d
3 changed files with 14 additions and 5 deletions
|
@ -42,8 +42,12 @@ namespace q {
|
|||
|
||||
auto const& exp = expand(q);
|
||||
if (exp.size() > 1 && is_forall(q)) {
|
||||
for (expr* e : exp)
|
||||
add_clause(~l, ctx.internalize(e, l.sign(), false, false));
|
||||
for (expr* e : exp) {
|
||||
sat::literal lit = ctx.internalize(e, l.sign(), false, false);
|
||||
add_clause(~l, lit);
|
||||
if (ctx.relevancy_enabled())
|
||||
ctx.add_root(~l, lit);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (exp.size() > 1 && is_exists(q)) {
|
||||
|
@ -52,6 +56,8 @@ namespace q {
|
|||
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);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue