// File: /workspace/github_cpp_makefile_star2_O1/redpony[P]libpopt/optimize_test.cc
// Function: void TestOptimizerVariants<LBFGSOptimizer>(int)
void TestOptimizerVariants(int num_vars) {
  O oa(num_vars);
  const string name = oa.Name();
  cerr << "-------------------------------------------------------------------------\n";
  cerr << "TEST: " << name << endl;
  double o1 = TestOptimizer(&oa);
  O ob(num_vars);
  double o2 = TestPersistentOptimizer(&ob);
  if (o1 != o2) {
    cerr << oa.Name() << ": PERSISTENT/NON-PERSISTENT VARIANTS PERFORMED DIFFERENTLY!\n"
         << o1 << " vs. " << o2 << endl;
    exit(1);
  }
  cerr << oa.Name() << ": SUCCESS\n";
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movl %edi, %ebx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movl %ebx, %esi
movl $0xa, %edx
callq 0x5436
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x5412
movq 0x8e6d(%rip), %rdi      # 0xcff0
leaq 0x50cd(%rip), %rsi      # 0x9257
movl $0x4a, %edx
callq 0x31f0
movq 0x8e55(%rip), %rdi      # 0xcff0
leaq 0x5100(%rip), %rsi      # 0x92a2
movl $0x6, %edx
callq 0x31f0
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x8e33(%rip), %rdi      # 0xcff0
callq 0x31f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
leaq 0x58(%rsp), %rdi
callq 0x34ac
movsd %xmm0, 0x28(%rsp)
leaq 0x1b8(%rsp), %rdi
movl %ebx, %esi
movl $0xa, %edx
callq 0x5436
leaq 0x1b8(%rsp), %rdi
callq 0x3814
movsd 0x28(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x4350
jp 0x4350
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5412
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8d9d(%rip), %rdi      # 0xcff0
callq 0x31f0
leaq 0x508d(%rip), %rsi      # 0x92ec
movl $0xa, %edx
movq %rax, %rdi
callq 0x31f0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4287
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31d0
leaq 0x8882(%rip), %rbx      # 0xcb10
addq $0x10, %rbx
movq %rbx, 0x1b8(%rsp)
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0x42b7
movq 0x310(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
movq 0x2e8(%rsp), %rdi
testq %rdi, %rdi
je 0x42d4
movq 0x2f8(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
leaq 0x1b8(%rsp), %rdi
callq 0x54ee
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x42fc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, 0x58(%rsp)
movq 0x1a0(%rsp), %rdi
testq %rdi, %rdi
je 0x431e
movq 0x1b0(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
movq 0x188(%rsp), %rdi
testq %rdi, %rdi
je 0x433b
movq 0x198(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
leaq 0x58(%rsp), %rdi
callq 0x54ee
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r14
retq
movsd %xmm0, 0x30(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5412
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8c7a(%rip), %rdi      # 0xcff0
callq 0x31f0
movq %rax, %rbx
leaq 0x4f24(%rip), %rsi      # 0x92a9
movl $0x3c, %edx
movq %rax, %rdi
callq 0x31f0
movq %rbx, %rdi
movsd 0x28(%rsp), %xmm0
callq 0x3290
movq %rax, %rbx
leaq 0x4f3c(%rip), %rsi      # 0x92e6
movl $0x5, %edx
movq %rax, %rdi
callq 0x31f0
movq %rbx, %rdi
movsd 0x30(%rsp), %xmm0
callq 0x3290
movq %rax, %rdi
callq 0x30c0
leaq 0x8(%rsp), %rdi
callq 0x30b0
movl $0x1, %edi
callq 0x3200
jmp 0x43f5
jmp 0x43e7
jmp 0x43e7
movq %rax, %rbx
jmp 0x4413
jmp 0x4422
jmp 0x4422
movq %rax, %rbx
jmp 0x4440
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4413
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31d0
leaq 0x1b8(%rsp), %rdi
callq 0x4caa
jmp 0x4425
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4440
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x31d0
leaq 0x58(%rsp), %rdi
callq 0x4caa
movq %rbx, %rdi
callq 0x3300