// File: /workspace/github_cpp_makefile_star2_O1/dtsaras[P]GCW/rwgraph.cpp
// Function: Graph::BFS_IC(int, float**)
void Graph::BFS_IC(int p, float** APc){
    queue<int> myqueue;
    vector<bool> visited(getSize() + 1,false);
    for (int seed : seedSets[p]){
        myqueue.push(seed);
        APc[p][seed] += 1;
        visited[seed] = true;
    }
    // (u) ---> (v)
    int u; //current node
    int v; //current node's friend
    while (!myqueue.empty()){
        u = myqueue.front();
        myqueue.pop();
        for (int i = 0; i < node_deg[u]; ++i){
            v = adjList[u][i];
            if (!visited[v] and sfmt_genrand_real1(&sfmtSeed) <= get_AP_IC(u, v, i, p)){
            // if (!visited[v] and sfmt_genrand_real1(&sfmtSeed) < probabilities[u][i] * similarities[v][p]){
                myqueue.push(v);
                APc[p][v] += 1;
                visited[v] = true;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, 0x38(%rsp)
movl %esi, %r15d
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x143d0
movslq 0x9c8(%r14), %rsi
incq %rsi
movq %rsp, %rdx
movb $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0xa54e
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
movq 0xad0(%r14), %rax
movslq %r15d, %rcx
movq %rcx, 0x8(%rsp)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rbx
addq $0x8, %rbx
movq 0x10(%rbx), %r15
cmpq %rbx, %r15
je 0x10995
movq %rsp, %r12
leaq 0x3f(%rbp), %r13
movl 0x20(%r15), %ecx
movl %ecx, (%rsp)
movq 0x70(%rsp), %rax
movq 0x80(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rax
je 0x1091c
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x70(%rsp)
jmp 0x10929
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x14538
movq 0x38(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq (%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
addss 0x7774(%rip), %xmm0     # 0x180bc
movss %xmm0, (%rax,%rcx,4)
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x10(%rsp), %rax
movq %rcx, %rdx
andq %r13, %rdx
xorl %esi, %esi
cmpq %rbp, %rdx
setbe %sil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rsi,8)
movq %r15, %rdi
callq 0x33c0
movq %rax, %r15
cmpq %rbx, %rax
jne 0x108f2
movq 0x50(%rsp), %rax
cmpq %rax, 0x70(%rsp)
je 0x10b97
leaq 0x3f(%rbp), %r15
movslq (%rax), %r12
movq 0x60(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x109c0
addq $0x4, %rax
jmp 0x109ed
movq 0x58(%rsp), %rdi
callq 0x3340
movq 0x68(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x68(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x60(%rsp)
movq %rax, 0x50(%rsp)
movq 0xa20(%r14), %rax
cmpl $0x0, (%rax,%r12,4)
jle 0x10b87
leaq (%r12,%r12,2), %rbx
xorl %r13d, %r13d
movq 0x9d8(%r14), %rax
movq (%rax,%rbx,8), %rax
movslq (%rax,%r13,4), %rax
movl %eax, (%rsp)
leaq 0x3f(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x6, %rcx
shlq $0x3, %rcx
addq 0x10(%rsp), %rcx
movq %rax, %rdx
andq %r15, %rdx
xorl %esi, %esi
cmpq %rbp, %rdx
setbe %sil
movq -0x8(%rcx,%rsi,8), %rcx
btq %rax, %rcx
jb 0x10b70
cmpl $0x270, 0x9c0(%r14) # imm = 0x270
jl 0x10a73
movq %r14, %rdi
callq 0x16314
movl $0x0, 0x9c0(%r14)
movslq 0x9c0(%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x9c0(%r14)
movl (%r14,%rax,4), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x7c88(%rip), %xmm0     # 0x18720
movl (%rsp), %eax
movq 0x9f0(%r14), %rcx
movq (%rcx,%rbx,8), %rcx
movss (%rcx,%r13,4), %xmm1
cmpb $0x1, 0xb20(%r14)
jne 0x10ada
movslq %eax, %rcx
movq 0xae0(%r14), %rdx
leaq (%rcx,%rcx,2), %rcx
movq (%rdx,%rcx,8), %rcx
cvtss2sd %xmm1, %xmm1
movq 0x8(%rsp), %rdx
mulsd (%rcx,%rdx,8), %xmm1
cvtsd2ss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x10b70
movq 0x70(%rsp), %rcx
movq 0x80(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x10b0b
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x70(%rsp)
jmp 0x10b18
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x14538
movq 0x38(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq (%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
addss 0x7585(%rip), %xmm0     # 0x180bc
movss %xmm0, (%rax,%rcx,4)
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x10(%rsp), %rax
movq %rcx, %rdx
andq %r15, %rdx
xorl %esi, %esi
cmpq %rbp, %rdx
setbe %sil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rsi,8)
incq %r13
movq 0xa20(%r14), %rax
movslq (%rax,%r12,4), %rax
cmpq %rax, %r13
jl 0x10a0b
movq 0x50(%rsp), %rax
cmpq %rax, 0x70(%rsp)
jne 0x109a9
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x10bbf
callq 0x3340
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x12d12
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x10c0f
jmp 0x10be4
jmp 0x10be4
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x10c0f
callq 0x3340
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x12d12
movq %rbx, %rdi
callq 0x35c0
nop