// File: /workspace/github_cpp_makefile_star2_O3/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, 0x18(%rsp)
movl %esi, %r15d
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x20(%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 0x1419c
movslq 0x9c8(%r14), %rsi
incq %rsi
leaq 0x8(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x70(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0xa390
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
movq 0xad0(%r14), %rax
movslq %r15d, %rcx
movq %rcx, 0x10(%rsp)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rbx
addq $0x8, %rbx
movq 0x10(%rbx), %r15
cmpq %rbx, %r15
je 0x107a0
leaq 0x8(%rsp), %r12
leaq 0x3f(%rbp), %r13
movl 0x20(%r15), %ecx
movl %ecx, 0x8(%rsp)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rax
je 0x10726
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0x10733
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x14304
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x8(%rsp), %rcx
leal 0x3f(%rcx), %edx
testq %rcx, %rcx
movss (%rax,%rcx,4), %xmm0
addss 0x6963(%rip), %xmm0     # 0x170bc
movss %xmm0, (%rax,%rcx,4)
cmovnsl %ecx, %edx
sarl $0x6, %edx
movslq %edx, %rax
shlq $0x3, %rax
addq 0x70(%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 0x106fe
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
je 0x10999
leaq 0x3f(%rbp), %r15
movslq (%rax), %r12
movq 0x40(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x107cb
addq $0x4, %rax
jmp 0x107f8
movq 0x38(%rsp), %rdi
callq 0x3340
movq 0x48(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
movq 0xa20(%r14), %rcx
cmpl $0x0, (%rcx,%r12,4)
jle 0x1098e
leaq (%r12,%r12,2), %rbx
xorl %r13d, %r13d
movq 0x9d8(%r14), %rax
movq (%rax,%rbx,8), %rax
movslq (%rax,%r13,4), %rax
leal 0x3f(%rax), %ecx
testq %rax, %rax
movl %eax, 0x8(%rsp)
cmovnsl %eax, %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq 0x70(%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 0x10972
movl 0x9c0(%r14), %ecx
cmpl $0x270, %ecx            # imm = 0x270
jl 0x1087c
movq %r14, %rdi
callq 0x16088
xorl %ecx, %ecx
movl 0x8(%rsp), %eax
leal 0x1(%rcx), %edx
movl %edx, 0x9c0(%r14)
movslq %ecx, %rcx
movl (%r14,%rcx,4), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x6e83(%rip), %xmm0     # 0x17720
movq 0x9f0(%r14), %rcx
movq (%rcx,%rbx,8), %rcx
movss (%rcx,%r13,4), %xmm1
cmpb $0x1, 0xb20(%r14)
jne 0x108dc
movslq %eax, %rcx
movq 0xae0(%r14), %rdx
leaq (%rcx,%rcx,2), %rcx
movq (%rdx,%rcx,8), %rcx
cvtss2sd %xmm1, %xmm1
movq 0x10(%rsp), %rdx
mulsd (%rcx,%rdx,8), %xmm1
cvtsd2ss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x10972
movq 0x50(%rsp), %rcx
movq 0x60(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x1090a
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x50(%rsp)
jmp 0x10919
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x14304
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x8(%rsp), %rcx
leal 0x3f(%rcx), %edx
testq %rcx, %rcx
movss (%rax,%rcx,4), %xmm0
addss 0x677d(%rip), %xmm0     # 0x170bc
movss %xmm0, (%rax,%rcx,4)
cmovnsl %ecx, %edx
sarl $0x6, %edx
movslq %edx, %rax
shlq $0x3, %rax
addq 0x70(%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 0x10816
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
jne 0x107b4
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x109b9
callq 0x3340
movq $0x0, 0x70(%rsp)
movl $0x0, 0x78(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x12ae2
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x109f0
jmp 0x109de
jmp 0x109de
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x109f0
callq 0x3340
leaq 0x20(%rsp), %rdi
callq 0x12ae2
movq %rbx, %rdi
callq 0x35c0