File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,23 @@ void format_expr_configt::setup()
474
474
return os << ' "' << expr.get_string (ID_value) << ' "' ;
475
475
};
476
476
477
+ expr_map[ID_function_application] =
478
+ [](std::ostream &os, const exprt &expr) -> std::ostream & {
479
+ const auto &function_application_expr = to_function_application_expr (expr);
480
+ os << format (function_application_expr.function ()) << ' (' ;
481
+ bool first = true ;
482
+ for (auto &argument : function_application_expr.arguments ())
483
+ {
484
+ if (first)
485
+ first = false ;
486
+ else
487
+ os << " , " ;
488
+ os << format (argument);
489
+ }
490
+ os << ' )' ;
491
+ return os;
492
+ };
493
+
477
494
fallback = [](std::ostream &os, const exprt &expr) -> std::ostream & {
478
495
return fallback_format_rec (os, expr);
479
496
};
You can’t perform that action at this time.
0 commit comments