mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
merge hassel table code from branch
Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
parent
fbbbfad564
commit
9a66696639
19 changed files with 2259 additions and 7 deletions
|
@ -28,6 +28,7 @@ COMPILE_TIME_ASSERT(sizeof(unsigned) == 4);
|
|||
#define BV_DEFAULT_CAPACITY 2
|
||||
|
||||
class bit_vector {
|
||||
protected:
|
||||
unsigned m_num_bits;
|
||||
unsigned m_capacity; //!< in words
|
||||
unsigned * m_data;
|
||||
|
@ -64,6 +65,12 @@ public:
|
|||
m_data(0) {
|
||||
}
|
||||
|
||||
bit_vector(unsigned reserve_num_bits) :
|
||||
m_num_bits(0),
|
||||
m_capacity(num_words(reserve_num_bits)),
|
||||
m_data(alloc_svect(unsigned, m_capacity)) {
|
||||
}
|
||||
|
||||
bit_vector(bit_vector const & source):
|
||||
m_num_bits(source.m_num_bits),
|
||||
m_capacity(source.m_capacity),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue