3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-24 13:18:55 +00:00

pretty printing for lp

This commit is contained in:
Nikolaj Bjorner 2025-06-06 11:34:28 +02:00
parent ef284cca5d
commit 16452fec43
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ public:
if (val == -numeric_traits<T>::one())
out << " - ";
else if (val != numeric_traits<T>::one())
out << val;
out << val << "*";
out << get_variable_name(it.second);
}

View file

@ -118,7 +118,7 @@ std::ostream& print_linear_combination_customized(const vector<std::pair<T, unsi
}
}
if (val != 1) {
out << T_to_string(val);
out << T_to_string(val) << "*";
}
out << var_str(it.second);
}