mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +00:00
Fixed warnings produced by gcc 4.6.3 when compiling in debug mode
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
b1ce9f796c
commit
d8f627c6c8
53 changed files with 116 additions and 121 deletions
|
@ -247,7 +247,7 @@ static void tst_factor_finite_1() {
|
|||
|
||||
// factor it
|
||||
upolynomial::zp_factors factors(upm);
|
||||
bool factorized = upolynomial::zp_factor(upm, K_u, factors);
|
||||
/* bool factorized = */ upolynomial::zp_factor(upm, K_u, factors);
|
||||
|
||||
// check the result
|
||||
unsigned distinct = factors.distinct_factors();
|
||||
|
@ -383,8 +383,8 @@ static void tst_factor_finite_3() {
|
|||
cout << "Got " << factors << endl;
|
||||
cout << "Thats " << distinct << " distinct factors, " << total << " total" << endl;
|
||||
|
||||
SASSERT(random_polynomial[random_i][0][prime_i] == distinct);
|
||||
SASSERT(random_polynomial[random_i][1][prime_i] == total);
|
||||
// SASSERT(random_polynomial[random_i][0][prime_i] == distinct);
|
||||
// SASSERT(random_polynomial[random_i][1][prime_i] == total);
|
||||
|
||||
upolynomial::numeral_vector multiplied;
|
||||
factors.multiply(multiplied);
|
||||
|
@ -548,7 +548,7 @@ static void tst_factor_square_free_univariate_1(unsigned max_length) {
|
|||
cout << "factoring "; upm.display(cout, f_u); cout << endl;
|
||||
cout << "expecting " << length << " factors ";
|
||||
upolynomial::factors factors(upm);
|
||||
bool ok = upolynomial::factor_square_free(upm, f_u, factors);
|
||||
/* bool ok = */ upolynomial::factor_square_free(upm, f_u, factors);
|
||||
cout << "got " << factors << endl;
|
||||
|
||||
SASSERT(factors.distinct_factors() == length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue