// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/spec_results.c
// Function: gt_spec_results_add_result
void gt_spec_results_add_result(GtSpecResults *sr,
                                const char *aspect,
                                GtGenomeNode *node,
                                GtSpecResultStatus status,
                                const char *error_string)
{
  GtSpecAspect *sa = NULL;
  GtSpecAspectNodeResult *sanr = NULL;
  gt_assert(aspect && node && error_string);

  if (gt_feature_node_try_cast(node)) {
    GtHashmap *per_type_aspects;
    const char *type = gt_feature_node_get_type((GtFeatureNode*) node);
    if (!(per_type_aspects = gt_hashmap_get(sr->feature_aspects, type))) {
      per_type_aspects = gt_hashmap_new(GT_HASH_STRING, NULL,
                                        (GtFree) gt_spec_aspect_delete);
      gt_hashmap_add(sr->feature_aspects, (void*) gt_symbol(type),
                     per_type_aspects);
      sr->checked_types++;
      sr->seen_feature = true;
    }
    gt_assert(per_type_aspects);
    if (!(sa = gt_hashmap_get(per_type_aspects, aspect))) {
      sa = gt_spec_aspect_new(aspect);
      gt_hashmap_add(per_type_aspects, (void*) gt_symbol(aspect), sa);
      sr->checked_aspects++;
    }
  } else if (gt_meta_node_try_cast(node)) {
    if (!(sa = gt_hashmap_get(sr->meta_aspects, aspect))) {
      sa = gt_spec_aspect_new(aspect);
      gt_hashmap_add(sr->meta_aspects, (void*) gt_symbol(aspect), sa);
      sr->checked_aspects++;
      sr->seen_meta = true;
    }
  } else if (gt_region_node_try_cast(node)) {
    if (!(sa = gt_hashmap_get(sr->region_aspects, aspect))) {
      sa = gt_spec_aspect_new(aspect);
      gt_hashmap_add(sr->region_aspects, (void*) gt_symbol(aspect), sa);
      sr->checked_aspects++;
      sr->seen_region = true;
    }
  } else if (gt_comment_node_try_cast(node)) {
    if (!(sa = gt_hashmap_get(sr->comment_aspects, aspect))) {
      sa = gt_spec_aspect_new(aspect);
      gt_hashmap_add(sr->comment_aspects, (void*) gt_symbol(aspect), sa);
      sr->checked_aspects++;
      sr->seen_comment = true;
    }
  } else if (gt_sequence_node_try_cast(node)) {
    if (!(sa = gt_hashmap_get(sr->sequence_aspects, aspect))) {
      sa = gt_spec_aspect_new(aspect);
      gt_hashmap_add(sr->sequence_aspects, (void*) gt_symbol(aspect), sa);
      sr->checked_aspects++;
      sr->seen_sequence = true;
    }
  }
  gt_assert(sa);
  /* count number of nodes seen for this aspect */
  if (sa->last_node != node)
    sa->nof_nodes++;
  switch (status) {
    case GT_SPEC_SUCCESS:
      /* pass */
      break;
    case GT_SPEC_FAILURE:
      if (!(sanr = gt_hashmap_get(sa->aspect_node_results, node))) {
        sanr = gt_spec_aspect_node_result_new();
        node = gt_genome_node_ref(node);
        gt_hashmap_add(sa->aspect_node_results, node, sanr);
      }
      gt_assert(sanr);
      gt_str_array_add_cstr(sanr->failure_messages, error_string);
      if (!sr->has_failures)
        sr->has_failures = true;
      break;
    case GT_SPEC_RUNTIME_ERROR:
      if (!(sanr = gt_hashmap_get(sa->aspect_node_results, node))) {
        sanr = gt_spec_aspect_node_result_new();
        node = gt_genome_node_ref(node);
        gt_hashmap_add(sa->aspect_node_results, node, sanr);
      }
      gt_assert(sanr);
      gt_str_array_add_cstr(sanr->runtime_error_messages, error_string);
      if (!sr->has_runtime_errors)
        sr->has_runtime_errors = true;
      break;
  }
  sa->last_node = node;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movl %ecx, 0x6c(%rsp)
movq %r8, 0x60(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x1da85c
cmpq $0x0, 0x70(%rsp)
je 0x1da85c
cmpq $0x0, 0x60(%rsp)
jne 0x1da894
movq 0x46173d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33b7a6(%rip), %rsi    # 0x516013
leaq 0x38b672(%rip), %rdx    # 0x565ee6
leaq 0x38b68a(%rip), %rcx    # 0x565f05
leaq 0x38b60a(%rip), %r8     # 0x565e8c
movl $0xbc, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1da896
movq 0x70(%rsp), %rdi
callq 0x170450
cmpq $0x0, %rax
je 0x1da9eb
movq 0x70(%rsp), %rdi
callq 0x16d430
movq %rax, 0x40(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x48(%rsp)
cmpq $0x0, %rax
jne 0x1da93f
movl $0x1, %edi
xorl %eax, %eax
movl %eax, %esi
leaq -0x1e9(%rip), %rdx      # 0x1da700
callq 0xe0c40
movq %rax, 0x48(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x120930
movq 0x38(%rsp), %rdi
movq %rax, %rsi
movq 0x48(%rsp), %rdx
callq 0xe0fc0
movq 0x80(%rsp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movq 0x80(%rsp), %rax
movb $0x1, 0x28(%rax)
jmp 0x1da941
cmpq $0x0, 0x48(%rsp)
jne 0x1da981
movq 0x461650(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33b6b9(%rip), %rsi    # 0x516013
leaq 0x38b5bf(%rip), %rdx    # 0x565f20
leaq 0x38b59d(%rip), %rcx    # 0x565f05
leaq 0x38b51d(%rip), %r8     # 0x565e8c
movl $0xc9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1da983
movq 0x48(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x58(%rsp)
cmpq $0x0, %rax
jne 0x1da9e6
movq 0x78(%rsp), %rdi
callq 0x1dae80
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %rdi
callq 0x120930
movq 0x30(%rsp), %rdi
movq %rax, %rsi
movq 0x58(%rsp), %rdx
callq 0xe0fc0
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x38(%rax)
jmp 0x1dac44
movq 0x70(%rsp), %rdi
callq 0x1af5f0
cmpq $0x0, %rax
je 0x1daa81
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x78(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x58(%rsp)
cmpq $0x0, %rax
jne 0x1daa7c
movq 0x78(%rsp), %rdi
callq 0x1dae80
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x78(%rsp), %rdi
callq 0x120930
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq 0x58(%rsp), %rdx
callq 0xe0fc0
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x38(%rax)
movq 0x80(%rsp), %rax
movb $0x1, 0x29(%rax)
jmp 0x1dac42
movq 0x70(%rsp), %rdi
callq 0x1ca8c0
cmpq $0x0, %rax
je 0x1dab17
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x78(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x58(%rsp)
cmpq $0x0, %rax
jne 0x1dab12
movq 0x78(%rsp), %rdi
callq 0x1dae80
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rdi
callq 0x120930
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0x58(%rsp), %rdx
callq 0xe0fc0
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x38(%rax)
movq 0x80(%rsp), %rax
movb $0x1, 0x2a(%rax)
jmp 0x1dac40
movq 0x70(%rsp), %rdi
callq 0x48d910
cmpq $0x0, %rax
je 0x1dabad
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x78(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x58(%rsp)
cmpq $0x0, %rax
jne 0x1daba8
movq 0x78(%rsp), %rdi
callq 0x1dae80
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x78(%rsp), %rdi
callq 0x120930
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x58(%rsp), %rdx
callq 0xe0fc0
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x38(%rax)
movq 0x80(%rsp), %rax
movb $0x1, 0x2b(%rax)
jmp 0x1dac3e
movq 0x70(%rsp), %rdi
callq 0x1d6710
cmpq $0x0, %rax
je 0x1dac3c
movq 0x80(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x78(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x58(%rsp)
cmpq $0x0, %rax
jne 0x1dac3a
movq 0x78(%rsp), %rdi
callq 0x1dae80
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rdi
callq 0x120930
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq 0x58(%rsp), %rdx
callq 0xe0fc0
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x38(%rax)
movq 0x80(%rsp), %rax
movb $0x1, 0x2c(%rax)
jmp 0x1dac3c
jmp 0x1dac3e
jmp 0x1dac40
jmp 0x1dac42
jmp 0x1dac44
jmp 0x1dac46
cmpq $0x0, 0x58(%rsp)
jne 0x1dac86
movq 0x46134b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33b3b4(%rip), %rsi    # 0x516013
leaq 0x37def1(%rip), %rdx    # 0x558b57
leaq 0x38b298(%rip), %rcx    # 0x565f05
leaq 0x38b218(%rip), %r8     # 0x565e8c
movl $0xec, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dac88
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x70(%rsp), %rax
je 0x1daca9
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rax)
movl 0x6c(%rsp), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x1dacd4
jmp 0x1dacb7
movl 0xc(%rsp), %eax
subl $0x1, %eax
je 0x1dacd9
jmp 0x1dacc2
movl 0xc(%rsp), %eax
subl $0x2, %eax
je 0x1dad9b
jmp 0x1dae5b
jmp 0x1dae5b
movq 0x58(%rsp), %rax
movq (%rax), %rdi
movq 0x70(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x50(%rsp)
cmpq $0x0, %rax
jne 0x1dad26
callq 0x1dbfd0
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rdi
callq 0x171410
movq %rax, 0x70(%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rdi
movq 0x70(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0xe0fc0
jmp 0x1dad28
cmpq $0x0, 0x50(%rsp)
jne 0x1dad68
movq 0x461269(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33b2d2(%rip), %rsi    # 0x516013
leaq 0x38b1e9(%rip), %rdx    # 0x565f31
leaq 0x38b1b6(%rip), %rcx    # 0x565f05
leaq 0x38b136(%rip), %r8     # 0x565e8c
movl $0xfa, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dad6a
movq 0x50(%rsp), %rax
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
callq 0x11f720
movq 0x80(%rsp), %rax
testb $0x1, 0x2d(%rax)
jne 0x1dad96
movq 0x80(%rsp), %rax
movb $0x1, 0x2d(%rax)
jmp 0x1dae5b
movq 0x58(%rsp), %rax
movq (%rax), %rdi
movq 0x70(%rsp), %rsi
callq 0xe0f20
movq %rax, 0x50(%rsp)
cmpq $0x0, %rax
jne 0x1dade8
callq 0x1dbfd0
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rdi
callq 0x171410
movq %rax, 0x70(%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rdi
movq 0x70(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0xe0fc0
jmp 0x1dadea
cmpq $0x0, 0x50(%rsp)
jne 0x1dae2a
movq 0x4611a7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33b210(%rip), %rsi    # 0x516013
leaq 0x38b127(%rip), %rdx    # 0x565f31
leaq 0x38b0f4(%rip), %rcx    # 0x565f05
leaq 0x38b074(%rip), %r8     # 0x565e8c
movl $0x105, %r9d            # imm = 0x105
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1dae2c
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x60(%rsp), %rsi
callq 0x11f720
movq 0x80(%rsp), %rax
testb $0x1, 0x2e(%rax)
jne 0x1dae59
movq 0x80(%rsp), %rax
movb $0x1, 0x2e(%rax)
jmp 0x1dae5b
movq 0x70(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x10(%rax)
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)