3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-12 02:04:43 +00:00

bug fixes to min-max, and experiments with hsmax

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-05-28 15:44:39 -07:00
parent 2071029bb3
commit 57fc0f3f55
4 changed files with 124 additions and 29 deletions

View file

@ -199,6 +199,18 @@ namespace smt {
}
return true;
}
template<typename Ext>
bool theory_arith<Ext>::satisfy_integrality() const {
int num = get_num_vars();
for (theory_var v = 0; v < num; v++) {
if (!(is_int(v) && get_value(v).is_int())) {
TRACE("bound_bug", display_var(tout, v); display(tout););
return false;
}
}
return true;
}
#endif
};