Skip to content

Commit e6cc806

Browse files
author
Daniel Kroening
committed
format_expr now produces unicode
1 parent 6415658 commit e6cc806

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/util/format_expr.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,18 @@ static std::ostream &format_rec(std::ostream &os, const multi_ary_exprt &src)
6868
operator_str = u8"\u2227"; // wedge, U+2227
6969
else if(src.id() == ID_or)
7070
operator_str = u8"\u2228"; // vee, U+2228
71+
else if(src.id() == ID_xor)
72+
operator_str = u8"\u2295"; // + in circle, U+2295
7173
else if(src.id() == ID_le)
7274
operator_str = u8"\u2264"; // <=, U+2264
7375
else if(src.id() == ID_ge)
7476
operator_str = u8"\u2265"; // >=, U+2265
7577
else if(src.id() == ID_notequal)
7678
operator_str = u8"\u2260"; // /=, U+2260
79+
else if(src.id() == ID_implies)
80+
operator_str = u8"\u21d2"; // /=, U+21D2
81+
else if(src.id() == ID_iff)
82+
operator_str = u8"\u21d4"; // /=, U+21D4
7783
else
7884
operator_str = id2string(src.id());
7985

@@ -212,8 +218,12 @@ std::ostream &format_rec(std::ostream &os, const exprt &expr)
212218
}
213219
else if(id == ID_type)
214220
return format_rec(os, expr.type());
215-
else if(id == ID_forall || id == ID_exists)
216-
return os << id << ' ' << format(to_quantifier_expr(expr).symbol()) << " : "
221+
else if(id == ID_forall)
222+
return os << id << u8" \u2200 : "
223+
<< format(to_quantifier_expr(expr).symbol().type()) << " . "
224+
<< format(to_quantifier_expr(expr).where());
225+
else if(id == ID_exists)
226+
return os << id << u8" \u2203 : "
217227
<< format(to_quantifier_expr(expr).symbol().type()) << " . "
218228
<< format(to_quantifier_expr(expr).where());
219229
else if(id == ID_let)

0 commit comments

Comments
 (0)