#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double fabs(double);
int /*<<< orphan*/ free(double *);
double l2norm(double *, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ mmult(double *, double *, double *, int, int, int);
int /*<<< orphan*/ msub(double *, double *, double *, int, int);
double sqrt(double);
void bfgs_naive(double *H, int N, double eps, double *xi, double *xf,
                double *jac, double *jacf) {
  int i, j, supd, ct;
  double sn, yn, fd, yt, jacm;
  double *sk, *yk, *temp, *temp2, *t;
  sk = (double *)malloc(sizeof(double) * N);
  yk = (double *)malloc(sizeof(double) * N);
  temp = (double *)malloc(sizeof(double) * 1);
  temp2 = (double *)malloc(sizeof(double) * 1);
  t = (double *)malloc(sizeof(double) * N);
  msub(xf, xi, sk, 1, N);
  msub(jacf, jac, yk, 1, N);
  sn = l2norm(sk, N);
  yn = l2norm(yk, N);
  fd = sqrt(eps);
  mmult(yk, sk, temp, 1, N, 1);
  if (temp[0] >= fd * sn * yn) {
    supd = 1;
    for (i = 0; i < N; ++i) {
      t[i] = 0.0;
      for (j = 0; j < i; ++j) {
        ct = j * N;
        t[i] += H[ct + i] * sk[j];
      }
      for (j = i; j < N; ++j) {
        ct = i * N;
        t[i] += H[ct + j] * sk[j];
      }
      yt = fabs(yk[i] - t[i]);
      if (jac[i] > jacf[i]) {
        jacm = jac[i];
      } else {
        jacm = jacf[i];
      }
      if (yt >= fd * jacm) {
        supd = 0;
      }
    }
    if (supd == 0) {
      mmult(sk, t, temp2, 1, N, 1);
      for (i = 0; i < N; ++i) {
        ct = i * N;
        for (j = i; j < N; ++j) {
          H[ct + j] += (yk[i] * yk[j] / temp[0]);
          H[ct + j] -= (t[i] * t[j] / temp2[0]);
        }
      }
    }
  }
  free(sk);
  free(yk);
  free(temp);
  free(temp2);
  free(t);
}


x86 assembly (clang, -O0):
<bfgs_naive>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x78(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x80(%rbp)
mov    $0x8,%edi
call   1070 <malloc@plt>
mov    %rax,-0x88(%rbp)
mov    $0x8,%edi
call   1070 <malloc@plt>
mov    %rax,-0x90(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x98(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x78(%rbp),%rdx
mov    -0xc(%rbp),%r8d
mov    $0x1,%ecx
call   1060 <msub@plt>
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x80(%rbp),%rdx
mov    -0xc(%rbp),%r8d
mov    $0x1,%ecx
call   1060 <msub@plt>
mov    -0x78(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <l2norm@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x80(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <l2norm@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
mov    -0x80(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x88(%rbp),%rdx
mov    -0xc(%rbp),%r8d
mov    $0x1,%r9d
mov    %r9d,%ecx
call   1050 <mmult@plt>
mov    -0x88(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x60(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     153c <bfgs_naive+0x3dc>
movl   $0x1,-0x44(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1432 <bfgs_naive+0x2d2>
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1323 <bfgs_naive+0x1c3>
mov    -0x40(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12c3 <bfgs_naive+0x163>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1389 <bfgs_naive+0x229>
mov    -0x3c(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1329 <bfgs_naive+0x1c9>
mov    -0x80(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movaps 0xc53(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    13ed <bfgs_naive+0x28d>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    13ff <bfgs_naive+0x29f>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     141f <bfgs_naive+0x2bf>
movl   $0x0,-0x44(%rbp)
jmp    1424 <bfgs_naive+0x2c4>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    129d <bfgs_naive+0x13d>
cmpl   $0x0,-0x44(%rbp)
jne    1537 <bfgs_naive+0x3d7>
mov    -0x78(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0x90(%rbp),%rdx
mov    -0xc(%rbp),%r8d
mov    $0x1,%r9d
mov    %r9d,%ecx
call   1050 <mmult@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1532 <bfgs_naive+0x3d2>
mov    -0x3c(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    151f <bfgs_naive+0x3bf>
mov    -0x80(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x80(%rbp),%rax
movslq -0x40(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x88(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x98(%rbp),%rax
movslq -0x40(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mov    -0x90(%rbp),%rax
divsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1483 <bfgs_naive+0x323>
jmp    1524 <bfgs_naive+0x3c4>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1467 <bfgs_naive+0x307>
jmp    1537 <bfgs_naive+0x3d7>
jmp    153c <bfgs_naive+0x3dc>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bfgs_naive>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,%r14
mov    %r8,0x30(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,0x20(%rsp)
movsd  %xmm0,0x28(%rsp)
mov    %esi,%ebx
mov    %rdi,0x48(%rsp)
lea    0x0(,%rbx,8),%ebp
mov    %ebp,%edi
call   1070 <malloc@plt>
mov    %rax,%r13
mov    %ebp,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    $0x8,%edi
call   1070 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    $0x8,%edi
call   1070 <malloc@plt>
mov    %rax,0x40(%rsp)
mov    %ebp,%edi
mov    %rbx,%rbp
call   1070 <malloc@plt>
mov    %rax,%r12
mov    0x10(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    %r13,%rdx
mov    $0x1,%ecx
mov    %ebp,%r8d
call   1060 <msub@plt>
mov    %r14,0x20(%rsp)
mov    %r14,%rdi
mov    0x30(%rsp),%rsi
mov    %r15,%rdx
mov    $0x1,%ecx
mov    %ebp,%r8d
call   1060 <msub@plt>
mov    %r13,%rdi
mov    %ebp,%esi
call   1040 <l2norm@plt>
movsd  %xmm0,0x10(%rsp)
mov    %r15,%rdi
mov    %ebp,%esi
call   1040 <l2norm@plt>
movapd %xmm0,%xmm2
xorpd  %xmm0,%xmm0
movsd  0x28(%rsp),%xmm1
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  %xmm2,0x50(%rsp)
jb     1248 <bfgs_naive+0xe8>
sqrtsd %xmm0,%xmm0
jmp    124d <bfgs_naive+0xed>
call   1080 <sqrt@plt>
movsd  %xmm0,0x38(%rsp)
mov    0x18(%rsp),%rdx
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x1,%ecx
mov    %ebp,%r8d
mov    $0x1,%r9d
call   1050 <mmult@plt>
mov    0x18(%rsp),%rbx
movsd  (%rbx),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x38(%rsp),%xmm3
mulsd  %xmm3,%xmm1
movsd  0x50(%rsp),%xmm2
mulsd  %xmm1,%xmm2
ucomisd %xmm2,%xmm0
mov    0x40(%rsp),%rdx
jb     1420 <bfgs_naive+0x2c0>
test   %ebp,%ebp
jle    1420 <bfgs_naive+0x2c0>
mov    %rbp,0x10(%rsp)
mov    %ebp,%r14d
mov    %r14,%r11
shl    $0x4,%r11
lea    0x8(,%r14,8),%rbp
mov    $0x1,%r9d
movapd 0xd30(%rip),%xmm0
mov    %r14,%rsi
mov    %r13,%rdi
mov    0x48(%rsp),%r8
mov    %r8,%rdx
xor    %ecx,%ecx
mov    %rbp,0x28(%rsp)
cs nopw 0x0(%rax,%rax,1)
nop
movq   $0x0,(%r12,%rcx,8)
test   %rcx,%rcx
je     1310 <bfgs_naive+0x1b0>
cmp    $0x1,%rcx
jne    1320 <bfgs_naive+0x1c0>
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
jmp    1369 <bfgs_naive+0x209>
nopl   0x0(%rax,%rax,1)
xorpd  %xmm1,%xmm1
jmp    1399 <bfgs_naive+0x239>
nopl   0x0(%rax)
mov    %rcx,%rax
and    $0xfffffffffffffffe,%rax
xorpd  %xmm1,%xmm1
mov    %r8,%r10
xor    %ebx,%ebx
movsd  (%r10),%xmm2
mulsd  0x0(%r13,%rbx,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%r12,%rcx,8)
movsd  (%r10,%r14,8),%xmm1
mulsd  0x8(%r13,%rbx,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%r12,%rcx,8)
add    $0x2,%rbx
add    %r11,%r10
cmp    %rbx,%rax
jne    1330 <bfgs_naive+0x1d0>
test   $0x1,%cl
je     1399 <bfgs_naive+0x239>
mov    %rbx,%rax
imul   %r14,%rax
add    %rcx,%rax
mov    0x48(%rsp),%rbp
movsd  0x0(%rbp,%rax,8),%xmm2
mov    0x28(%rsp),%rbp
mulsd  0x0(%r13,%rbx,8),%xmm2
addsd  %xmm2,%xmm1
movsd  %xmm1,(%r12,%rcx,8)
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movsd  (%rdx,%rax,8),%xmm2
mulsd  (%rdi,%rax,8),%xmm2
addsd  %xmm2,%xmm1
movsd  %xmm1,(%r12,%rcx,8)
add    $0x1,%rax
cmp    %rax,%rsi
jne    13a0 <bfgs_naive+0x240>
movsd  (%r15,%rcx,8),%xmm2
subsd  %xmm1,%xmm2
mov    0x30(%rsp),%rax
movsd  (%rax,%rcx,8),%xmm1
mov    0x20(%rsp),%rax
maxsd  (%rax,%rcx,8),%xmm1
andpd  %xmm0,%xmm2
mulsd  %xmm3,%xmm1
ucomisd %xmm1,%xmm2
mov    $0x0,%eax
cmovae %eax,%r9d
add    $0x1,%rcx
add    $0x8,%r8
add    %rbp,%rdx
add    $0x8,%rdi
add    $0xffffffffffffffff,%rsi
cmp    %r14,%rcx
jne    12f0 <bfgs_naive+0x190>
test   %r9d,%r9d
mov    0x18(%rsp),%rbx
mov    0x40(%rsp),%rdx
mov    0x10(%rsp),%rbp
je     1459 <bfgs_naive+0x2f9>
mov    %r13,%rdi
mov    %rdx,%rbp
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    $0x1,%ecx
mov    %ebp,%r8d
mov    $0x1,%r9d
call   1050 <mmult@plt>
mov    0x40(%rsp),%rdx
mov    0x18(%rsp),%rbx
test   %ebp,%ebp
jle    1420 <bfgs_naive+0x2c0>
lea    0x0(,%r14,8),%rax
mov    %rax,0x50(%rsp)
lea    (%r15,%r14,8),%rax
mov    %rax,0x70(%rsp)
lea    0x8(%rbx),%rax
mov    %rax,0x68(%rsp)
lea    (%r12,%r14,8),%rax
mov    %rax,0x60(%rsp)
lea    0x8(%rdx),%rax
mov    %rax,0x58(%rsp)
xor    %r10d,%r10d
mov    0x48(%rsp),%rsi
mov    %rsi,%rcx
mov    %r12,%r11
mov    %r15,%rdi
mov    %r14,0x10(%rsp)
jmp    14f9 <bfgs_naive+0x399>
nopl   0x0(%rax)
addq   $0xffffffffffffffff,0x10(%rsp)
add    $0x8,%rdi
add    0x28(%rsp),%rsi
add    $0x8,%r11
add    0x50(%rsp),%rcx
mov    0x30(%rsp),%rbp
mov    %rbp,%r10
cmp    %r14,%rbp
je     1420 <bfgs_naive+0x2c0>
mov    %r14,%r8
sub    %r10,%r8
lea    0x1(%r10),%rbp
mov    %rbp,0x30(%rsp)
mov    %r10,%r9
mov    %r8,0x20(%rsp)
cmp    $0x2,%r8
jae    1570 <bfgs_naive+0x410>
cs nopw 0x0(%rax,%rax,1)
movsd  (%r15,%r10,8),%xmm0
mulsd  (%r15,%r9,8),%xmm0
divsd  (%rbx),%xmm0
addsd  (%rcx,%r9,8),%xmm0
movsd  %xmm0,(%rcx,%r9,8)
movsd  (%r12,%r10,8),%xmm1
mulsd  (%r12,%r9,8),%xmm1
divsd  (%rdx),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rcx,%r9,8)
add    $0x1,%r9
cmp    %r9,%r14
jne    1520 <bfgs_naive+0x3c0>
jmp    14d0 <bfgs_naive+0x370>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x28(%rsp),%r8
imul   %r10,%r8
mov    0x48(%rsp),%rbp
add    %rbp,%r8
mov    %r10,%rax
imul   %r14,%rax
add    %r14,%rax
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
lea    (%r15,%r10,8),%rbx
lea    (%r12,%r10,8),%r9
mov    0x30(%rsp),%rbp
lea    (%r15,%rbp,8),%rdx
cmp    0x70(%rsp),%r8
setb   0x38(%rsp)
cmp    %rax,%rbx
setb   0xf(%rsp)
cmp    %rdx,%r8
mov    0x18(%rsp),%rbx
setb   0xe(%rsp)
cmp    0x68(%rsp),%r8
setb   0xd(%rsp)
cmp    %rax,%rbx
setb   0xc(%rsp)
cmp    0x60(%rsp),%r8
setb   0xb(%rsp)
cmp    %rax,%r9
lea    (%r12,%rbp,8),%r9
setb   %bpl
cmp    %r9,%r8
setb   0xa(%rsp)
cmp    0x58(%rsp),%r8
mov    0x40(%rsp),%rdx
setb   0x8(%rsp)
cmp    %rax,%rdx
setb   0x9(%rsp)
mov    %r10,%r9
mov    0xf(%rsp),%al
test   %al,0x38(%rsp)
jne    1520 <bfgs_naive+0x3c0>
mov    %eax,%r8d
mov    %r10,%r9
and    %al,0xe(%rsp)
jne    1520 <bfgs_naive+0x3c0>
mov    %r10,%r9
mov    0xc(%rsp),%al
and    %al,0xd(%rsp)
jne    1520 <bfgs_naive+0x3c0>
mov    %r10,%r9
and    %bpl,0xb(%rsp)
jne    1520 <bfgs_naive+0x3c0>
mov    %r10,%r9
and    %bpl,0xa(%rsp)
jne    1520 <bfgs_naive+0x3c0>
mov    %r10,%r9
mov    0x8(%rsp),%al
and    0x9(%rsp),%al
jne    1520 <bfgs_naive+0x3c0>
mov    0x10(%rsp),%rbp
and    $0xfffffffffffffffe,%rbp
mov    0x20(%rsp),%r8
and    $0xfffffffffffffffe,%r8
lea    (%r10,%r8,1),%r9
movsd  (%r15,%r10,8),%xmm0
unpcklpd %xmm0,%xmm0
movsd  (%rbx),%xmm1
unpcklpd %xmm1,%xmm1
movsd  (%r12,%r10,8),%xmm2
unpcklpd %xmm2,%xmm2
movsd  (%rdx),%xmm3
unpcklpd %xmm3,%xmm3
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd (%rdi,%rax,8),%xmm4
mulpd  %xmm0,%xmm4
divpd  %xmm1,%xmm4
movupd (%rsi,%rax,8),%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,(%rsi,%rax,8)
movupd (%r11,%rax,8),%xmm4
mulpd  %xmm2,%xmm4
divpd  %xmm3,%xmm4
subpd  %xmm4,%xmm5
movupd %xmm5,(%rsi,%rax,8)
add    $0x2,%rax
cmp    %rax,%rbp
jne    16b0 <bfgs_naive+0x550>
cmp    %r8,0x20(%rsp)
jne    1520 <bfgs_naive+0x3c0>
jmp    14d0 <bfgs_naive+0x370>

LLVM IR (-O0):
define void @bfgs_naive(double* %0, i32 %1, double %2, double* %3, double* %4, double* %5, double* %6) {
%8 = alloca double*
%9 = alloca i32
%10 = alloca double
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double*
%25 = alloca double*
%26 = alloca double*
%27 = alloca double*
%28 = alloca double*
store double* %0, double** %8
store i32 %1, i32* %9
store double %2, double* %10
store double* %3, double** %11
store double* %4, double** %12
store double* %5, double** %13
store double* %6, double** %14
%29 = load i32, i32* %9
%30 = sext i32 %29 to i64
%31 = mul i64 8, %30
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 %32)
%34 = inttoptr i64 %33 to double*
store double* %34, double** %24
%35 = load i32, i32* %9
%36 = sext i32 %35 to i64
%37 = mul i64 8, %36
%38 = trunc i64 %37 to i32
%39 = call i64 @malloc(i32 %38)
%40 = inttoptr i64 %39 to double*
store double* %40, double** %25
%41 = call i64 @malloc(i32 8)
%42 = inttoptr i64 %41 to double*
store double* %42, double** %26
%43 = call i64 @malloc(i32 8)
%44 = inttoptr i64 %43 to double*
store double* %44, double** %27
%45 = load i32, i32* %9
%46 = sext i32 %45 to i64
%47 = mul i64 8, %46
%48 = trunc i64 %47 to i32
%49 = call i64 @malloc(i32 %48)
%50 = inttoptr i64 %49 to double*
store double* %50, double** %28
%51 = load double*, double** %12
%52 = load double*, double** %11
%53 = load double*, double** %24
%54 = load i32, i32* %9
%55 = call i32 @msub(double* %51, double* %52, double* %53, i32 1, i32 %54)
%56 = load double*, double** %14
%57 = load double*, double** %13
%58 = load double*, double** %25
%59 = load i32, i32* %9
%60 = call i32 @msub(double* %56, double* %57, double* %58, i32 1, i32 %59)
%61 = load double*, double** %24
%62 = load i32, i32* %9
%63 = call double @l2norm(double* %61, i32 %62)
store double %63, double* %19
%64 = load double*, double** %25
%65 = load i32, i32* %9
%66 = call double @l2norm(double* %64, i32 %65)
store double %66, double* %20
%67 = load double, double* %10
%68 = call double @sqrt(double %67)
store double %68, double* %21
%69 = load double*, double** %25
%70 = load double*, double** %24
%71 = load double*, double** %26
%72 = load i32, i32* %9
%73 = call i32 @mmult(double* %69, double* %70, double* %71, i32 1, i32 %72, i32 1)
%74 = load double*, double** %26
%75 = getelementptr inbounds double, double* %74, i64 0
%76 = load double, double* %75
%77 = load double, double* %21
%78 = load double, double* %19
%79 = fmul double %77, %78
%80 = load double, double* %20
%81 = fmul double %79, %80
%82 = fcmp oge double %76, %81
br i1 %82, label %83, label %278
83: ; preds = %7
store i32 1, i32* %17
store i32 0, i32* %15
br label %84
84: ; preds = %197, %83
%85 = load i32, i32* %15
%86 = load i32, i32* %9
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %200
88: ; preds = %84
%89 = load double*, double** %28
%90 = load i32, i32* %15
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %89, i64 %91
store double 0.000000e+00, double* %92
store i32 0, i32* %16
br label %93
93: ; preds = %119, %88
%94 = load i32, i32* %16
%95 = load i32, i32* %15
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %122
97: ; preds = %93
%98 = load i32, i32* %16
%99 = load i32, i32* %9
%100 = mul nsw i32 %98, %99
store i32 %100, i32* %18
%101 = load double*, double** %8
%102 = load i32, i32* %18
%103 = load i32, i32* %15
%104 = add nsw i32 %102, %103
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %101, i64 %105
%107 = load double, double* %106
%108 = load double*, double** %24
%109 = load i32, i32* %16
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, double* %108, i64 %110
%112 = load double, double* %111
%113 = load double*, double** %28
%114 = load i32, i32* %15
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
%117 = load double, double* %116
%118 = call double @llvm.fmuladd.f64(double %107, double %112, double %117)
store double %118, double* %116
br label %119
119: ; preds = %97
%120 = load i32, i32* %16
%121 = add nsw i32 %120, 1
store i32 %121, i32* %16
br label %93
122: ; preds = %93
%123 = load i32, i32* %15
store i32 %123, i32* %16
br label %124
124: ; preds = %150, %122
%125 = load i32, i32* %16
%126 = load i32, i32* %9
%127 = icmp slt i32 %125, %126
br i1 %127, label %128, label %153
128: ; preds = %124
%129 = load i32, i32* %15
%130 = load i32, i32* %9
%131 = mul nsw i32 %129, %130
store i32 %131, i32* %18
%132 = load double*, double** %8
%133 = load i32, i32* %18
%134 = load i32, i32* %16
%135 = add nsw i32 %133, %134
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %132, i64 %136
%138 = load double, double* %137
%139 = load double*, double** %24
%140 = load i32, i32* %16
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, double* %139, i64 %141
%143 = load double, double* %142
%144 = load double*, double** %28
%145 = load i32, i32* %15
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, double* %144, i64 %146
%148 = load double, double* %147
%149 = call double @llvm.fmuladd.f64(double %138, double %143, double %148)
store double %149, double* %147
br label %150
150: ; preds = %128
%151 = load i32, i32* %16
%152 = add nsw i32 %151, 1
store i32 %152, i32* %16
br label %124
153: ; preds = %124
%154 = load double*, double** %25
%155 = load i32, i32* %15
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
%159 = load double*, double** %28
%160 = load i32, i32* %15
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, double* %159, i64 %161
%163 = load double, double* %162
%164 = fsub double %158, %163
%165 = call double @llvm.fabs.f64(double %164)
store double %165, double* %22
%166 = load double*, double** %13
%167 = load i32, i32* %15
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, double* %166, i64 %168
%170 = load double, double* %169
%171 = load double*, double** %14
%172 = load i32, i32* %15
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %171, i64 %173
%175 = load double, double* %174
%176 = fcmp ogt double %170, %175
br i1 %176, label %177, label %183
177: ; preds = %153
%178 = load double*, double** %13
%179 = load i32, i32* %15
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, double* %178, i64 %180
%182 = load double, double* %181
store double %182, double* %23
br label %189
183: ; preds = %153
%184 = load double*, double** %14
%185 = load i32, i32* %15
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %184, i64 %186
%188 = load double, double* %187
store double %188, double* %23
br label %189
189: ; preds = %183, %177
%190 = load double, double* %22
%191 = load double, double* %21
%192 = load double, double* %23
%193 = fmul double %191, %192
%194 = fcmp oge double %190, %193
br i1 %194, label %195, label %196
195: ; preds = %189
store i32 0, i32* %17
br label %196
196: ; preds = %195, %189
br label %197
197: ; preds = %196
%198 = load i32, i32* %15
%199 = add nsw i32 %198, 1
store i32 %199, i32* %15
br label %84
200: ; preds = %84
%201 = load i32, i32* %17
%202 = icmp eq i32 %201, 0
br i1 %202, label %203, label %277
203: ; preds = %200
%204 = load double*, double** %24
%205 = load double*, double** %28
%206 = load double*, double** %27
%207 = load i32, i32* %9
%208 = call i32 @mmult(double* %204, double* %205, double* %206, i32 1, i32 %207, i32 1)
store i32 0, i32* %15
br label %209
209: ; preds = %273, %203
%210 = load i32, i32* %15
%211 = load i32, i32* %9
%212 = icmp slt i32 %210, %211
br i1 %212, label %213, label %276
213: ; preds = %209
%214 = load i32, i32* %15
%215 = load i32, i32* %9
%216 = mul nsw i32 %214, %215
store i32 %216, i32* %18
%217 = load i32, i32* %15
store i32 %217, i32* %16
br label %218
218: ; preds = %269, %213
%219 = load i32, i32* %16
%220 = load i32, i32* %9
%221 = icmp slt i32 %219, %220
br i1 %221, label %222, label %272
222: ; preds = %218
%223 = load double*, double** %25
%224 = load i32, i32* %15
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double, double* %223, i64 %225
%227 = load double, double* %226
%228 = load double*, double** %25
%229 = load i32, i32* %16
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds double, double* %228, i64 %230
%232 = load double, double* %231
%233 = fmul double %227, %232
%234 = load double*, double** %26
%235 = getelementptr inbounds double, double* %234, i64 0
%236 = load double, double* %235
%237 = fdiv double %233, %236
%238 = load double*, double** %8
%239 = load i32, i32* %18
%240 = load i32, i32* %16
%241 = add nsw i32 %239, %240
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, double* %238, i64 %242
%244 = load double, double* %243
%245 = fadd double %244, %237
store double %245, double* %243
%246 = load double*, double** %28
%247 = load i32, i32* %15
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds double, double* %246, i64 %248
%250 = load double, double* %249
%251 = load double*, double** %28
%252 = load i32, i32* %16
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds double, double* %251, i64 %253
%255 = load double, double* %254
%256 = fmul double %250, %255
%257 = load double*, double** %27
%258 = getelementptr inbounds double, double* %257, i64 0
%259 = load double, double* %258
%260 = fdiv double %256, %259
%261 = load double*, double** %8
%262 = load i32, i32* %18
%263 = load i32, i32* %16
%264 = add nsw i32 %262, %263
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, double* %261, i64 %265
%267 = load double, double* %266
%268 = fsub double %267, %260
store double %268, double* %266
br label %269
269: ; preds = %222
%270 = load i32, i32* %16
%271 = add nsw i32 %270, 1
store i32 %271, i32* %16
br label %218
272: ; preds = %218
br label %273
273: ; preds = %272
%274 = load i32, i32* %15
%275 = add nsw i32 %274, 1
store i32 %275, i32* %15
br label %209
276: ; preds = %209
br label %277
277: ; preds = %276, %200
br label %278
278: ; preds = %277, %7
%279 = load double*, double** %24
%280 = call i32 @free(double* %279)
%281 = load double*, double** %25
%282 = call i32 @free(double* %281)
%283 = load double*, double** %26
%284 = call i32 @free(double* %283)
%285 = load double*, double** %27
%286 = call i32 @free(double* %285)
%287 = load double*, double** %28
%288 = call i32 @free(double* %287)
ret void
}

LLVM IR (-O2):
define void @bfgs_naive(double* nocapture %0, i32 %1, double %2, double* %3, double* %4, double* %5, double* %6) {
%8 = bitcast double* %0 to i8*
%9 = shl i32 %1, 3
%10 = tail call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to double*
%12 = tail call i64 @malloc(i32 %9)
%13 = inttoptr i64 %12 to double*
%14 = tail call i64 @malloc(i32 8)
%15 = inttoptr i64 %14 to double*
%16 = inttoptr i64 %14 to i8*
%17 = tail call i64 @malloc(i32 8)
%18 = inttoptr i64 %17 to double*
%19 = inttoptr i64 %17 to i8*
%20 = tail call i64 @malloc(i32 %9)
%21 = inttoptr i64 %20 to double*
%22 = tail call i32 @msub(double* %4, double* %3, double* %11, i32 1, i32 %1)
%23 = tail call i32 @msub(double* %6, double* %5, double* %13, i32 1, i32 %1)
%24 = tail call double @l2norm(double* %11, i32 %1)
%25 = tail call double @l2norm(double* %13, i32 %1)
%26 = tail call double @sqrt(double %2)
%27 = tail call i32 @mmult(double* %13, double* %11, double* %15, i32 1, i32 %1, i32 1)
%28 = load double, double* %15
%29 = fmul double %24, %26
%30 = fmul double %25, %29
%31 = fcmp ult double %28, %30
br i1 %31, label %239, label %32
32: ; preds = %7
%33 = icmp sgt i32 %1, 0
br i1 %33, label %34, label %239
34: ; preds = %32
%35 = zext i32 %1 to i64
%36 = zext i32 %1 to i64
br label %37
37: ; preds = %34, %96
%38 = phi i64 [ 0, %34 ], [ %110, %96 ]
%39 = phi i32 [ 1, %34 ], [ %109, %96 ]
%40 = getelementptr inbounds double, double* %21, i64 %38
store double 0.000000e+00, double* %40
%41 = icmp eq i64 %38, 0
br i1 %41, label %60, label %42
42: ; preds = %37
%43 = and i64 %38, 1
%44 = icmp eq i64 %38, 1
br i1 %44, label %47, label %45
45: ; preds = %42
%46 = and i64 %38, 9223372036854775806
br label %63
47: ; preds = %63, %42
%48 = phi double [ undef, %42 ], [ %81, %63 ]
%49 = phi double [ 0.000000e+00, %42 ], [ %81, %63 ]
%50 = phi i64 [ 0, %42 ], [ %82, %63 ]
%51 = icmp eq i64 %43, 0
br i1 %51, label %60, label %52
52: ; preds = %47
%53 = mul nsw i64 %50, %35
%54 = add nuw nsw i64 %53, %38
%55 = getelementptr inbounds double, double* %0, i64 %54
%56 = load double, double* %55
%57 = getelementptr inbounds double, double* %11, i64 %50
%58 = load double, double* %57
%59 = tail call double @llvm.fmuladd.f64(double %56, double %58, double %49)
store double %59, double* %40
br label %60
60: ; preds = %52, %47, %37
%61 = phi double [ 0.000000e+00, %37 ], [ %48, %47 ], [ %59, %52 ]
%62 = mul nsw i64 %38, %35
br label %85
63: ; preds = %63, %45
%64 = phi double [ 0.000000e+00, %45 ], [ %81, %63 ]
%65 = phi i64 [ 0, %45 ], [ %82, %63 ]
%66 = phi i64 [ 0, %45 ], [ %83, %63 ]
%67 = mul nsw i64 %65, %35
%68 = add nuw nsw i64 %67, %38
%69 = getelementptr inbounds double, double* %0, i64 %68
%70 = load double, double* %69
%71 = getelementptr inbounds double, double* %11, i64 %65
%72 = load double, double* %71
%73 = tail call double @llvm.fmuladd.f64(double %70, double %72, double %64)
store double %73, double* %40
%74 = or i64 %65, 1
%75 = mul nsw i64 %74, %35
%76 = add nuw nsw i64 %75, %38
%77 = getelementptr inbounds double, double* %0, i64 %76
%78 = load double, double* %77
%79 = getelementptr inbounds double, double* %11, i64 %74
%80 = load double, double* %79
%81 = tail call double @llvm.fmuladd.f64(double %78, double %80, double %73)
store double %81, double* %40
%82 = add nuw nsw i64 %65, 2
%83 = add i64 %66, 2
%84 = icmp eq i64 %83, %46
br i1 %84, label %47, label %63
85: ; preds = %60, %85
%86 = phi double [ %61, %60 ], [ %93, %85 ]
%87 = phi i64 [ %38, %60 ], [ %94, %85 ]
%88 = add nuw nsw i64 %87, %62
%89 = getelementptr inbounds double, double* %0, i64 %88
%90 = load double, double* %89
%91 = getelementptr inbounds double, double* %11, i64 %87
%92 = load double, double* %91
%93 = tail call double @llvm.fmuladd.f64(double %90, double %92, double %86)
store double %93, double* %40
%94 = add nuw nsw i64 %87, 1
%95 = icmp eq i64 %94, %36
br i1 %95, label %96, label %85
96: ; preds = %85
%97 = getelementptr inbounds double, double* %13, i64 %38
%98 = load double, double* %97
%99 = fsub double %98, %93
%100 = tail call double @llvm.fabs.f64(double %99)
%101 = getelementptr inbounds double, double* %5, i64 %38
%102 = load double, double* %101
%103 = getelementptr inbounds double, double* %6, i64 %38
%104 = load double, double* %103
%105 = fcmp ogt double %102, %104
%106 = select i1 %105, double %102, double %104
%107 = fmul double %26, %106
%108 = fcmp ult double %100, %107
%109 = select i1 %108, i32 %39, i32 0
%110 = add nuw nsw i64 %38, 1
%111 = icmp eq i64 %110, %36
br i1 %111, label %112, label %37
112: ; preds = %96
%113 = icmp eq i32 %109, 0
br i1 %113, label %114, label %239
114: ; preds = %112
%115 = tail call i32 @mmult(double* %11, double* %21, double* %18, i32 1, i32 %1, i32 1)
br i1 %33, label %116, label %239
116: ; preds = %114
%117 = zext i32 %1 to i64
%118 = zext i32 %1 to i64
%119 = shl nuw nsw i64 %36, 3
%120 = add nuw nsw i64 %119, 8
%121 = getelementptr double, double* %13, i64 %36
%122 = bitcast double* %121 to i8*
%123 = getelementptr double, double* %15, i64 1
%124 = bitcast double* %123 to i8*
%125 = getelementptr double, double* %21, i64 %36
%126 = bitcast double* %125 to i8*
%127 = getelementptr double, double* %18, i64 1
%128 = bitcast double* %127 to i8*
br label %129
129: ; preds = %236, %116
%130 = phi i64 [ 0, %116 ], [ %237, %236 ]
%131 = sub nsw i64 %36, %130
%132 = mul i64 %120, %130
%133 = getelementptr i8, i8* %8, i64 %132
%134 = mul i64 %130, %36
%135 = add i64 %134, %36
%136 = getelementptr double, double* %0, i64 %135
%137 = bitcast double* %136 to i8*
%138 = getelementptr double, double* %13, i64 %130
%139 = add nuw i64 %130, 1
%140 = getelementptr double, double* %21, i64 %130
%141 = mul nsw i64 %130, %117
%142 = getelementptr inbounds double, double* %13, i64 %130
%143 = getelementptr inbounds double, double* %21, i64 %130
%144 = icmp ult i64 %131, 2
br i1 %144, label %213, label %145
145: ; preds = %129
%146 = getelementptr double, double* %21, i64 %139
%147 = bitcast double* %146 to i8*
%148 = getelementptr double, double* %13, i64 %139
%149 = bitcast double* %148 to i8*
%150 = icmp ult i8* %133, %122
%151 = icmp ult double* %138, %136
%152 = and i1 %150, %151
%153 = icmp ult i8* %133, %149
%154 = icmp ult double* %138, %136
%155 = and i1 %153, %154
%156 = or i1 %152, %155
%157 = icmp ult i8* %133, %124
%158 = icmp ult i8* %16, %137
%159 = and i1 %157, %158
%160 = or i1 %156, %159
%161 = icmp ult i8* %133, %126
%162 = icmp ult double* %140, %136
%163 = and i1 %161, %162
%164 = or i1 %160, %163
%165 = icmp ult i8* %133, %147
%166 = icmp ult double* %140, %136
%167 = and i1 %165, %166
%168 = or i1 %164, %167
%169 = icmp ult i8* %133, %128
%170 = icmp ult i8* %19, %137
%171 = and i1 %169, %170
%172 = or i1 %168, %171
br i1 %172, label %213, label %173
173: ; preds = %145
%174 = and i64 %131, -2
%175 = add i64 %130, %174
%176 = load double, double* %142
%177 = insertelement <2 x double> poison, double %176, i64 0
%178 = shufflevector <2 x double> %177, <2 x double> poison, <2 x i32> zeroinitializer
%179 = load double, double* %15
%180 = insertelement <2 x double> poison, double %179, i64 0
%181 = shufflevector <2 x double> %180, <2 x double> poison, <2 x i32> zeroinitializer
%182 = load double, double* %143
%183 = insertelement <2 x double> poison, double %182, i64 0
%184 = shufflevector <2 x double> %183, <2 x double> poison, <2 x i32> zeroinitializer
%185 = load double, double* %18
%186 = insertelement <2 x double> poison, double %185, i64 0
%187 = shufflevector <2 x double> %186, <2 x double> poison, <2 x i32> zeroinitializer
br label %188
188: ; preds = %188, %173
%189 = phi i64 [ 0, %173 ], [ %209, %188 ]
%190 = add i64 %130, %189
%191 = getelementptr inbounds double, double* %13, i64 %190
%192 = bitcast double* %191 to <2 x double>*
%193 = load <2 x double>, <2 x double>* %192
%194 = fmul <2 x double> %178, %193
%195 = fdiv <2 x double> %194, %181
%196 = add nuw nsw i64 %190, %141
%197 = getelementptr inbounds double, double* %0, i64 %196
%198 = bitcast double* %197 to <2 x double>*
%199 = load <2 x double>, <2 x double>* %198
%200 = fadd <2 x double> %199, %195
%201 = bitcast double* %197 to <2 x double>*
store <2 x double> %200, <2 x double>* %201
%202 = getelementptr inbounds double, double* %21, i64 %190
%203 = bitcast double* %202 to <2 x double>*
%204 = load <2 x double>, <2 x double>* %203
%205 = fmul <2 x double> %184, %204
%206 = fdiv <2 x double> %205, %187
%207 = fsub <2 x double> %200, %206
%208 = bitcast double* %197 to <2 x double>*
store <2 x double> %207, <2 x double>* %208
%209 = add nuw i64 %189, 2
%210 = icmp eq i64 %209, %174
br i1 %210, label %211, label %188
211: ; preds = %188
%212 = icmp eq i64 %131, %174
br i1 %212, label %236, label %213
213: ; preds = %145, %129, %211
%214 = phi i64 [ %130, %145 ], [ %130, %129 ], [ %175, %211 ]
br label %215
215: ; preds = %213, %215
%216 = phi i64 [ %234, %215 ], [ %214, %213 ]
%217 = load double, double* %142
%218 = getelementptr inbounds double, double* %13, i64 %216
%219 = load double, double* %218
%220 = fmul double %217, %219
%221 = load double, double* %15
%222 = fdiv double %220, %221
%223 = add nuw nsw i64 %216, %141
%224 = getelementptr inbounds double, double* %0, i64 %223
%225 = load double, double* %224
%226 = fadd double %225, %222
store double %226, double* %224
%227 = load double, double* %143
%228 = getelementptr inbounds double, double* %21, i64 %216
%229 = load double, double* %228
%230 = fmul double %227, %229
%231 = load double, double* %18
%232 = fdiv double %230, %231
%233 = fsub double %226, %232
store double %233, double* %224
%234 = add nuw nsw i64 %216, 1
%235 = icmp eq i64 %234, %118
br i1 %235, label %236, label %215
236: ; preds = %215, %211
%237 = add nuw nsw i64 %130, 1
%238 = icmp eq i64 %237, %118
br i1 %238, label %239, label %129
239: ; preds = %236, %32, %114, %112, %7
%240 = tail call i32 @free(double* %11)
%241 = tail call i32 @free(double* %13)
%242 = tail call i32 @free(double* %15)
%243 = tail call i32 @free(double* %18)
%244 = tail call i32 @free(double* %21)
ret void
}