Commits

Leonardo de Moura  committed c1587dc

fixed some warnings reported by clang++

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>

  • Participants
  • Parent commits ed52dce

Comments (0)

Files changed (4)

File src/ast/simplifier/poly_simplifier_plugin.h

     virtual bool reduce_distinct(unsigned num_args, expr * const * args, expr_ref & result);
 
     virtual bool reduce(func_decl * f, unsigned num_args, rational const * mults, expr * const * args, expr_ref & result);
+    virtual bool reduce(func_decl * f, unsigned num_args, expr * const * args, expr_ref & result) {
+        return simplifier_plugin::reduce(f, num_args, args, result);
+    }
+
 
     expr * get_monomial_body(expr * m);
     int get_monomial_body_order(expr * m);

File src/cmd_context/pdecl.h

     ptype const & get_type() const { return m_type; }
     virtual ~paccessor_decl() {}
 public:
+    virtual void display(std::ostream & out) const { pdecl::display(out); }
     void display(std::ostream & out, pdatatype_decl const * const * dts) const;
 };
 
     constructor_decl * instantiate_decl(pdecl_manager & m, sort * const * s);
     virtual ~pconstructor_decl() {}
 public:
+    virtual void display(std::ostream & out) const { pdecl::display(out); }
     void display(std::ostream & out, pdatatype_decl const * const * dts) const;
 };
 

File src/muz_qe/pdr_context.h

                 (*this)(n, new_cores.back().first, new_cores.back().second);
             }
         }
-        virtual void collect_statistics(statistics& st) {}
+        virtual void collect_statistics(statistics& st) const {}
     };
 
     class context {

File src/smt/theory_diff_logic.cpp

 #include"rational.h"
 #include"theory_diff_logic_def.h"
 
+namespace smt {
 
 template class theory_diff_logic<idl_ext>;
 template class theory_diff_logic<sidl_ext>;
 template class theory_diff_logic<rdl_ext>;
 template class theory_diff_logic<srdl_ext>;
 
+};