mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix get-objectives error #1419 message (get-objectives)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
517b081202
commit
d86e8f02d7
|
@ -1235,6 +1235,9 @@ namespace opt {
|
||||||
}
|
}
|
||||||
|
|
||||||
void context::display_assignment(std::ostream& out) {
|
void context::display_assignment(std::ostream& out) {
|
||||||
|
if (m_scoped_state.m_objectives.size() != m_objectives.size()) {
|
||||||
|
throw default_exception("check-sat has not been called with latest objectives");
|
||||||
|
}
|
||||||
out << "(objectives\n";
|
out << "(objectives\n";
|
||||||
for (unsigned i = 0; i < m_scoped_state.m_objectives.size(); ++i) {
|
for (unsigned i = 0; i < m_scoped_state.m_objectives.size(); ++i) {
|
||||||
objective const& obj = m_scoped_state.m_objectives[i];
|
objective const& obj = m_scoped_state.m_objectives[i];
|
||||||
|
|
Loading…
Reference in a new issue