// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_unit_test
int gt_genome_node_unit_test(GtError *err)
{
  int had_err = 0;
  GtGenomeNodeClass *gnc;
  GtGenomeNode *gn;
  void *testptr1 = "foo bar",
       *testptr2 = NULL;
  const char *testkey1 = "key1",
             *testkey2 = "key2";
  gt_error_check(err);

  testptr2 = gt_malloc(sizeof (char)*4);

  /* this is a very simple GtGenomeNodeClass without any callbacks */
  gnc = gt_calloc(1, sizeof (GtGenomeNodeClass));
  gnc->size = sizeof (GtGenomeNode);

  gn = gt_genome_node_create(gnc);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey1) == NULL);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey2) == NULL);
  gt_ensure(gn->userdata_nof_items == 0);
  gt_ensure(gn->userdata == NULL);

  gt_genome_node_add_user_data(gn, testkey1, testptr1, NULL);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey1) != NULL);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey1) == testptr1);
  gt_ensure(gn->userdata_nof_items == 1);
  gt_ensure(gn->userdata != NULL);

  gt_genome_node_add_user_data(gn, testkey2, testptr2, gt_free_func);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey2) != NULL);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey2) == testptr2);
  gt_ensure(gn->userdata_nof_items == 2);

  gt_genome_node_release_user_data(gn, testkey1);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey1) == NULL);
  gt_ensure(gn->userdata_nof_items == 1);

  gt_genome_node_release_user_data(gn, testkey2);
  gt_ensure(gt_genome_node_get_user_data(gn, testkey2) == NULL);
  gt_ensure(gn->userdata_nof_items == 0);
  gt_ensure(gn->userdata == NULL);

  testptr2 = gt_malloc(sizeof (char)*4);
  gt_genome_node_add_user_data(gn, testkey1, testptr1, NULL);
  gt_genome_node_add_user_data(gn, testkey2, testptr2, gt_free_func);
  gt_ensure(gn->userdata != NULL);
  gt_genome_node_delete(gn);

  gt_free(gnc);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
testq %rdi, %rdi
je 0x1cc34
movq %r15, %rdi
callq 0xc103
testb %al, %al
jne 0x1d1ab
leaq 0xb1d85(%rip), %rbx     # 0xce9c0
pushq $0x4
popq %rdi
movq %rbx, %rsi
movl $0x1e0, %edx            # imm = 0x1E0
callq 0xccb0
movq %rax, %r12
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
movq %rbx, %rdx
movl $0x1e3, %ecx            # imm = 0x1E3
callq 0xce9a
movq %rax, %rbx
movq $0x30, (%rax)
movq %rax, %rdi
callq 0x1c0f3
movq %rax, %r14
leaq 0xb20ca(%rip), %rsi     # 0xced47
movq %rax, %rdi
callq 0x1cb29
testq %rax, %rax
je 0x1ccb4
leaq 0xaf4c8(%rip), %rsi     # 0xcc159
leaq 0xb20d2(%rip), %rdx     # 0xced6a
leaq 0xb20b2(%rip), %rcx     # 0xced51
leaq 0xb1d1a(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1e7, %r9d            # imm = 0x1E7
jmp 0x1cd4d
leaq 0xb2091(%rip), %rsi     # 0xced4c
movq %r14, %rdi
callq 0x1cb29
testq %rax, %rax
je 0x1ccef
leaq 0xaf48a(%rip), %rsi     # 0xcc159
leaq 0xb20c7(%rip), %rdx     # 0xced9d
leaq 0xb2074(%rip), %rcx     # 0xced51
leaq 0xb1cdc(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1e8, %r9d            # imm = 0x1E8
jmp 0x1cd4d
cmpl $0x0, 0x28(%r14)
je 0x1cd1d
leaq 0xaf45c(%rip), %rsi     # 0xcc159
leaq 0xb20cc(%rip), %rdx     # 0xcedd0
leaq 0xb2046(%rip), %rcx     # 0xced51
leaq 0xb1cae(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1e9, %r9d            # imm = 0x1E9
jmp 0x1cd4d
cmpq $0x0, 0x10(%r14)
je 0x1ce1d
leaq 0xaf42a(%rip), %rsi     # 0xcc159
leaq 0xb20b6(%rip), %rdx     # 0xcedec
leaq 0xb2014(%rip), %rcx     # 0xced51
leaq 0xb1c7c(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1ea, %r9d            # imm = 0x1EA
xorl %eax, %eax
callq 0xc007
leaq 0xb1fec(%rip), %rsi     # 0xced47
leaq 0xbd4c1(%rip), %rdx     # 0xda223
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x1c9e0
leaq 0xb1fd9(%rip), %rsi     # 0xced4c
leaq -0xf9eb(%rip), %rcx     # 0xd38f
movq %r14, %rdi
movq %r12, %rdx
callq 0x1c9e0
leaq 0xb1fbb(%rip), %rsi     # 0xced47
movq %r14, %rdi
callq 0x1cb88
leaq 0xb1fb1(%rip), %rsi     # 0xced4c
movq %r14, %rdi
callq 0x1cb88
leaq 0xb1c16(%rip), %rsi     # 0xce9c0
pushq $0x4
popq %rdi
movl $0x200, %edx            # imm = 0x200
callq 0xccb0
movq %rax, %r15
leaq 0xb1f86(%rip), %rsi     # 0xced47
leaq 0xbd45b(%rip), %rdx     # 0xda223
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x1c9e0
leaq 0xb1f73(%rip), %rsi     # 0xced4c
leaq -0xfa51(%rip), %rcx     # 0xd38f
movq %r14, %rdi
movq %r15, %rdx
callq 0x1c9e0
pushq $-0x1
popq %r12
movq %r14, %rdi
callq 0x1d1e3
leaq 0xb1bc2(%rip), %rsi     # 0xce9c0
movq %rbx, %rdi
movl $0x206, %edx            # imm = 0x206
callq 0xd249
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb1f23(%rip), %rbp     # 0xced47
leaq 0xbd3f8(%rip), %r13     # 0xda223
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x1c9e0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x1cb29
testq %rax, %rax
je 0x1ce89
leaq 0xb1ef5(%rip), %rsi     # 0xced47
movq %r14, %rdi
callq 0x1cb29
cmpq %r13, %rax
je 0x1ceb3
leaq 0xaf2f3(%rip), %rsi     # 0xcc159
leaq 0xb1fc7(%rip), %rdx     # 0xcee34
leaq 0xb1edd(%rip), %rcx     # 0xced51
leaq 0xb1b45(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1ee, %r9d            # imm = 0x1EE
jmp 0x1cf83
leaq 0xaf2c9(%rip), %rsi     # 0xcc159
leaq 0xb1f6a(%rip), %rdx     # 0xcee01
leaq 0xb1eb3(%rip), %rcx     # 0xced51
leaq 0xb1b1b(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1ed, %r9d            # imm = 0x1ED
jmp 0x1cf83
cmpl $0x1, 0x28(%r14)
jne 0x1cf37
cmpq $0x0, 0x10(%r14)
je 0x1cf5e
leaq 0xb1e80(%rip), %r13     # 0xced4c
leaq -0xfb44(%rip), %rcx     # 0xd38f
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1c9e0
movq %r14, %rdi
movq %r13, %rsi
callq 0x1cb29
testq %rax, %rax
je 0x1cf8f
leaq 0xb1e50(%rip), %rsi     # 0xced4c
movq %r14, %rdi
callq 0x1cb29
cmpq %r12, %rax
je 0x1cfb6
leaq 0xaf245(%rip), %rsi     # 0xcc159
leaq 0xb1f9f(%rip), %rdx     # 0xceeba
leaq 0xb1e2f(%rip), %rcx     # 0xced51
leaq 0xb1a97(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1f4, %r9d            # imm = 0x1F4
jmp 0x1d02e
leaq 0xaf21b(%rip), %rsi     # 0xcc159
leaq 0xb1f26(%rip), %rdx     # 0xcee6b
leaq 0xb1e05(%rip), %rcx     # 0xced51
leaq 0xb1a6d(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1ef, %r9d            # imm = 0x1EF
jmp 0x1cf83
leaq 0xaf1f4(%rip), %rsi     # 0xcc159
leaq 0xb1d88(%rip), %rdx     # 0xcecf4
leaq 0xb1dde(%rip), %rcx     # 0xced51
leaq 0xb1a46(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1f0, %r9d            # imm = 0x1F0
xorl %eax, %eax
callq 0xc007
jmp 0x1cd6c
leaq 0xaf1c3(%rip), %rsi     # 0xcc159
leaq 0xb1eea(%rip), %rdx     # 0xcee87
leaq 0xb1dad(%rip), %rcx     # 0xced51
leaq 0xb1a15(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1f3, %r9d            # imm = 0x1F3
jmp 0x1d02e
cmpl $0x2, 0x28(%r14)
jne 0x1d009
leaq 0xb1d83(%rip), %r12     # 0xced47
movq %r14, %rdi
movq %r12, %rsi
callq 0x1cb88
movq %r14, %rdi
movq %r12, %rsi
callq 0x1cb29
testq %rax, %rax
je 0x1d03a
leaq 0xaf173(%rip), %rsi     # 0xcc159
leaq 0xb1d7d(%rip), %rdx     # 0xced6a
leaq 0xb1d5d(%rip), %rcx     # 0xced51
leaq 0xb19c5(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1f8, %r9d            # imm = 0x1F8
jmp 0x1d0b2
leaq 0xaf149(%rip), %rsi     # 0xcc159
leaq 0xb1eda(%rip), %rdx     # 0xceef1
leaq 0xb1d33(%rip), %rcx     # 0xced51
leaq 0xb199b(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1f5, %r9d            # imm = 0x1F5
xorl %eax, %eax
callq 0xc007
jmp 0x1cd85
cmpl $0x1, 0x28(%r14)
jne 0x1d08d
leaq 0xb1d04(%rip), %r12     # 0xced4c
movq %r14, %rdi
movq %r12, %rsi
callq 0x1cb88
movq %r14, %rdi
movq %r12, %rsi
callq 0x1cb29
testq %rax, %rax
je 0x1d0be
leaq 0xaf0ef(%rip), %rsi     # 0xcc159
leaq 0xb1d2c(%rip), %rdx     # 0xced9d
leaq 0xb1cd9(%rip), %rcx     # 0xced51
leaq 0xb1941(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1fc, %r9d            # imm = 0x1FC
jmp 0x1d118
leaq 0xaf0c5(%rip), %rsi     # 0xcc159
leaq 0xb1dd0(%rip), %rdx     # 0xcee6b
leaq 0xb1caf(%rip), %rcx     # 0xced51
leaq 0xb1917(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1f9, %r9d            # imm = 0x1F9
xorl %eax, %eax
callq 0xc007
jmp 0x1cd94
cmpl $0x0, 0x28(%r14)
je 0x1d0ec
leaq 0xaf08d(%rip), %rsi     # 0xcc159
leaq 0xb1cfd(%rip), %rdx     # 0xcedd0
leaq 0xb1c77(%rip), %rcx     # 0xced51
leaq 0xb18df(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1fd, %r9d            # imm = 0x1FD
jmp 0x1d118
cmpq $0x0, 0x10(%r14)
je 0x1d124
leaq 0xaf05f(%rip), %rsi     # 0xcc159
leaq 0xb1ceb(%rip), %rdx     # 0xcedec
leaq 0xb1c49(%rip), %rcx     # 0xced51
leaq 0xb18b1(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x1fe, %r9d            # imm = 0x1FE
xorl %eax, %eax
callq 0xc007
jmp 0x1cda3
leaq 0xb1895(%rip), %rsi     # 0xce9c0
pushq $0x4
popq %rdi
movl $0x200, %edx            # imm = 0x200
callq 0xccb0
movq %rax, %r13
leaq 0xb1c05(%rip), %rsi     # 0xced47
leaq 0xbd0da(%rip), %rdx     # 0xda223
xorl %r12d, %r12d
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x1c9e0
leaq 0xb1bef(%rip), %rsi     # 0xced4c
leaq -0xfdd5(%rip), %rcx     # 0xd38f
movq %r14, %rdi
movq %r13, %rdx
callq 0x1c9e0
cmpq $0x0, 0x10(%r14)
jne 0x1cdef
leaq 0xaefd8(%rip), %rsi     # 0xcc159
leaq 0xb1b6c(%rip), %rdx     # 0xcecf4
leaq 0xb1bc2(%rip), %rcx     # 0xced51
leaq 0xb182a(%rip), %r8      # 0xce9c0
movq %r15, %rdi
movl $0x203, %r9d            # imm = 0x203
xorl %eax, %eax
callq 0xc007
jmp 0x1cdeb
movq 0x110e06(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xaceaa(%rip), %rsi     # 0xca066
leaq 0xad496(%rip), %rdx     # 0xca659
leaq 0xb1b87(%rip), %rcx     # 0xced51
leaq 0xb17ef(%rip), %r8      # 0xce9c0
movl $0x1de, %r9d            # imm = 0x1DE
xorl %eax, %eax
callq 0xb8c0
callq 0xb300