// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_readjoiner_spmtest.c
// Function: gt_readjoiner_spmtest_option_parser_new
static GtOptionParser* gt_readjoiner_spmtest_option_parser_new(
    void *tool_arguments)
{
  GtReadjoinerSpmtestArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option;
  gt_assert(arguments);

  /* init */
  op = gt_option_parser_new("-readset [option ...]",
      "Test/development tool for readjoiner overlap phase.");

  /* -readset */
  option = gt_option_new_string("readset", "specify the readset name",
      arguments->readset, NULL);
  gt_option_parser_add_option(op, option);
  gt_option_is_mandatory(option);

  /* -l */
  option = gt_option_new_uint_min("l", "specify the minimum spm length",
      &arguments->minmatchlength, 0, 1U);
  gt_option_parser_add_option(op, option);

  /* -test */
  option = gt_option_new_string("test",
      "select among the available tests:\n"
      "showlist: show content of an spm list (input: spmlist)\n"
      "bruteforce: memcmp all suffixes and prefixes (input: encseq)\n"
      "kmp: variant of Knuth-Morris-Pratt (input: encseq)\n"
      "gusfield: Gusfield all pairs suffix-prefix (input: esa)",
      arguments->teststr, NULL);
  gt_option_parser_add_option(op, option);
  gt_option_is_mandatory(option);

  /* -singlestrand */
  option = gt_option_new_bool("singlestrand", "do not use reads "
      "reverse complements", &arguments->singlestrand, false);
  gt_option_parser_add_option(op, option);

  /* -v */
  option = gt_option_new_verbose(&arguments->verbose);
  gt_option_parser_add_option(op, option);

  gt_option_parser_set_version_func(op, gt_readjoiner_show_version);
  gt_option_parser_set_max_args(op, 0);

  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x3e7ce
movq %rdi, %r14
leaq 0x2b4d29(%rip), %rdi    # 0x2f3406
leaq 0x2b64c3(%rip), %rsi    # 0x2f4ba7
callq 0x97df5
movq %rax, %rbx
movq (%r14), %rdx
leaq 0x2b3f4e(%rip), %rdi    # 0x2f2644
leaq 0x2b3f4f(%rip), %rsi    # 0x2f264c
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r15, %rdi
callq 0x9ae37
leaq 0x14(%r14), %rdx
leaq 0x2e984d(%rip), %rdi    # 0x327f72
leaq 0x2b64af(%rip), %rsi    # 0x2f4bdb
pushq $0x1
popq %r8
xorl %ecx, %ecx
callq 0x9abef
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x8(%r14), %rdx
leaq 0x2a9296(%rip), %rdi    # 0x2e79e3
leaq 0x2b64a6(%rip), %rsi    # 0x2f4bfa
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r15, %rdi
callq 0x9ae37
leaq 0x18(%r14), %rdx
leaq 0x2ac041(%rip), %rdi    # 0x2ea7bd
leaq 0x2b4dd2(%rip), %rsi    # 0x2f3555
xorl %ecx, %ecx
callq 0x9a997
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
addq $0x19, %r14
movq %r14, %rdi
callq 0x9a9b6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x149f11(%rip), %rsi    # 0x1886c4
movq %rbx, %rdi
callq 0x9808c
movq %rbx, %rdi
xorl %esi, %esi
callq 0x98c29
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x3f9793(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a6834(%rip), %rsi    # 0x2e5013
leaq 0x309e6d(%rip), %rdx    # 0x348653
leaq 0x2b6392(%rip), %rcx    # 0x2f4b7f
leaq 0x2b6369(%rip), %r8     # 0x2f4b5d
pushq $0x46
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390