// File: /workspace/github_cpp_makefile_star2_O1/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 0x3c96
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 0x4742
movq 0x30(%r15), %rax
movq %rax, -0x158(%rbp)
leaq 0x38(%r15), %rsi
leaq -0x150(%rbp), %rdi
callq 0x4340
cmpb $0x1, -0x188(%rbp)
jne 0x3b87
leaq -0x98(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x4842
movq %r15, -0x70(%rbp)
movq -0x98(%rbp), %r14
movq -0x90(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpq %rax, %r14
je 0x3b75
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 0x4742
movq 0x28(%r14), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x61cc
cmpq -0x68(%rbp), %rax
je 0x3b09
movq %r13, %rsi
movq %r12, %r15
movq -0x60(%rbp), %r12
movq -0x30(%rbp), %rdi
callq 0x614c
addq %r12, (%rax)
movq %r15, %r12
jmp 0x3b59
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4742
movq -0x60(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x626a
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3b59
callq 0x21c0
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x3b67
callq 0x21c0
addq $0x30, %r14
cmpq -0x80(%rbp), %r14
jne 0x3ab6
leaq -0x98(%rbp), %rdi
callq 0x49e2
movq -0x70(%rbp), %r15
jmp 0x3c05
movq -0x30(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x61cc
cmpq -0x68(%rbp), %rax
je 0x3bb9
movq -0x180(%rbp), %r14
movq -0x30(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x614c
addq %r14, (%rax)
jmp 0x3c05
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x178(%rbp), %rsi
movq -0x170(%rbp), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x4742
movq -0x180(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x626a
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x3c05
callq 0x21c0
leaq -0x168(%rbp), %r14
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x3c1d
callq 0x21c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x3c2e
callq 0x21c0
leaq -0x110(%rbp), %rdi
callq 0x49e2
movq -0x120(%rbp), %rax
testq %rax, %rax
je 0x3c57
leaq -0x130(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0x140(%rbp), %rax
testq %rax, %rax
je 0x3c74
leaq -0x150(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0x178(%rbp), %rdi
cmpq %r14, %rdi
je 0x3c85
callq 0x21c0
addq $0xc8, %r15
cmpq -0x78(%rbp), %r15
jne 0x3a2a
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 0x3d36
callq 0x21c0
jmp 0x3d36
jmp 0x3cc5
movq %rax, %rdi
callq 0x4733
movq %rax, %rbx
jmp 0x3d42
movq %rax, %rbx
movq -0x178(%rbp), %rdi
cmpq %r14, %rdi
je 0x3d42
callq 0x21c0
jmp 0x3d42
movq %rax, %rbx
jmp 0x3d36
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x3d1c
callq 0x21c0
jmp 0x3d1c
jmp 0x3d19
movq %rax, %rbx
movq %r15, %r12
jmp 0x3d1c
movq %rax, %rbx
jmp 0x3d2a
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x3d2a
callq 0x21c0
leaq -0x98(%rbp), %rdi
callq 0x49e2
leaq -0x188(%rbp), %rdi
callq 0x4554
movq -0x30(%rbp), %rdi
callq 0x5232
movq %rbx, %rdi
callq 0x22b0
nop