// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkstorage.cc
// Function: ATOM_NETWORK::returnChemicalFormula[abi:cxx11]()
std::string ATOM_NETWORK::returnChemicalFormula(){

 std::string formula;

 for(int i=0; i<MAX_ATOMIC_NUMBER; i++) atomic_composition[i] = 0;

 for(int i=0; i<numAtoms; i++) {
    atomic_composition[lookupAtomicNumber(atoms.at(i).type)-1]+=1;
    };

 for(int i=0; i<numAtoms; i++) {

    if(atomic_composition[lookupAtomicNumber(atoms.at(i).type)-1]>0)
      {
      std::ostringstream os ;
      os << atomic_composition[lookupAtomicNumber(atoms.at(i).type)-1];
      formula += atoms.at(i).type + os.str();
      atomic_composition[lookupAtomicNumber(atoms.at(i).type)-1]=0;
      };

    };

 return formula;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rsi, %r15
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, 0x18(%rsp)
movb $0x0, 0x10(%rdi)
leaq 0x114(%rsi), %rdi
movl $0x1d8, %edx            # imm = 0x1D8
movq %rdi, 0x10(%rsp)
xorl %esi, %esi
callq 0x4250
cmpl $0x0, 0x110(%r15)
jle 0x5505f
movl $0x48, %ebp
leaq 0xd0(%rsp), %r13
xorl %ebx, %ebx
leaq 0xc0(%rsp), %r14
movq 0x2f0(%r15), %rax
movq 0x2f8(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %rbx, %rdx
jbe 0x55076
movq %r13, 0xc0(%rsp)
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0xf3ce
movq %r14, %rdi
callq 0x22217
cltq
movq 0x10(%rsp), %rcx
incl -0x4(%rcx,%rax,4)
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x54d50
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x4470
incq %rbx
movslq 0x110(%r15), %rax
addq $0x98, %rbp
cmpq %rax, %rbx
jl 0x54cd8
testl %eax, %eax
jle 0x5505f
leaq 0x30(%rsp), %rbp
movl $0x48, %ebx
xorl %r13d, %r13d
movq 0x2f0(%r15), %rax
movq 0x2f8(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %r13, %rdx
jbe 0x55098
leaq 0x90(%rsp), %rcx
movq %rcx, 0x80(%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0xf3ce
movq %rbp, %r14
movq %r12, %rdi
callq 0x22217
cltq
movq 0x10(%rsp), %rcx
movl -0x4(%rcx,%rax,4), %ebp
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x54e12
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4470
testl %ebp, %ebp
movq %r14, %rbp
jle 0x55045
leaq 0xe0(%rsp), %rdi
callq 0x4590
movq 0x2f0(%r15), %rax
movq 0x2f8(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %r13, %rdx
jbe 0x55087
leaq 0x70(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xf3ce
leaq 0x60(%rsp), %rdi
callq 0x22217
cltq
movq 0x10(%rsp), %rcx
movl -0x4(%rcx,%rax,4), %esi
leaq 0xe0(%rsp), %rdi
callq 0x4750
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x54eb4
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x2f0(%r15), %rbp
movq 0x2f8(%r15), %rdx
subq %rbp, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rax # imm = 0x86BCA1AF286BCA1B
imulq %rax, %rdx
cmpq %r13, %rdx
jbe 0x550a9
leaq 0xa0(%rsp), %r12
movq %r12, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x46a0
movq -0x8(%rbp,%rbx), %rcx
movq (%rbp,%rbx), %r8
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x44c0
movq %r14, %rbp
movq %r14, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x54f34
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x54f3b
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x18(%rsp), %rdi
callq 0x4190
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x54f7e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x54fa3
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x2f0(%r15), %rax
movq 0x2f8(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %r13, %rdx
jbe 0x55087
leaq 0x50(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xf3ce
leaq 0x40(%rsp), %rdi
callq 0x22217
cltq
movq 0x10(%rsp), %rcx
movl $0x0, -0x4(%rcx,%rax,4)
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x55024
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0xe0(%rsp), %rdi
movq 0x13ff85(%rip), %rsi    # 0x194fb8
callq 0x4230
leaq 0x150(%rsp), %rdi
callq 0x41a0
incq %r13
movslq 0x110(%r15), %rax
addq $0x98, %rbx
cmpq %rax, %r13
jl 0x54d7f
movq 0x18(%rsp), %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf8678(%rip), %rdi     # 0x14d6f5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0xf8667(%rip), %rdi     # 0x14d6f5
movq %r13, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0xf8656(%rip), %rdi     # 0x14d6f5
movq %r13, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0xf8645(%rip), %rdi     # 0x14d6f5
movq %r13, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x5514b
jmp 0x5514b
jmp 0x55194
movq %rax, %r14
jmp 0x550e8
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x550e8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x5516f
movq 0xb0(%rsp), %rsi
jmp 0x55167
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5516f
movq 0x50(%rsp), %rsi
jmp 0x55167
jmp 0x55194
jmp 0x55194
movq %rax, %r14
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x55197
movq 0x90(%rsp), %rsi
jmp 0x551d4
jmp 0x5514b
movq %rax, %r14
jmp 0x5516f
movq %rax, %r14
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x5516f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x13fe42(%rip), %rsi    # 0x194fb8
leaq 0xe0(%rsp), %rdi
callq 0x4230
leaq 0x150(%rsp), %rdi
callq 0x41a0
jmp 0x55197
jmp 0x55194
movq %rax, %r14
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rdi
cmpq %rax, %rdi
je 0x551b4
movq (%rax), %rsi
incq %rsi
callq 0x4470
movq %r14, %rdi
callq 0x4780
movq %rax, %r14
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0x55197
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x55197