// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq 0x40(%rdi), %rsi
leaq 0x110(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x35f0
leaq 0x188(%rsp), %rdi
callq 0x30a0
testb %al, %al
je 0x4ec9
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq 0x110(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %edx
leaq 0x110(%rsp), %r14
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x3600
movq 0x110(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %edx
leaq 0x110(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3600
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xb203
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb203
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
movq 0x18(%rsp), %rdx
subq 0x10(%rsp), %rdx
cmpq %rdx, %rcx
jbe 0x4cf6
cmpq $0x41, %rcx
jb 0x4c27
leaq 0x100(%rsp), %r13
leaq 0x108(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movl $0x2, %r12d
movl $0x48, %r14d
leaq 0xf0(%rsp), %r15
movq %r13, 0xf0(%rsp)
movq -0x8(%rax,%r14), %rsi
movq (%rax,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb732
movq %r15, %rdi
callq 0xb2f9
movl %eax, %ebp
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4bd4
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0x110(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
je 0x4bf7
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x110(%rbx)
jmp 0x4c06
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xcb08
incq %r12
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r12, %rcx
ja 0x4b9c
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
cmpq $0x41, %rcx
jb 0x4e7d
leaq 0xe0(%rsp), %r13
leaq 0xf0(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movl $0x2, %r12d
movl $0x48, %r14d
leaq 0xd0(%rsp), %r15
movq %r13, 0xd0(%rsp)
movq -0x8(%rax,%r14), %rsi
movq (%rax,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb732
movq %r15, %rdi
callq 0xb2f9
movl %eax, %ebp
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4c9e
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0xf8(%rbx), %rsi
cmpq 0x100(%rbx), %rsi
je 0x4cc1
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xf8(%rbx)
jmp 0x4cd0
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xcb08
incq %r12
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r12, %rcx
ja 0x4c66
jmp 0x4e7d
cmpq $0x41, %rcx
jb 0x4db3
leaq 0xc0(%rsp), %r13
leaq 0xf0(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movl $0x2, %r12d
movl $0x48, %r14d
leaq 0xb0(%rsp), %r15
movq %r13, 0xb0(%rsp)
movq -0x8(%rax,%r14), %rsi
movq (%rax,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb732
movq %r15, %rdi
callq 0xb2f9
movl %eax, %ebp
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d60
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0xf8(%rbx), %rsi
cmpq 0x100(%rbx), %rsi
je 0x4d83
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xf8(%rbx)
jmp 0x4d92
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xcb08
incq %r12
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r12, %rcx
ja 0x4d28
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
cmpq $0x41, %rcx
jb 0x4e7d
leaq 0xa0(%rsp), %r13
leaq 0x108(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movl $0x2, %r12d
movl $0x48, %r14d
leaq 0x90(%rsp), %r15
movq %r13, 0x90(%rsp)
movq -0x8(%rax,%r14), %rsi
movq (%rax,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb732
movq %r15, %rdi
callq 0xb2f9
movl %eax, %ebp
movq 0x90(%rsp), %rdi
cmpq %r13, %rdi
je 0x4e2a
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0x110(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
je 0x4e4d
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x110(%rbx)
jmp 0x4e5c
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xcb08
incq %r12
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r12, %rcx
ja 0x4df2
leaq 0x110(%rsp), %rdi
callq 0x3090
leaq 0x10(%rsp), %rdi
callq 0xb404
leaq 0x30(%rsp), %rdi
callq 0xb404
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4eb2
callq 0x32c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4ec9
callq 0x32c0
movq 0xf8(%rbx), %rax
movq 0x110(%rbx), %rcx
subq 0xf0(%rbx), %rax
shrq $0x2, %rax
movl %eax, 0x78(%rbx)
subq 0x108(%rbx), %rcx
shrq $0x2, %rcx
movl %ecx, 0x7c(%rbx)
movq 0x130de(%rip), %rdi     # 0x17fd8
leaq 0xd4da(%rip), %rsi      # 0x123db
movl $0x1a, %edx
callq 0x3340
movl 0x78(%rbx), %esi
movq 0x130c3(%rip), %rdi     # 0x17fd8
callq 0x3580
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq 0x1308d(%rip), %rdi     # 0x17fd8
leaq 0xd4a4(%rip), %rsi      # 0x123f6
movl $0x1b, %edx
callq 0x3340
movl 0x7c(%rbx), %esi
movq 0x13072(%rip), %rdi     # 0x17fd8
callq 0x3580
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
leaq 0x110(%rsp), %rdi
callq 0x30b0
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4fe3
jmp 0x4fe3
jmp 0x4fe3
jmp 0x4fe3
jmp 0x4fe3
movq %rax, %rbx
jmp 0x501e
jmp 0x4fe3
jmp 0x4fe3
movq %rax, %rbx
movq 0x90(%rsp), %rdi
jmp 0x5000
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
jmp 0x5000
jmp 0x4fe3
movq %rax, %rbx
jmp 0x500a
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
jmp 0x5000
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x500a
callq 0x32c0
leaq 0x10(%rsp), %rdi
callq 0xb404
leaq 0x30(%rsp), %rdi
callq 0xb404
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x5032
callq 0x32c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x504e
callq 0x32c0
jmp 0x504e
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x35c0
nop