 +/*  bam_sam2bam.c -- format converter framework
 +
 +    Author: Takeshi Ogasawara <takeshi@jp.ibm.com>
-+	$Rev: 89 $
-+	$Date: 2017-01-12 18:06:29 +0900 (Thu, 12 Jan 2017) $
++	$Rev: 90 $
++	$Date: 2017-01-13 10:50:52 +0900 (Fri, 13 Jan 2017) $
 +
 +	*/
 +

+  fprintf(stderr, "double-free check done\n");
+}}}
+#endif
+  if (filters.use_baminfo) {
+    p_prof2 = mt_wrt_throughput_init();
+  }
+
+prof_bucket_array_min = bucket_array->min;
+prof_bucket_array_max = bucket_array->max;
+fprintf(stderr, "write index range: %lu - %lu\n", bucket_array->min, bucket_array->max);
+  size_t mem = 0, n_bam = 0;
+  const int unsort = g_unsort;

+  int sync_done = 0;
+  long sync_count;
+  double sync_time;
+  const int ba_length = prof_bucket_array_max - prof_bucket_array_min + 1; 
+  const int ba_min = prof_bucket_array_min;
+
+  while(!rd_progress_initialized){
