mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 18:06:15 +00:00
pass algebraic manager to arith-plugin mk-numeral because rational check may overwrite the argument using the current manager deals with crash as part of #4532
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ac39ddb43f
commit
c7704ef9af
11 changed files with 43 additions and 45 deletions
|
@ -202,12 +202,14 @@ mpz_cell * mpz_manager<SYNCH>::allocate(unsigned capacity) {
|
|||
}
|
||||
#endif
|
||||
cell->m_capacity = capacity;
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
template<bool SYNCH>
|
||||
void mpz_manager<SYNCH>::deallocate(bool is_heap, mpz_cell * ptr) {
|
||||
if (is_heap) {
|
||||
|
||||
#ifdef SINGLE_THREAD
|
||||
m_allocator.deallocate(cell_size(ptr->m_capacity), ptr);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue