mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 04:26:00 +00:00
improve output
This commit is contained in:
parent
003896991d
commit
c31503f67d
4 changed files with 29 additions and 17 deletions
|
@ -78,6 +78,7 @@ namespace polysat {
|
|||
friend class viable;
|
||||
friend class viable_fallback;
|
||||
friend class search_state;
|
||||
friend class num_pp;
|
||||
friend class assignment_pp;
|
||||
friend class assignments_pp;
|
||||
friend class ex_polynomial_superposition;
|
||||
|
@ -429,12 +430,25 @@ namespace polysat {
|
|||
std::ostream& display(std::ostream& out) const;
|
||||
};
|
||||
|
||||
/** Format value 'val' as member of the domain of 'var' */
|
||||
class num_pp {
|
||||
solver const& s;
|
||||
pvar var;
|
||||
rational const& val;
|
||||
public:
|
||||
num_pp(solver const& s, pvar var, rational const& val): s(s), var(var), val(val) {}
|
||||
std::ostream& display(std::ostream& out) const;
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& out, solver const& s) { return s.display(out); }
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& out, num_pp const& v) { return v.display(out); }
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& out, assignment_pp const& p) { return p.display(out); }
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& out, assignments_pp const& a) { return a.display(out); }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue