Skip to content

Commit 04674ba

Browse files
author
Daniel Kroening
committed
format_expr: show quantified symbol in forall/exists
This makes the output closer to usual mathematical convention.
1 parent 7de9df8 commit 04674ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/util/format_expr.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ std::ostream &format_rec(std::ostream &os, const exprt &expr)
219219
else if(id == ID_type)
220220
return format_rec(os, expr.type());
221221
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());
222+
return os << u8"\u2200 " << format(to_quantifier_expr(expr).symbol())
223+
<< " : " << format(to_quantifier_expr(expr).symbol().type())
224+
<< " . " << format(to_quantifier_expr(expr).where());
225225
else if(id == ID_exists)
226-
return os << id << u8" \u2203 : "
227-
<< format(to_quantifier_expr(expr).symbol().type()) << " . "
228-
<< format(to_quantifier_expr(expr).where());
226+
return os << u8"\u2203 " << format(to_quantifier_expr(expr).symbol())
227+
<< " : " << format(to_quantifier_expr(expr).symbol().type())
228+
<< " . " << format(to_quantifier_expr(expr).where());
229229
else if(id == ID_let)
230230
return os << "LET " << format(to_let_expr(expr).symbol()) << " = "
231231
<< format(to_let_expr(expr).value()) << " IN "

0 commit comments

Comments
 (0)