3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-01 08:53:18 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-11 09:35:28 -07:00
parent e32020ba10
commit e45871d7c5
5 changed files with 51 additions and 57 deletions

View file

@ -53,7 +53,8 @@ class ll_printer {
rational val;
bool is_int;
if (m_autil.is_numeral(n, val, is_int)) {
m_out << val << "::" << (is_int ? "Int" : "Real");
m_out << val;
if (!is_int && val.is_int()) m_out << ".0";
return true;
}
return false;