// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/colorspace.c
// Function: gt_colorspace_unit_test
int gt_colorspace_unit_test(GtError *err)
{
  int had_err = 0;
  GtStr *in_gt = gt_str_new_cstr("A0112233122331211332311223"),
        *con_gt = gt_str_new_cstr("AACAGATACTCGCAGTGCGATGTCGA"),
        *output = gt_str_new();

  had_err = gt_colorspace_decode_string(in_gt,
                                        output,
                                        err);
  gt_ensure(gt_str_cmp(con_gt, output));

  if (!had_err)
  {
    int test_err;
    GtError *my_err = gt_error_new();

    gt_str_delete(in_gt);
    gt_str_reset(output);
    in_gt = gt_str_new_cstr("X0011");

    test_err = gt_colorspace_decode_string(in_gt,
                                           output,
                                           my_err);

    gt_ensure(test_err);
    gt_ensure(gt_error_is_set(my_err));

    gt_error_delete(my_err);
  }
  if (!had_err)
  {
    int test_err;
    GtError *my_err = gt_error_new();

    gt_str_delete(in_gt);
    gt_str_reset(output);
    in_gt = gt_str_new_cstr("a0011a");

    test_err = gt_colorspace_decode_string(in_gt,
                                           output,
                                           my_err);

    gt_ensure(test_err);
    gt_ensure(gt_error_is_set(my_err));

    gt_error_delete(my_err);
  }
  gt_str_delete(in_gt);
  gt_str_delete(con_gt);
  gt_str_delete(output);
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
leaq 0x72d60(%rip), %rdi     # 0x184f38
callq 0x18f70
movq %rax, 0x30(%rsp)
leaq 0x72d6a(%rip), %rdi     # 0x184f53
callq 0x18f70
movq %rax, 0x28(%rsp)
callq 0x18f00
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x111b40
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x112268
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x19bd0
cmpl $0x0, %eax
jne 0x112266
movq 0x40(%rsp), %rdi
leaq 0x4df3b(%rip), %rsi     # 0x160177
leaq 0x72d2b(%rip), %rdx     # 0x184f6e
leaq 0x72d3f(%rip), %rcx     # 0x184f89
leaq 0x72c7e(%rip), %r8      # 0x184ecf
movl $0xb9, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x112268
jmp 0x11226a
cmpl $0x0, 0x3c(%rsp)
jne 0x11235f
callq 0xc0b0
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0x1afc0
movq 0x20(%rsp), %rdi
callq 0x19b70
leaq 0x72d07(%rip), %rdi     # 0x184fa1
callq 0x18f70
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x111b40
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x112302
cmpl $0x0, 0x1c(%rsp)
jne 0x112300
movq 0x40(%rsp), %rdi
leaq 0x4dea1(%rip), %rsi     # 0x160177
leaq 0x72cca(%rip), %rdx     # 0x184fa7
leaq 0x72ca5(%rip), %rcx     # 0x184f89
leaq 0x72be4(%rip), %r8      # 0x184ecf
movl $0xc8, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x112302
jmp 0x112304
jmp 0x112306
cmpl $0x0, 0x3c(%rsp)
jne 0x112353
movq 0x10(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x112351
movq 0x40(%rsp), %rdi
leaq 0x4de50(%rip), %rsi     # 0x160177
leaq 0x72c82(%rip), %rdx     # 0x184fb0
leaq 0x72c54(%rip), %rcx     # 0x184f89
leaq 0x72b93(%rip), %r8      # 0x184ecf
movl $0xc9, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x112353
jmp 0x112355
movq 0x10(%rsp), %rdi
callq 0xc490
cmpl $0x0, 0x3c(%rsp)
jne 0x112450
callq 0xc0b0
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
callq 0x1afc0
movq 0x20(%rsp), %rdi
callq 0x19b70
leaq 0x72c3a(%rip), %rdi     # 0x184fc8
callq 0x18f70
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq (%rsp), %rdx
callq 0x111b40
movl %eax, 0xc(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x1123f5
cmpl $0x0, 0xc(%rsp)
jne 0x1123f3
movq 0x40(%rsp), %rdi
leaq 0x4ddae(%rip), %rsi     # 0x160177
leaq 0x72bd7(%rip), %rdx     # 0x184fa7
leaq 0x72bb2(%rip), %rcx     # 0x184f89
leaq 0x72af1(%rip), %r8      # 0x184ecf
movl $0xda, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x1123f5
jmp 0x1123f7
jmp 0x1123f9
cmpl $0x0, 0x3c(%rsp)
jne 0x112445
movq (%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x112443
movq 0x40(%rsp), %rdi
leaq 0x4dd5e(%rip), %rsi     # 0x160177
leaq 0x72b90(%rip), %rdx     # 0x184fb0
leaq 0x72b62(%rip), %rcx     # 0x184f89
leaq 0x72aa1(%rip), %r8      # 0x184ecf
movl $0xdb, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x112445
jmp 0x112447
movq (%rsp), %rdi
callq 0xc490
movq 0x30(%rsp), %rdi
callq 0x1afc0
movq 0x28(%rsp), %rdi
callq 0x1afc0
movq 0x20(%rsp), %rdi
callq 0x1afc0
movl 0x3c(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)