// File: /workspace/github_cpp_makefile_star2_O2/dtsaras[P]GCW/GCW.cpp
// Function: output_mult_rounds(std::ostream*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<double, std::allocator<double>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::vector<double, std::allocator<double>>>>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<double, std::allocator<double>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::vector<double, std::allocator<double>>>>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<double, std::allocator<double>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::vector<double, std::allocator<double>>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int*, int*, int)
void output_mult_rounds(ostream * output, map <string, vector<double>> data_tsim_vec, map <string, vector<double>> data_time_vec, map <string, vector<double>> data_memo_vec, string variable, int reps, int * eventsArray, int * budgetsArray, int rounds){
	string names[3] = {"total similarity", "time", "memory"};

	cout << "###############1" << endl;
	*output << names[0] << endl;
	*output << setw(16) << "#";
	for (int i = 0; i < reps; ++i){
		if (variable == "c")
			*output << setw(16) << eventsArray[i];
		else
			*output << setw(16) << budgetsArray[i];
	}
	*output << endl;

	cout << "###############2" << endl;
	// for (int i = 0; i < algorithms.size(); i += 2){
	for (pair<string, vector<double>> it : data_tsim_vec){
		if (it.first.substr(0,2) == "EG")
			*output << setw(16) << "GCW" + it.first.substr(2,string::npos);
		else
			*output << setw(16) << it.first;
		for (int j = 0; j < reps; ++j){
			*output << setw(16) << it.second[j];
		}
		*output << endl;
	}

	cout << "###############3" << endl;
	*output << names[1] << endl;
	*output << setw(16) << "#";
	for (int i = 0; i < reps; ++i){
		if (variable == "c")
			*output << setw(16) << eventsArray[i];
		else
			*output << setw(16) << budgetsArray[i];
	}
	*output << endl;

	cout << "###############4" << endl;
	// for (int i = 0; i < algorithms.size(); i += 2){
	for (map <string, vector<double>>::iterator it = data_time_vec.begin(); it != data_time_vec.end(); ++it){
		if (it->first.substr(0,2) == "EG")
			*output << setw(16) << "GCW" + it->first.substr(2,string::npos);
		else
			*output << setw(16) << it->first;
		for (int j = 0; j < reps; ++j){
			*output << setw(16) << it->second[j];
		}
		*output << endl;
	}

	cout << "###############5" << endl;
	*output << names[2] << endl;
	*output << setw(16) << "#";
	for (int i = 0; i < reps; ++i){
		if (variable == "c")
			*output << setw(16) << eventsArray[i];
		else
			*output << setw(16) << budgetsArray[i];
	}
	*output << endl;

	cout << "###############6" << endl;

	// for (int i = 0; i < algorithms.size(); i += 2){
	for (map <string, vector<double>>::iterator it = data_memo_vec.begin(); it != data_memo_vec.end(); ++it){
		if (it->first.substr(0,2) == "EG")
			*output << setw(16) << "GCW" + it->first.substr(2,string::npos);
		else
			*output << setw(16) << it->first;
		for (int j = 0; j < reps; ++j){
			*output << setw(16) << it->second[j];
		}
		*output << endl;
	}
	cout << "###############7" << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %r9d, %ebx
movq %r8, %r13
movq %rcx, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, %rbp
movq %rdi, %r15
leaq 0xd868(%rip), %rsi      # 0x1309c
leaq 0x90(%rsp), %r14
leaq 0x58(%rsp), %rdx
movq %r14, %rdi
callq 0x3130
leaq 0xb0(%rsp), %rdi
leaq 0xd855(%rip), %rsi      # 0x130ad
leaq 0x28(%rsp), %rdx
movq %rdi, 0x20(%rsp)
callq 0x3130
leaq 0xd0(%rsp), %rdi
leaq 0xd83c(%rip), %rsi      # 0x130b2
leaq 0xf8(%rsp), %rdx
callq 0x3130
movq 0x1673e(%rip), %rdi     # 0x1bfc8
leaq 0xd88e(%rip), %rsi      # 0x1311f
callq 0x3360
movq %rax, %rdi
callq 0x3190
leaq 0x90(%rsp), %rsi
movq %r15, %rdi
callq 0x3310
movq %rax, %rdi
callq 0x3190
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
leaq 0xd7ec(%rip), %rsi      # 0x130b9
movq %r15, %rdi
callq 0x3360
xorl %r12d, %r12d
testl %ebx, %ebx
cmovlel %r12d, %ebx
leaq 0xe1e3(%rip), %r14      # 0x13ac8
cmpq %r12, %rbx
je 0x5929
movq %r13, %rdi
movq %r14, %rsi
callq 0x8830
movq (%r15), %rcx
movq -0x18(%rcx), %rcx
movq $0x10, 0x10(%r15,%rcx)
testb %al, %al
movq 0x158(%rsp), %rax
cmovneq 0x150(%rsp), %rax
movl (%rax,%r12,4), %esi
movq %r15, %rdi
callq 0x3580
incq %r12
jmp 0x58e5
movq %r15, %rdi
callq 0x3190
movq 0x16690(%rip), %rdi     # 0x1bfc8
leaq 0xd7f1(%rip), %rsi      # 0x13130
callq 0x3360
movq %rax, %rdi
callq 0x3190
movq %r13, 0x8(%rsp)
movq 0x18(%rbp), %rax
addq $0x8, %rbp
movq %rbp, 0x48(%rsp)
leaq 0x58(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0xf8(%rsp), %rbp
cmpq 0x48(%rsp), %rax
je 0x5a78
movq %rax, 0x50(%rsp)
leaq 0x20(%rax), %rsi
movq %r12, %rdi
callq 0x883e
movq %r13, %rdi
movq %r12, %r14
movq %r12, %rsi
xorl %edx, %edx
pushq $0x2
popq %rcx
callq 0x3380
movq %r13, %rdi
leaq 0xd712(%rip), %rsi      # 0x130bb
callq 0x8830
movl %eax, %r12d
movq %r13, %rdi
callq 0x3160
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
testb %r12b, %r12b
je 0x5a16
movq %rbp, %r12
movq %rbp, %rdi
movq %r14, %rsi
pushq $0x2
popq %rdx
pushq $-0x1
popq %rcx
callq 0x3380
leaq 0x28(%rsp), %r13
movq %r13, %rdi
leaq 0xd6cd(%rip), %rsi      # 0x130be
movq %r12, %rdx
callq 0x8878
movq %r15, %rdi
movq %r13, %rsi
callq 0x3310
movq %r13, %rdi
callq 0x3160
movq %r12, %rdi
callq 0x3160
jmp 0x5a21
movq %r15, %rdi
movq %r14, %rsi
callq 0x3310
xorl %r12d, %r12d
cmpq %r12, %rbx
je 0x5a51
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
movq 0x78(%rsp), %rax
movsd (%rax,%r12,8), %xmm0
movq %r15, %rdi
callq 0x34f0
incq %r12
jmp 0x5a24
movq %r15, %rdi
callq 0x3190
movq %r14, %r12
movq %r14, %rdi
callq 0x889c
movq 0x50(%rsp), %rdi
callq 0x3260
leaq 0x28(%rsp), %r13
jmp 0x5970
movq 0x16549(%rip), %rdi     # 0x1bfc8
leaq 0xd6bb(%rip), %rsi      # 0x13141
callq 0x3360
movq 0x8(%rsp), %rbp
movq %rax, %rdi
callq 0x3190
movq %r15, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x3310
movq %rax, %rdi
callq 0x3190
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
leaq 0xd5f2(%rip), %rsi      # 0x130b9
movq %r15, %rdi
callq 0x3360
xorl %r12d, %r12d
leaq 0xdfef(%rip), %r14      # 0x13ac8
cmpq %r12, %rbx
je 0x5b1d
movq %rbp, %rdi
movq %r14, %rsi
callq 0x8830
movq (%r15), %rcx
movq -0x18(%rcx), %rcx
movq $0x10, 0x10(%r15,%rcx)
testb %al, %al
movq 0x158(%rsp), %rax
cmovneq 0x150(%rsp), %rax
movl (%rax,%r12,4), %esi
movq %r15, %rdi
callq 0x3580
incq %r12
jmp 0x5ad9
movq %r15, %rdi
callq 0x3190
movq 0x1649c(%rip), %rdi     # 0x1bfc8
leaq 0xd61f(%rip), %rsi      # 0x13152
callq 0x3360
movq %rax, %rdi
callq 0x3190
movq 0x18(%rsp), %rax
movq 0x18(%rax), %r14
addq $0x8, %rax
movq %rax, 0x18(%rsp)
leaq 0x58(%rsp), %r12
cmpq 0x18(%rsp), %r14
je 0x5c47
leaq 0x20(%r14), %r13
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
pushq $0x2
popq %rcx
callq 0x3380
movq %r12, %rdi
leaq 0xd53b(%rip), %rsi      # 0x130bb
callq 0x8830
movl %eax, %ebp
movq %r12, %rdi
callq 0x3160
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
testb %bpl, %bpl
je 0x5bf0
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
pushq $0x2
popq %rdx
pushq $-0x1
popq %rcx
callq 0x3380
movq %r12, %rdi
leaq 0xd4fa(%rip), %rsi      # 0x130be
movq %rbp, %rdx
callq 0x8878
movq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x3310
movq %r12, %rdi
callq 0x3160
leaq 0x28(%rsp), %rdi
callq 0x3160
jmp 0x5c00
movq %r15, %rdi
movq %r13, %rsi
callq 0x3310
movq 0x8(%rsp), %rbp
xorl %r13d, %r13d
cmpq %r13, %rbx
je 0x5c2f
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
movq 0x40(%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %r15, %rdi
callq 0x34f0
incq %r13
jmp 0x5c03
movq %r15, %rdi
callq 0x3190
movq %r14, %rdi
callq 0x3260
movq %rax, %r14
jmp 0x5b57
movq 0x1637a(%rip), %rdi     # 0x1bfc8
leaq 0xd50e(%rip), %rsi      # 0x13163
callq 0x3360
movq %rax, %rdi
callq 0x3190
movq %r15, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x3310
movq %rax, %rdi
callq 0x3190
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
leaq 0xd428(%rip), %rsi      # 0x130b9
movq %r15, %rdi
callq 0x3360
xorl %r12d, %r12d
leaq 0xde25(%rip), %r14      # 0x13ac8
cmpq %r12, %rbx
je 0x5ce7
movq %rbp, %rdi
movq %r14, %rsi
callq 0x8830
movq (%r15), %rcx
movq -0x18(%rcx), %rcx
movq $0x10, 0x10(%r15,%rcx)
testb %al, %al
movq 0x158(%rsp), %rax
cmovneq 0x150(%rsp), %rax
movl (%rax,%r12,4), %esi
movq %r15, %rdi
callq 0x3580
incq %r12
jmp 0x5ca3
movq %r15, %rdi
callq 0x3190
movq 0x162d2(%rip), %rdi     # 0x1bfc8
leaq 0xd477(%rip), %rsi      # 0x13174
callq 0x3360
movq %rax, %rdi
callq 0x3190
movq 0x10(%rsp), %rax
movq 0x18(%rax), %r14
addq $0x8, %rax
movq %rax, 0x10(%rsp)
leaq 0x58(%rsp), %r12
leaq 0x28(%rsp), %rbp
cmpq 0x10(%rsp), %r14
je 0x5e10
leaq 0x20(%r14), %r13
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
pushq $0x2
popq %rcx
callq 0x3380
movq %r12, %rdi
leaq 0xd36c(%rip), %rsi      # 0x130bb
callq 0x8830
movq %r12, %rdi
movl %eax, %r12d
callq 0x3160
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
testb %r12b, %r12b
je 0x5db9
movq %rbp, %rdi
movq %r13, %rsi
pushq $0x2
popq %rdx
pushq $-0x1
popq %rcx
callq 0x3380
leaq 0x58(%rsp), %r12
movq %r12, %rdi
leaq 0xd32a(%rip), %rsi      # 0x130be
movq %rbp, %rdx
callq 0x8878
movq %r15, %rdi
movq %r12, %rsi
callq 0x3310
movq %r12, %rdi
callq 0x3160
movq %rbp, %rdi
callq 0x3160
jmp 0x5dc9
movq %r15, %rdi
movq %r13, %rsi
callq 0x3310
leaq 0x58(%rsp), %r12
xorl %r13d, %r13d
cmpq %r13, %rbx
je 0x5df8
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x10, 0x10(%r15,%rax)
movq 0x40(%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %r15, %rdi
callq 0x34f0
incq %r13
jmp 0x5dcc
movq %r15, %rdi
callq 0x3190
movq %r14, %rdi
callq 0x3260
movq %rax, %r14
jmp 0x5d26
movq 0x161b1(%rip), %rdi     # 0x1bfc8
leaq 0xd367(%rip), %rsi      # 0x13185
callq 0x3360
movq %rax, %rdi
callq 0x3190
pushq $0x40
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x90, %rdi
callq 0x3160
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x5e2e
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x5e6f
movq %rax, %rbx
movq 0x20(%rsp), %r15
addq $-0x20, %r15
movq %r15, %rdi
callq 0x3160
cmpq %r14, %r15
jne 0x5e74
jmp 0x5f1b
jmp 0x5eeb
jmp 0x5e92
jmp 0x5ea1
jmp 0x5eeb
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x3160
jmp 0x5ea4
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3160
jmp 0x5efd
jmp 0x5ef0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3160
jmp 0x5ec4
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x3160
jmp 0x5ef3
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5ef0
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5eeb
jmp 0x5ef0
jmp 0x5eeb
movq %rax, %rbx
jmp 0x5efd
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x889c
pushq $0x40
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x90, %rdi
callq 0x3160
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x5f01
movq %rbx, %rdi
callq 0x3590