// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::outputRunSummary()
void Swarm::outputRunSummary() {
	// Output first two fields of header
	cout<<"Swarm::outputRunSummary() may need some modifications ...."<<endl; //mypause(); //razi TODO: later test
	//Raquel

	cout << left << setw(16) << "Fit" << left << setw(16) << "Iteration" << endl;

	cout << left << setw(16) << "Fit" << left << setw(16) << "Iteration";

	// Output parameter names
	//for (autoDE i: options.model->freeParams_) {
	for (auto i = options.freeParams_.begin(); i != options.freeParams_.end(); ++i) {

		cout  << left << setw(16) << i->first << endl;

		cout << left << setw(16) << i->first;
	}

	cout << endl;

	vector<string> paramVals;

	//for (auto i: allGenFits) {
	for (auto i = allGenFits.begin(); i != allGenFits.end(); ++i) {   //razi: TODO later check if allGenFits filled correctly when different model have different list of free parameters
		split(i->second, paramVals);

		cout << left << setw(16) << i->first << left << setw(16) << paramVals[0];

		for (unsigned int i = 1; i < paramVals.size(); i++) {
			cout << left << setw(16) << stod(paramVals[i]);
		}

		paramVals.clear();

		cout << endl;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbp
movq 0xe1ab6(%rip), %r14     # 0x175fa8
leaq 0x6d1e0(%rip), %rsi     # 0x1016d9
movl $0x3a, %edx
movq %r14, %rdi
callq 0x22ab0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl $0xffffff4f, %ebx       # imm = 0xFFFFFF4F
movl 0x18(%r14,%rcx), %edx
andl %ebx, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0x10, %r13d
movq %r13, 0x10(%r14,%rax)
leaq 0x6d08d(%rip), %r15     # 0x1015eb
movl $0x3, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x22ab0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebx, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
leaq 0x69840(%rip), %r12     # 0xfddd4
movl $0x9, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x22ab0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebx, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movl $0x3, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x22ab0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebx, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movl $0x9, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x22ab0
movq 0x15a8(%rbp), %r15
movq %rbp, 0x8(%rsp)
addq $0x1598, %rbp           # imm = 0x1598
cmpq %rbp, %r15
je 0x946e1
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebx, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
andl %ebx, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r14, %rdi
callq 0x22ab0
movq %r15, %rdi
callq 0x22670
movq %rax, %r15
cmpq %rbp, %rax
jne 0x94645
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %r15
addq $0x10, %rax
movq %rax, 0x8(%rsp)
cmpq %rax, %r15
je 0x94934
leaq 0x40(%rsp), %rbx
leaq 0x30(%rsp), %r13
movq %rbx, 0x30(%rsp)
movq %r13, %rdi
leaq 0x6ccd7(%rip), %rsi     # 0x101424
leaq 0x6ccd1(%rip), %rdx     # 0x101425
callq 0x321d2
leaq 0x28(%r15), %rdi
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
callq 0xbea28
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x94781
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
movl $0xffffff4f, %esi       # imm = 0xFFFFFF4F
andl %esi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r14,%rax)
movq %r15, 0x50(%rsp)
movsd 0x20(%r15), %xmm0
movq %r14, %rdi
callq 0x23060
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movl 0x18(%rax,%rdx), %esi
movl $0xffffff4f, %edi       # imm = 0xFFFFFF4F
andl %edi, %esi
orl $0x20, %esi
movl %esi, 0x18(%rax,%rdx)
movq -0x18(%rcx), %rcx
movq $0x10, 0x10(%rax,%rcx)
movq 0x10(%rsp), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
movq %rax, %rdi
callq 0x22ab0
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %rbx
movq %rbx, %rax
subq %r12, %rax
cmpq $0x21, %rax
jb 0x948b8
movl $0x1, %ebp
movl $0x2, %r15d
callq 0x22070
movq %rax, %r13
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl 0x18(%r14,%rcx), %edx
movl $0xffffff4f, %edi       # imm = 0xFFFFFF4F
andl %edi, %edx
orl $0x20, %edx
movl %edx, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r14,%rax)
shlq $0x5, %rbp
movq (%r12,%rbp), %r12
movl (%r13), %ebx
movl $0x0, (%r13)
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
callq 0x22760
cmpq %r12, 0x30(%rsp)
je 0x9494d
movl (%r13), %eax
testl %eax, %eax
je 0x94889
cmpl $0x22, %eax
jne 0x9488d
jmp 0x94959
movl %ebx, (%r13)
movq %r14, %rdi
callq 0x23060
movl %r15d, %ebp
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %rbx
movq %rbx, %rax
subq %r12, %rax
sarq $0x5, %rax
incl %r15d
cmpq %rbp, %rax
ja 0x94823
cmpq %r12, %rbx
leaq 0x30(%rsp), %r13
je 0x948f0
leaq 0x10(%r12), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x948db
movq (%r15), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%r15), %rax
addq $0x10, %r15
cmpq %rbx, %r15
movq %rax, %r15
jne 0x948c7
movq %r12, 0x18(%rsp)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x50(%rsp), %rdi
callq 0x22670
movq %rax, %r15
cmpq 0x8(%rsp), %rax
leaq 0x40(%rsp), %rbx
jne 0x9473e
leaq 0x10(%rsp), %rdi
callq 0x31a0a
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5dde7(%rip), %rdi     # 0xf273b
callq 0x225a0
leaq 0x5dddb(%rip), %rdi     # 0xf273b
callq 0x22e40
jmp 0x94985
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x94998
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x94998
jmp 0x94985
movq %rax, %r14
jmp 0x94998
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x94998
movl %ebx, (%r13)
leaq 0x10(%rsp), %rdi
callq 0x31a0a
movq %r14, %rdi
callq 0x23240