3
0
Fork 0
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:
Nikolaj Bjorner 2021-06-18 17:26:11 -07:00
parent f263045f96
commit a049235caa

View file

@ -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;