feat(kernel/formatter): prefix metavars with '?' and local vars with '!' in the simple formatter

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-05-14 10:16:42 -07:00
parent f903626b78
commit 277e0e6d49

View file

@ -88,8 +88,11 @@ struct print_expr_fn {
void print(expr const & a, context const & c) {
switch (a.kind()) {
case expr_kind::Meta: case expr_kind::Local:
out() << mlocal_name(a);
case expr_kind::Meta:
out() << "?" << mlocal_name(a);
break;
case expr_kind::Local:
out() << "!" << mlocal_name(a);
break;
case expr_kind::Var: {
auto e = find(c, var_idx(a));