Skip to content

Commit 1a717aa

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 72b334d commit 1a717aa

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
@@ -217,13 +217,13 @@ std::ostream &format_rec(std::ostream &os, const exprt &expr)
217217
else if(id == ID_type)
218218
return format_rec(os, expr.type());
219219
else if(id == ID_forall)
220-
return os << id << u8" \u2200 : "
221-
<< format(to_quantifier_expr(expr).symbol().type()) << " . "
222-
<< format(to_quantifier_expr(expr).where());
220+
return os << u8"\u2200 " << format(to_quantifier_expr(expr).symbol())
221+
<< " : " << format(to_quantifier_expr(expr).symbol().type())
222+
<< " . " << format(to_quantifier_expr(expr).where());
223223
else if(id == ID_exists)
224-
return os << id << u8" \u2203 : "
225-
<< format(to_quantifier_expr(expr).symbol().type()) << " . "
226-
<< format(to_quantifier_expr(expr).where());
224+
return os << u8"\u2203 " << format(to_quantifier_expr(expr).symbol())
225+
<< " : " << format(to_quantifier_expr(expr).symbol().type())
226+
<< " . " << format(to_quantifier_expr(expr).where());
227227
else if(id == ID_let)
228228
return os << "LET " << format(to_let_expr(expr).symbol()) << " = "
229229
<< format(to_let_expr(expr).value()) << " IN "

0 commit comments

Comments
 (0)