3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 01:55:32 +00:00

cleanup for pull request

This commit is contained in:
nilsbecker 2019-02-23 02:47:33 +01:00
parent 6e508d4221
commit a8586746be
7 changed files with 212 additions and 170 deletions

View file

@ -99,7 +99,6 @@ class mpz {
friend class mpbq;
friend class mpbq_manager;
friend class mpz_stack;
friend class bv_util;
mpz & operator=(mpz const & other) { UNREACHABLE(); return *this; }
public:
mpz(int v):m_val(v), m_kind(mpz_small), m_owner(mpz_self), m_ptr(nullptr) {}
@ -135,7 +134,6 @@ inline void swap(mpz & m1, mpz & m2) { m1.swap(m2); }
template<bool SYNCH = true>
class mpz_manager {
friend class bv_util;
mutable small_object_allocator m_allocator;
mutable omp_nest_lock_t m_lock;
#define MPZ_BEGIN_CRITICAL() if (SYNCH) omp_set_nest_lock(&m_lock);
@ -594,6 +592,17 @@ public:
*/
void display_smt2(std::ostream & out, mpz const & a, bool decimal) const;
/**
\brief Displays the num_bits least significant bits of a mpz number in hexadecimal format.
num_bits must be divisible by 4.
*/
void display_hex(std::ostream & out, mpz const & a, unsigned num_bits) const;
/**
\brief Displays the num_bits least significant bits of a mpz number in binary format.
*/
void display_bin(std::ostream & out, mpz const & a, unsigned num_bits) const;
static unsigned hash(mpz const & a);
static bool is_one(mpz const & a) {