// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_condenseq_info.c
// Function: gt_condenseq_info_runner
static int gt_condenseq_info_runner(GT_UNUSED int argc, const char **argv,
                                        int parsed_args,
                                        void *tool_arguments,
                                        GtError *err)
{
  GtCondenseqInfoArguments *arguments = tool_arguments;
  int had_err = 0;
  GtCondenseq *ces = NULL;
  GtLogger *logger = NULL;

  gt_error_check(err);

  logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX, stderr);

  if (!had_err) {
    ces = gt_condenseq_new_from_file(argv[parsed_args], logger, err);
    if (ces == NULL)
      had_err = -1;
  }
  if (!had_err) {
    GtUword num, total;
    num = gt_condenseq_num_uniques(ces);
    total = gt_condenseq_total_unique_len(ces);
    printf(GT_WU "\tunique entries\n", num);
    printf(GT_WU "\tunique length\n", total);
    printf(GT_WU "\taverage unique length\n", total / num);
    if (arguments->align_len != GT_UNDEF_UINT)
      printf(GT_WU "\trelevant uniques (>= %u)\n",
             gt_condenseq_count_relevant_uniques(ces,
                                                 arguments->align_len),
             arguments->align_len);
    num = gt_condenseq_num_links(ces);
    total = gt_condenseq_total_link_len(ces);
    printf(GT_WU "\tlink entries\n", num);
    printf(GT_WU "\tlink length\n", total);
    printf(GT_WU "\taverage link length\n", total / num);
    printf(GT_WU "\ttotal length\n", gt_condenseq_total_length(ces));
  }

  if (!had_err && arguments->size) {
    GtUword size, links, uniques, eds, descs, ssp;
    size = gt_condenseq_size(ces, &uniques, &links, &eds, &descs, &ssp);
    printf(GT_WU "\tbytes total size\n", size);
    printf(GT_WU "\tbytes uniques size\n", uniques);
    printf(GT_WU "\tbytes links size (without editscripts)\n", links);
    printf(GT_WU "\tbytes editscripts size\n", eds);
    printf(GT_WU "\tbytes descriptions size\n", descs);
    printf(GT_WU "\tbytes ssptab size\n", ssp);
  }
  if (!had_err && arguments->gff) {
    had_err = gt_condenseq_output_to_gff3(ces, err);
  }
  if (!had_err && arguments->link != GT_UNDEF_UWORD) {
    if (arguments->link >= gt_condenseq_num_links(ces)) {
      gt_error_set(err, GT_WU " exceedes number of links: " GT_WU,
                   arguments->link, gt_condenseq_num_links(ces));
      had_err = -1;
    }
    else {
      GtUword match, mis, ins, del, vlen, size;
      const GtEditscript *es =
        gt_condenseq_link_editscript(ces, arguments->link);
      GtAlphabet *al = gt_condenseq_alphabet(ces);
      gt_editscript_get_stats(es, &match, &mis, &ins, &del);
      vlen = gt_editscript_get_target_len(es);
      gt_editscript_show(es, al);
      printf("target (v) len: " GT_WU "\n"
             GT_WU " matches\n"
             GT_WU " mismatches\n"
             GT_WU " indels\n",
             vlen, match, mis, ins + del);
      size = (GtUword) gt_editscript_size(es);
      printf(GT_WU "/" GT_WU " compressed size: %.2f\n",
             size, vlen, ((double) size / (double) vlen) * 100.0);
      gt_alphabet_delete(al);
    }
  }

  if (!had_err && arguments->dist) {
    GtFile *outfile = gt_file_new_from_fileptr(stdout);
    GtDiscDistri *dist = gt_condenseq_unique_length_dist(ces);
    printf("unique length distribution\n");
    gt_disc_distri_show(dist, outfile);
    gt_disc_distri_delete(dist);
    dist = gt_condenseq_link_length_dist(ces);
    printf("link length distribution\n");
    gt_disc_distri_show(dist, outfile);
    gt_disc_distri_delete(dist);
    gt_file_delete_without_handle(outfile);
  }
  if (!had_err && arguments->compdist) {
    GtFile *outfile = gt_file_new_from_fileptr(stdout);
    GtDiscDistri *dist = gt_condenseq_link_comp_dist(ces);
    printf("compression distribution\n");
    gt_disc_distri_show(dist, outfile);
    gt_disc_distri_delete(dist);
    gt_file_delete_without_handle(outfile);
  }
  gt_condenseq_delete(ces);
  gt_logger_delete(logger);
  return had_err;
}

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movl %edi, 0x104(%rsp)
movq %rsi, 0xf8(%rsp)
movl %edx, 0xf4(%rsp)
movq %rcx, 0xe8(%rsp)
movq %r8, 0xe0(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movl $0x0, 0xd4(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0xc0(%rsp)
cmpq $0x0, 0xe0(%rsp)
je 0x296f6
movq 0xe0(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x296be
jmp 0x296f6
movq 0x6128db(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4ec944(%rip), %rsi    # 0x516013
leaq 0x4ecae9(%rip), %rdx    # 0x5161bf
leaq 0x4f12fd(%rip), %rcx    # 0x51a9da
leaq 0x4f115c(%rip), %r8     # 0x51a840
movl $0x72, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x296f8
movq 0xd8(%rsp), %rax
movb 0xc(%rax), %al
movq 0x612896(%rip), %rcx    # 0x63bfa0
movq (%rcx), %rdx
leaq 0x4ee1d8(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0xc0(%rsp)
cmpl $0x0, 0xd4(%rsp)
jne 0x29779
movq 0xf8(%rsp), %rax
movslq 0xf4(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0xc0(%rsp), %rsi
movq 0xe0(%rsp), %rdx
callq 0x13fd70
movq %rax, 0xc8(%rsp)
cmpq $0x0, 0xc8(%rsp)
jne 0x29777
movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF
jmp 0x29779
cmpl $0x0, 0xd4(%rsp)
jne 0x298dd
movq 0xc8(%rsp), %rdi
callq 0x13ef60
movq %rax, 0xb8(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x13efe0
movq %rax, 0xb0(%rsp)
movq 0xb8(%rsp), %rsi
leaq 0x4f1233(%rip), %rdi    # 0x51a9f3
movb $0x0, %al
callq 0x19070
movq 0xb0(%rsp), %rsi
leaq 0x4f1231(%rip), %rdi    # 0x51aa07
movb $0x0, %al
callq 0x19070
movq 0xb0(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0xb8(%rsp)
movq %rax, %rsi
leaq 0x4f121f(%rip), %rdi    # 0x51aa1a
movb $0x0, %al
callq 0x19070
movq 0xd8(%rsp), %rax
cmpl $-0x1, 0x8(%rax)
je 0x29844
movq 0xc8(%rsp), %rdi
movq 0xd8(%rsp), %rax
movl 0x8(%rax), %esi
callq 0x142b20
movq %rax, %rsi
movq 0xd8(%rsp), %rax
movl 0x8(%rax), %edx
leaq 0x4f11f8(%rip), %rdi    # 0x51aa35
movb $0x0, %al
callq 0x19070
movq 0xc8(%rsp), %rdi
callq 0x13ef50
movq %rax, 0xb8(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x13ef80
movq %rax, 0xb0(%rsp)
movq 0xb8(%rsp), %rsi
leaq 0x4f11d6(%rip), %rdi    # 0x51aa53
movb $0x0, %al
callq 0x19070
movq 0xb0(%rsp), %rsi
leaq 0x4f11d2(%rip), %rdi    # 0x51aa65
movb $0x0, %al
callq 0x19070
movq 0xb0(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0xb8(%rsp)
movq %rax, %rsi
leaq 0x4f11be(%rip), %rdi    # 0x51aa76
movb $0x0, %al
callq 0x19070
movq 0xc8(%rsp), %rdi
callq 0x13f000
movq %rax, %rsi
leaq 0x4f11b9(%rip), %rdi    # 0x51aa8f
movb $0x0, %al
callq 0x19070
cmpl $0x0, 0xd4(%rsp)
jne 0x299be
movq 0xd8(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x299be
movq 0xc8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
leaq 0x90(%rsp), %rcx
leaq 0x88(%rsp), %r8
leaq 0x80(%rsp), %r9
callq 0x142b90
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rsi
leaq 0x4f1158(%rip), %rdi    # 0x51aaa1
movb $0x0, %al
callq 0x19070
movq 0x98(%rsp), %rsi
leaq 0x4f1158(%rip), %rdi    # 0x51aab7
movb $0x0, %al
callq 0x19070
movq 0xa0(%rsp), %rsi
leaq 0x4f115a(%rip), %rdi    # 0x51aacf
movb $0x0, %al
callq 0x19070
movq 0x90(%rsp), %rsi
leaq 0x4f1170(%rip), %rdi    # 0x51aafb
movb $0x0, %al
callq 0x19070
movq 0x88(%rsp), %rsi
leaq 0x4f1176(%rip), %rdi    # 0x51ab17
movb $0x0, %al
callq 0x19070
movq 0x80(%rsp), %rsi
leaq 0x4f117d(%rip), %rdi    # 0x51ab34
movb $0x0, %al
callq 0x19070
cmpl $0x0, 0xd4(%rsp)
jne 0x299f2
movq 0xd8(%rsp), %rax
testb $0x1, 0xd(%rax)
je 0x299f2
movq 0xc8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq 0x141e30
movl %eax, 0xd4(%rsp)
cmpl $0x0, 0xd4(%rsp)
jne 0x29ba8
movq 0xd8(%rsp), %rax
cmpq $-0x1, (%rax)
je 0x29ba8
movq 0xd8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x13ef50
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jb 0x29a91
movq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xd8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x13ef50
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq %rax, %rcx
leaq 0x4f10d1(%rip), %rsi    # 0x51ab4b
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xd4(%rsp) # imm = 0xFFFFFFFF
jmp 0x29ba6
movq 0xc8(%rsp), %rdi
movq 0xd8(%rsp), %rax
movq (%rax), %rsi
callq 0x142a80
movq %rax, 0x48(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x142b00
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0x68(%rsp), %rcx
leaq 0x60(%rsp), %r8
callq 0x15aa70
movq 0x48(%rsp), %rdi
callq 0x15b1f0
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x15c5f0
movq 0x58(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x60(%rsp), %rax
addq %rax, %r8
leaq 0x4f104e(%rip), %rdi    # 0x51ab6d
xorl %eax, %eax
callq 0x19070
movq 0x48(%rsp), %rdi
callq 0x15c340
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rsi, %xmm0
movaps 0x4eede5(%rip), %xmm3   # 0x518930
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x4eede9(%rip), %xmm2   # 0x518940
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq %rdx, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd 0x4f0cae(%rip), %xmm1   # 0x51a838
mulsd %xmm1, %xmm0
leaq 0x4f1013(%rip), %rdi    # 0x51aba8
movb $0x1, %al
callq 0x19070
movq 0x40(%rsp), %rdi
callq 0x7e3d0
jmp 0x29ba8
cmpl $0x0, 0xd4(%rsp)
jne 0x29c58
movq 0xd8(%rsp), %rax
testb $0x1, 0xe(%rax)
je 0x29c58
movq 0x612369(%rip), %rax    # 0x63bf38
movq (%rax), %rdi
callq 0xdda20
movq %rax, 0x38(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x142750
movq %rax, 0x30(%rsp)
leaq 0x4f0fd2(%rip), %rdi    # 0x51abc7
movb $0x0, %al
callq 0x19070
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0xa5330
movq 0x30(%rsp), %rdi
callq 0xa5bf0
movq 0xc8(%rsp), %rdi
callq 0x1427c0
movq %rax, 0x30(%rsp)
leaq 0x4f0fb5(%rip), %rdi    # 0x51abe3
movb $0x0, %al
callq 0x19070
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0xa5330
movq 0x30(%rsp), %rdi
callq 0xa5bf0
movq 0x38(%rsp), %rdi
callq 0xdd730
cmpl $0x0, 0xd4(%rsp)
jne 0x29cc7
movq 0xd8(%rsp), %rax
testb $0x1, 0xf(%rax)
je 0x29cc7
movq 0x6122c1(%rip), %rax    # 0x63bf38
movq (%rax), %rdi
callq 0xdda20
movq %rax, 0x28(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x142830
movq %rax, 0x20(%rsp)
leaq 0x4f0f60(%rip), %rdi    # 0x51abfd
movb $0x0, %al
callq 0x19070
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xa5330
movq 0x20(%rsp), %rdi
callq 0xa5bf0
movq 0x28(%rsp), %rdi
callq 0xdd730
movq 0xc8(%rsp), %rdi
callq 0x13f640
movq 0xc0(%rsp), %rdi
callq 0xe7ed0
movl 0xd4(%rsp), %eax
addq $0x108, %rsp            # imm = 0x108
retq