mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
Remove int64, uint64 typedefs in favor of int64_t / uint64_t.
This commit is contained in:
parent
16a2ad9afd
commit
2fa304d8de
80 changed files with 437 additions and 449 deletions
|
@ -5479,7 +5479,7 @@ namespace polynomial {
|
|||
}
|
||||
p_prime = derivative(p, x);
|
||||
resultant(p, p_prime, x, r);
|
||||
bool sign = (static_cast<uint64>(m) * static_cast<uint64>(m-1))%4 != 0;
|
||||
bool sign = (static_cast<uint64_t>(m) * static_cast<uint64_t>(m-1))%4 != 0;
|
||||
TRACE("resultant", tout << "discriminant sign: " << sign << "\n";);
|
||||
scoped_numeral lc(m_manager);
|
||||
if (const_coeff(p, x, m, lc)) {
|
||||
|
@ -6963,7 +6963,7 @@ namespace polynomial {
|
|||
return m_imp->m().set_zp(p);
|
||||
}
|
||||
|
||||
void manager::set_zp(uint64 p) {
|
||||
void manager::set_zp(uint64_t p) {
|
||||
return m_imp->m().set_zp(p);
|
||||
}
|
||||
|
||||
|
|
|
@ -218,7 +218,7 @@ namespace polynomial {
|
|||
\brief Set manager as Z_p[X1, ..., Xn]
|
||||
*/
|
||||
void set_zp(numeral const & p);
|
||||
void set_zp(uint64 p);
|
||||
void set_zp(uint64_t p);
|
||||
|
||||
/**
|
||||
\brief Abstract event handler.
|
||||
|
@ -1043,7 +1043,7 @@ namespace polynomial {
|
|||
scoped_numeral m_p;
|
||||
public:
|
||||
scoped_set_zp(manager & _m, numeral const & p):m(_m), m_modular(m.modular()), m_p(m.m()) { m_p = m.p(); m.set_zp(p); }
|
||||
scoped_set_zp(manager & _m, uint64 p):m(_m), m_modular(m.modular()), m_p(m.m()) { m_p = m.p(); m.set_zp(p); }
|
||||
scoped_set_zp(manager & _m, uint64_t p):m(_m), m_modular(m.modular()), m_p(m.m()) { m_p = m.p(); m.set_zp(p); }
|
||||
~scoped_set_zp() { if (m_modular) m.set_zp(m_p); else m.set_z(); }
|
||||
};
|
||||
};
|
||||
|
|
|
@ -153,7 +153,7 @@ namespace upolynomial {
|
|||
\brief Set manager as Z_p[X]
|
||||
*/
|
||||
void set_zp(numeral const & p) { m().set_zp(p); }
|
||||
void set_zp(uint64 p) { m().set_zp(p); }
|
||||
void set_zp(uint64_t p) { m().set_zp(p); }
|
||||
|
||||
void checkpoint();
|
||||
|
||||
|
@ -486,7 +486,7 @@ namespace upolynomial {
|
|||
core_manager::scoped_numeral m_p;
|
||||
public:
|
||||
scoped_set_zp(core_manager & _m, numeral const & p):m(_m), m_modular(m.modular()), m_p(m.m()) { m_p = m.p(); m.set_zp(p); }
|
||||
scoped_set_zp(core_manager & _m, uint64 p):m(_m), m_modular(m.modular()), m_p(m.m()) { m_p = m.p(); m.set_zp(p); }
|
||||
scoped_set_zp(core_manager & _m, uint64_t p):m(_m), m_modular(m.modular()), m_p(m.m()) { m_p = m.p(); m.set_zp(p); }
|
||||
~scoped_set_zp() { if (m_modular) m.set_zp(m_p); else m.set_z(); }
|
||||
};
|
||||
|
||||
|
|
|
@ -38,9 +38,9 @@ unsigned get_p_from_manager(zp_numeral_manager const & zp_nm) {
|
|||
if (!nm.is_uint64(p)) {
|
||||
throw upolynomial_exception("The prime number attempted in factorization is too big!");
|
||||
}
|
||||
uint64 p_uint64 = nm.get_uint64(p);
|
||||
uint64_t p_uint64 = nm.get_uint64(p);
|
||||
unsigned p_uint = static_cast<unsigned>(p_uint64);
|
||||
if (((uint64)p_uint) != p_uint64) {
|
||||
if (((uint64_t)p_uint) != p_uint64) {
|
||||
throw upolynomial_exception("The prime number attempted in factorization is too big!");
|
||||
}
|
||||
return p_uint;
|
||||
|
@ -1075,7 +1075,7 @@ bool factor_square_free(z_manager & upm, numeral_vector const & f, factors & fs,
|
|||
while (trials < params.m_p_trials) {
|
||||
upm.checkpoint();
|
||||
// construct prime to check
|
||||
uint64 next_prime = prime_it.next();
|
||||
uint64_t next_prime = prime_it.next();
|
||||
if (next_prime > params.m_max_p) {
|
||||
fs.push_back(f_pp, k);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue