mirror of
https://github.com/Z3Prover/z3
synced 2025-07-26 22:17:54 +00:00
parent
af9ae35984
commit
75a81af426
1 changed files with 3 additions and 2 deletions
|
@ -722,6 +722,7 @@ namespace algebraic_numbers {
|
||||||
\brief Make sure that if a is 0, then a.m_cell == 0
|
\brief Make sure that if a is 0, then a.m_cell == 0
|
||||||
*/
|
*/
|
||||||
void normalize(numeral & a) {
|
void normalize(numeral & a) {
|
||||||
|
std::cout << "normalize\n";
|
||||||
if (is_zero(a))
|
if (is_zero(a))
|
||||||
return;
|
return;
|
||||||
if (a.is_basic()) {
|
if (a.is_basic()) {
|
||||||
|
@ -732,7 +733,7 @@ namespace algebraic_numbers {
|
||||||
algebraic_cell * c = a.to_algebraic();
|
algebraic_cell * c = a.to_algebraic();
|
||||||
if (!upm().normalize_interval_core(c->m_p_sz, c->m_p, sign_lower(c), bqm(), lower(c), upper(c)))
|
if (!upm().normalize_interval_core(c->m_p_sz, c->m_p, sign_lower(c), bqm(), lower(c), upper(c)))
|
||||||
reset(a);
|
reset(a);
|
||||||
SASSERT(acell_inv(*c));
|
SASSERT(is_zero(a) || acell_inv(*a.to_algebraic()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue