mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
simplify output to use signed constants
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f263045f96
commit
a049235caa
1 changed files with 4 additions and 1 deletions
|
@ -1460,7 +1460,10 @@ namespace dd {
|
|||
rational c = abs(m.first);
|
||||
m.second.reverse();
|
||||
if (!c.is_one() || m.second.empty()) {
|
||||
out << c;
|
||||
if (m_semantics == mod2N_e && mod(-c, m_mod2N) < c)
|
||||
out << -mod(-c, m_mod2N);
|
||||
else
|
||||
out << c;
|
||||
if (!m.second.empty()) out << "*";
|
||||
}
|
||||
unsigned v_prev = UINT_MAX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue