// File: /workspace/github_cpp_makefile_star2_O1/riyadparvez[P]louvain-method/main_community.cpp
// Function: main
int
main(int argc, char **argv) {
  srand(time(NULL)+getpid());

  parse_args(argc, argv);
  time_t time_begin, time_end;
  time(&time_begin);
  if (verbose)
    display_time("Begin");

  Community c(filename, filename_w, type, -1, precision);
  if (filename_part!=NULL)
    c.init_partition(filename_part);
  Graph g;
  bool improvement=true;
  double mod=c.modularity(), new_mod;
  int level=0;

  do {
    if (verbose) {
      cerr << "level " << level << ":\n";
      display_time("  start computation");
      cerr << "  network size: " 
	   << c.g.nb_nodes << " nodes, " 
	   << c.g.nb_links << " links, "
	   << c.g.total_weight << " weight." << endl;
    }

    improvement = c.one_level();
    new_mod = c.modularity();
    if (++level==display_level)
      g.display();
    if (display_level==-1)
      c.display_partition();
    g = c.partition2graph_binary();
    c = Community(g, -1, precision);

    if (verbose)
      cerr << "  modularity increased from " << mod << " to " << new_mod << endl;

    mod=new_mod;
    if (verbose)
      display_time("  end computation");

    if (filename_part!=NULL && level==1) // do at least one more computation if partition is provided
      improvement=true;
  } while(improvement);

  time(&time_end);
  if (verbose) {
    display_time("End");
    cerr << "Total duration: " << (time_end-time_begin) << " sec." << endl;
  }
  if (write_community) {
    g.write_community(filename_comm);
  }
  cerr << new_mod << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x368, %rsp            # imm = 0x368
movq %rsi, %rbx
movl %edi, %ebp
xorl %edi, %edi
callq 0x21a0
movq %rax, %r14
callq 0x22c0
addl %eax, %r14d
movl %r14d, %edi
callq 0x21c0
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6d50
leaq 0x1d8(%rsp), %rdi
callq 0x21a0
cmpb $0x1, 0x5296(%rip)      # 0xc224
jne 0x6f9c
leaq 0x16f0(%rip), %rdi      # 0x8687
callq 0x6e8c
movq 0x525d(%rip), %rsi      # 0xc200
movq 0x525e(%rip), %rdx      # 0xc208
movl 0x5228(%rip), %ecx      # 0xc1d8
movsd 0x5228(%rip), %xmm0     # 0xc1e0
leaq 0x1e0(%rsp), %rdi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x3b88
movq 0x5246(%rip), %rsi      # 0xc218
testq %rsi, %rsi
je 0x6fe4
leaq 0x1e0(%rsp), %rdi
callq 0x4382
leaq 0x30(%rsp), %rdi
callq 0x261c
leaq 0x1e0(%rsp), %r14
movq %r14, %rdi
callq 0x478a
movsd %xmm0, 0x28(%rsp)
leaq 0xc8(%rsp), %rbx
movl $0x100, %eax            # imm = 0x100
leaq (%r14,%rax), %rcx
movq %rcx, 0x1c0(%rsp)
leaq 0xb0(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x1c8(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
cmpb $0x1, 0x51e8(%rip)      # 0xc224
jne 0x7140
movl $0x6, %edx
movq 0x4fa2(%rip), %rdi      # 0xbff0
leaq 0x1638(%rip), %rsi      # 0x868d
callq 0x2230
movq 0x4f8f(%rip), %rdi      # 0xbff0
movl %ebp, %esi
callq 0x2350
movl $0x2, %edx
movq %rax, %rdi
leaq 0x161d(%rip), %rsi      # 0x8694
callq 0x2230
leaq 0x1614(%rip), %rdi      # 0x8697
callq 0x6e8c
movl $0x10, %edx
movq 0x4f5c(%rip), %rdi      # 0xbff0
leaq 0x1610(%rip), %rsi      # 0x86ab
callq 0x2230
movl 0x218(%rsp), %esi
movq 0x4f42(%rip), %rdi      # 0xbff0
callq 0x2140
movq %rax, %r14
movl $0x8, %edx
movq %rax, %rdi
leaq 0x15f7(%rip), %rsi      # 0x86bc
callq 0x2230
movq 0x220(%rsp), %rsi
movq %r14, %rdi
callq 0x2140
movq %rax, %r14
movl $0x8, %edx
movq %rax, %rdi
leaq 0x15d9(%rip), %rsi      # 0x86c5
callq 0x2230
movsd 0x228(%rsp), %xmm0
movq %r14, %rdi
callq 0x2300
movq %rax, %r14
movl $0x8, %edx
movq %rax, %rdi
leaq 0x15ba(%rip), %rsi      # 0x86ce
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1e0(%rsp), %rdi
callq 0x5166
movl %eax, %r14d
leaq 0x1e0(%rsp), %rdi
callq 0x478a
movsd %xmm0, 0x8(%rsp)
leal 0x1(%rbp), %r15d
cmpl 0x507a(%rip), %r15d     # 0xc1e8
jne 0x717a
leaq 0x30(%rsp), %rdi
callq 0x2aa8
cmpl $-0x1, 0x5067(%rip)     # 0xc1e8
jne 0x7190
leaq 0x1e0(%rsp), %rdi
callq 0x4a04
leaq 0xb0(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
callq 0x4b66
movups 0xb0(%rsp), %xmm0
movups 0xc0(%rsp), %xmm1
movups 0xd0(%rsp), %xmm2
movaps %xmm0, 0x30(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rax
movaps %xmm1, 0x40(%rsp)
movq 0x58(%rsp), %rsi
movaps %xmm2, 0x50(%rsp)
movq %rdi, 0xc8(%rsp)
movq %rax, 0xd0(%rsp)
movq %rsi, 0xd8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
testq %rdi, %rdi
je 0x720e
subq %rdi, %rsi
callq 0x2200
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps 0x60(%rsp), %xmm0
movq 0x70(%rsp), %rax
movups 0xe0(%rsp), %xmm1
movaps %xmm1, 0x60(%rsp)
movq 0xf0(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movups %xmm1, 0xe0(%rsp)
movq %r12, 0xf0(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x3250
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rsi
movq 0xf8(%rsp), %rcx
movq %rcx, 0x78(%rsp)
movups 0x100(%rsp), %xmm0
movaps %xmm0, 0x80(%rsp)
movq %rdi, 0xf8(%rsp)
movq %rax, 0x100(%rsp)
movq %rsi, 0x108(%rsp)
movq %r12, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
testq %rdi, %rdi
je 0x72c5
subq %rdi, %rsi
callq 0x2200
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rax
movq 0xa0(%rsp), %rsi
movq 0x110(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movups 0x118(%rsp), %xmm0
movups %xmm0, 0x98(%rsp)
movq %rdi, 0x110(%rsp)
movq %rax, 0x118(%rsp)
movq %rsi, 0x120(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
movq $0x0, 0x58(%rbx)
testq %rdi, %rdi
je 0x7331
subq %rdi, %rsi
callq 0x2200
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x734e
movq 0x120(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x736b
movq 0x108(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0xe0(%rsp), %rdi
callq 0x3250
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x7395
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movaps 0x30(%rsp), %xmm0
movaps %xmm0, 0x2f0(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x300(%rsp)
leaq 0x308(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x7c26
leaq 0x320(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x7ca6
leaq 0x338(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x7d40
leaq 0x350(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x7dc0
movsd 0x4dde(%rip), %xmm0     # 0xc1e0
leaq 0xb0(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3ff6
movq 0x1e0(%rsp), %rdi
movq 0x1f0(%rsp), %rsi
movq 0xb0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movups 0xb8(%rsp), %xmm0
movups %xmm0, 0x1e8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xb0(%rsp)
movq $0x0, 0xc0(%rsp)
testq %rdi, %rdi
je 0x7470
subq %rdi, %rsi
callq 0x2200
movq 0x1f8(%rsp), %rdi
movq 0x200(%rsp), %rax
movq 0x208(%rsp), %rsi
movq 0xc8(%rsp), %rcx
movq %rcx, 0x1f8(%rsp)
movaps 0xd0(%rsp), %xmm0
movups %xmm0, 0x200(%rsp)
movq %rdi, 0xc8(%rsp)
movq %rax, 0xd0(%rsp)
movq %rsi, 0xd8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
testq %rdi, %rdi
je 0x74db
subq %rdi, %rsi
callq 0x2200
movl 0xe0(%rsp), %eax
movl %eax, 0x210(%rsp)
movq 0x30(%rbx), %rax
leaq 0x218(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x20(%rbx), %xmm0
movups %xmm0, (%rcx)
movq 0x230(%rsp), %rdi
movq 0x238(%rsp), %rax
movq 0x240(%rsp), %rsi
movq 0x100(%rsp), %rcx
movq %rcx, 0x230(%rsp)
movups 0x108(%rsp), %xmm0
movups %xmm0, 0x238(%rsp)
movq %rdi, 0x100(%rsp)
movq %rax, 0x108(%rsp)
movq %rsi, 0x110(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movq $0x0, 0x48(%rbx)
testq %rdi, %rdi
je 0x756c
subq %rdi, %rsi
callq 0x2200
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movups 0x248(%rsp), %xmm0
movq 0x258(%rsp), %rax
movups 0x118(%rsp), %xmm1
movups %xmm1, 0x248(%rsp)
movq 0x128(%rsp), %rcx
movq %rcx, 0x258(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movups %xmm1, 0x118(%rsp)
movq %r12, 0x128(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x3250
movq 0x260(%rsp), %rdi
movq 0x268(%rsp), %rax
movq 0x270(%rsp), %rsi
movq 0x130(%rsp), %rcx
movq %rcx, 0x260(%rsp)
movups 0x138(%rsp), %xmm0
movups %xmm0, 0x268(%rsp)
movq %rdi, 0x130(%rsp)
movq %rax, 0x138(%rsp)
movq %rsi, 0x140(%rsp)
movq %r12, 0x78(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
testq %rdi, %rdi
je 0x7635
subq %rdi, %rsi
callq 0x2200
movq 0x278(%rsp), %rdi
movq 0x280(%rsp), %rax
movq 0x288(%rsp), %rsi
movq 0x148(%rsp), %rcx
movq %rcx, 0x278(%rsp)
movaps 0x150(%rsp), %xmm0
movups %xmm0, 0x280(%rsp)
movq %rdi, 0x148(%rsp)
movq %rax, 0x150(%rsp)
movq %rsi, 0x158(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
movq $0x0, 0x90(%rbx)
testq %rdi, %rdi
je 0x76a7
subq %rdi, %rsi
callq 0x2200
movl 0x160(%rsp), %eax
movl %eax, 0x290(%rsp)
movq 0x298(%rsp), %rdi
movq 0x2a0(%rsp), %rax
movq 0x2a8(%rsp), %rsi
movq 0x168(%rsp), %rcx
movq %rcx, 0x298(%rsp)
movaps 0x170(%rsp), %xmm0
movups %xmm0, 0x2a0(%rsp)
movq %rdi, 0x168(%rsp)
movq %rax, 0x170(%rsp)
movq %rsi, 0x178(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rbx)
movq $0x0, 0xb0(%rbx)
testq %rdi, %rdi
je 0x7727
subq %rdi, %rsi
callq 0x2200
movq 0x2b0(%rsp), %rdi
movq 0x2b8(%rsp), %rax
movq 0x2c0(%rsp), %rsi
movq 0x180(%rsp), %rcx
movq %rcx, 0x2b0(%rsp)
movups 0x188(%rsp), %xmm0
movups %xmm0, 0x2b8(%rsp)
movq %rdi, 0x180(%rsp)
movq %rax, 0x188(%rsp)
movq %rsi, 0x190(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%rbx)
movq $0x0, 0xc8(%rbx)
testq %rdi, %rdi
je 0x7799
subq %rdi, %rsi
callq 0x2200
movq 0x2c8(%rsp), %rdi
movq 0x2d0(%rsp), %rax
movq 0x2d8(%rsp), %rsi
movq 0x198(%rsp), %rcx
movq %rcx, 0x2c8(%rsp)
movaps 0x1a0(%rsp), %xmm0
movups %xmm0, 0x2d0(%rsp)
movq %rdi, 0x198(%rsp)
movq %rax, 0x1a0(%rsp)
movq %rsi, 0x1a8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xd0(%rbx)
movq $0x0, 0xe0(%rbx)
testq %rdi, %rdi
je 0x780b
subq %rdi, %rsi
callq 0x2200
movq 0x1c8(%rsp), %rax
movups (%rax), %xmm0
movq 0x1c0(%rsp), %rax
movups %xmm0, (%rax)
leaq 0xb0(%rsp), %rdi
callq 0x7b50
movq 0x350(%rsp), %rdi
testq %rdi, %rdi
je 0x784b
movq 0x360(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x338(%rsp), %rdi
testq %rdi, %rdi
je 0x7868
movq 0x348(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x320(%rsp), %rdi
callq 0x3250
movq 0x308(%rsp), %rdi
testq %rdi, %rdi
je 0x7892
movq 0x318(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
cmpb $0x1, 0x498b(%rip)      # 0xc224
jne 0x7914
movl $0x1c, %edx
movq 0x4749(%rip), %rdi      # 0xbff0
leaq 0xe29(%rip), %rsi       # 0x86d7
callq 0x2230
movq 0x4736(%rip), %rdi      # 0xbff0
movsd 0x28(%rsp), %xmm0
callq 0x2300
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0xe1d(%rip), %rsi       # 0x86f4
callq 0x2230
movq %r13, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x2300
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
cmpb $0x1, 0x4909(%rip)      # 0xc224
jne 0x7929
leaq 0xdd5(%rip), %rdi       # 0x86f9
callq 0x6e8c
cmpq $0x0, 0x48e7(%rip)      # 0xc218
setne %al
testl %ebp, %ebp
sete %cl
andb %al, %cl
orb %cl, %r14b
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl %r15d, %ebp
jne 0x7035
leaq 0x1d0(%rsp), %rdi
callq 0x21a0
cmpb $0x1, 0x48bd(%rip)      # 0xc224
jne 0x79e7
leaq 0xd9b(%rip), %rdi       # 0x870b
callq 0x6e8c
movq 0x4674(%rip), %rdi      # 0xbff0
leaq 0xd8c(%rip), %rsi       # 0x870f
movl $0x10, %edx
callq 0x2230
movq 0x1d0(%rsp), %rsi
subq 0x1d8(%rsp), %rsi
movq 0x464c(%rip), %rdi      # 0xbff0
callq 0x21b0
movq %rax, %rbx
leaq 0xd6d(%rip), %rsi       # 0x8720
movl $0x5, %edx
movq %rax, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
cmpb $0x1, 0x4837(%rip)      # 0xc225
jne 0x7a01
movq 0x4819(%rip), %rsi      # 0xc210
leaq 0x30(%rsp), %rdi
callq 0x2b72
movq 0x45e8(%rip), %rdi      # 0xbff0
movsd 0x8(%rsp), %xmm0
callq 0x2300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x7a5a
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x7a74
movq 0x88(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x60(%rsp), %rdi
callq 0x3250
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x7a95
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x1e0(%rsp), %rdi
callq 0x7b50
xorl %eax, %eax
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7aba
jmp 0x7b2d
movq %rax, %rbx
jmp 0x7b3a
jmp 0x7b2d
jmp 0x7b2d
jmp 0x7b2d
movq %rax, %rbx
jmp 0x7afc
movq %rax, %rbx
jmp 0x7aef
movq %rax, %rbx
movq 0x338(%rsp), %rdi
testq %rdi, %rdi
je 0x7aef
movq 0x348(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x320(%rsp), %rdi
callq 0x3250
movq 0x308(%rsp), %rdi
testq %rdi, %rdi
je 0x7b30
movq 0x318(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
jmp 0x7b30
movq %rax, %rbx
leaq 0x2f0(%rsp), %rdi
callq 0x5496
jmp 0x7b30
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x5496
leaq 0x1e0(%rsp), %rdi
callq 0x7b50
movq %rbx, %rdi
callq 0x2370
nop