// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x460, %rsp            # imm = 0x460
cmpq $0x0, 0x1582f(%rip)     # 0x3e1b8
je 0x28b4a
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
callq 0xa0dc
leaq 0x183c(%rip), %rsi      # 0x2a1e2
leaq 0x20(%rsp), %rdi
movq %rbx, %rdx
callq 0x176ad
leaq 0x260(%rsp), %rdi
callq 0x5618
leaq 0x260(%rsp), %rdi
callq 0x5550
leaq 0x3fb1(%rip), %rsi      # 0x2c985
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x119fa
leaq 0x3fa4(%rip), %rdx      # 0x2c98c
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0xa0bd
leaq 0x260(%rsp), %rdi
leaq 0x60(%rsp), %rsi
pushq $0x10
popq %rdx
callq 0x5180
leaq 0x60(%rsp), %rdi
callq 0x5618
movq %rsp, %rdi
callq 0x5618
leaq 0x3f6e(%rip), %rsi      # 0x2c991
leaq 0x260(%rsp), %rdi
callq 0x52c0
movq %rax, %rdi
callq 0x5190
leaq 0x15511(%rip), %rax     # 0x3df50
movq 0x50(%rax), %rbx
movq 0x58(%rax), %r13
leaq 0x60(%rsp), %r14
leaq 0x3f50(%rip), %r15      # 0x2c9a3
leaq 0x260(%rsp), %r12
cmpq %r13, %rbx
je 0x28a97
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5410
movq %r12, %rdi
movq %r15, %rsi
callq 0x52c0
movq %rax, %rdi
movq %r14, %rsi
callq 0x5290
movq %rax, %rdi
callq 0x5190
movq %r14, %rdi
callq 0x5618
addq $0x20, %rbx
jmp 0x28a5b
movq 0x1571a(%rip), %rdi     # 0x3e1b8
leaq 0x260(%rsp), %rsi
callq 0x12a0a
leaq 0x260(%rsp), %rdi
callq 0x5420
leaq 0x60(%rsp), %rdi
callq 0x5550
leaq 0x3edd(%rip), %rsi      # 0x2c9a6
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x119fa
leaq 0x3dc2(%rip), %rdx      # 0x2c8a1
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0xa0bd
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
pushq $0x10
popq %rdx
callq 0x5180
movq %rsp, %rdi
callq 0x5618
leaq 0x40(%rsp), %rdi
callq 0x5618
movq 0x156a3(%rip), %rdi     # 0x3e1b8
leaq 0x60(%rsp), %rsi
callq 0x1288a
leaq 0x60(%rsp), %rdi
callq 0x5420
leaq 0x60(%rsp), %rdi
callq 0x5620
leaq 0x260(%rsp), %rdi
callq 0x5620
leaq 0x20(%rsp), %rdi
callq 0x5618
addq $0x460, %rsp            # imm = 0x460
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5618
jmp 0x28b6b
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x5618
jmp 0x28ba9
jmp 0x28ba6
jmp 0x28bb7
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5618
jmp 0x28b8d
movq %rax, %rbx
movq %rsp, %rdi
jmp 0x28bc4
jmp 0x28bb7
movq %rax, %rbx
jmp 0x28bd6
movq %rax, %rbx
leaq 0x260(%rsp), %rdi
jmp 0x28bdb
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5620
jmp 0x28bc9
jmp 0x28bb7
movq %rax, %rbx
jmp 0x28bc9
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5618
leaq 0x260(%rsp), %rdi
callq 0x5620
leaq 0x20(%rsp), %rdi
callq 0x5618
movq %rbx, %rdi
callq 0x5570