File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -356,16 +356,32 @@ void format_expr_configt::setup()
356
356
357
357
expr_map[ID_forall] =
358
358
[](std::ostream &os, const exprt &expr) -> std::ostream & {
359
- return os << u8" \u2200 " << format (to_quantifier_expr (expr).symbol ())
360
- << " : " << format (to_quantifier_expr (expr).symbol ().type ())
361
- << " . " << format (to_quantifier_expr (expr).where ());
359
+ os << u8" \u2200 " ;
360
+ bool first = true ;
361
+ for (const auto &symbol : to_quantifier_expr (expr).variables ())
362
+ {
363
+ if (first)
364
+ first = false ;
365
+ else
366
+ os << " , " ;
367
+ os << format (symbol) << " : " << format (symbol.type ());
368
+ }
369
+ return os << " . " << format (to_quantifier_expr (expr).where ());
362
370
};
363
371
364
372
expr_map[ID_exists] =
365
373
[](std::ostream &os, const exprt &expr) -> std::ostream & {
366
- return os << u8" \u2203 " << format (to_quantifier_expr (expr).symbol ())
367
- << " : " << format (to_quantifier_expr (expr).symbol ().type ())
368
- << " . " << format (to_quantifier_expr (expr).where ());
374
+ os << u8" \u2203 " ;
375
+ bool first = true ;
376
+ for (const auto &symbol : to_quantifier_expr (expr).variables ())
377
+ {
378
+ if (first)
379
+ first = false ;
380
+ else
381
+ os << " , " ;
382
+ os << format (symbol) << " : " << format (symbol.type ());
383
+ }
384
+ return os << " . " << format (to_quantifier_expr (expr).where ());
369
385
};
370
386
371
387
expr_map[ID_let] = [](std::ostream &os, const exprt &expr) -> std::ostream & {
You can’t perform that action at this time.
0 commit comments