// File: /workspace/github_cpp_makefile_star2_O1/yohm[P]dynamical_graph_model/./dynamical_graph_model.cpp
// Function: DynamicalGraph::Run(unsigned int, unsigned int)
void DynamicalGraph::Run(uint32_t t_init, uint32_t t_measure) {
  std::ofstream fout("timeseries.dat");

  for( ; m_currentTime<t_init; m_currentTime++) {
    Update();
    if( m_currentTime%1024 == 0 ) {
      std::cerr << "t : " << m_currentTime << std::endl;
      fout << m_currentTime << ' ' << Diversity()
        << ' ' << LinkDensity()
        << ' ' << CC() << std::endl;
    }
  }

  ClearHisto();

  for( ; m_currentTime<t_init+t_measure; m_currentTime++) {
    Update();
    m_densitySum += LinkDensity();
    m_densityCount++;
    if( m_currentTime % 128 == 0 ) {
      m_CCsum += CC();
      m_CCcount++;
    }
    if( m_currentTime%1024 == 0 ) {
      std::cerr << "t : " << m_currentTime << std::endl;
      fout << m_currentTime << ' ' << Diversity()
        << ' ' << LinkDensity()
        << ' ' << CC() << std::endl;
    }
  }
  fout.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x2491(%rip), %rsi      # 0x50ce
leaq 0x8(%rsp), %rdi
movl $0x10, %edx
callq 0x2230
cmpl %ebp, 0x68(%r14)
jae 0x2d7f
movq 0x5393(%rip), %r15      # 0x7ff0
leaq 0x7(%rsp), %r12
movq %r14, %rdi
callq 0x2f88
movzwl 0x68(%r14), %eax
testl $0x3ff, %eax            # imm = 0x3FF
jne 0x2d6d
movl $0x4, %edx
movq %r15, %rdi
leaq 0x2454(%rip), %rsi      # 0x50dd
callq 0x2240
movl 0x68(%r14), %esi
movq %r15, %rdi
callq 0x2130
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2140
movl 0x68(%r14), %esi
leaq 0x8(%rsp), %rdi
callq 0x2130
movb $0x20, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2240
movl 0x30(%r14), %esi
movq %rax, %rdi
callq 0x2320
movb $0x20, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2240
movq %rax, %r13
movq %r14, %rdi
callq 0x2fdc
movq %r13, %rdi
callq 0x22f0
movb $0x20, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2240
movq %rax, %r13
movq %r14, %rdi
callq 0x306c
movq %r13, %rdi
callq 0x22f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2140
movl 0x68(%r14), %eax
incl %eax
movl %eax, 0x68(%r14)
cmpl %ebp, %eax
jb 0x2c62
leaq 0x78(%r14), %rdi
callq 0x40b0
leaq 0xa8(%r14), %rdi
callq 0x40b0
leaq 0xd8(%r14), %rdi
callq 0x40b0
addl %ebp, %ebx
cmpl %ebx, 0x68(%r14)
jae 0x2f21
movq 0x523d(%rip), %r15      # 0x7ff0
leaq 0x8(%rsp), %r13
leaq 0x7(%rsp), %rbp
movq %r14, %rdi
callq 0x2f88
movq %r14, %rdi
callq 0x2fdc
addsd 0x118(%r14), %xmm0
movsd %xmm0, 0x118(%r14)
incq 0x120(%r14)
testb $0x7f, 0x68(%r14)
jne 0x2e0e
movq %r14, %rdi
callq 0x306c
addsd 0x108(%r14), %xmm0
movsd %xmm0, 0x108(%r14)
incq 0x110(%r14)
movzwl 0x68(%r14), %eax
testl $0x3ff, %eax            # imm = 0x3FF
jne 0x2f0f
movl $0x4, %edx
movq %r15, %rdi
leaq 0x22b0(%rip), %rsi      # 0x50dd
callq 0x2240
movl 0x68(%r14), %esi
movq %r15, %rdi
callq 0x2130
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2140
movl 0x68(%r14), %esi
movq %r13, %rdi
callq 0x2130
movb $0x20, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2240
movl 0x30(%r14), %esi
movq %rax, %rdi
callq 0x2320
movb $0x20, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2240
movq %rax, %r12
movq %r14, %rdi
callq 0x2fdc
movq %r12, %rdi
callq 0x22f0
movb $0x20, 0x7(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2240
movq %rax, %r12
movq %r14, %rdi
callq 0x306c
movq %r12, %rdi
callq 0x22f0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2140
movl 0x68(%r14), %eax
incl %eax
movl %eax, 0x68(%r14)
cmpl %ebx, %eax
jb 0x2dbd
leaq 0x8(%rsp), %rdi
callq 0x2290
movq 0x5096(%rip), %rax      # 0x7fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x21c0
leaq 0x100(%rsp), %rdi
callq 0x2080
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f73
jmp 0x2f73
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22c0
movq %rbx, %rdi
callq 0x2330