mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
initialize solver before parse is invoked. Fixes issue reported by Selsam
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
19d3b5cfd1
commit
78950fde17
2 changed files with 6 additions and 5 deletions
|
@ -1685,15 +1685,15 @@ public:
|
|||
for (auto const& ev : ex.m_explanation) {
|
||||
fmls.push_back(constraint2fml(ev.second));
|
||||
}
|
||||
expr_ref t(m);
|
||||
t = term2expr(term);
|
||||
if (upper)
|
||||
expr_ref t(term2expr(term), m);
|
||||
if (upper) {
|
||||
fmls.push_back(m.mk_not(a.mk_ge(t, a.mk_numeral(k, true))));
|
||||
else
|
||||
}
|
||||
else {
|
||||
fmls.push_back(m.mk_not(a.mk_le(t, a.mk_numeral(k, true))));
|
||||
}
|
||||
ast_pp_util visitor(m);
|
||||
visitor.collect(fmls);
|
||||
|
||||
visitor.display_decls(out);
|
||||
visitor.display_asserts(out, fmls, true);
|
||||
out << "(check-sat)\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue