3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

remove unneeded constructors (last round)

This commit is contained in:
Nuno Lopes 2020-07-12 17:41:57 +01:00
parent 44ec259c4c
commit bb26f219fe
37 changed files with 65 additions and 276 deletions

View file

@ -94,7 +94,6 @@ namespace datalog {
struct uint_set2 {
uint_set lt;
uint_set le;
uint_set2(uint_set2 const& other):lt(other.lt), le(other.le) {}
uint_set2() {}
bool operator==(const uint_set2& other) const {
return other.lt == lt && other.le == le;
@ -120,7 +119,6 @@ namespace datalog {
public:
bound_relation(bound_relation_plugin& p, relation_signature const& s, bool is_empty);
bound_relation& operator=(bound_relation const& other);
bool empty() const override { return m_empty; }
void add_fact(const relation_fact & f) override;

View file

@ -442,10 +442,6 @@ derivation::premise::premise (pred_transformer &pt, unsigned oidx,
m_ovars.push_back(m.mk_const(sm.n2o(v->get_decl(), m_oidx)));
}
derivation::premise::premise (const derivation::premise &p) :
m_pt (p.m_pt), m_oidx (p.m_oidx), m_summary (p.m_summary), m_must (p.m_must),
m_ovars (p.m_ovars) {}
/// \brief Updated the summary.
/// The new summary is over n-variables.
void derivation::premise::set_summary (expr * summary, bool must,

View file

@ -756,7 +756,6 @@ class derivation {
public:
premise (pred_transformer &pt, unsigned oidx, expr *summary, bool must,
const ptr_vector<app> *aux_vars = nullptr);
premise (const premise &p);
bool is_must() {return m_must;}
expr * get_summary() {return m_summary.get ();}

View file

@ -47,7 +47,6 @@ struct relation_info {
expr_ref m_body;
relation_info(ast_manager& m, func_decl* pred, ptr_vector<func_decl> const& vars, expr* b):
m_pred(pred, m), m_vars(m, vars.size(), vars.c_ptr()), m_body(b, m) {}
relation_info(relation_info const& other): m_pred(other.m_pred), m_vars(other.m_vars), m_body(other.m_body) {}
};
class unknown_exception {};

View file

@ -60,12 +60,6 @@ namespace datalog {
mk_karr_invariants::~mk_karr_invariants() { }
matrix& matrix::operator=(matrix const& other) {
reset();
append(other);
return *this;
}
void matrix::display_row(
std::ostream& out, vector<rational> const& row, rational const& b, bool is_eq) {
for (unsigned j = 0; j < row.size(); ++j) {

View file

@ -36,7 +36,6 @@ namespace datalog {
bool_vector eq;
unsigned size() const { return A.size(); }
void reset() { A.reset(); b.reset(); eq.reset(); }
matrix& operator=(matrix const& other);
void append(matrix const& other) { A.append(other.A); b.append(other.b); eq.append(other.eq); }
void display(std::ostream& out) const;
static void display_row(