3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-02 21:37:02 +00:00

Use = default for virtual constructors.

This commit is contained in:
Bruce Mitchener 2022-08-04 13:21:07 +07:00 committed by Nikolaj Bjorner
parent aa0719abae
commit 5014b1a34d
85 changed files with 106 additions and 107 deletions

View file

@ -45,7 +45,7 @@ namespace q {
static mam * mk(euf::solver& ctx, ematch& em);
virtual ~mam() {}
virtual ~mam() = default;
virtual void add_pattern(quantifier * q, app * mp) = 0;

View file

@ -43,7 +43,7 @@ namespace q {
ast_manager& m;
public:
projection_function(ast_manager& m) : m(m) {}
virtual ~projection_function() {}
virtual ~projection_function() = default;
virtual expr* mk_lt(expr* a, expr* b) = 0;
expr* mk_le(expr* a, expr* b) { return m.mk_not(mk_lt(b, a)); }
virtual bool operator()(expr* a, expr* b) const = 0;

View file

@ -21,7 +21,7 @@ Author:
namespace sat {
class sat_internalizer {
public:
virtual ~sat_internalizer() {}
virtual ~sat_internalizer() = default;
virtual bool is_bool_op(expr* e) const = 0;
virtual literal internalize(expr* e, bool learned) = 0;
virtual bool_var to_bool_var(expr* e) = 0;

View file

@ -39,7 +39,7 @@ namespace euf {
virtual bool post_visit(expr* e, bool sign, bool root) { return false; }
public:
virtual ~th_internalizer() {}
virtual ~th_internalizer() = default;
virtual sat::literal internalize(expr* e, bool sign, bool root, bool redundant) = 0;
@ -60,7 +60,7 @@ namespace euf {
class th_decompile {
public:
virtual ~th_decompile() {}
virtual ~th_decompile() = default;
virtual bool to_formulas(std::function<expr_ref(sat::literal)>& lit2expr, expr_ref_vector& fmls) { return false; }
};
@ -68,7 +68,7 @@ namespace euf {
class th_model_builder {
public:
virtual ~th_model_builder() {}
virtual ~th_model_builder() = default;
/**
\brief compute the value for enode \c n and store the value in \c values