mirror of
https://github.com/Z3Prover/z3
synced 2025-11-23 14:11:28 +00:00
t
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
b8efb77c0c
commit
cb83dedbd2
1 changed files with 8 additions and 3 deletions
|
|
@ -3357,9 +3357,14 @@ namespace nlsat {
|
||||||
out << "(assert (= ";
|
out << "(assert (= ";
|
||||||
proc(out, x);
|
proc(out, x);
|
||||||
out << " ";
|
out << " ";
|
||||||
|
if (m_am.is_rational(m_assignment.value(x))) {
|
||||||
mpq q;
|
mpq q;
|
||||||
m_am.to_rational(m_assignment.value(x), q);
|
m_am.to_rational(m_assignment.value(x), q);
|
||||||
m_am.qm().display_smt2(out, q, false);
|
m_am.qm().display_smt2(out, q, false);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_am.display_root_smt2(out, m_assignment.value(x));
|
||||||
|
}
|
||||||
out << "))\n";
|
out << "))\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue