mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
bug fixes to pb; working on model extraction
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
26bf64a0c3
commit
2c577a304d
15 changed files with 348 additions and 197 deletions
|
@ -52,6 +52,9 @@ namespace opt {
|
|||
if (m_msolver) {
|
||||
is_sat = (*m_msolver)();
|
||||
m_answer.append(m_msolver->get_assignment());
|
||||
if (is_sat == l_true) {
|
||||
m_msolver->get_model(m_model);
|
||||
}
|
||||
}
|
||||
|
||||
// Infrastructure for displaying and storing solution is TBD.
|
||||
|
@ -105,6 +108,10 @@ namespace opt {
|
|||
if (m_lower > r) m_lower = r;
|
||||
}
|
||||
|
||||
void maxsmt::get_model(model_ref& mdl) {
|
||||
mdl = m_model.get();
|
||||
}
|
||||
|
||||
void maxsmt::commit_assignment() {
|
||||
SASSERT(m_s);
|
||||
for (unsigned i = 0; i < m_answer.size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue