// File: /workspace/github_cpp_makefile_star2_O3/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 0x4eb2
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 0xb1a5
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb1a5
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rsi
subq %rcx, %rsi
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
cmpq %rdx, %rsi
jbe 0x4cdf
cmpq $0x41, %rsi
jb 0x4c1d
leaq 0x100(%rsp), %r13
leaq 0x108(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x2, %r12d
movl $0x48, %r14d
leaq 0xf0(%rsp), %r15
movq %r13, 0xf0(%rsp)
movq -0x8(%rcx,%r14), %rsi
movq (%rcx,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb6e0
movq %r15, %rdi
callq 0xb29b
movl %eax, %ebp
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4bbd
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0x110(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
je 0x4be0
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x110(%rbx)
jmp 0x4bef
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xca6a
incq %r12
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
subq %rcx, %rax
sarq $0x5, %rax
addq $0x20, %r14
cmpq %r12, %rax
ja 0x4b85
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
cmpq $0x41, %rdx
jb 0x4e66
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 0xb6e0
movq %r15, %rdi
callq 0xb29b
movl %eax, %ebp
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4c87
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0xf8(%rbx), %rsi
cmpq 0x100(%rbx), %rsi
je 0x4caa
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xf8(%rbx)
jmp 0x4cb9
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xca6a
incq %r12
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r12, %rcx
ja 0x4c4f
jmp 0x4e66
cmpq $0x41, %rsi
jb 0x4da9
leaq 0xc0(%rsp), %r13
leaq 0xf0(%rbx), %rax
movq %rax, 0x8(%rsp)
movl $0x2, %r12d
movl $0x48, %r14d
leaq 0xb0(%rsp), %r15
movq %r13, 0xb0(%rsp)
movq -0x8(%rcx,%r14), %rsi
movq (%rcx,%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xb6e0
movq %r15, %rdi
callq 0xb29b
movl %eax, %ebp
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d49
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0xf8(%rbx), %rsi
cmpq 0x100(%rbx), %rsi
je 0x4d6c
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xf8(%rbx)
jmp 0x4d7b
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xca6a
incq %r12
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
subq %rcx, %rax
sarq $0x5, %rax
addq $0x20, %r14
cmpq %r12, %rax
ja 0x4d11
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdx
subq %rax, %rdx
cmpq $0x41, %rdx
jb 0x4e66
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 0xb6e0
movq %r15, %rdi
callq 0xb29b
movl %eax, %ebp
movq 0x90(%rsp), %rdi
cmpq %r13, %rdi
je 0x4e13
callq 0x32c0
movl %ebp, 0x4(%rsp)
movq 0x110(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
je 0x4e36
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x110(%rbx)
jmp 0x4e45
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0xca6a
incq %r12
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r14
cmpq %r12, %rcx
ja 0x4ddb
leaq 0x110(%rsp), %rdi
callq 0x3090
leaq 0x10(%rsp), %rdi
callq 0xb3a6
leaq 0x30(%rsp), %rdi
callq 0xb3a6
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4e9b
callq 0x32c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4eb2
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 0x130f5(%rip), %rdi     # 0x17fd8
leaq 0xd4e9(%rip), %rsi      # 0x123d3
movl $0x1a, %edx
callq 0x3340
movl 0x78(%rbx), %esi
movq 0x130da(%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 0x130a4(%rip), %rdi     # 0x17fd8
leaq 0xd4b3(%rip), %rsi      # 0x123ee
movl $0x1b, %edx
callq 0x3340
movl 0x7c(%rbx), %esi
movq 0x13089(%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 0x4fcc
jmp 0x4fcc
jmp 0x4fcc
jmp 0x4fcc
jmp 0x4fcc
movq %rax, %rbx
jmp 0x5007
jmp 0x4fcc
jmp 0x4fcc
movq %rax, %rbx
movq 0x90(%rsp), %rdi
jmp 0x4fe9
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
jmp 0x4fe9
jmp 0x4fcc
movq %rax, %rbx
jmp 0x4ff3
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
jmp 0x4fe9
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ff3
callq 0x32c0
leaq 0x10(%rsp), %rdi
callq 0xb3a6
leaq 0x30(%rsp), %rdi
callq 0xb3a6
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x501b
callq 0x32c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x5037
callq 0x32c0
jmp 0x5037
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x35c0