3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-15 23:35:26 +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:
Leonardo de Moura 2012-10-30 23:43:00 -07:00
parent b1ce9f796c
commit d8f627c6c8
53 changed files with 116 additions and 121 deletions

View file

@ -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);
}