3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 12:07:52 +00:00

improve output

This commit is contained in:
Jakob Rath 2022-07-14 10:47:35 +02:00
parent 003896991d
commit c31503f67d
4 changed files with 29 additions and 17 deletions

View file

@ -1185,17 +1185,20 @@ namespace polysat {
}
std::ostream& assignment_pp::display(std::ostream& out) const {
out << "v" << var << " := ";
out << "v" << var << " := " << num_pp(s, var, val);
if (with_justification)
out << " (" << s.m_justification[var] << ")";
return out;
}
std::ostream& num_pp::display(std::ostream& out) const {
rational const& p = rational::power_of_two(s.size(var));
if (val > mod(-val, p))
out << -mod(-val, p);
else
out << val;
if (with_justification)
out << " (" << s.m_justification[var] << ")";
return out;
}
void solver::collect_statistics(statistics& st) const {
st.update("polysat iterations", m_stats.m_num_iterations);