3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-03 13:55:47 +00:00

debug dio

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2024-08-26 10:18:56 -10:00 committed by Lev Nachmanson
parent df18885f97
commit a796d48264
3 changed files with 79 additions and 48 deletions

View file

@ -86,6 +86,10 @@ bool is_non_decreasing(const K& v) {
template <typename T>
std::ostream& print_linear_combination_customized(const vector<std::pair<T, unsigned>> & coeffs, std::function<std::string (unsigned)> var_str, std::ostream & out) {
if (coeffs.size() == 0) {
out << "0";
return out;
}
bool first = true;
for (const auto & it : coeffs) {
T val = it.first;