mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +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;
|
||||
if (val.is_power_of_two(pow) && pow > 10)
|
||||
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)
|
||||
out << "(";
|
||||
out << "2^" << pow << "-1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue