3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-08 00:05:46 +00:00

testing doc

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-20 19:01:15 -07:00
parent 2552c1530b
commit a50cbef877
10 changed files with 291 additions and 95 deletions

View file

@ -37,6 +37,7 @@ fixed_bit_vector_manager::fixed_bit_vector_manager(unsigned num_bits):
fixed_bit_vector* fixed_bit_vector_manager::allocate() {
if (m_num_bytes == 0) return &m_0;
return static_cast<fixed_bit_vector*>(m_alloc.allocate(m_num_bytes));
}
@ -59,7 +60,7 @@ fixed_bit_vector* fixed_bit_vector_manager::allocate(fixed_bit_vector const& bv)
}
void fixed_bit_vector_manager::deallocate(fixed_bit_vector* bv) {
m_alloc.deallocate(m_num_bytes, bv);
if (m_num_bytes > 0) m_alloc.deallocate(m_num_bytes, bv);
}