// File: /workspace/github_c_makefile_star2_O2/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 0x5ecf2
movq %rbx, %rdi
callq 0xc103
testb %al, %al
jne 0x5ef68
movq %rbx, (%rsp)
callq 0x1532c
movq %rax, %r14
callq 0x13d5c
movq %rax, %r15
leaq 0x7d388(%rip), %rdx     # 0xdc095
xorl %ebp, %ebp
movq %rax, %rdi
xorl %esi, %esi
movl $0xe8, %ecx
callq 0x522ce
movq %rax, %rbx
leaq 0x7d631(%rip), %rdi     # 0xdc359
pushq $0x2b
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0xbca0
movq %rbx, %rdi
callq 0x51cc9
movq %r15, %rdi
callq 0x143d2
movq %rax, %rdi
callq 0x54940
pushq $-0x1
popq %rcx
testb %al, %al
je 0x5edf8
movq %r14, %rdi
movq %r15, %rsi
callq 0x154f5
movq %r15, %rdi
callq 0x1452f
leaq 0x7d322(%rip), %rdx     # 0xdc095
movq %r15, %rdi
xorl %esi, %esi
movl $0xf3, %ecx
callq 0x522ce
movq %rax, %rbx
leaq 0x7d621(%rip), %rdi     # 0xdc3ad
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0xbca0
movq %rbx, %rdi
callq 0x51cc9
movq %r15, %rdi
callq 0x143d2
movq %rax, %rdi
callq 0x54940
movl $0x0, %r13d
testb %al, %al
movq (%rsp), %r12
jne 0x5ee75
leaq 0x6d38e(%rip), %rsi     # 0xcc159
leaq 0x7d5b3(%rip), %rdx     # 0xdc385
leaq 0x7d563(%rip), %rcx     # 0xdc33c
leaq 0x7d2b5(%rip), %r8      # 0xdc095
movq %r12, %rdi
movl $0xf7, %r9d
xorl %eax, %eax
callq 0xc007
movb $0x1, %r13b
pushq $-0x1
popq %rbp
jmp 0x5ee75
leaq 0x6d35a(%rip), %rsi     # 0xcc159
leaq 0x7d57f(%rip), %rdx     # 0xdc385
movl %ecx, %ebp
leaq 0x7d52d(%rip), %rcx     # 0xdc33c
leaq 0x7d27f(%rip), %rbx     # 0xdc095
movq (%rsp), %r12
movq %r12, %rdi
movq %rbx, %r8
movl $0xf0, %r9d
xorl %eax, %eax
callq 0xc007
movq %r14, %rdi
movq %r15, %rsi
callq 0x154f5
movq %r15, %rdi
callq 0x1452f
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movl $0xf3, %ecx
callq 0x522ce
movq %rax, %rbx
leaq 0x7d551(%rip), %rdi     # 0xdc3ad
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0xbca0
movq %rbx, %rdi
callq 0x51cc9
movb $0x1, %r13b
movq %r14, %rdi
movq %r15, %rsi
callq 0x154f5
movq %r15, %rdi
callq 0x152db
movq %r14, %rdi
movq %r12, %rsi
callq 0x5e76b
movq %rax, %rbx
testq %rax, %rax
setne %al
orb %r13b, %al
jne 0x5eed0
leaq 0x6d2b1(%rip), %rsi     # 0xcc159
leaq 0x7d51c(%rip), %rdx     # 0xdc3cb
leaq 0x7d486(%rip), %rcx     # 0xdc33c
leaq 0x7d1d8(%rip), %r8      # 0xdc095
movq %r12, %rdi
movl $0xfc, %r9d
xorl %eax, %eax
callq 0xc007
pushq $-0x1
popq %rbp
movq %rbx, %rdi
callq 0x5e684
pushq $-0x1
popq %r13
leaq 0x7d1b2(%rip), %rbx     # 0xdc095
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x157f4
cmpq %rax, %r15
jae 0x5ef4f
movq %r14, %rdi
movq %r15, %rsi
callq 0x1555e
movq %rax, %r12
movq %rax, %rdi
callq 0x165e9
testl %ebp, %ebp
movl %r13d, %ebp
jne 0x5ef4a
movq %r12, %rdi
callq 0x54940
xorl %ebp, %ebp
testb %al, %al
je 0x5ef4a
movq (%rsp), %rdi
leaq 0x6d230(%rip), %rsi     # 0xcc159
leaq 0x7d4a6(%rip), %rdx     # 0xdc3d6
leaq 0x7d405(%rip), %rcx     # 0xdc33c
movq %rbx, %r8
movl $0x103, %r9d            # imm = 0x103
xorl %eax, %eax
callq 0xc007
movl %r13d, %ebp
incq %r15
jmp 0x5eee6
movq %r14, %rdi
callq 0x1583a
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xcf049(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6b0ed(%rip), %rsi     # 0xca066
leaq 0x6b6d9(%rip), %rdx     # 0xca659
leaq 0x7d3b5(%rip), %rcx     # 0xdc33c
leaq 0x7d107(%rip), %r8      # 0xdc095
movl $0xe3, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300