// File: /workspace/github_cpp_makefile_star2_O3/JenTus[P]TCEM/src_TCEM/allocator.cc
// Function: Cide::allocator::arrangeOutputFiles()
void allocator::arrangeOutputFiles() {
        
       string command = string("mkdir -p ") + outFolderName ;
        
       system(command.c_str());

        std::size_t pos = probGraphFile.find("/");
        std::size_t end = probGraphFile.find(".txt");

        string masterFileName = probGraphFile.substr(pos+1, end-pos-1) + "+" + to_string(k_r) + "+" + to_string(k_b) + ".txt";

        outMasterName = outFolderName + OS_SEP + masterFileName;
//        outMasterName = masterFileName;
        
        if(outMasterStream.is_open())
            outMasterStream.close();
        
        outMasterStream.open(outMasterName.c_str());
        
        outMasterStream << "n" << " " << "m" << " " << "redNodes" << " " << "blueNodes" << " "<< endl;
        outMasterStream << n << " " << m << " " << k_r << " " << k_b << " " << endl;
        outMasterStream << "Algorithm" << " " << "Time" << " " << "Memory(MB)" << " " << "score" << endl;
        
        if (!outMasterStream.is_open()) {
            cout << "Can't open file " << outMasterName  << " for writing" << endl;
            exit(1);
        }
        
        // memory icin
        command = string("mkdir -p temp") ;
        system(command.c_str());
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xcd2b(%rip), %rsi      # 0x12463
leaq 0xcd2d(%rip), %rdx      # 0x1246c
leaq 0x48(%rsp), %rdi
callq 0xb3fa
movq 0xd98(%rbx), %rsi
movq 0xda0(%rbx), %rdx
leaq 0x48(%rsp), %rdi
callq 0x30d0
leaq 0xd8(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5791
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x5797
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x57c1
callq 0x32c0
movq 0xc8(%rsp), %rdi
callq 0x3270
leaq 0x20(%rbx), %r14
leaq 0xcc94(%rip), %rsi      # 0x1246d
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x35a0
movq %rax, %r15
leaq 0xcc7d(%rip), %rsi      # 0x1246f
movl $0x4, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x35a0
leaq 0x1(%r15), %rdx
notq %r15
addq %rax, %r15
leaq 0x108(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x3300
leaq 0xcc4f(%rip), %rsi      # 0x12474
leaq 0x108(%rsp), %rdi
callq 0x3620
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x585a
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x5862
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x78(%rbx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x58db
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x58d2
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x58d8
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x58db
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x589f
addl $-0x3, %r15d
jmp 0x58db
addl $-0x2, %r15d
jmp 0x58db
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x88(%rsp), %rdi
movl $0x2d, %edx
callq 0x3360
addq 0x88(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0xb672
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x593b
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x595f
movl $0xf, %edi
cmpq %r13, %rsi
je 0x595a
movq 0x98(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x596b
leaq 0x68(%rsp), %rdi
callq 0x30d0
jmp 0x597c
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3320
leaq 0xb8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x59a9
movq %rsi, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x59af
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xb0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xca9e(%rip), %rsi      # 0x12474
leaq 0xa8(%rsp), %rdi
callq 0x3620
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5a0a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x5a12
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x7c(%rbx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x5a8b
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x5a82
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x5a88
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x5a8b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x5a4f
addl $-0x3, %r15d
jmp 0x5a8b
addl $-0x2, %r15d
jmp 0x5a8b
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xe8(%rsp), %rdi
movl $0x2d, %edx
callq 0x3360
addq 0xe8(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0xb672
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0xf0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x5aec
movq 0x38(%rsp), %rdi
movq 0xe8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x5b10
movl $0xf, %edi
cmpq %r12, %rsi
je 0x5b0b
movq 0xf8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5b1c
leaq 0x28(%rsp), %rdi
callq 0x30d0
jmp 0x5b2d
leaq 0xe8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3320
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x5b51
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5b57
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xc8f4(%rip), %rsi      # 0x1246f
leaq 0x8(%rsp), %rdi
callq 0x3620
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5bad
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x5bb3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x5bde
callq 0x32c0
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5bf0
callq 0x32c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x78(%rsp), %r14
je 0x5c04
callq 0x32c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c1a
callq 0x32c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x5c34
callq 0x32c0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x5c43
callq 0x32c0
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c59
callq 0x32c0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
movq 0xd98(%rbx), %rsi
movq 0xda0(%rbx), %rdx
addq %rsi, %rdx
callq 0xb6e0
leaq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rsi
movl $0x1, %ecx
xorl %edx, %edx
movl $0x2f, %r8d
callq 0x3610
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x30d0
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5cc9
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5cd0
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xdb8(%rbx), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x33b0
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0x5d0b
callq 0x32c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d1a
callq 0x32c0
leaq 0xb98(%rbx), %r15
leaq 0xc08(%rbx), %r14
movq %r14, %rdi
callq 0x30a0
testb %al, %al
leaq 0x58(%rsp), %r13
je 0x5d41
movq %r15, %rdi
callq 0x3440
movq (%r12), %rsi
movq %r15, %rdi
movl $0x10, %edx
callq 0x3040
leaq 0xc35b(%rip), %rsi      # 0x120b4
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc502(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc478(%rip), %rsi      # 0x121f9
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc4da(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc6cd(%rip), %rsi      # 0x12476
movl $0x8, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc4b2(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc6ae(%rip), %rsi      # 0x1247f
movl $0x9, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc48a(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movl 0x68(%rbx), %esi
movq %r15, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc441(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movl 0x6c(%rbx), %esi
movq %r12, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc41f(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movl 0x78(%rbx), %esi
movq %r12, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc3fd(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movl 0x7c(%rbx), %esi
movq %r12, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc3db(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
leaq 0xc5b9(%rip), %rsi      # 0x12489
movl $0x9, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc38b(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc59b(%rip), %rsi      # 0x12493
movl $0x4, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc363(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc578(%rip), %rsi      # 0x12498
movl $0xa, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc33b(%rip), %rsi      # 0x1226f
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc55b(%rip), %rsi      # 0x124a3
movl $0x5, %edx
movq %r15, %rdi
callq 0x3340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq %r14, %rdi
callq 0x30a0
testb %al, %al
je 0x6011
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0xc52c(%rip), %rsi      # 0x124c7
leaq 0xc532(%rip), %rdx      # 0x124d4
callq 0xb3fa
leaq 0xc8(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x33b0
movq (%rbx), %rdi
cmpq %rbp, %rdi
je 0x5fc9
callq 0x32c0
movq 0xc8(%rsp), %rdi
callq 0x3270
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x5fe5
callq 0x32c0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x5fff
callq 0x32c0
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x11fc0(%rip), %rdi     # 0x17fd8
leaq 0xc48a(%rip), %rsi      # 0x124a9
movl $0x10, %edx
callq 0x3340
movq 0xdb8(%rbx), %rsi
movq 0xdc0(%rbx), %rdx
movq 0x11f9a(%rip), %rdi     # 0x17fd8
callq 0x3340
movq %rax, %rbx
leaq 0xc46d(%rip), %rsi      # 0x124ba
movl $0xc, %edx
movq %rax, %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x3150
movl $0x1, %edi
callq 0x3390
jmp 0x6155
jmp 0x6073
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x6158
callq 0x32c0
jmp 0x6158
jmp 0x6155
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60ae
callq 0x32c0
jmp 0x60ae
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x60c5
callq 0x32c0
jmp 0x60c5
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x60d9
callq 0x32c0
jmp 0x60d9
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60f4
callq 0x32c0
jmp 0x60f4
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6113
callq 0x32c0
jmp 0x6113
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x612c
callq 0x32c0
jmp 0x612c
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x6162
jmp 0x613c
movq %rax, %rbx
jmp 0x616c
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
jne 0x6181
jmp 0x6186
movq %rax, %rbx
jmp 0x6186
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x616c
callq 0x32c0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x6186
callq 0x32c0
movq %rbx, %rdi
callq 0x35c0