3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-30 20:35:51 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-03-19 16:42:45 -07:00
parent 731cf9b885
commit a1f484fa35
6 changed files with 261 additions and 136 deletions

View file

@ -233,8 +233,8 @@ namespace dd {
bdd_manager* m;
bdd(unsigned root, bdd_manager* m): root(root), m(m) { m->inc_ref(root); }
public:
bdd(bdd & other): root(other.root), m(other.m) { m->inc_ref(root); }
bdd(bdd && other): root(0), m(other.m) { std::swap(root, other.root); }
bdd(bdd const & other): root(other.root), m(other.m) { m->inc_ref(root); }
bdd(bdd && other) noexcept : root(0), m(other.m) { std::swap(root, other.root); }
bdd& operator=(bdd const& other);
~bdd() { m->dec_ref(root); }
bdd lo() const { return bdd(m->lo(root), m); }