mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
use structured proof hints
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7da9f12521
commit
dd46224a1d
10 changed files with 233 additions and 63 deletions
|
@ -95,6 +95,7 @@ namespace sat {
|
|||
inline bool operator!=(literal const & l1, literal const & l2) { return l1.m_val != l2.m_val; }
|
||||
|
||||
inline std::ostream & operator<<(std::ostream & out, sat::literal l) { if (l == sat::null_literal) out << "null"; else out << (l.sign() ? "-" : "") << l.var(); return out; }
|
||||
|
||||
|
||||
|
||||
typedef svector<literal> literal_vector;
|
||||
|
@ -192,3 +193,11 @@ namespace sat {
|
|||
}
|
||||
|
||||
};
|
||||
|
||||
namespace std {
|
||||
|
||||
inline std::string to_string(sat::literal l) {
|
||||
if (l.sign()) return "-" + to_string(l.var());
|
||||
return to_string(l.var());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue