mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +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
|
@ -225,7 +225,6 @@ bool macro_util::is_right_simple_macro(expr * n, unsigned num_decls, app * & hea
|
|||
\remark n is a "polynomial".
|
||||
*/
|
||||
bool macro_util::poly_contains_head(expr * n, func_decl * f, expr * exception) const {
|
||||
expr * curr = n;
|
||||
unsigned num_args;
|
||||
expr * const * args;
|
||||
if (is_add(n)) {
|
||||
|
@ -734,7 +733,6 @@ void macro_util::get_rest_clause_as_cond(expr * except_lit, expr_ref & extra_con
|
|||
|
||||
void macro_util::collect_poly_args(expr * n, expr * exception, ptr_buffer<expr> & args) {
|
||||
args.reset();
|
||||
bool stop = false;
|
||||
unsigned num_args;
|
||||
expr * const * _args;
|
||||
if (is_add(n)) {
|
||||
|
@ -762,7 +760,6 @@ void macro_util::add_arith_macro_candidate(app * head, unsigned num_decls, expr
|
|||
void macro_util::collect_arith_macro_candidates(expr * lhs, expr * rhs, expr * atom, unsigned num_decls, bool is_ineq, macro_candidates & r) {
|
||||
if (!is_add(lhs) && m_manager.is_eq(atom)) // this case is a simple macro.
|
||||
return;
|
||||
bool stop = false;
|
||||
ptr_buffer<expr> args;
|
||||
unsigned lhs_num_args;
|
||||
expr * const * lhs_args;
|
||||
|
|
|
@ -273,13 +273,10 @@ void cnf::reduce1_or(app * n, bool in_q) {
|
|||
if (m_params.m_cnf_mode != CNF_OPPORTUNISTIC || result_size < m_params.m_cnf_factor) {
|
||||
expr_ref_buffer cheap_args(m_manager);
|
||||
proof_ref_buffer cheap_args_pr(m_manager);
|
||||
bool named_args;
|
||||
if (is_too_expensive(result_size, f_args)) {
|
||||
named_args = true;
|
||||
name_args(f_args, cheap_args, cheap_args_pr);
|
||||
}
|
||||
else {
|
||||
named_args = false;
|
||||
cheap_args.append(f_args.size(), f_args.c_ptr());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue