fn writeLabel(decl: *const Decl, label_map: *RefMap, ref: Ref, term: std.Io.Terminal) !void
fn writeLabel(decl: *const Decl, label_map: *RefMap, ref: Ref, term: std.Io.Terminal) !void { const w = term.writer; assert(ref != .none); const index = @backingInt(ref); const label = decl.instructions.items(.data)[index].label; try term.setColor(REF); const label_index = label_map.getIndex(ref).?; try w.print("{s}.{d}", .{ label, label_index }); }