mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 01:55:32 +00:00
Nikolaj's changes in rationals
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
c2f3428373
commit
40a363d249
2 changed files with 29 additions and 24 deletions
|
@ -79,7 +79,7 @@ class mpz_cell {
|
|||
under winodws, m_ptr points to a mpz_cell that store the value.
|
||||
*/
|
||||
|
||||
enum mpz_kind { mpz_small = 0, mpz_ptr_k = 1};
|
||||
enum mpz_kind { mpz_small = 0, mpz_ptr = 1};
|
||||
enum mpz_owner { mpz_self = 0, mpz_ext = 1};
|
||||
|
||||
class mpz {
|
||||
|
@ -172,10 +172,13 @@ class mpz_manager {
|
|||
if (n.m_ptr == nullptr || capacity(n) < c) {
|
||||
deallocate(n);
|
||||
n.m_val = 1;
|
||||
n.m_kind = mpz_ptr_k;
|
||||
n.m_kind = mpz_ptr;
|
||||
n.m_owner = mpz_self;
|
||||
n.m_ptr = allocate(c);
|
||||
}
|
||||
else {
|
||||
n.m_kind = mpz_ptr;
|
||||
}
|
||||
}
|
||||
|
||||
void deallocate(bool is_heap, mpz_cell * ptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue