// File: /workspace/github_cpp_makefile_star2_O3/cegme[P]vose/VoseTree.cc
// Function: VoseTree::distribution[abi:cxx11]()
std::map<std::string, long> VoseTree::distribution() {

  std::map<std::string, long> map;
  std::for_each(nodes.cbegin(), nodes.cend(), [&map] (vosetreenode vtn) {
    if(vtn.isBag) {
      for (auto m : vtn.bag.get_scores()) {
        if(map.find(m.label) == map.end()) {
          map.insert(std::pair<std::string, long>(m.label, m.weight));
        }
        else {
          map[m.label] += m.weight;
        }
      }
    }
    else {
      if(map.find(vtn.ball.label) == map.end()) {
        map.insert(std::pair<std::string, long>(vtn.ball.label, vtn.ball.weight));
      }
      else {
        map[vtn.ball.label] += vtn.ball.weight;
      }
    }
  });
  return map;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
leaq 0x8(%rdi), %rcx
movl $0x0, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rcx, -0x68(%rbp)
movq %rcx, 0x20(%rdi)
movq %rdi, -0x30(%rbp)
movq %rax, 0x28(%rdi)
movq 0x38(%rsi), %r15
movq 0x40(%rsi), %rax
movq %rax, -0x78(%rbp)
cmpq %rax, %r15
je 0x385e
leaq -0x168(%rbp), %r14
leaq -0x58(%rbp), %r13
leaq -0x48(%rbp), %r12
leaq -0xc0(%rbp), %rbx
movb (%r15), %al
movb %al, -0x188(%rbp)
movq 0x8(%r15), %rax
movq %rax, -0x180(%rbp)
movq %r14, -0x178(%rbp)
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
addq %rsi, %rdx
leaq -0x178(%rbp), %rdi
callq 0x4420
movq 0x30(%r15), %rax
movq %rax, -0x158(%rbp)
leaq 0x38(%r15), %rsi
leaq -0x150(%rbp), %rdi
callq 0x3f36
cmpb $0x1, -0x188(%rbp)
jne 0x374f
leaq -0x98(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x4524
movq %r15, -0x70(%rbp)
movq -0x98(%rbp), %r14
movq -0x90(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpq %rax, %r14
je 0x373d
movq (%r14), %rax
movq %rax, -0x60(%rbp)
movq %r12, -0x58(%rbp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x4420
movq 0x28(%r14), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x5d8c
cmpq -0x68(%rbp), %rax
je 0x36d1
movq %r13, %rsi
movq %r12, %r15
movq -0x60(%rbp), %r12
movq -0x30(%rbp), %rdi
callq 0x5d0c
addq %r12, (%rax)
movq %r15, %r12
jmp 0x3721
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4420
movq -0x60(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x5e2a
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3721
callq 0x21c0
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x372f
callq 0x21c0
addq $0x30, %r14
cmpq -0x80(%rbp), %r14
jne 0x367e
leaq -0x98(%rbp), %rdi
callq 0x46c4
movq -0x70(%rbp), %r15
jmp 0x37cd
movq -0x30(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x5d8c
cmpq -0x68(%rbp), %rax
je 0x3781
movq -0x180(%rbp), %r14
movq -0x30(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x5d0c
addq %r14, (%rax)
jmp 0x37cd
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x178(%rbp), %rsi
movq -0x170(%rbp), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x4420
movq -0x180(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x5e2a
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x37cd
callq 0x21c0
leaq -0x168(%rbp), %r14
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x37e5
callq 0x21c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x37f6
callq 0x21c0
leaq -0x110(%rbp), %rdi
callq 0x46c4
movq -0x120(%rbp), %rax
testq %rax, %rax
je 0x381f
leaq -0x130(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0x140(%rbp), %rax
testq %rax, %rax
je 0x383c
leaq -0x150(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0x178(%rbp), %rdi
cmpq %r14, %rdi
je 0x384d
callq 0x21c0
addq $0xc8, %r15
cmpq -0x78(%rbp), %r15
jne 0x35f2
movq -0x30(%rbp), %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x38fe
callq 0x21c0
jmp 0x38fe
jmp 0x388d
movq %rax, %rdi
callq 0x4411
movq %rax, %rbx
jmp 0x390a
movq %rax, %rbx
movq -0x178(%rbp), %rdi
cmpq %r14, %rdi
je 0x390a
callq 0x21c0
jmp 0x390a
movq %rax, %rbx
jmp 0x38fe
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x38e4
callq 0x21c0
jmp 0x38e4
jmp 0x38e1
movq %rax, %rbx
movq %r15, %r12
jmp 0x38e4
movq %rax, %rbx
jmp 0x38f2
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x38f2
callq 0x21c0
leaq -0x98(%rbp), %rdi
callq 0x46c4
leaq -0x188(%rbp), %rdi
callq 0x423c
movq -0x30(%rbp), %rdi
callq 0x4e4c
movq %rbx, %rdi
callq 0x22b0
nop