// File: /workspace/github_cpp_makefile_star2_O1/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 0xcd13(%rip), %rsi      # 0x1246b
leaq 0xcd15(%rip), %rdx      # 0x12474
leaq 0x48(%rsp), %rdi
callq 0xb452
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 0x57b1
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x57b7
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 0x57e1
callq 0x32c0
movq 0xc8(%rsp), %rdi
callq 0x3270
leaq 0x20(%rbx), %r14
leaq 0xcc7c(%rip), %rsi      # 0x12475
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x35a0
movq %rax, %r15
leaq 0xcc65(%rip), %rsi      # 0x12477
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 0xcc37(%rip), %rsi      # 0x1247c
leaq 0x108(%rsp), %rdi
callq 0x3620
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5883
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x588b
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x90(%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 0x5907
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x58fe
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x5904
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x5907
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x58cb
addl $-0x3, %r15d
jmp 0x5907
addl $-0x2, %r15d
jmp 0x5907
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x68(%rsp), %rdi
movl $0x2d, %edx
callq 0x3360
addq 0x68(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0xb6c4
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x5964
movq 0x98(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x597f
movl $0xf, %esi
cmpq %r13, 0x68(%rsp)
je 0x597a
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x5993
movq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x30d0
jmp 0x59a1
leaq 0x68(%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 0x59ce
movq %rsi, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x59d4
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 0xca81(%rip), %rsi      # 0x1247c
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 0x5a2f
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x5a37
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 0x5ab0
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x5aa7
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x5aad
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x5ab0
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x5a74
addl $-0x3, %r15d
jmp 0x5ab0
addl $-0x2, %r15d
jmp 0x5ab0
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 0xb6c4
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0xf0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x5b11
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x5b32
movl $0xf, %esi
cmpq %r12, 0xe8(%rsp)
je 0x5b2d
movq 0xf8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x5b46
movq 0xe8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x30d0
jmp 0x5b57
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 0x5b7b
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5b81
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 0xc8d2(%rip), %rsi      # 0x12477
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 0x5bd7
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x5bdd
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 0x5c08
callq 0x32c0
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c1a
callq 0x32c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x98(%rsp), %r14
je 0x5c31
callq 0x32c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c47
callq 0x32c0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5c5b
callq 0x32c0
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x5c6d
callq 0x32c0
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c83
callq 0x32c0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
movq 0xd98(%rbx), %rsi
movq 0xda0(%rbx), %rdx
addq %rsi, %rdx
callq 0xb732
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 0x5cf3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x5cfa
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 0x5d35
callq 0x32c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d44
callq 0x32c0
leaq 0xb98(%rbx), %r15
leaq 0xc08(%rbx), %r14
movq %r14, %rdi
callq 0x30a0
testb %al, %al
leaq 0x58(%rsp), %r13
je 0x5d6b
movq %r15, %rdi
callq 0x3440
movq (%r12), %rsi
movq %r15, %rdi
movl $0x10, %edx
callq 0x3040
leaq 0xc331(%rip), %rsi      # 0x120b4
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc4e0(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc456(%rip), %rsi      # 0x12201
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc4b8(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc6ab(%rip), %rsi      # 0x1247e
movl $0x8, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc490(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc68c(%rip), %rsi      # 0x12487
movl $0x9, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc468(%rip), %rsi      # 0x12277
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 0xc41f(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movl 0x6c(%rbx), %esi
movq %r12, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc3fd(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movl 0x78(%rbx), %esi
movq %r12, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc3db(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movl 0x7c(%rbx), %esi
movq %r12, %rdi
callq 0x3580
movq %rax, %r12
leaq 0xc3b9(%rip), %rsi      # 0x12277
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 0xc597(%rip), %rsi      # 0x12491
movl $0x9, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc369(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc579(%rip), %rsi      # 0x1249b
movl $0x4, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc341(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc556(%rip), %rsi      # 0x124a0
movl $0xa, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc319(%rip), %rsi      # 0x12277
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
leaq 0xc539(%rip), %rsi      # 0x124ab
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 0x603b
leaq 0x8(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0xc50a(%rip), %rsi      # 0x124cf
leaq 0xc510(%rip), %rdx      # 0x124dc
callq 0xb452
leaq 0xc8(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x33b0
movq (%rbx), %rdi
cmpq %rbp, %rdi
je 0x5ff3
callq 0x32c0
movq 0xc8(%rsp), %rdi
callq 0x3270
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x600f
callq 0x32c0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x6029
callq 0x32c0
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x11f96(%rip), %rdi     # 0x17fd8
leaq 0xc468(%rip), %rsi      # 0x124b1
movl $0x10, %edx
callq 0x3340
movq 0xdb8(%rbx), %rsi
movq 0xdc0(%rbx), %rdx
movq 0x11f70(%rip), %rdi     # 0x17fd8
callq 0x3340
movq %rax, %rbx
leaq 0xc44b(%rip), %rsi      # 0x124c2
movl $0xc, %edx
movq %rax, %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x3150
movl $0x1, %edi
callq 0x3390
jmp 0x617f
jmp 0x609d
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x6182
callq 0x32c0
jmp 0x6182
jmp 0x617f
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60d8
callq 0x32c0
jmp 0x60d8
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x60ef
callq 0x32c0
jmp 0x60ef
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x6103
callq 0x32c0
jmp 0x6103
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x611e
callq 0x32c0
jmp 0x611e
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6137
callq 0x32c0
jmp 0x6137
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6156
callq 0x32c0
jmp 0x6156
movq %rax, %rbx
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x618c
jmp 0x6166
movq %rax, %rbx
jmp 0x6196
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
jne 0x61ab
jmp 0x61b0
movq %rax, %rbx
jmp 0x61b0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6196
callq 0x32c0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x61b0
callq 0x32c0
movq %rbx, %rdi
callq 0x35c0