// File: /workspace/github_cpp_makefile_star2_O1/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 $0x248, %rsp            # imm = 0x248
movq %rsi, %r14
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, 0x8(%rsp)
movb $0x0, 0x10(%rdi)
leaq 0x114(%rsi), %rdi
movl $0x1d8, %edx            # imm = 0x1D8
xorl %esi, %esi
callq 0x4250
cmpl $0x0, 0x110(%r14)
jle 0x5509d
movl $0x48, %ebp
leaq 0xc0(%rsp), %r12
xorl %ebx, %ebx
leaq 0xb0(%rsp), %r15
movq 0x2f0(%r14), %rax
movq 0x2f8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %rbx, %rdx
jbe 0x553b3
movq %r12, 0xb0(%rsp)
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xf32a
movq %r15, %rdi
callq 0x2231c
cltq
incl 0x110(%r14,%rax,4)
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x55083
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4470
incq %rbx
movslq 0x110(%r14), %rax
addq $0x98, %rbp
cmpq %rax, %rbx
jl 0x5500c
cmpl $0x0, 0x110(%r14)
jle 0x5538b
leaq 0x20(%rsp), %rbx
movl $0x48, %r12d
xorl %r15d, %r15d
movq 0x2f0(%r14), %rax
movq 0x2f8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %r15, %rdx
jbe 0x553c4
leaq 0x80(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %r13
movq %r13, %rdi
callq 0xf32a
movq %rbx, %rbp
movq %r13, %rdi
callq 0x2231c
cltq
movl 0x110(%r14,%rax,4), %ebx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x55142
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4470
testl %ebx, %ebx
movq %rbp, %rbx
jle 0x55371
leaq 0xd0(%rsp), %rdi
callq 0x4590
movq 0x2f0(%r14), %rax
movq 0x2f8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %r15, %rdx
jbe 0x553a2
leaq 0x60(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0xf32a
leaq 0x50(%rsp), %rdi
callq 0x2231c
cltq
movl 0x110(%r14,%rax,4), %esi
leaq 0xd0(%rsp), %rdi
callq 0x4750
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x551e3
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x2f0(%r14), %rbx
movq 0x2f8(%r14), %rdx
subq %rbx, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rax # imm = 0x86BCA1AF286BCA1B
imulq %rax, %rdx
cmpq %r15, %rdx
jbe 0x553d5
leaq 0x90(%rsp), %r13
movq %r13, %rdi
leaq 0xd8(%rsp), %rsi
callq 0x46a0
movq -0x8(%rbx,%r12), %rcx
movq (%rbx,%r12), %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x44c0
movq %rbp, %rbx
movq %rbp, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x55262
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x55268
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rdi
callq 0x4190
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x552ab
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x552d0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x2f0(%r14), %rax
movq 0x2f8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x79435e50d79435e5, %rcx # imm = 0x86BCA1AF286BCA1B
imulq %rcx, %rdx
cmpq %r15, %rdx
jbe 0x553a2
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0xf32a
leaq 0x30(%rsp), %rdi
callq 0x2231c
cltq
movl $0x0, 0x110(%r14,%rax,4)
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x55350
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0xd0(%rsp), %rdi
movq 0x141c59(%rip), %rsi    # 0x196fb8
callq 0x4230
leaq 0x140(%rsp), %rdi
callq 0x41a0
incq %r15
movslq 0x110(%r14), %rax
addq $0x98, %r12
cmpq %rax, %r15
jl 0x550b9
movq 0x8(%rsp), %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xfa2fc(%rip), %rdi     # 0x14f6a5
movq %r15, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0xfa2eb(%rip), %rdi     # 0x14f6a5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0xfa2da(%rip), %rdi     # 0x14f6a5
movq %r15, %rsi
xorl %eax, %eax
callq 0x4630
leaq 0xfa2c9(%rip), %rdi     # 0x14f6a5
movq %r15, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x554a5
jmp 0x554a5
jmp 0x55478
movq %rax, %r14
jmp 0x55414
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x55414
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x554c9
movq 0xa0(%rsp), %rsi
jmp 0x554c1
movq %rax, %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x554c9
movq 0x40(%rsp), %rsi
jmp 0x554c1
jmp 0x55478
jmp 0x55478
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x5547b
movq 0x80(%rsp), %rsi
jmp 0x55499
jmp 0x55478
movq %rax, %r14
movq (%rsp), %rbx
jmp 0x554ee
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x5547b
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x5547b
jmp 0x554a5
movq %rax, %r14
jmp 0x554c9
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x554c9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4470
movq (%rsp), %rbx
movq 0x141ae4(%rip), %rsi    # 0x196fb8
leaq 0xd0(%rsp), %rdi
callq 0x4230
leaq 0x140(%rsp), %rdi
callq 0x41a0
movq 0x8(%rsp), %rax
movq (%rax), %rdi
cmpq %rbx, %rdi
je 0x55506
movq (%rbx), %rsi
incq %rsi
callq 0x4470
movq %r14, %rdi
callq 0x4780