3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-06-04 13:48:51 -07:00
parent 7cda90c06a
commit ae6aea7a4d
3 changed files with 14 additions and 5 deletions

View file

@ -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;
}