mirror of
https://github.com/Z3Prover/z3
synced 2026-03-07 22:04:53 +00:00
Revert "Fix invalid zero representation in set_big_i64 and set_big_ui64"
Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
This commit is contained in:
parent
04f07fe1d5
commit
957ba91fa6
1 changed files with 0 additions and 8 deletions
|
|
@ -259,10 +259,6 @@ void mpz_manager<SYNCH>::sub(mpz const & a, mpz const & b, mpz & c) {
|
|||
|
||||
template<bool SYNCH>
|
||||
void mpz_manager<SYNCH>::set_big_i64(mpz & c, int64_t v) {
|
||||
if (v == 0) {
|
||||
set(c, 0);
|
||||
return;
|
||||
}
|
||||
uint64_t _v;
|
||||
bool sign = v < 0;
|
||||
if (v == std::numeric_limits<int64_t>::min()) {
|
||||
|
|
@ -313,10 +309,6 @@ void mpz_manager<SYNCH>::set_big_i64(mpz & c, int64_t v) {
|
|||
|
||||
template<bool SYNCH>
|
||||
void mpz_manager<SYNCH>::set_big_ui64(mpz & c, uint64_t v) {
|
||||
if (v == 0) {
|
||||
set(c, 0);
|
||||
return;
|
||||
}
|
||||
#ifndef _MP_GMP
|
||||
if (c.is_small()) {
|
||||
c.set_ptr(allocate(m_init_cell_capacity), false, false); // positive, owned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue