// File: /workspace/github_cpp_makefile_star2_O3/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 0x248b(%rip), %rsi      # 0x50ce
leaq 0x8(%rsp), %rdi
movl $0x10, %edx
callq 0x2230
cmpl %ebp, 0x68(%r14)
jae 0x2d84
movq 0x538d(%rip), %r15      # 0x7ff0
leaq 0x7(%rsp), %r12
movq %r14, %rdi
callq 0x2f8e
movl 0x68(%r14), %eax
testl $0x3ff, %eax            # imm = 0x3FF
jne 0x2d76
movl $0x4, %edx
movq %r15, %rdi
leaq 0x244f(%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 0x2fe2
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 0x3072
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 0x2c68
leaq 0x78(%r14), %rdi
callq 0x4098
leaq 0xa8(%r14), %rdi
callq 0x4098
leaq 0xd8(%r14), %rdi
callq 0x4098
addl %ebp, %ebx
cmpl %ebx, 0x68(%r14)
jae 0x2f26
movq 0x5238(%rip), %r15      # 0x7ff0
leaq 0x8(%rsp), %r13
leaq 0x7(%rsp), %rbp
movq %r14, %rdi
callq 0x2f8e
movq %r14, %rdi
callq 0x2fe2
addsd 0x118(%r14), %xmm0
movsd %xmm0, 0x118(%r14)
incq 0x120(%r14)
movl 0x68(%r14), %eax
testb $0x7f, %al
jne 0x2e18
movq %r14, %rdi
callq 0x3072
addsd 0x108(%r14), %xmm0
movsd %xmm0, 0x108(%r14)
incq 0x110(%r14)
movl 0x68(%r14), %eax
testl $0x3ff, %eax            # imm = 0x3FF
jne 0x2f18
movl $0x4, %edx
movq %r15, %rdi
leaq 0x22ab(%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 0x2fe2
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 0x3072
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 0x2dc2
leaq 0x8(%rsp), %rdi
callq 0x2290
movq 0x5091(%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 0x2f78
jmp 0x2f78
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22c0
movq %rbx, %rdi
callq 0x2330
nop