// File: /workspace/github_cpp_makefile_star2_O2/JenTus[P]TCEM/src_TCEM/allocator.cc
// Function: Cide::allocator::readCompareNodes()
void allocator::readCompareNodes() {

        //string probGraphFile = opt->getValue("probGraphFile");
        ifstream myfile (compareFile, ios::in);

        //double *itemProbs; //item-specific influence probabilities

        if (myfile.is_open()) {
            string line1;
            string line2;
            getline(myfile, line1);
            getline(myfile, line2);

            vector<string> nodeids1;
            vector<string> nodeids2;

            split1(line1, nodeids1);
            split1(line2, nodeids2);

            if(nodeids1.size() > nodeids2.size()){
                for (int i = 2; i < nodeids1.size(); ++i) {
                    unsigned int tt = strToInt(nodeids1[i]);
                    compareblue.push_back(tt);
                }
                for (int i = 2; i < nodeids2.size(); ++i) {
                    unsigned int tt = strToInt(nodeids2[i]);
                    comparered.push_back(tt);
                }
            }
            else{
                for (int i = 2; i < nodeids1.size(); ++i) {
                    unsigned int tt = strToInt(nodeids1[i]);
                    comparered.push_back(tt);
                }
                for (int i = 2; i < nodeids2.size(); ++i) {
                    unsigned int tt = strToInt(nodeids2[i]);
                    compareblue.push_back(tt);
                }
            }

            myfile.close();
        }

        k_r = comparered.size();
        k_b = compareblue.size();
        cout << "total number of red nodes " << k_r << endl;
        cout << "total number of blue nodes " << k_b << endl;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rdi, %r14
movq 0x40(%rdi), %rsi
leaq 0x110(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x3580
leaq 0x188(%rsp), %rdi
callq 0x30a0
testb %al, %al
je 0x466c
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x110(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x3080
leaq 0x110(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3080
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x88a0
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x88a0
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
movq %rax, %rcx
subq %rsi, %rcx
movq 0x18(%rsp), %rdx
subq 0x10(%rsp), %rdx
cmpq %rdx, %rcx
movq %r14, 0x8(%rsp)
jbe 0x44ee
addq $0x108, %r14            # imm = 0x108
pushq $0x2
popq %rbx
pushq $0x40
popq %r13
leaq 0xf0(%rsp), %r15
leaq 0x4(%rsp), %r12
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x4558
addq %r13, %rsi
movq %r15, %rdi
callq 0x3410
movq %r15, %rdi
callq 0x8951
movl %eax, %ebp
movq %r15, %rdi
callq 0x3130
movl %ebp, 0x4(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xa632
incq %rbx
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
addq $0x20, %r13
jmp 0x449f
pushq $0x2
popq %r13
pushq $0x40
popq %rbx
addq $0xf0, %r14
leaq 0xb0(%rsp), %r15
leaq 0x4(%rsp), %r12
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x45c7
addq %rbx, %rsi
movq %r15, %rdi
callq 0x3410
movq %r15, %rdi
callq 0x8951
movl %eax, %ebp
movq %r15, %rdi
callq 0x3130
movl %ebp, 0x4(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xa632
incq %r13
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
addq $0x20, %rbx
jmp 0x4509
movq 0x8(%rsp), %rax
leaq 0xf0(%rax), %r14
pushq $0x2
popq %rbx
pushq $0x40
popq %r13
leaq 0xd0(%rsp), %r15
leaq 0x4(%rsp), %r12
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x4632
addq %r13, %rsi
movq %r15, %rdi
callq 0x3410
movq %r15, %rdi
callq 0x8951
movl %eax, %ebp
movq %r15, %rdi
callq 0x3130
movl %ebp, 0x4(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xa632
incq %rbx
addq $0x20, %r13
jmp 0x4578
movq 0x8(%rsp), %rax
leaq 0x108(%rax), %r14
pushq $0x2
popq %rbx
pushq $0x40
popq %r13
leaq 0x90(%rsp), %r15
leaq 0x4(%rsp), %r12
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x4632
addq %r13, %rsi
movq %r15, %rdi
callq 0x3410
movq %r15, %rdi
callq 0x8951
movl %eax, %ebp
movq %r15, %rdi
callq 0x3130
movl %ebp, 0x4(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0xa632
incq %rbx
addq $0x20, %r13
jmp 0x45e7
leaq 0x110(%rsp), %rdi
callq 0x3090
movq 0x8(%rsp), %r14
leaq 0x10(%rsp), %rdi
callq 0x89fe
leaq 0x30(%rsp), %rdi
callq 0x89fe
leaq 0x50(%rsp), %rdi
callq 0x3130
leaq 0x70(%rsp), %rdi
callq 0x3130
movq 0xf8(%r14), %rax
movq 0x110(%r14), %rcx
subq 0xf0(%r14), %rax
shrq $0x2, %rax
movl %eax, 0x78(%r14)
subq 0x108(%r14), %rcx
shrq $0x2, %rcx
movl %ecx, 0x7c(%r14)
movq 0x10939(%rip), %rdi     # 0x14fd8
leaq 0x9d05(%rip), %rsi      # 0xe3ab
callq 0x32c0
movl 0x78(%r14), %esi
movq %rax, %rdi
callq 0x3530
movq %rax, %rdi
callq 0x3150
movq 0x10912(%rip), %rdi     # 0x14fd8
leaq 0x9cf9(%rip), %rsi      # 0xe3c6
callq 0x32c0
movl 0x7c(%r14), %esi
movq %rax, %rdi
callq 0x3530
movq %rax, %rdi
callq 0x3150
leaq 0x110(%rsp), %rdi
callq 0x30c0
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x476f
jmp 0x4758
movq %rax, %rbx
jmp 0x4783
jmp 0x4758
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
jmp 0x474f
jmp 0x4758
jmp 0x4758
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
jmp 0x474f
jmp 0x4758
jmp 0x4758
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
jmp 0x474f
jmp 0x4758
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x3130
jmp 0x475b
jmp 0x4758
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x89fe
leaq 0x30(%rsp), %rdi
callq 0x89fe
leaq 0x50(%rsp), %rdi
callq 0x3130
leaq 0x70(%rsp), %rdi
callq 0x3130
leaq 0x110(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x3560