// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/gtr.c
// Function: list_tools
static int list_tools(GtR *gtr)
{
  GtToolIterator *ti;
  GtOptionParser *op;
  const char *name;
  char fulltoolname[BUFSIZ],
       *utoolname;
  GtTool *tool;
  GtStr *prefix = gt_str_new();
  gt_assert(gtr);
  /* list 'gt' itself */
  printf("\n"),
  printf("- link:tools/gt.html[gt]\n");
  op = gtr_option_parser_new(gtr);
  printf("  %s\n", gt_option_parser_one_liner(op));
  gt_option_parser_delete(op);
  /* list all tools in 'gt' */
  ti = gt_tool_iterator_new(gtr->tools);
  gt_tool_iterator_set_prefix_target(ti, prefix, ' ');
  while (gt_tool_iterator_next(ti, &name, &tool)) {
    op = gt_tool_get_option_parser(tool);
    (void) snprintf(fulltoolname, BUFSIZ, "gt%c%s%s", ' ',
                    gt_str_get(prefix), name);
    utoolname = gt_cstr_dup(fulltoolname);
    gt_cstr_rep(utoolname, ' ', '_');
    printf("\n"),
    printf("- link:tools/%s.html[%s]\n", utoolname, fulltoolname);
    printf("  %s\n", gt_option_parser_one_liner(op));
    gt_free(utoolname);
  }
  gt_tool_iterator_delete(ti);
  gt_str_delete(prefix);
  return EXIT_SUCCESS;
}

// Assembly:
subq $0x2048, %rsp           # imm = 0x2048
movq %rdi, 0x2040(%rsp)
callq 0x11d4a0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x2040(%rsp)
jne 0x1b49c
movq 0x620b35(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4fab9e(%rip), %rsi    # 0x516013
leaq 0x4fad6b(%rip), %rdx    # 0x5161e7
leaq 0x4fb188(%rip), %rcx    # 0x51660b
leaq 0x4facbb(%rip), %r8     # 0x516145
movl $0x10c, %r9d            # imm = 0x10C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1b49e
leaq 0x577dce(%rip), %rdi    # 0x593273
movb $0x0, %al
callq 0x19070
leaq 0x4fb163(%rip), %rdi    # 0x516616
movb $0x0, %al
callq 0x19070
movq 0x2040(%rsp), %rdi
callq 0x1a700
movq %rax, 0x2030(%rsp)
movq 0x2030(%rsp), %rdi
callq 0xf7670
movq %rax, %rsi
leaq 0x4fb14a(%rip), %rdi    # 0x516630
movb $0x0, %al
callq 0x19070
movq 0x2030(%rsp), %rdi
callq 0xf5cf0
movq 0x2040(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x1230c0
movq %rax, 0x2038(%rsp)
movq 0x2038(%rsp), %rdi
movq 0x8(%rsp), %rsi
movl $0x20, %edx
callq 0x123250
movq 0x2038(%rsp), %rdi
leaq 0x2028(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x1232f0
testb $0x1, %al
jne 0x1b54d
jmp 0x1b61b
movq 0x10(%rsp), %rdi
callq 0x122f70
movq %rax, 0x2030(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
callq 0x11dee0
movq (%rsp), %rdi
movq %rax, %r8
movq 0x2028(%rsp), %r9
movl $0x2000, %esi           # imm = 0x2000
leaq 0x4fb0a9(%rip), %rdx    # 0x516636
movl $0x20, %ecx
movb $0x0, %al
callq 0x19b90
leaq 0x20(%rsp), %rdi
callq 0xa2db0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x20, %esi
movl $0x5f, %edx
callq 0xa2ef0
leaq 0x577cb0(%rip), %rdi    # 0x593273
movb $0x0, %al
callq 0x19070
movq 0x18(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x4fb064(%rip), %rdi    # 0x51663f
movb $0x0, %al
callq 0x19070
movq 0x2030(%rsp), %rdi
callq 0xf7670
movq %rax, %rsi
leaq 0x4fb037(%rip), %rdi    # 0x516630
movb $0x0, %al
callq 0x19070
movq 0x18(%rsp), %rdi
leaq 0x4fab39(%rip), %rsi    # 0x516145
movl $0x11f, %edx            # imm = 0x11F
callq 0xe88c0
jmp 0x1b52a
movq 0x2038(%rsp), %rdi
callq 0x123510
movq 0x8(%rsp), %rdi
callq 0x11f560
xorl %eax, %eax
addq $0x2048, %rsp           # imm = 0x2048
retq
nopl (%rax)