mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
This commit is contained in:
parent
229ea569f1
commit
2fedcbd41e
3 changed files with 15 additions and 1 deletions
|
@ -48,6 +48,7 @@ namespace q {
|
|||
lbool mbqi::operator()() {
|
||||
lbool result = l_true;
|
||||
m_model = nullptr;
|
||||
ctx.save_model(m_model);
|
||||
m_instantiations.reset();
|
||||
for (sat::literal lit : m_qs.m_universal) {
|
||||
quantifier* q = to_quantifier(ctx.bool_var2expr(lit.var()));
|
||||
|
@ -73,6 +74,9 @@ namespace q {
|
|||
m_qs.add_clause(~qlit, ~lit);
|
||||
}
|
||||
m_instantiations.reset();
|
||||
if (result != l_true)
|
||||
m_model = nullptr;
|
||||
ctx.save_model(m_model);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue