// File: /workspace/github_cpp_makefile_star2_O3/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 0x541a
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x53f6
movq 0x8e8d(%rip), %rdi      # 0xcff0
leaq 0x50ed(%rip), %rsi      # 0x9257
movl $0x4a, %edx
callq 0x31f0
movq 0x8e75(%rip), %rdi      # 0xcff0
leaq 0x5120(%rip), %rsi      # 0x92a2
movl $0x6, %edx
callq 0x31f0
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x8e53(%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 0x541a
leaq 0x1b8(%rsp), %rdi
callq 0x37fb
movsd 0x28(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x4330
jp 0x4330
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x53f6
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8dbd(%rip), %rdi      # 0xcff0
callq 0x31f0
leaq 0x50ad(%rip), %rsi      # 0x92ec
movl $0xa, %edx
movq %rax, %rdi
callq 0x31f0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4267
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31d0
leaq 0x88a2(%rip), %rbx      # 0xcb10
addq $0x10, %rbx
movq %rbx, 0x1b8(%rsp)
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0x4297
movq 0x310(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
movq 0x2e8(%rsp), %rdi
testq %rdi, %rdi
je 0x42b4
movq 0x2f8(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
leaq 0x1b8(%rsp), %rdi
callq 0x54d2
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x42dc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, 0x58(%rsp)
movq 0x1a0(%rsp), %rdi
testq %rdi, %rdi
je 0x42fe
movq 0x1b0(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
movq 0x188(%rsp), %rdi
testq %rdi, %rdi
je 0x431b
movq 0x198(%rsp), %rsi
subq %rdi, %rsi
callq 0x31d0
leaq 0x58(%rsp), %rdi
callq 0x54d2
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r14
retq
movsd %xmm0, 0x30(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x53f6
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8c9a(%rip), %rdi      # 0xcff0
callq 0x31f0
movq %rax, %rbx
leaq 0x4f44(%rip), %rsi      # 0x92a9
movl $0x3c, %edx
movq %rax, %rdi
callq 0x31f0
movq %rbx, %rdi
movsd 0x28(%rsp), %xmm0
callq 0x3290
movq %rax, %rbx
leaq 0x4f5c(%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 0x43d5
jmp 0x43c7
jmp 0x43c7
movq %rax, %rbx
jmp 0x43f3
jmp 0x4402
jmp 0x4402
movq %rax, %rbx
jmp 0x4420
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31d0
leaq 0x1b8(%rsp), %rdi
callq 0x4c84
jmp 0x4405
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4420
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x31d0
leaq 0x58(%rsp), %rdi
callq 0x4c84
movq %rbx, %rdi
callq 0x3300