chore(frontends/lean, library/vm): save some debugging help code
This commit is contained in:
parent
9f161e6968
commit
13f0a7cd81
2 changed files with 5 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue