// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/sequence_buffer.c
// Function: gt_sequence_buffer_unit_test
int gt_sequence_buffer_unit_test(GtError *err)
{
  int had_err = 0;
  GtSequenceBuffer *sb;
  GtStrArray *testfiles;
  GtStr *tmpfilename;
  GtUword i;
  FILE *tmpfp;

  gt_error_check(err);

  /* create test seqs */
  testfiles = gt_str_array_new();
  tmpfilename = gt_str_new();
  tmpfp = gt_xtmpfp(tmpfilename);
  fprintf(tmpfp, "ID   Foo\n"
                 "XX\n"
                 "DE   Bar\n"
                 "SQ\n"
                 "     gatcgcgcta\n"
                 "//\n");
  gt_fa_xfclose(tmpfp);
  gt_ensure(gt_file_exists(gt_str_get(tmpfilename)));
  gt_str_array_add(testfiles, tmpfilename);
  gt_str_reset(tmpfilename);
  tmpfp = gt_xtmpfp(tmpfilename);
  fprintf(tmpfp, ">test3\nseq3xx\n"
                 ">test4\nseq4xxx\n");
  gt_fa_xfclose(tmpfp);
  gt_ensure(gt_file_exists(gt_str_get(tmpfilename)));
  gt_str_array_add(testfiles, tmpfilename);
  gt_str_delete(tmpfilename);

  sb = gt_sequence_buffer_new_guess_type(testfiles, err);
  gt_ensure(sb != NULL);

  gt_sequence_buffer_delete(sb);
  for (i=0;i<gt_str_array_size(testfiles);i++) {
    const char *fn;
    fn = gt_str_array_get(testfiles, i);
    gt_xremove(fn);
    gt_ensure(!gt_file_exists(fn));
  }
  gt_str_array_delete(testfiles);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x7f657
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x7f8e3
movq %rbx, (%rsp)
callq 0x3c8cc
movq %rax, %r14
callq 0x3b728
movq %rax, %r15
leaq 0x736c3(%rip), %rdx     # 0xf2d35
xorl %ebx, %ebx
movq %rax, %rdi
xorl %esi, %esi
movl $0xe8, %ecx
callq 0x747f2
movq %rax, %r12
leaq 0x7396c(%rip), %rdi     # 0xf2ff9
movl $0x2b, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0xbcb0
movq %r12, %rdi
callq 0x74532
movq %r15, %rdi
callq 0x3bb5d
movq %rax, %rdi
callq 0x76120
testb %al, %al
je 0x7f75c
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ca35
movq %r15, %rdi
callq 0x3bbee
leaq 0x7365c(%rip), %rdx     # 0xf2d35
movq %r15, %rdi
xorl %esi, %esi
movl $0xf3, %ecx
callq 0x747f2
movq %rax, %r12
leaq 0x7395b(%rip), %rdi     # 0xf304d
movl $0x1d, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0xbcb0
movq %r12, %rdi
callq 0x74532
movq %r15, %rdi
callq 0x3bb5d
movq %rax, %rdi
callq 0x76120
movl $0x0, %r12d
testb %al, %al
movq (%rsp), %r13
jne 0x7f7e0
leaq 0x63a24(%rip), %rsi     # 0xe3159
leaq 0x738e9(%rip), %rdx     # 0xf3025
leaq 0x73899(%rip), %rcx     # 0xf2fdc
leaq 0x735eb(%rip), %r8      # 0xf2d35
movq %r13, %rdi
movl $0xf7, %r9d
xorl %eax, %eax
callq 0x34f1f
jmp 0x7f7d8
leaq 0x639f6(%rip), %rsi     # 0xe3159
leaq 0x738bb(%rip), %rdx     # 0xf3025
leaq 0x7386b(%rip), %rcx     # 0xf2fdc
leaq 0x735bd(%rip), %r12     # 0xf2d35
movq (%rsp), %r13
movq %r13, %rdi
movq %r12, %r8
movl $0xf0, %r9d
xorl %eax, %eax
callq 0x34f1f
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ca35
movq %r15, %rdi
callq 0x3bbee
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movl $0xf3, %ecx
callq 0x747f2
movq %rax, %r12
leaq 0x7388f(%rip), %rdi     # 0xf304d
movl $0x1d, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0xbcb0
movq %r12, %rdi
callq 0x74532
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movb $0x1, %r12b
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ca35
movq %r15, %rdi
callq 0x3c87b
movq %r14, %rdi
movq %r13, %rsi
callq 0x7f2a2
movq %rax, %r15
testq %rax, %rax
setne %al
orb %r12b, %al
jne 0x7f83e
leaq 0x63946(%rip), %rsi     # 0xe3159
leaq 0x73851(%rip), %rdx     # 0xf306b
leaq 0x737bb(%rip), %rcx     # 0xf2fdc
leaq 0x7350d(%rip), %r8      # 0xf2d35
movq (%rsp), %rdi
movl $0xfc, %r9d
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r15, %rdi
callq 0x7f219
movq %r14, %rdi
callq 0x3cbed
testq %rax, %rax
je 0x7f8ca
leaq 0x734db(%rip), %r15     # 0xf2d35
xorl %r12d, %r12d
movl %ebx, %ebp
movq %r14, %rdi
movq %r12, %rsi
callq 0x3ca6f
movq %rax, %r13
movq %rax, %rdi
callq 0x3d3d4
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %ebp, %ebp
jne 0x7f8ba
movq %r13, %rdi
callq 0x76120
xorl %ebx, %ebx
testb %al, %al
je 0x7f8ba
movq (%rsp), %rdi
leaq 0x638c2(%rip), %rsi     # 0xe3159
leaq 0x737d8(%rip), %rdx     # 0xf3076
leaq 0x73737(%rip), %rcx     # 0xf2fdc
movq %r15, %r8
movl $0x103, %r9d            # imm = 0x103
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
incq %r12
movq %r14, %rdi
callq 0x3cbed
cmpq %rax, %r12
jb 0x7f85d
movq %r14, %rdi
callq 0x3cc00
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1dd08