mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
Fixed warnings produced by gcc 4.6.3 when compiling in debug mode
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
b1ce9f796c
commit
d8f627c6c8
53 changed files with 116 additions and 121 deletions
|
@ -1562,7 +1562,7 @@ void fpa2bv_converter::mk_leading_zeros(expr * e, unsigned max_bits, expr_ref &
|
|||
L = m_bv_util.mk_extract(bv_sz/2-1, 0, e);
|
||||
|
||||
unsigned H_size = m_bv_util.get_bv_size(H);
|
||||
unsigned L_size = m_bv_util.get_bv_size(L);
|
||||
// unsigned L_size = m_bv_util.get_bv_size(L);
|
||||
|
||||
expr_ref lzH(m), lzL(m);
|
||||
mk_leading_zeros(H, max_bits, lzH); /* recursive! */
|
||||
|
@ -2109,4 +2109,4 @@ void fpa2bv_model_converter::convert(model * bv_mdl, model * float_mdl) {
|
|||
}
|
||||
|
||||
fu.fm().del(fp_val);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -910,12 +910,13 @@ class sls_tactic : public tactic {
|
|||
|
||||
void randomize_local(goal_ref const & g) {
|
||||
ptr_vector<func_decl> & unsat_constants = get_unsat_constants(g);
|
||||
bool did_something = false;
|
||||
// bool did_something = false;
|
||||
for (unsigned i = 0; i < unsat_constants.size(); i++) {
|
||||
func_decl * fd = unsat_constants[i];
|
||||
mpz temp = get_random(fd->get_range());
|
||||
if (m_mpz_manager.neq(temp, get_value(fd)))
|
||||
did_something = true;
|
||||
if (m_mpz_manager.neq(temp, get_value(fd))) {
|
||||
// did_something = true;
|
||||
}
|
||||
update(fd, temp);
|
||||
m_mpz_manager.del(temp);
|
||||
}
|
||||
|
|
|
@ -84,11 +84,9 @@ protected:
|
|||
|
||||
void reduce(goal& g) {
|
||||
SASSERT(g.is_well_sorted());
|
||||
bool proofs_enabled = g.proofs_enabled();
|
||||
m_num_steps = 0;
|
||||
expr_ref fml(m);
|
||||
tactic_report report("ctx-solver-simplify", g);
|
||||
unsigned sz = g.size();
|
||||
if (g.inconsistent())
|
||||
return;
|
||||
ptr_vector<expr> fmls;
|
||||
|
|
|
@ -33,7 +33,10 @@ class macro_finder_tactic : public tactic {
|
|||
bool m_cancel;
|
||||
bool m_elim_and;
|
||||
|
||||
imp(ast_manager & m, params_ref const & p) : m_manager(m),m_elim_and(false),m_cancel(false) {
|
||||
imp(ast_manager & m, params_ref const & p) :
|
||||
m_manager(m),
|
||||
m_cancel(false),
|
||||
m_elim_and(false) {
|
||||
updt_params(p);
|
||||
}
|
||||
|
||||
|
@ -54,7 +57,6 @@ class macro_finder_tactic : public tactic {
|
|||
fail_if_unsat_core_generation("macro-finder", g);
|
||||
|
||||
bool produce_proofs = g->proofs_enabled();
|
||||
bool produce_models = g->models_enabled();
|
||||
|
||||
simplifier simp(m_manager);
|
||||
basic_simplifier_plugin * bsimp = alloc(basic_simplifier_plugin, m_manager);
|
||||
|
|
|
@ -54,7 +54,6 @@ class quasi_macros_tactic : public tactic {
|
|||
fail_if_unsat_core_generation("quasi-macros", g);
|
||||
|
||||
bool produce_proofs = g->proofs_enabled();
|
||||
bool produce_models = g->models_enabled();
|
||||
|
||||
simplifier simp(m_manager);
|
||||
basic_simplifier_plugin * bsimp = alloc(basic_simplifier_plugin, m_manager);
|
||||
|
|
|
@ -49,7 +49,6 @@ class ufbv_rewriter_tactic : public tactic {
|
|||
fail_if_unsat_core_generation("ufbv-rewriter", g);
|
||||
|
||||
bool produce_proofs = g->proofs_enabled();
|
||||
bool produce_models = g->models_enabled();
|
||||
|
||||
basic_simplifier_plugin bsimp(m_manager);
|
||||
bsimp.set_eliminate_and(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue