// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/cstr.c
// Function: gt_cstr_unit_test
int gt_cstr_unit_test(GtError *err)
{
  int had_err = 0;
  char **res;
  const char *foo = "foo  bar baz";
  gt_error_check(err);

  res = gt_cstr_split(foo, ' ');
  gt_ensure(strcmp(res[0], "foo") == 0);
  gt_ensure(strcmp(res[1], "") == 0);
  gt_ensure(strcmp(res[2], "bar") == 0);
  gt_ensure(strcmp(res[3], "baz") == 0);
  gt_ensure(res[4] == NULL);
  gt_cstr_array_delete(res);

  res = gt_cstr_split("", ' ');
  gt_ensure(res[0] == NULL);
  gt_cstr_array_delete(res);

  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
leaq 0xf0de1(%rip), %rax     # 0x16d5f9
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x7c86d
movq 0x20(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x7c835
jmp 0x7c86d
movq 0x13779c(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xe1820(%rip), %rsi     # 0x15e066
leaq 0xe1dfb(%rip), %rdx     # 0x15e648
leaq 0xf0db2(%rip), %rcx     # 0x16d606
leaq 0xf0d1b(%rip), %r8      # 0x16d576
movl $0x79, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x7c86f
movq 0x8(%rsp), %rdi
movl $0x20, %esi
callq 0x7c190
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0x7c8db
movq 0x10(%rsp), %rax
movq (%rax), %rdi
leaq 0xf2e80(%rip), %rsi     # 0x16f719
callq 0xb850
cmpl $0x0, %eax
je 0x7c8d9
movq 0x20(%rsp), %rdi
leaq 0xe38c8(%rip), %rsi     # 0x160177
leaq 0xf0d62(%rip), %rdx     # 0x16d618
leaq 0xf0d49(%rip), %rcx     # 0x16d606
leaq 0xf0cb2(%rip), %r8      # 0x16d576
movl $0x7c, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7c8db
jmp 0x7c8dd
jmp 0x7c8df
cmpl $0x0, 0x1c(%rsp)
jne 0x7c938
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0xef5ed(%rip), %rsi     # 0x16bee3
callq 0xb850
cmpl $0x0, %eax
je 0x7c936
movq 0x20(%rsp), %rdi
leaq 0xe386b(%rip), %rsi     # 0x160177
leaq 0xf0d20(%rip), %rdx     # 0x16d633
leaq 0xf0cec(%rip), %rcx     # 0x16d606
leaq 0xf0c55(%rip), %r8      # 0x16d576
movl $0x7d, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7c938
jmp 0x7c93a
jmp 0x7c93c
cmpl $0x0, 0x1c(%rsp)
jne 0x7c995
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0xf1e6b(%rip), %rsi     # 0x16e7be
callq 0xb850
cmpl $0x0, %eax
je 0x7c993
movq 0x20(%rsp), %rdi
leaq 0xe380e(%rip), %rsi     # 0x160177
leaq 0xf0cdb(%rip), %rdx     # 0x16d64b
leaq 0xf0c8f(%rip), %rcx     # 0x16d606
leaq 0xf0bf8(%rip), %r8      # 0x16d576
movl $0x7e, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7c995
jmp 0x7c997
jmp 0x7c999
cmpl $0x0, 0x1c(%rsp)
jne 0x7c9f2
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0xf0c52(%rip), %rsi     # 0x16d602
callq 0xb850
cmpl $0x0, %eax
je 0x7c9f0
movq 0x20(%rsp), %rdi
leaq 0xe37b1(%rip), %rsi     # 0x160177
leaq 0xf0c99(%rip), %rdx     # 0x16d666
leaq 0xf0c32(%rip), %rcx     # 0x16d606
leaq 0xf0b9b(%rip), %r8      # 0x16d576
movl $0x7f, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7c9f2
jmp 0x7c9f4
jmp 0x7c9f6
cmpl $0x0, 0x1c(%rsp)
jne 0x7ca41
movq 0x10(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0x7ca3f
movq 0x20(%rsp), %rdi
leaq 0xe3762(%rip), %rsi     # 0x160177
leaq 0xf0c65(%rip), %rdx     # 0x16d681
leaq 0xf0be3(%rip), %rcx     # 0x16d606
leaq 0xf0b4c(%rip), %r8      # 0x16d576
movl $0x80, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7ca41
jmp 0x7ca43
movq 0x10(%rsp), %rdi
callq 0x7cfa0
leaq 0xef48f(%rip), %rdi     # 0x16bee3
movl $0x20, %esi
callq 0x7c190
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0x7caad
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x7caab
movq 0x20(%rsp), %rdi
leaq 0xe36f6(%rip), %rsi     # 0x160177
leaq 0xf0c08(%rip), %rdx     # 0x16d690
leaq 0xf0b77(%rip), %rcx     # 0x16d606
leaq 0xf0ae0(%rip), %r8      # 0x16d576
movl $0x84, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x7caad
jmp 0x7caaf
movq 0x10(%rsp), %rdi
callq 0x7cfa0
movl 0x1c(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)