We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc3a64 commit afd1391Copy full SHA for afd1391
src/util/format_expr.cpp
@@ -474,6 +474,23 @@ void format_expr_configt::setup()
474
return os << '"' << expr.get_string(ID_value) << '"';
475
};
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
+
494
fallback = [](std::ostream &os, const exprt &expr) -> std::ostream & {
495
return fallback_format_rec(os, expr);
496
0 commit comments