chore(frontends/lean, library/vm): save some debugging help code

This commit is contained in:
Leonardo de Moura 2018-10-03 13:20:24 -07:00
parent 9f161e6968
commit 13f0a7cd81
2 changed files with 5 additions and 3 deletions

View file

@ -1142,6 +1142,7 @@ auto pretty_fn::pp_proj(expr const & e) -> result {
format arg_fmt = pp_child(proj_expr(e), max_bp()).fmt();
format idx_fmt(proj_idx(e).get_small_value() + 1);
return result(arg_fmt + format(".") + idx_fmt);
// return result(arg_fmt + format("[") + format(proj_sname(e)) + format("].") + idx_fmt);
}
auto pretty_fn::pp_let(expr e) -> result {

View file

@ -2870,11 +2870,12 @@ void vm_state::run() {
DEBUG_CODE({
/* We only trace VM in debug mode */
lean_trace(name({"vm", "run"}),
tout() << m_pc << ": ";
tout() << m_decl_vector[m_fn_idx].get_name() << " @ " << m_pc << ": ";
instr.display(tout().get_stream());
tout() << "\n";
display_stack(tout().get_stream());
tout() << "\n";)
// display_stack(tout().get_stream());
//tout() << "\n";
)
});
switch (instr.op()) {
case opcode::Push: