// File: /workspace/github_cpp_makefile_star2_O2/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 0x264b(%rip), %rsi      # 0x507e
leaq 0x8(%rsp), %r15
pushq $0x10
popq %rdx
movq %r15, %rdi
callq 0x21d0
movl 0x68(%r14), %eax
pushq $0x20
popq %r12
cmpl %ebp, %eax
jae 0x2b06
movq %r14, %rdi
callq 0x2c60
movl 0x68(%r14), %eax
testw $0x3ff, %ax             # imm = 0x3FF
jne 0x2afb
movq 0x5580(%rip), %rdi      # 0x7ff0
leaq 0x2616(%rip), %rsi      # 0x508d
callq 0x21a0
movl 0x68(%r14), %esi
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x20b0
movl 0x68(%r14), %esi
movq %r15, %rdi
callq 0x2110
movq %rax, %rdi
movl %r12d, %esi
callq 0x21f0
movl 0x30(%r14), %esi
movq %rax, %rdi
callq 0x22b0
movq %rax, %rdi
movl %r12d, %esi
callq 0x21f0
movq %rax, %r13
movq %r14, %rdi
callq 0x2ca6
movq %r13, %rdi
callq 0x2280
movq %rax, %rdi
movl %r12d, %esi
callq 0x21f0
movq %rax, %r13
movq %r14, %rdi
callq 0x2d32
movq %r13, %rdi
callq 0x2280
movq %rax, %rdi
callq 0x20b0
movl 0x68(%r14), %eax
incl %eax
movl %eax, 0x68(%r14)
jmp 0x2a4b
movq %r14, %rdi
callq 0x3630
addl %ebp, %ebx
movl 0x68(%r14), %eax
leaq 0x2572(%rip), %r12      # 0x508d
leaq 0x8(%rsp), %r13
pushq $0x20
popq %rbp
cmpl %ebx, %eax
jae 0x2c21
movq %r14, %rdi
callq 0x2c60
movq %r14, %rdi
callq 0x2ca6
addsd 0x118(%r14), %xmm0
movsd %xmm0, 0x118(%r14)
incq 0x120(%r14)
movl 0x68(%r14), %eax
testb $0x7f, %al
jne 0x2b81
movq %r14, %rdi
callq 0x2d32
addsd 0x108(%r14), %xmm0
movsd %xmm0, 0x108(%r14)
incq 0x110(%r14)
movl 0x68(%r14), %eax
testw $0x3ff, %ax             # imm = 0x3FF
jne 0x2c16
movq 0x545e(%rip), %rdi      # 0x7ff0
movq %r12, %rsi
callq 0x21a0
movl 0x68(%r14), %esi
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x20b0
movl 0x68(%r14), %esi
movq %r13, %rdi
callq 0x2110
movq %rax, %rdi
movl %ebp, %esi
callq 0x21f0
movl 0x30(%r14), %esi
movq %rax, %rdi
callq 0x22b0
movq %rax, %rdi
movl %ebp, %esi
callq 0x21f0
movq %rax, %r15
movq %r14, %rdi
callq 0x2ca6
movq %r15, %rdi
callq 0x2280
movq %rax, %rdi
movl %ebp, %esi
callq 0x21f0
movq %rax, %r15
movq %r14, %rdi
callq 0x2d32
movq %r15, %rdi
callq 0x2280
movq %rax, %rdi
callq 0x20b0
movl 0x68(%r14), %eax
incl %eax
movl %eax, 0x68(%r14)
jmp 0x2b23
leaq 0x8(%rsp), %rdi
callq 0x2220
leaq 0x8(%rsp), %rdi
callq 0x2250
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2c4b
jmp 0x2c4b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2250
movq %rbx, %rdi
callq 0x22c0