mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
This commit is contained in:
parent
7e330c15e7
commit
7e7360dd0c
2 changed files with 7 additions and 3 deletions
|
@ -148,8 +148,10 @@ namespace q {
|
|||
sat::literal solver::internalize(expr* e, bool sign, bool root, bool learned) {
|
||||
SASSERT(is_forall(e) || is_exists(e));
|
||||
sat::bool_var v = ctx.get_si().add_bool_var(e);
|
||||
sat::literal lit = ctx.attach_lit(sat::literal(v, sign), e);
|
||||
sat::literal lit = ctx.attach_lit(sat::literal(v, false), e);
|
||||
mk_var(ctx.get_egraph().find(e));
|
||||
if (sign)
|
||||
lit.neg();
|
||||
return lit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue