mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 12:07:52 +00:00
improve output
This commit is contained in:
parent
003896991d
commit
c31503f67d
4 changed files with 29 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue