// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/spec_results.c
// Function: gt_spec_results_make_aspect_model
static int gt_spec_results_make_aspect_model(GT_UNUSED void *key, void *value,
                                             void *data, GT_UNUSED GtError *err)
{
  GtSpecResultsReportInfo *info = (GtSpecResultsReportInfo*) data;
  GtSpecAspect* sa =  (GtSpecAspect*) value;
  GtSpecAspectCountInfo count_info;
  GT_UNUSED int rval;
  GtUword successes = sa->nof_nodes,
          failures = 0,
          runtime_errors = 0;
  gt_assert(sa && info);

  /* update global number of checked node/aspect pairs */
  info->sr->checked_nodes += sa->nof_nodes;

  /* calculate number of failures/errors */
  count_info.fail = &failures;
  count_info.err = &runtime_errors;
  rval = gt_hashmap_foreach(sa->aspect_node_results, gt_spec_aspect_count_stats,
                            &count_info, NULL);
  gt_assert(!rval); /* gt_spec_aspect_count_stats() is sane */

  /* calculate number of successes */
  gt_assert(failures <= sa->nof_nodes && runtime_errors <= sa->nof_nodes);
  successes = sa->nof_nodes - failures - runtime_errors;
  gt_assert(failures + runtime_errors + successes == sa->nof_nodes);

  /* export results as data model */
  info->node_i = 1;
  lua_pushstring(info->L, gt_str_get(sa->name));
  lua_newtable(info->L);
  lua_pushstring(info->L, "successes");
  lua_pushnumber(info->L, successes);
  lua_rawset(info->L, -3);
  lua_pushstring(info->L, "failures");
  lua_pushnumber(info->L, failures);
  lua_rawset(info->L, -3);
  lua_pushstring(info->L, "runtime_errors");
  lua_pushnumber(info->L, runtime_errors);
  lua_rawset(info->L, -3);
  lua_pushstring(info->L, "nodes");
  lua_newtable(info->L);
  rval = gt_hashmap_foreach(sa->aspect_node_results,
                              gt_spec_aspect_make_node_model, info, NULL);
  gt_assert(rval == 0);
  lua_rawset(info->L, -3);
  lua_rawset(info->L, -3);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
andq $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
testq %rsi, %rsi
je 0x11b52b
movq %rdx, %rbx
testq %rdx, %rdx
je 0x11b52b
movq %rsi, %r14
movq 0x18(%rsi), %rax
movq 0x20(%rbx), %rcx
addq %rax, 0x48(%rcx)
leaq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rax
movq %rax, 0x8(%rdx)
movq (%rsi), %rdi
leaq 0x3c8(%rip), %rsi       # 0x11b72f
xorl %ecx, %ecx
callq 0x8f56e
testl %eax, %eax
jne 0x11b559
movq 0x8(%rsp), %rax
movq 0x18(%r14), %r12
cmpq %r12, %rax
ja 0x11b4fa
movq (%rsp), %rcx
cmpq %r12, %rcx
ja 0x11b4fa
addq %rcx, %rax
subq %rax, %r12
movq $0x1, 0x10(%rbx)
movq 0x18(%rbx), %r15
movq 0x8(%r14), %rdi
callq 0xad1fa
movq %r15, %rdi
movq %rax, %rsi
callq 0x1dc009
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dc7bd
movq 0x18(%rbx), %rdi
leaq 0x218767(%rip), %rsi    # 0x333b3a
callq 0x1dc009
movq 0x18(%rbx), %rdi
movq %r12, %xmm1
punpckldq 0x1cc4f7(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1cc4ff(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x1dbe33
movq 0x18(%rbx), %rdi
pushq $-0x3
popq %rbp
movl %ebp, %esi
callq 0x1dcb75
movq 0x18(%rbx), %rdi
leaq 0x21859b(%rip), %rsi    # 0x3339b6
callq 0x1dc009
movq 0x18(%rbx), %rdi
movsd 0x8(%rsp), %xmm1
unpcklps 0x1cc4af(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1cc4b7(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x1dbe33
movq 0x18(%rbx), %rdi
movl %ebp, %esi
callq 0x1dcb75
movq 0x18(%rbx), %rdi
leaq 0x218533(%rip), %rsi    # 0x333993
callq 0x1dc009
movq 0x18(%rbx), %rdi
movsd (%rsp), %xmm1
unpcklps 0x1cc46b(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1cc473(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x1dbe33
movq 0x18(%rbx), %rdi
movl %ebp, %esi
callq 0x1dcb75
movq 0x18(%rbx), %rdi
leaq 0x1fbfbc(%rip), %rsi    # 0x317460
callq 0x1dc009
movq 0x18(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1dc7bd
movq (%r14), %rdi
leaq 0x2aa(%rip), %rsi       # 0x11b76a
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x8f56e
testl %eax, %eax
jne 0x11b587
movq 0x18(%rbx), %rdi
pushq $-0x3
popq %rbp
movl %ebp, %esi
callq 0x1dcb75
movq 0x18(%rbx), %rdi
movl %ebp, %esi
callq 0x1dcb75
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x31ca67(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c9b08(%rip), %rsi    # 0x2e5013
leaq 0x2185eb(%rip), %rdx    # 0x333afd
leaq 0x2185c2(%rip), %rcx    # 0x333adb
leaq 0x2183b5(%rip), %r8     # 0x3338d5
movl $0x16a, %r9d            # imm = 0x16A
jmp 0x11b5b3
movq 0x31ca36(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c9ad7(%rip), %rsi    # 0x2e5013
leaq 0x21858d(%rip), %rdx    # 0x333ad0
leaq 0x218591(%rip), %rcx    # 0x333adb
leaq 0x218384(%rip), %r8     # 0x3338d5
movl $0x15d, %r9d            # imm = 0x15D
jmp 0x11b5b3
movq 0x31ca08(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c9aa9(%rip), %rsi    # 0x2e5013
leaq 0x1e7a26(%rip), %rdx    # 0x302f97
leaq 0x218563(%rip), %rcx    # 0x333adb
leaq 0x218356(%rip), %r8     # 0x3338d5
movl $0x167, %r9d            # imm = 0x167
jmp 0x11b5b3
movq 0x31c9da(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c9a7b(%rip), %rsi    # 0x2e5013
leaq 0x202520(%rip), %rdx    # 0x31dabf
leaq 0x218535(%rip), %rcx    # 0x333adb
leaq 0x218328(%rip), %r8     # 0x3338d5
movl $0x17f, %r9d            # imm = 0x17F
xorl %eax, %eax
callq 0x17a50
callq 0x17390