3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-09 12:50:32 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-03 16:37:59 -07:00
parent 0b856638e9
commit 426e4cc75c
65 changed files with 135 additions and 146 deletions

View file

@ -77,9 +77,9 @@ namespace opt {
TRACE("opt",
s().display(tout)<< "\n";
tout << "lower: " << m_lower << " upper: " << m_upper << "\n";);
while (!m.canceled() && m_lower < m_upper) {
while (m.inc() && m_lower < m_upper) {
is_sat = s().check_sat(0, nullptr);
if (m.canceled()) {
if (!m.inc()) {
is_sat = l_undef;
}
if (is_sat == l_undef) {
@ -106,7 +106,7 @@ namespace opt {
update_assignment();
if (!m.canceled() && is_sat == l_undef && m_lower == m_upper) {
if (m.inc() && is_sat == l_undef && m_lower == m_upper) {
is_sat = l_true;
}
if (is_sat == l_false) {