// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
leaq 0x990d(%rip), %rsi      # 0xe43b
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x3100
leaq 0xd98(%rbx), %r14
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movq %r14, %rdx
callq 0x8a1f
leaq 0x48(%rsp), %rdi
callq 0x3130
movq 0x68(%rsp), %rdi
callq 0x3240
leaq 0x20(%rbx), %r15
leaq 0x98d0(%rip), %rsi      # 0xe445
movq %r15, %rdi
xorl %edx, %edx
callq 0x35d0
movq %rax, %r12
leaq 0x98be(%rip), %rsi      # 0xe447
movq %r15, %rdi
xorl %edx, %edx
callq 0x35d0
leaq 0x1(%r12), %rdx
notq %r12
addq %rax, %r12
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rcx
callq 0x32e0
leaq 0x9894(%rip), %rdx      # 0xe44c
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x8a3e
movl 0x78(%rbx), %esi
leaq 0xa8(%rsp), %rdi
callq 0x8ac4
leaq 0x108(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x8a5d
leaq 0x984b(%rip), %rdx      # 0xe44c
leaq 0x8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x8a3e
movl 0x7c(%rbx), %esi
leaq 0x88(%rsp), %rdi
callq 0x8ac4
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x8a5d
leaq 0x9806(%rip), %rdx      # 0xe447
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x8a3e
leaq 0x28(%rsp), %rdi
callq 0x3130
leaq 0x88(%rsp), %rdi
callq 0x3130
leaq 0x8(%rsp), %rdi
callq 0x3130
leaq 0x108(%rsp), %rdi
callq 0x3130
leaq 0xa8(%rsp), %rdi
callq 0x3130
leaq 0xe8(%rsp), %rdi
callq 0x3130
leaq 0xc8(%rsp), %rdi
callq 0x3130
leaq 0x8(%rsp), %rdi
pushq $0x2f
popq %rdx
movq %r14, %rsi
callq 0x8b1d
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x8a1f
leaq 0xdb8(%rbx), %r14
leaq 0x28(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3380
movq %r15, %rdi
callq 0x3130
leaq 0x8(%rsp), %rdi
callq 0x3130
leaq 0xb98(%rbx), %r12
leaq 0xc08(%rbx), %r15
movq %r15, %rdi
callq 0x30a0
testb %al, %al
je 0x4d14
movq %r12, %rdi
callq 0x3430
movq (%r14), %rsi
pushq $0x10
popq %rdx
movq %r12, %rdi
callq 0x3030
leaq 0x938b(%rip), %rsi      # 0xe0b4
movq %r12, %rdi
callq 0x32c0
leaq 0x950f(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
leaq 0x948a(%rip), %rsi      # 0xe1d1
movq %rax, %rdi
callq 0x32c0
leaq 0x94f1(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
leaq 0x96e9(%rip), %rsi      # 0xe44e
movq %rax, %rdi
callq 0x32c0
leaq 0x94d3(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
leaq 0x96d4(%rip), %rsi      # 0xe457
movq %rax, %rdi
callq 0x32c0
leaq 0x94b5(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3150
movl 0x68(%rbx), %esi
movq %r12, %rdi
callq 0x3530
leaq 0x9493(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
movl 0x6c(%rbx), %esi
movq %rax, %rdi
callq 0x3530
leaq 0x9479(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
movl 0x78(%rbx), %esi
movq %rax, %rdi
callq 0x3530
leaq 0x945f(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
movl 0x7c(%rbx), %esi
movq %rax, %rdi
callq 0x3530
leaq 0x9445(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3150
leaq 0x9648(%rip), %rsi      # 0xe461
movq %r12, %rdi
callq 0x32c0
leaq 0x941f(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
leaq 0x9634(%rip), %rsi      # 0xe46b
movq %rax, %rdi
callq 0x32c0
leaq 0x9401(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
leaq 0x961b(%rip), %rsi      # 0xe470
movq %rax, %rdi
callq 0x32c0
leaq 0x93e3(%rip), %rsi      # 0xe247
movq %rax, %rdi
callq 0x32c0
leaq 0x9608(%rip), %rsi      # 0xe47b
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3150
movq %r15, %rdi
callq 0x30a0
testb %al, %al
je 0x4eed
leaq 0x9609(%rip), %rsi      # 0xe49f
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x3100
leaq 0x68(%rsp), %rbx
leaq 0x28(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3380
movq %r14, %rdi
callq 0x3130
movq (%rbx), %rdi
callq 0x3240
leaq 0x48(%rsp), %rdi
callq 0x3130
leaq 0x68(%rsp), %rdi
callq 0x3130
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x100e4(%rip), %rdi     # 0x14fd8
leaq 0x9586(%rip), %rsi      # 0xe481
callq 0x32c0
movq %rax, %rdi
movq %r14, %rsi
callq 0x3260
leaq 0x9580(%rip), %rsi      # 0xe492
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3150
pushq $0x1
popq %rdi
callq 0x3360
jmp 0x4fcf
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3130
jmp 0x4fd2
jmp 0x4fcf
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3130
jmp 0x4f58
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x3130
jmp 0x4f6a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3130
jmp 0x4f79
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x3130
jmp 0x4f8b
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x3130
leaq 0xe8(%rsp), %rdi
callq 0x3130
leaq 0xc8(%rsp), %rdi
jmp 0x4fd7
movq %rax, %rbx
jmp 0x4f98
movq %rax, %rbx
jmp 0x4fa5
jmp 0x4fbb
movq %rax, %rbx
jmp 0x4fdc
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x4fe1
movq %rax, %rbx
jmp 0x4fe6
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3130
leaq 0x68(%rsp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3560