mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 18:06:15 +00:00
-1
This commit is contained in:
parent
a8ecfd1313
commit
ea9e5a47c7
1 changed files with 1 additions and 1 deletions
|
@ -1678,7 +1678,7 @@ namespace dd {
|
||||||
unsigned pow;
|
unsigned pow;
|
||||||
if (val.is_power_of_two(pow) && pow > 10)
|
if (val.is_power_of_two(pow) && pow > 10)
|
||||||
return out << "2^" << pow;
|
return out << "2^" << pow;
|
||||||
else if ((val + 1).is_power_of_two(pow) && pow > 10) {
|
else if (val < m.max_value() && (val + 1).is_power_of_two(pow) && pow > 10) {
|
||||||
if (require_parens)
|
if (require_parens)
|
||||||
out << "(";
|
out << "(";
|
||||||
out << "2^" << pow << "-1";
|
out << "2^" << pow << "-1";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue