mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
make roots uniform for theory lemmas
This commit is contained in:
parent
69b4392210
commit
a90b66134d
7 changed files with 20 additions and 38 deletions
|
@ -44,19 +44,16 @@ namespace q {
|
|||
if (l.sign() == is_forall(e)) {
|
||||
sat::literal lit = skolemize(q);
|
||||
add_clause(~l, lit);
|
||||
ctx.add_root(~l, lit);
|
||||
}
|
||||
else if (expand(q)) {
|
||||
for (expr* e : m_expanded) {
|
||||
sat::literal lit = ctx.internalize(e, l.sign(), false, false);
|
||||
add_clause(~l, lit);
|
||||
ctx.add_root(~l, lit);
|
||||
}
|
||||
}
|
||||
else if (is_ground(q->get_expr())) {
|
||||
auto lit = ctx.internalize(q->get_expr(), l.sign(), false, false);
|
||||
add_clause(~l, lit);
|
||||
ctx.add_root(~l, lit);
|
||||
}
|
||||
else {
|
||||
ctx.push_vec(m_universal, l);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue