3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-25 12:35:59 +00:00

lit_pp with extra information

This commit is contained in:
Jakob Rath 2022-08-17 09:29:00 +02:00
parent 618b3945c1
commit 201d841a90
2 changed files with 23 additions and 1 deletions

View file

@ -80,6 +80,7 @@ namespace polysat {
friend class viable_fallback;
friend class search_state;
friend class num_pp;
friend class lit_pp;
friend class assignment_pp;
friend class assignments_pp;
friend class ex_polynomial_superposition;
@ -420,6 +421,14 @@ namespace polysat {
std::ostream& display(std::ostream& out) const;
};
class lit_pp {
solver const& s;
sat::literal lit;
public:
lit_pp(solver const& s, sat::literal lit): s(s), lit(lit) {}
std::ostream& display(std::ostream& out) const;
};
/** Format value 'val' as member of the domain of 'var' */
class num_pp {
solver const& s;
@ -434,6 +443,8 @@ namespace polysat {
inline std::ostream& operator<<(std::ostream& out, num_pp const& v) { return v.display(out); }
inline std::ostream& operator<<(std::ostream& out, lit_pp const& l) { return l.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); }