// File: /workspace/github_cpp_makefile_star2_O1/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 0xe118e(%rip), %r14     # 0x175f90
leaq 0x6c8e9(%rip), %rsi     # 0x1016f2
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 0x6c796(%rip), %r15     # 0x101604
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 0x68f70(%rip), %r12     # 0xfde14
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 0x94ff1
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 0x94f55
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 0x95244
leaq 0x40(%rsp), %rbx
leaq 0x30(%rsp), %r13
movq %rbx, 0x30(%rsp)
movq %r13, %rdi
leaq 0x6c3e0(%rip), %rsi     # 0x10143d
leaq 0x6c3da(%rip), %rdx     # 0x10143e
callq 0x32210
leaq 0x28(%r15), %rdi
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
callq 0xbf342
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x95091
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 0x951c8
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 0x9525d
movl (%r13), %eax
testl %eax, %eax
je 0x95199
cmpl $0x22, %eax
jne 0x9519d
jmp 0x95269
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 0x95133
cmpq %r12, %rbx
leaq 0x30(%rsp), %r13
je 0x95200
leaq 0x10(%r12), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x951eb
movq (%r15), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%r15), %rax
addq $0x10, %r15
cmpq %rbx, %r15
movq %rax, %r15
jne 0x951d7
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 0x9504e
leaq 0x10(%rsp), %rdi
callq 0x31a9e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5d4f7(%rip), %rdi     # 0xf275b
callq 0x225a0
leaq 0x5d4eb(%rip), %rdi     # 0xf275b
callq 0x22e40
jmp 0x95295
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x952a8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x952a8
jmp 0x95295
movq %rax, %r14
jmp 0x952a8
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x952a8
movl %ebx, (%r13)
leaq 0x10(%rsp), %rdi
callq 0x31a9e
movq %r14, %rdi
callq 0x23240