// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x9c031
movq 0x40(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x9bff9
jmp 0x9c031
movq 0x117fd8(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xc205c(%rip), %rsi     # 0x15e066
leaq 0xc2637(%rip), %rdx     # 0x15e648
leaq 0xd50e4(%rip), %rcx     # 0x1710fc
leaq 0xd4e36(%rip), %r8      # 0x170e55
movl $0xe3, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x9c033
callq 0x1b020
movq %rax, 0x28(%rsp)
callq 0x18f00
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
xorl %esi, %esi
leaq 0xd4e00(%rip), %rdx     # 0x170e55
movl $0xe8, %ecx
callq 0x80630
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
leaq 0xd50a9(%rip), %rsi     # 0x171119
movb $0x0, %al
callq 0xb890
movq 0x10(%rsp), %rdi
callq 0x7fd50
cmpl $0x0, 0x3c(%rsp)
jne 0x9c0d6
movq 0x20(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
callq 0x84330
testb $0x1, %al
jne 0x9c0d4
movq 0x40(%rsp), %rdi
leaq 0xc40cd(%rip), %rsi     # 0x160177
leaq 0xd5094(%rip), %rdx     # 0x171145
leaq 0xd5044(%rip), %rcx     # 0x1710fc
leaq 0xd4d96(%rip), %r8      # 0x170e55
movl $0xf0, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x9c0d6
jmp 0x9c0d8
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x1b2a0
movq 0x20(%rsp), %rdi
callq 0x19b70
movq 0x20(%rsp), %rdi
xorl %esi, %esi
leaq 0xd4d56(%rip), %rdx     # 0x170e55
movl $0xf3, %ecx
callq 0x80630
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
leaq 0xd5053(%rip), %rsi     # 0x17116d
movb $0x0, %al
callq 0xb890
movq 0x10(%rsp), %rdi
callq 0x7fd50
cmpl $0x0, 0x3c(%rsp)
jne 0x9c180
movq 0x20(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
callq 0x84330
testb $0x1, %al
jne 0x9c17e
movq 0x40(%rsp), %rdi
leaq 0xc4023(%rip), %rsi     # 0x160177
leaq 0xd4fea(%rip), %rdx     # 0x171145
leaq 0xd4f9a(%rip), %rcx     # 0x1710fc
leaq 0xd4cec(%rip), %r8      # 0x170e55
movl $0xf7, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x9c180
jmp 0x9c182
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x1b2a0
movq 0x20(%rsp), %rdi
callq 0x1afc0
movq 0x28(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x9b6a0
movq %rax, 0x30(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x9c1f6
cmpq $0x0, 0x30(%rsp)
jne 0x9c1f4
movq 0x40(%rsp), %rdi
leaq 0xc3fad(%rip), %rsi     # 0x160177
leaq 0xd4fba(%rip), %rdx     # 0x17118b
leaq 0xd4f24(%rip), %rcx     # 0x1710fc
leaq 0xd4c76(%rip), %r8      # 0x170e55
movl $0xfc, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x9c1f6
jmp 0x9c1f8
movq 0x30(%rsp), %rdi
callq 0x9b570
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x1b720
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jae 0x9c2b2
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x1b320
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x1cc10
cmpl $0x0, 0x3c(%rsp)
jne 0x9c29b
movq 0x8(%rsp), %rdi
callq 0x84330
testb $0x1, %al
jne 0x9c263
jmp 0x9c299
movq 0x40(%rsp), %rdi
leaq 0xc3f08(%rip), %rsi     # 0x160177
leaq 0xd4f20(%rip), %rdx     # 0x171196
leaq 0xd4e7f(%rip), %rcx     # 0x1710fc
leaq 0xd4bd1(%rip), %r8      # 0x170e55
movl $0x103, %r9d            # imm = 0x103
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x9c29b
jmp 0x9c29d
jmp 0x9c29f
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x9c20b
movq 0x28(%rsp), %rdi
callq 0x1b780
movl 0x3c(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
nop