mirror of
https://github.com/Z3Prover/z3
synced 2025-08-08 12:11:23 +00:00
merge useful utilities from qsat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f951372f03
commit
f175f864ec
32 changed files with 323 additions and 38 deletions
|
@ -69,6 +69,7 @@ void small_object_allocator::reset() {
|
|||
#define MASK ((1 << PTR_ALIGNMENT) - 1)
|
||||
|
||||
void small_object_allocator::deallocate(size_t size, void * p) {
|
||||
if (size == 0) return;
|
||||
#if defined(Z3DEBUG) && !defined(_WINDOWS)
|
||||
// Valgrind friendly
|
||||
memory::deallocate(p);
|
||||
|
@ -91,6 +92,7 @@ void small_object_allocator::deallocate(size_t size, void * p) {
|
|||
}
|
||||
|
||||
void * small_object_allocator::allocate(size_t size) {
|
||||
if (size == 0) return 0;
|
||||
#if defined(Z3DEBUG) && !defined(_WINDOWS)
|
||||
// Valgrind friendly
|
||||
return memory::allocate(size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue