Fix bug when pretty printing function applications where the head is a meta-variable.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
51422fe654
commit
4a75e2d965
1 changed files with 2 additions and 2 deletions
|
@ -648,8 +648,8 @@ class pp_fn {
|
||||||
} else {
|
} else {
|
||||||
// standard function application
|
// standard function application
|
||||||
expr const & f = app.get_function();
|
expr const & f = app.get_function();
|
||||||
result p = is_constant(f) ? mk_result(format(const_name(f)),1) : pp_child(f, depth);
|
result p = is_constant(f) && !is_metavar(f) ? mk_result(format(const_name(f)),1) : pp_child(f, depth);
|
||||||
bool simple = is_constant(f) && const_name(f).size() <= m_indent + 4;
|
bool simple = is_constant(f) && !is_metavar(f) && const_name(f).size() <= m_indent + 4;
|
||||||
unsigned indent = simple ? const_name(f).size()+1 : m_indent;
|
unsigned indent = simple ? const_name(f).size()+1 : m_indent;
|
||||||
format r_format = p.first;
|
format r_format = p.first;
|
||||||
unsigned r_weight = p.second;
|
unsigned r_weight = p.second;
|
||||||
|
|
Loading…
Reference in a new issue