3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 04:28:17 +00:00

silence some build warnings

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-03 17:11:34 -07:00
parent 8cb59fe8a6
commit 6f65051f2c
3 changed files with 3 additions and 2 deletions

View file

@ -169,7 +169,6 @@ namespace sat {
init_goodvars();
set_best_unsat();
unsigned sz = m_units.size();
for (unsigned i = 0; !m_is_unsat && i < m_units.size(); ++i) {
bool_var v = m_units[i];
propagate(literal(v, !cur_solution(v)));

View file

@ -191,6 +191,8 @@ namespace smt {
template<typename Ext>
bool theory_arith<Ext>::satisfy_bounds() const {
if (get_manager().limit().get_cancel_flag())
return true;
int num = get_num_vars();
for (theory_var v = 0; v < num; v++) {
CTRACE("bound_bug", below_lower(v) || above_upper(v), display_var(tout, v); display(tout););

View file

@ -212,7 +212,7 @@ public:
bool strict = true;
rational v;
bool has_val =
(m_bounds.has_upper(var, v, strict) && !strict) && v.is_unsigned() ||
(m_bounds.has_upper(var, v, strict) && !strict && v.is_unsigned()) ||
(m_bounds.has_lower(var, v, strict) && !strict && v.is_unsigned());
if (has_val) {