// File: /workspace/github_cpp_makefile_star2_O1/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, 0x12da2(%rip)     # 0x461b8
je 0x33828
movl %esi, %ebx
movl %esi, %ebp
negl %ebp
cmovsl %esi, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x33479
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x33470
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x33476
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x33479
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3343d
addl $-0x3, %r14d
jmp 0x33479
addl $-0x2, %r14d
jmp 0x33479
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 0x5370
addq (%r15), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xcb5d
leaq 0x1dad(%rip), %rcx      # 0x35266
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5330
leaq 0x38(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x334f2
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x334f8
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 0x33522
callq 0x52a0
leaq 0x268(%rsp), %rdi
callq 0x5570
leaq 0x44e3(%rip), %rsi      # 0x37a19
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x15714
leaq 0x44d4(%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 0x3357d
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x33585
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 0x335c2
callq 0x52a0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x335d5
callq 0x52a0
leaq 0x4449(%rip), %rsi      # 0x37a25
leaq 0x268(%rsp), %rbx
movl $0x11, %edx
movq %rbx, %rdi
callq 0x5350
movq 0x268(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
leaq 0x268(%rsp), %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
leaq 0x12927(%rip), %rax     # 0x45f50
movq 0x50(%rax), %rbp
movq 0x58(%rax), %rbx
cmpq %rbx, %rbp
je 0x336c7
leaq 0x43f6(%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 0xcc1c
movl $0x2, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x5350
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %r15, %rdi
callq 0x5350
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x336be
callq 0x52a0
addq $0x20, %rbp
cmpq %rbx, %rbp
jne 0x33649
movq 0x12aea(%rip), %rdi     # 0x461b8
leaq 0x268(%rsp), %rsi
callq 0x17014
leaq 0x268(%rsp), %rbx
movq %rbx, %rdi
callq 0x5430
leaq 0x68(%rsp), %rdi
callq 0x5570
leaq 0x18(%rsp), %r14
leaq 0x4339(%rip), %rsi      # 0x37a3a
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x15714
leaq 0x421e(%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 0x33744
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x3374b
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 0x33785
callq 0x52a0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33798
callq 0x52a0
movq 0x12a19(%rip), %rdi     # 0x461b8
leaq 0x68(%rsp), %rsi
callq 0x16d2c
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0x5430
movq 0x11803(%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 0x5270
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 0x5270
addq %r13, %rbx
movq %rbx, %rdi
callq 0x5120
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x33828
callq 0x52a0
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 0x33851
callq 0x52a0
jmp 0x33851
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x338ad
callq 0x52a0
jmp 0x338ad
jmp 0x338aa
jmp 0x338bb
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x33881
callq 0x52a0
jmp 0x33881
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x338cd
jmp 0x338d2
jmp 0x338bb
movq %rax, %rbx
jmp 0x338df
movq %rax, %rbx
movq 0x268(%rsp), %rdi
cmpq %r12, %rdi
jne 0x338ee
jmp 0x338f3
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x5628
jmp 0x338d2
jmp 0x338bb
movq %rax, %rbx
jmp 0x338d2
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x338d2
callq 0x52a0
leaq 0x268(%rsp), %rdi
callq 0x5628
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x338f3
callq 0x52a0
movq %rbx, %rdi
callq 0x55a0
nop