3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 11:55:51 +00:00

bug fixes

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-11-08 22:40:43 -08:00
parent b573b94f84
commit ba05f79415
6 changed files with 16 additions and 12 deletions

View file

@ -28,6 +28,7 @@ namespace opt {
lbool is_sat;
m_answer.reset();
m_msolver = 0;
m_s = &s;
if (m_soft_constraints.empty()) {
m_msolver = 0;
is_sat = s.check_sat(0, 0);
@ -80,8 +81,9 @@ namespace opt {
}
void maxsmt::commit_assignment() {
SASSERT(m_s);
for (unsigned i = 0; i < m_answer.size(); ++i) {
s->assert_expr(m_answer[i].get());
m_s->assert_expr(m_answer[i].get());
}
}