mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
testing inc_sat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
365f05b41a
commit
39414d8b8d
9 changed files with 200 additions and 95 deletions
|
@ -52,6 +52,27 @@ namespace sat {
|
|||
bool is_ext_justification() const { return m_val2 == EXT_JUSTIFICATION; }
|
||||
ext_justification_idx get_ext_justification_idx() const { return m_val1; }
|
||||
};
|
||||
|
||||
inline std::ostream & operator<<(std::ostream & out, justification const & j) {
|
||||
switch (j.get_kind()) {
|
||||
case justification::NONE:
|
||||
out << "none";
|
||||
break;
|
||||
case justification::BINARY:
|
||||
out << "binary " << j.get_literal();
|
||||
break;
|
||||
case justification::TERNARY:
|
||||
out << "ternary " << j.get_literal1() << " " << j.get_literal2();
|
||||
break;
|
||||
case justification::CLAUSE:
|
||||
out << "clause";
|
||||
break;
|
||||
case justification::EXT_JUSTIFICATION:
|
||||
out << "external";
|
||||
break;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue