fix(kernel/constraint): printer
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
54936c201a
commit
4e893d3902
1 changed files with 4 additions and 0 deletions
|
@ -134,10 +134,13 @@ std::ostream & operator<<(std::ostream & out, constraint const & c) {
|
|||
switch (c.kind()) {
|
||||
case constraint_kind::Eq:
|
||||
out << cnstr_lhs_expr(c) << " ≈ " << cnstr_rhs_expr(c);
|
||||
break;
|
||||
case constraint_kind::Convertible:
|
||||
out << cnstr_lhs_expr(c) << " ↠ " << cnstr_rhs_expr(c);
|
||||
break;
|
||||
case constraint_kind::Level:
|
||||
out << cnstr_lhs_level(c) << " ≤ " << cnstr_rhs_level(c);
|
||||
break;
|
||||
case constraint_kind::Choice:
|
||||
out << cnstr_choice_expr(c) << " ∊ {";
|
||||
bool first = true;
|
||||
|
@ -146,6 +149,7 @@ std::ostream & operator<<(std::ostream & out, constraint const & c) {
|
|||
out << e;
|
||||
}
|
||||
out << "}";
|
||||
break;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue