// File: /workspace/github_cpp_makefile_star2_O3/gvaumour[P]cache-simulator/src/main.cc
// Function: printResults(bool, int)
void printResults(bool mergingResults, int id_trace)
{
	if(!my_system)
		return;
		
		
	string suffixe = "_" + to_string(id_trace); 
	
	ofstream configFile;
	configFile.open("config" + suffixe + ".ini");
	
	configFile << "Simulated traces:" << endl;
	for(auto p : simu_parameters.memory_traces)
		configFile << "\t-" << p << endl;
 	
	my_system->printConfig(configFile);
	configFile.close();
	
	ofstream output_file;
	output_file.open("results"+ suffixe + ".out");
	my_system->printResults(output_file);
	output_file.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x468, %rsp            # imm = 0x468
cmpq $0x0, 0x132ab(%rip)     # 0x461b8
je 0x3331f
movl %esi, %ebx
movl %esi, %ebp
negl %ebp
cmovsl %esi, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x32f70
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x32f67
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x32f6d
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x32f70
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x32f34
addl $-0x3, %r14d
jmp 0x32f70
addl $-0x2, %r14d
jmp 0x32f70
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x278(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x268(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x5380
addq (%r15), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xcb17
leaq 0x2286(%rip), %rcx      # 0x35236
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5340
leaq 0x38(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x32fe9
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x32fef
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x268(%rsp), %rdi
cmpq %r12, %rdi
je 0x33019
callq 0x52b0
leaq 0x268(%rsp), %rdi
callq 0x5570
leaq 0x49ec(%rip), %rsi      # 0x37a19
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x15588
leaq 0x49dd(%rip), %rsi      # 0x37a20
leaq 0x8(%rsp), %rdi
callq 0x55f0
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x33074
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x3307c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x268(%rsp), %rdi
movl $0x10, %edx
callq 0x5170
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x330b9
callq 0x52b0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x330cc
callq 0x52b0
leaq 0x4952(%rip), %rsi      # 0x37a25
leaq 0x268(%rsp), %rbx
movl $0x11, %edx
movq %rbx, %rdi
callq 0x5360
movq 0x268(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
leaq 0x268(%rsp), %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
leaq 0x12e30(%rip), %rax     # 0x45f50
movq 0x50(%rax), %rbp
movq 0x58(%rax), %rbx
cmpq %rbx, %rbp
je 0x331be
leaq 0x48ff(%rip), %r14      # 0x37a37
leaq 0x268(%rsp), %r15
movq %r13, 0x68(%rsp)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xcbd6
movl $0x2, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x5360
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %r15, %rdi
callq 0x5360
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x331b5
callq 0x52b0
addq $0x20, %rbp
cmpq %rbx, %rbp
jne 0x33140
movq 0x12ff3(%rip), %rdi     # 0x461b8
leaq 0x268(%rsp), %rsi
callq 0x16d60
leaq 0x268(%rsp), %rbx
movq %rbx, %rdi
callq 0x5430
leaq 0x68(%rsp), %rdi
callq 0x5570
leaq 0x18(%rsp), %r14
leaq 0x4842(%rip), %rsi      # 0x37a3a
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x15588
leaq 0x4727(%rip), %rsi      # 0x37935
leaq 0x48(%rsp), %rdi
callq 0x55f0
movq %r14, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3323b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x33242
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x68(%rsp), %rdi
movl $0x10, %edx
callq 0x5170
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x3327c
callq 0x52b0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3328f
callq 0x52b0
movq 0x12f22(%rip), %rdi     # 0x461b8
leaq 0x68(%rsp), %rsi
callq 0x16a78
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0x5430
movq 0x11d0c(%rip), %rax     # 0x44fc0
movq (%rax), %r15
movq 0x18(%rax), %r12
leaq 0x70(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x68(%rsp,%rax)
callq 0x5280
movl $0xf8, %r13d
addq %r13, %r14
movq %r14, %rdi
callq 0x5120
leaq 0x270(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x268(%rsp,%rax)
callq 0x5280
addq %r13, %rbx
movq %rbx, %rdi
callq 0x5120
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3331f
callq 0x52b0
addq $0x468, %rsp            # imm = 0x468
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x33348
callq 0x52b0
jmp 0x33348
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x333a4
callq 0x52b0
jmp 0x333a4
jmp 0x333a1
jmp 0x333b2
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x33378
callq 0x52b0
jmp 0x33378
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x333c4
jmp 0x333c9
jmp 0x333b2
movq %rax, %rbx
jmp 0x333d6
movq %rax, %rbx
movq 0x268(%rsp), %rdi
cmpq %r12, %rdi
jne 0x333e5
jmp 0x333ea
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x5628
jmp 0x333c9
jmp 0x333b2
movq %rax, %rbx
jmp 0x333c9
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x333c9
callq 0x52b0
leaq 0x268(%rsp), %rdi
callq 0x5628
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x333ea
callq 0x52b0
movq %rbx, %rdi
callq 0x55a0