// File: dtsaras[P]GCW/rwgraph.cpp
// Function: Graph::set_events(int&)
void Graph::set_events(int &P){
    numEvents = P;
    seedSets = new set<int>[P];
    seedSets_before = new set<int>[P];
    tsim_V_p.clear();
    tsim_V_p.resize(P, 0);
    for (int i = 1; i < getSize() + 1; i++){
        similarities[i].resize(P);
    }

    AP = new float*[P]; // Awareness probability of node from competitor
    for (int p = 0; p < P; p++)
        AP[p] = new float[getSize() + 1];
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x78(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x9d0(%rax)
movq 0x78(%rsp), %rax
movslq (%rax), %rax
movq %rax, 0x58(%rsp)
movl $0x30, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
addq $0x8, %rdi
setb %al
orb %al, %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x4030
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rax, (%rcx)
addq $0x8, %rcx
movq %rcx, 0x60(%rsp)
cmpq $0x0, %rax
je 0x1e584
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rcx
imulq $0x30, %rcx, %rdx
movq %rax, %rcx
addq %rdx, %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x246c0
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rcx
addq $0x30, %rax
cmpq %rcx, %rax
movq %rax, 0x48(%rsp)
jne 0x1e55d
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
movq %rcx, 0xad0(%rax)
movq 0x78(%rsp), %rax
movslq (%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x30, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
addq $0x8, %rdi
setb %al
orb %al, %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x4030
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rax, (%rcx)
addq $0x8, %rcx
movq %rcx, 0x30(%rsp)
cmpq $0x0, %rax
je 0x1e62b
movq 0x30(%rsp), %rax
movq 0x28(%rsp), %rcx
imulq $0x30, %rcx, %rdx
movq %rax, %rcx
addq %rdx, %rcx
movq %rcx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x246c0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
addq $0x30, %rax
cmpq %rcx, %rax
movq %rax, 0x20(%rsp)
jne 0x1e604
movq 0x50(%rsp), %rdi
movq 0x30(%rsp), %rax
movq %rax, 0xad8(%rdi)
addq $0xb00, %rdi            # imm = 0xB00
callq 0xfa50
movq 0x50(%rsp), %rdi
addq $0xb00, %rdi            # imm = 0xB00
movq 0x78(%rsp), %rax
movslq (%rax), %rsi
xorps %xmm0, %xmm0
movsd %xmm0, 0x70(%rsp)
leaq 0x70(%rsp), %rdx
callq 0x246d0
movl $0x1, 0x6c(%rsp)
movq 0x50(%rsp), %rdi
movl 0x6c(%rsp), %eax
movl %eax, 0xc(%rsp)
callq 0x1db70
movl %eax, %ecx
movl 0xc(%rsp), %eax
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x1e6c9
movq 0x50(%rsp), %rdi
addq $0xae0, %rdi            # imm = 0xAE0
movslq 0x6c(%rsp), %rsi
callq 0xf180
movq %rax, %rdi
movq 0x78(%rsp), %rax
movslq (%rax), %rsi
callq 0x24790
movl 0x6c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x6c(%rsp)
jmp 0x1e677
movq 0x78(%rsp), %rax
movslq (%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x4030
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0xb18(%rax)
movl $0x0, 0x68(%rsp)
movl 0x68(%rsp), %eax
movq 0x78(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x1e76b
movq 0x50(%rsp), %rdi
callq 0x1db70
addl $0x1, %eax
cltq
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x4030
movq %rax, %rdx
movq 0x50(%rsp), %rax
movq 0xb18(%rax), %rax
movslq 0x68(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x68(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x68(%rsp)
jmp 0x1e709
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)