// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/core/trans_table.c
// Function: gt_trans_table_unit_test
int gt_trans_table_unit_test(GtError *err)
{
  int had_err = 0, test_errnum = 0, i, j, k;
  GtStrArray *schemes;
  GtError *test_err = gt_error_new();
  GtTransTable *tr;
  char ret1 = ' ';
  const char *bases = "AaCcGgTt";
  gt_error_check(err);

  /* check retrieval of table descriptions */
  schemes = gt_trans_table_get_scheme_descriptions();
  gt_ensure(gt_str_array_size(schemes) == (GtUword) GT_NUMOFTRANSSCHEMES);

  tr = gt_trans_table_new_standard(err);
  /* check single codon translation */
  for (i=0; i<8; i++) {
    char c1 = bases[i];
    for (j=0; j<8; j++) {
      char c2 = bases[j];
      for (k=0; k<8; k++) {
        char c3 = bases[k];
        ret1 = ' ';
        test_errnum = gt_trans_table_translate_codon(tr, c1, c2, c3, &ret1,
                                                test_err);
        gt_ensure(!test_errnum && !gt_error_is_set(test_err));
        gt_ensure(ret1 != ' ');
      }
    }
  }
  for (j=0; j<8; j++) {
    char c2 = bases[j];
    for (k=0; k<8; k++) {
      char c3 = bases[k];
      ret1 = ' ';
      test_errnum = gt_trans_table_translate_codon(tr, 'n', c2, c3, &ret1,
                                                   test_err);
      gt_ensure(!test_errnum && !gt_error_is_set(test_err));
      gt_ensure(ret1 == 'X');
    }
  }
  for (j=0; j<8; j++) {
    char c2 = bases[j];
    for (k=0; k<8; k++) {
      char c3 = bases[k];
      ret1 = ' ';
      test_errnum = gt_trans_table_translate_codon(tr, c2, 'n', c3, &ret1,
                                                   test_err);
      gt_ensure(!test_errnum && !gt_error_is_set(test_err));
      gt_ensure(ret1 == 'X');
    }
  }

  gt_str_array_delete(schemes);
  gt_trans_table_delete(tr);
  gt_error_delete(test_err);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
callq 0xbff0
movq %rax, 0x8(%rsp)
movb $0x20, 0x7(%rsp)
testq %r14, %r14
je 0xc12ea
movq %r14, %rdi
callq 0xc103
testb %al, %al
jne 0xc165a
callq 0xc0dd0
movq %rax, 0x28(%rsp)
movq %rax, %rdi
callq 0x157f4
xorl %ebp, %ebp
pushq $-0x1
popq %rbx
cmpq $0x13, %rax
je 0xc1335
leaq 0xae4b(%rip), %rsi      # 0xcc159
leaq 0x32555(%rip), %rdx     # 0xf386a
leaq 0x32535(%rip), %rcx     # 0xf3851
leaq 0x3248d(%rip), %r8      # 0xf37b0
movq %r14, %rdi
movl $0x35e, %r9d            # imm = 0x35E
xorl %eax, %eax
callq 0xc007
movl %ebx, %ebp
movq %r14, 0x10(%rsp)
movq %r14, %rdi
callq 0xc0f0b
movq %rax, 0x20(%rsp)
leaq 0x7(%rsp), %r13
xorl %ecx, %ecx
cmpq $0x8, %rcx
je 0xc1455
leaq 0x324e9(%rip), %rax     # 0xf3848
movq %rcx, 0x30(%rsp)
movsbl (%rcx,%rax), %r14d
xorl %ecx, %ecx
cmpq $0x8, %rcx
je 0xc1448
leaq 0x324cc(%rip), %rax     # 0xf3848
movq %rcx, 0x18(%rsp)
movsbl (%rcx,%rax), %r15d
xorl %r12d, %r12d
cmpq $0x8, %r12
je 0xc143b
leaq 0x324ae(%rip), %rax     # 0xf3848
movsbl (%r12,%rax), %ecx
movb $0x20, 0x7(%rsp)
movq 0x20(%rsp), %rdi
movl %r14d, %esi
movl %r15d, %edx
movq %r13, %r8
movq 0x8(%rsp), %r9
callq 0xc0f5b
testl %ebp, %ebp
movl %ebx, %ebp
jne 0xc1404
testl %eax, %eax
jne 0xc13d4
movq 0x8(%rsp), %rdi
callq 0xc103
testb %al, %al
je 0xc1409
movq 0x10(%rsp), %rdi
leaq 0xad79(%rip), %rsi      # 0xcc159
leaq 0x234ad(%rip), %rdx     # 0xe4894
leaq 0x32463(%rip), %rcx     # 0xf3851
leaq 0x323bb(%rip), %r8      # 0xf37b0
movl $0x36b, %r9d            # imm = 0x36B
xorl %eax, %eax
callq 0xc007
movl %ebx, %ebp
incq %r12
jmp 0xc1389
xorl %ebp, %ebp
cmpb $0x20, 0x7(%rsp)
jne 0xc1404
movq 0x10(%rsp), %rdi
leaq 0xad3b(%rip), %rsi      # 0xcc159
leaq 0x32482(%rip), %rdx     # 0xf38a7
leaq 0x32425(%rip), %rcx     # 0xf3851
leaq 0x3237d(%rip), %r8      # 0xf37b0
movl $0x36c, %r9d            # imm = 0x36C
jmp 0xc13fb
movq 0x18(%rsp), %rcx
incq %rcx
jmp 0xc136b
movq 0x30(%rsp), %rcx
incq %rcx
jmp 0xc134e
pushq $0x6e
popq %r14
leaq 0x7(%rsp), %r15
pushq $-0x1
popq %rbx
xorl %ecx, %ecx
cmpq $0x8, %rcx
je 0xc1540
leaq 0x323d4(%rip), %rax     # 0xf3848
movq %rcx, 0x18(%rsp)
movsbl (%rcx,%rax), %r13d
xorl %r12d, %r12d
cmpq $0x8, %r12
je 0xc1533
leaq 0x323b6(%rip), %rax     # 0xf3848
movsbl (%r12,%rax), %ecx
movb $0x20, 0x7(%rsp)
movq 0x20(%rsp), %rdi
movl %r14d, %esi
movl %r13d, %edx
movq %r15, %r8
movq 0x8(%rsp), %r9
callq 0xc0f5b
testl %ebp, %ebp
movl %ebx, %ebp
jne 0xc14fc
testl %eax, %eax
jne 0xc14cc
movq 0x8(%rsp), %rdi
callq 0xc103
testb %al, %al
je 0xc1501
movq 0x10(%rsp), %rdi
leaq 0xac81(%rip), %rsi      # 0xcc159
leaq 0x233b5(%rip), %rdx     # 0xe4894
leaq 0x3236b(%rip), %rcx     # 0xf3851
leaq 0x322c3(%rip), %r8      # 0xf37b0
movl $0x377, %r9d            # imm = 0x377
xorl %eax, %eax
callq 0xc007
movl %ebx, %ebp
incq %r12
jmp 0xc1481
xorl %ebp, %ebp
cmpb $0x58, 0x7(%rsp)
je 0xc14fc
movq 0x10(%rsp), %rdi
leaq 0xac43(%rip), %rsi      # 0xcc159
leaq 0x32396(%rip), %rdx     # 0xf38b3
leaq 0x3232d(%rip), %rcx     # 0xf3851
leaq 0x32285(%rip), %r8      # 0xf37b0
movl $0x378, %r9d            # imm = 0x378
jmp 0xc14f3
movq 0x18(%rsp), %rcx
incq %rcx
jmp 0xc1463
pushq $0x6e
popq %r14
leaq 0x7(%rsp), %r15
pushq $-0x1
popq %rbx
xorl %ecx, %ecx
cmpq $0x8, %rcx
je 0xc162b
leaq 0x322e9(%rip), %rax     # 0xf3848
movq %rcx, 0x18(%rsp)
movsbl (%rcx,%rax), %r13d
xorl %r12d, %r12d
cmpq $0x8, %r12
je 0xc161e
leaq 0x322cb(%rip), %rax     # 0xf3848
movsbl (%r12,%rax), %ecx
movb $0x20, 0x7(%rsp)
movq 0x20(%rsp), %rdi
movl %r13d, %esi
movl %r14d, %edx
movq %r15, %r8
movq 0x8(%rsp), %r9
callq 0xc0f5b
testl %ebp, %ebp
movl %ebx, %ebp
jne 0xc15e7
testl %eax, %eax
jne 0xc15b7
movq 0x8(%rsp), %rdi
callq 0xc103
testb %al, %al
je 0xc15ec
movq 0x10(%rsp), %rdi
leaq 0xab96(%rip), %rsi      # 0xcc159
leaq 0x232ca(%rip), %rdx     # 0xe4894
leaq 0x32280(%rip), %rcx     # 0xf3851
leaq 0x321d8(%rip), %r8      # 0xf37b0
movl $0x382, %r9d            # imm = 0x382
xorl %eax, %eax
callq 0xc007
movl %ebx, %ebp
incq %r12
jmp 0xc156c
xorl %ebp, %ebp
cmpb $0x58, 0x7(%rsp)
je 0xc15e7
movq 0x10(%rsp), %rdi
leaq 0xab58(%rip), %rsi      # 0xcc159
leaq 0x322ab(%rip), %rdx     # 0xf38b3
leaq 0x32242(%rip), %rcx     # 0xf3851
leaq 0x3219a(%rip), %r8      # 0xf37b0
movl $0x383, %r9d            # imm = 0x383
jmp 0xc15de
movq 0x18(%rsp), %rcx
incq %rcx
jmp 0xc154e
movq 0x28(%rsp), %rdi
callq 0x1583a
movq 0x20(%rsp), %rdi
callq 0xc129e
movq 0x8(%rsp), %rdi
callq 0xc291
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6c957(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x89fb(%rip), %rsi      # 0xca066
leaq 0x8fe7(%rip), %rdx      # 0xca659
leaq 0x321d8(%rip), %rcx     # 0xf3851
leaq 0x32130(%rip), %r8      # 0xf37b0
movl $0x35a, %r9d            # imm = 0x35A
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
nop