// File: dtsaras[P]GCW/rwgraph.cpp
// Function: Graph::Graph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, bool, bool, float, float)
Graph::Graph(string dataset, int m, bool s, bool rand_edges, float mu, float sigma){
    model = m;
    sim = s;
    if (model == 0){
        readGraph_LT(dataset, rand_edges, mu, sigma);
        LT_node.resize(getSize() + 1);
    }
    else
        readGraph_IC(dataset, rand_edges, mu, sigma);
    sfmt_init_gen_rand(&sfmtSeed, rand());
    A = new multimap<double, int>[getSize() + 1];
    similarities.resize(getSize() + 1);
    numEvents = 0;
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq %rsi, 0x60(%rsp)
movb %r8b, %al
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movl %edx, 0x124(%rsp)
andb $0x1, %cl
movb %cl, 0x123(%rsp)
andb $0x1, %al
movb %al, 0x122(%rsp)
movss %xmm0, 0x11c(%rsp)
movss %xmm1, 0x118(%rsp)
movq 0x130(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
addq $0x9d8, %rdi            # imm = 0x9D8
movq %rdi, 0x68(%rsp)
callq 0x24460
movq 0xc0(%rsp), %rdi
addq $0x9f0, %rdi            # imm = 0x9F0
movq %rdi, 0x70(%rsp)
callq 0x24470
movq 0xc0(%rsp), %rdi
addq $0xa08, %rdi            # imm = 0xA08
movq %rdi, 0x78(%rsp)
callq 0x24470
movq 0xc0(%rsp), %rdi
addq $0xa20, %rdi            # imm = 0xA20
movq %rdi, 0x80(%rsp)
callq 0xe2d0
movq 0xc0(%rsp), %rdi
addq $0xa38, %rdi            # imm = 0xA38
movq %rdi, 0x88(%rsp)
callq 0xec40
movq 0xc0(%rsp), %rdi
movl $0xffffffff, 0xa64(%rdi) # imm = 0xFFFFFFFF
movq $-0x1, 0xa68(%rdi)
addq $0xa70, %rdi            # imm = 0xA70
movq %rdi, 0x90(%rsp)
callq 0xe2d0
movq 0xc0(%rsp), %rdi
addq $0xa88, %rdi            # imm = 0xA88
movq %rdi, 0x98(%rsp)
callq 0x24460
movq 0xc0(%rsp), %rdi
addq $0xaa0, %rdi            # imm = 0xAA0
movq %rdi, 0xa0(%rsp)
callq 0x24470
movq 0xc0(%rsp), %rdi
addq $0xab8, %rdi            # imm = 0xAB8
movq %rdi, 0xa8(%rsp)
callq 0x24480
movq 0xc0(%rsp), %rdi
addq $0xae0, %rdi            # imm = 0xAE0
movq %rdi, 0xb0(%rsp)
callq 0x24490
movq 0xc0(%rsp), %rdi
addq $0xb00, %rdi            # imm = 0xB00
movq %rdi, 0xb8(%rsp)
callq 0xf5a0
movq 0xc0(%rsp), %rax
movl 0x124(%rsp), %ecx
movl %ecx, 0xa60(%rax)
movb 0x123(%rsp), %cl
andb $0x1, %cl
movb %cl, 0xb20(%rax)
cmpl $0x0, 0xa60(%rax)
jne 0x1d0d4
movq 0x60(%rsp), %rsi
leaq 0xf8(%rsp), %rdi
callq 0x4190
jmp 0x1d019
movq 0xc0(%rsp), %rdi
movss 0x11c(%rsp), %xmm0
movss 0x118(%rsp), %xmm1
movzbl 0x122(%rsp), %edx
andl $0x1, %edx
leaq 0xf8(%rsp), %rsi
callq 0x1d310
jmp 0x1d04d
leaq 0xf8(%rsp), %rdi
callq 0x4260
movq 0xc0(%rsp), %rdi
movq %rdi, %rax
addq $0xab8, %rax            # imm = 0xAB8
movq %rax, 0x50(%rsp)
callq 0x1db70
movl %eax, 0x5c(%rsp)
jmp 0x1d07b
movq 0x50(%rsp), %rdi
movl 0x5c(%rsp), %eax
incl %eax
movslq %eax, %rsi
callq 0x244a0
jmp 0x1d090
jmp 0x1d151
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
jmp 0x1d273
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0x4260
jmp 0x1d273
movq 0x60(%rsp), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x4190
jmp 0x1d0e8
movq 0xc0(%rsp), %rdi
movss 0x11c(%rsp), %xmm0
movss 0x118(%rsp), %xmm1
movzbl 0x122(%rsp), %edx
andl $0x1, %edx
leaq 0xc8(%rsp), %rsi
callq 0x1db90
jmp 0x1d11c
leaq 0xc8(%rsp), %rdi
callq 0x4260
jmp 0x1d151
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf0(%rsp)
movl %eax, 0xec(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x4260
jmp 0x1d273
callq 0x4110
movq 0xc0(%rsp), %rdi
movl %eax, %esi
callq 0x30a60
jmp 0x1d167
movq 0xc0(%rsp), %rdi
callq 0x1db70
movl %eax, 0x4c(%rsp)
jmp 0x1d17a
movl 0x4c(%rsp), %eax
incl %eax
cltq
movq %rax, 0x38(%rsp)
movl $0x30, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
addq $0x8, %rdi
movq $-0x1, %rax
cmovbq %rax, %rdi
testb %cl, %cl
cmovneq %rax, %rdi
callq 0x4030
movq %rax, 0x40(%rsp)
jmp 0x1d1b6
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rax, (%rcx)
addq $0x8, %rcx
movq %rcx, 0x30(%rsp)
cmpq $0x0, %rax
je 0x1d217
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
imulq $0x30, %rcx, %rdx
movq %rax, %rcx
addq %rdx, %rcx
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x24540
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
addq $0x30, %rax
cmpq %rcx, %rax
movq %rax, 0x28(%rsp)
jne 0x1d1f0
movq 0xc0(%rsp), %rdi
movq 0x30(%rsp), %rax
movq %rax, 0xaf8(%rdi)
movq %rdi, %rax
addq $0xae0, %rax            # imm = 0xAE0
movq %rax, 0x8(%rsp)
callq 0x1db70
movl %eax, 0x14(%rsp)
jmp 0x1d244
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %eax
incl %eax
movslq %eax, %rsi
callq 0x24550
jmp 0x1d259
movq 0xc0(%rsp), %rax
movl $0x0, 0x9d0(%rax)
addq $0x138, %rsp            # imm = 0x138
retq
movq 0xb8(%rsp), %rdi
callq 0xf030
movq 0xb0(%rsp), %rdi
callq 0x245f0
movq 0xa8(%rsp), %rdi
callq 0xef10
movq 0xa0(%rsp), %rdi
callq 0x24650
movq 0x98(%rsp), %rdi
callq 0x10200
movq 0x90(%rsp), %rdi
callq 0xe2e0
movq 0x88(%rsp), %rdi
callq 0xe3a0
movq 0x80(%rsp), %rdi
callq 0xe2e0
movq 0x78(%rsp), %rdi
callq 0x24650
movq 0x70(%rsp), %rdi
callq 0x24650
movq 0x68(%rsp), %rdi
callq 0x10200
movq 0xf0(%rsp), %rdi
callq 0x4690
nopw %cs:(%rax,%rax)