3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 09:34:08 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-26 22:59:19 -07:00
parent f1193986c9
commit 5434f3e31d
2 changed files with 5 additions and 0 deletions

View file

@ -2653,6 +2653,9 @@ namespace polynomial {
m_tmp_linear_ms.push_back(mk_unit());
}
polynomial * p = mk_polynomial(m_tmp_linear_as.size(), m_tmp_linear_as.c_ptr(), m_tmp_linear_ms.c_ptr());
for (auto& a : m_tmp_linear_as) {
m_manager.del(a);
}
m_tmp_linear_as.reset();
m_tmp_linear_ms.reset();
return p;

View file

@ -122,9 +122,11 @@ uint64_t u64_gcd(uint64_t u, uint64_t v) {
}
template<bool SYNCH>
mpz_manager<SYNCH>::mpz_manager():
m_allocator("mpz_manager") {
#ifndef _MP_GMP
if (sizeof(digit_t) == sizeof(uint64_t)) {
// 64-bit machine