3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-03 13:07:53 +00:00

move to managed tbvs

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-15 22:01:13 -07:00
parent d9dafe7b94
commit 4e4346576a
4 changed files with 83 additions and 192 deletions

View file

@ -34,6 +34,7 @@ class tbv_manager {
fixed_bit_vector_manager m;
public:
tbv_manager(unsigned n): m(2*n) {}
void reset();
tbv* allocate();
tbv* allocate1();
tbv* allocate0();
@ -41,6 +42,8 @@ public:
tbv* allocate(tbv const& bv);
tbv* allocate(uint64 n);
tbv* allocate(rational const& r);
tbv* allocate(uint64 n, unsigned hi, unsigned lo);
void deallocate(tbv* bv);
void copy(tbv& dst, tbv const& src) const;