#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 atan2(double, double);
double cos(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
double sin(double);
double ls_oneperiod(double *x, double *y, int n, double period) {
  void avevar(double *data, int n, double *ave, double *var);
  int j;
  double ave, c, cc, cwtau, pnow, pymax, s, ss, sumc, sumcy, sums, sumsh, sumsy,
      swtau, var, wtau, xave, xdif, xmax, xmin, yy;
  double arg, *wi, *wpi, *wpr, *wr;
  wi = (double *)malloc(n * sizeof(double));
  wpi = (double *)malloc(n * sizeof(double));
  wpr = (double *)malloc(n * sizeof(double));
  wr = (double *)malloc(n * sizeof(double));
  avevar(y, n, &ave, &var);
  xmax = xmin = x[0];
  for (j = 0; j < n; j++) {
    if (x[j] > xmax)
      xmax = x[j];
    if (x[j] < xmin)
      xmin = x[j];
  }
  xdif = xmax - xmin;
  xave = 0.5 * (xmax + xmin);
  pymax = 0.0;
  pnow = 1.0 / (period);
  for (j = 0; j < n; j++) {
    arg = 6.2831853071795865 * ((x[j] - xave) * pnow);
    wpr[j] = -2.0 * ((sin(0.5 * arg)) * (sin(0.5 * arg)));
    wpi[j] = sin(arg);
    wr[j] = cos(arg);
    wi[j] = wpi[j];
  }
  pnow = 1. / period;
  sumsh = sumc = 0.0;
  for (j = 0; j < n; j++) {
    c = wr[j];
    s = wi[j];
    sumsh += s * c;
    sumc += (c - s) * (c + s);
  }
  wtau = 0.5 * atan2(2.0 * sumsh, sumc);
  swtau = sin(wtau);
  cwtau = cos(wtau);
  sums = sumc = sumsy = sumcy = 0.0;
  for (j = 0; j < n; j++) {
    s = wi[j];
    c = wr[j];
    ss = s * cwtau - c * swtau;
    cc = c * cwtau + s * swtau;
    sums += ss * ss;
    sumc += cc * cc;
    yy = y[j] - ave;
    sumsy += yy * ss;
    sumcy += yy * cc;
  }
  pymax = 0.5 * (sumcy * sumcy / sumc + sumsy * sumsy / sums) / var;
  free(wi);
  free(wpi);
  free(wpr);
  free(wr);
  return pymax;
}


x86 assembly (clang, -O0):
<ls_oneperiod>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0xe0(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0xe8(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0xf0(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    -0x30(%rbp),%rdx
lea    -0xa0(%rbp),%rcx
call   1040 <avevar@plt>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    128c <ls_oneperiod+0x12c>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0xc0(%rbp),%xmm0
ff
jbe    1245 <ls_oneperiod+0xe5>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1279 <ls_oneperiod+0x119>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
jmp    127e <ls_oneperiod+0x11e>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1209 <ls_oneperiod+0xa9>
movsd  -0xc0(%rbp),%xmm0
ff
subsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xc0(%rbp),%xmm1
ff
addsd  -0xc8(%rbp),%xmm1
ff
movsd  0xd4c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xd28(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13e5 <ls_oneperiod+0x285>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
subsd  -0xb0(%rbp),%xmm1
ff
mulsd  -0x50(%rbp),%xmm1
movsd  0xd09(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xcdd(%rip),%xmm0
mulsd  -0xd8(%rbp),%xmm0
ff
call   1060 <sin@plt>
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0xcc0(%rip),%xmm0
mulsd  -0xd8(%rbp),%xmm0
ff
call   1060 <sin@plt>
movsd  -0x100(%rbp),%xmm1
ff
mulsd  %xmm0,%xmm1
movsd  0xcaf(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0xf0(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xd8(%rbp),%xmm0
ff
call   1060 <sin@plt>
mov    -0xe8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xd8(%rbp),%xmm0
ff
call   1080 <cos@plt>
mov    -0xf8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xe8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xe0(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12e9 <ls_oneperiod+0x189>
movsd  0xc13(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    149d <ls_oneperiod+0x33d>
mov    -0xf8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0xe0(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
addsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1411 <ls_oneperiod+0x2b1>
movsd  0xb6b(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  -0x70(%rbp),%xmm1
call   1050 <atan2@plt>
movaps %xmm0,%xmm1
movsd  0xb46(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
call   1060 <sin@plt>
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
call   1080 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1658 <ls_oneperiod+0x4f8>
mov    -0xe0(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0xf8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  -0x68(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  -0x40(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    151f <ls_oneperiod+0x3bf>
movsd  -0x78(%rbp),%xmm1
mulsd  -0x78(%rbp),%xmm1
divsd  -0x70(%rbp),%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x90(%rbp),%xmm0
ff
divsd  -0x80(%rbp),%xmm0
addsd  %xmm0,%xmm1
movsd  0x980(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x58(%rbp)
mov    -0xe0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xe8(%rbp),%rdi
call   1030 <free@plt>
mov    -0xf0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xf8(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x58(%rbp),%xmm0
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ls_oneperiod>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movsd  %xmm0,(%rsp)
mov    %edx,%r13d
mov    %rsi,%r15
mov    %rdi,%rbp
lea    0x0(,%r13,8),%ebx
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    %ebx,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
lea    0x70(%rsp),%rdx
lea    0x68(%rsp),%rcx
mov    %r15,%rdi
mov    %r13d,%esi
call   1040 <avevar@plt>
mov    %r13,%rsi
xorpd  %xmm0,%xmm0
mov    %esi,%r13d
test   %esi,%esi
jle    139f <ls_oneperiod+0x23f>
movsd  0x0(%rbp),%xmm6
movapd %xmm6,%xmm3
movapd %xmm6,%xmm2
cmp    $0x1,%esi
je     12b2 <ls_oneperiod+0x152>
lea    -0x1(%r13),%rdx
lea    -0x2(%r13),%rcx
mov    %edx,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    120d <ls_oneperiod+0xad>
mov    $0x1,%ecx
movapd %xmm6,%xmm5
movapd %xmm6,%xmm1
jmp    1275 <ls_oneperiod+0x115>
and    $0xfffffffffffffffc,%rdx
xor    %ecx,%ecx
movapd %xmm6,%xmm5
movapd %xmm6,%xmm1
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rbp,%rcx,8),%xmm2
movsd  0x10(%rbp,%rcx,8),%xmm3
movapd %xmm2,%xmm4
maxsd  %xmm1,%xmm4
minsd  %xmm5,%xmm2
movapd %xmm3,%xmm1
maxsd  %xmm4,%xmm1
minsd  %xmm2,%xmm3
movsd  0x18(%rbp,%rcx,8),%xmm2
movapd %xmm2,%xmm4
maxsd  %xmm1,%xmm4
minsd  %xmm3,%xmm2
movsd  0x20(%rbp,%rcx,8),%xmm5
movapd %xmm5,%xmm1
maxsd  %xmm4,%xmm1
minsd  %xmm2,%xmm5
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1220 <ls_oneperiod+0xc0>
add    $0x1,%rcx
movapd %xmm1,%xmm3
movapd %xmm5,%xmm2
test   %rax,%rax
je     12b2 <ls_oneperiod+0x152>
lea    0x0(,%rcx,8),%rcx
add    %rbp,%rcx
xor    %edx,%edx
nop
movsd  (%rcx,%rdx,8),%xmm2
movapd %xmm2,%xmm3
maxsd  %xmm1,%xmm3
minsd  %xmm5,%xmm2
add    $0x1,%rdx
movapd %xmm2,%xmm5
movapd %xmm3,%xmm1
cmp    %rdx,%rax
jne    1290 <ls_oneperiod+0x130>
test   %esi,%esi
jle    139f <ls_oneperiod+0x23f>
mov    %rsi,0x38(%rsp)
mov    %r15,0x48(%rsp)
addsd  %xmm2,%xmm3
mulsd  0xd30(%rip),%xmm3
movsd  0xd30(%rip),%xmm0
divsd  (%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
mov    %r13,0x40(%rsp)
add    $0xffffffffffffffff,%r13
xor    %r15d,%r15d
movsd  %xmm3,0x50(%rsp)
cs nopw 0x0(%rax,%rax,1)
nop
subsd  %xmm3,%xmm6
mulsd  0x58(%rsp),%xmm6
mulsd  0xcfe(%rip),%xmm6
movsd  %xmm6,(%rsp)
movapd %xmm6,%xmm0
mulsd  0xcdd(%rip),%xmm0
movsd  %xmm0,0x60(%rsp)
call   1060 <sin@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x60(%rsp),%xmm0
call   1060 <sin@plt>
mulsd  0x20(%rsp),%xmm0
mulsd  0xccb(%rip),%xmm0
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax,%r15,8)
movsd  (%rsp),%xmm0
call   1060 <sin@plt>
movsd  %xmm0,(%r14,%r15,8)
movsd  (%rsp),%xmm0
call   1080 <cos@plt>
movsd  %xmm0,(%rbx,%r15,8)
movsd  (%r14,%r15,8),%xmm0
movsd  %xmm0,(%r12,%r15,8)
cmp    %r15,%r13
je     13a8 <ls_oneperiod+0x248>
movsd  0x8(%rbp,%r15,8),%xmm6
add    $0x1,%r15
movsd  0x50(%rsp),%xmm3
jmp    1300 <ls_oneperiod+0x1a0>
xorpd  %xmm1,%xmm1
jmp    1472 <ls_oneperiod+0x312>
xorpd  %xmm1,%xmm1
mov    0x38(%rsp),%rsi
test   %esi,%esi
mov    0x48(%rsp),%r15
mov    0x40(%rsp),%r13
xorpd  %xmm0,%xmm0
jle    1472 <ls_oneperiod+0x312>
cmp    $0x1,%esi
jne    13d4 <ls_oneperiod+0x274>
xorpd  %xmm1,%xmm1
xor    %eax,%eax
jmp    1439 <ls_oneperiod+0x2d9>
mov    %r13d,%ecx
and    $0xfffffffe,%ecx
xorpd  %xmm1,%xmm1
xor    %eax,%eax
movsd  (%rbx,%rax,8),%xmm0
movsd  0x8(%rbx,%rax,8),%xmm2
movsd  (%r12,%rax,8),%xmm3
movsd  0x8(%r12,%rax,8),%xmm4
movapd %xmm0,%xmm5
addsd  %xmm3,%xmm5
unpcklpd %xmm0,%xmm5
subsd  %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
mulpd  %xmm0,%xmm5
addpd  %xmm1,%xmm5
movapd %xmm2,%xmm1
addsd  %xmm4,%xmm1
unpcklpd %xmm2,%xmm1
subsd  %xmm4,%xmm2
unpcklpd %xmm4,%xmm2
mulpd  %xmm2,%xmm1
addpd  %xmm5,%xmm1
add    $0x2,%rax
cmp    %rax,%rcx
jne    13e0 <ls_oneperiod+0x280>
test   $0x1,%r13b
je     1466 <ls_oneperiod+0x306>
movsd  (%rbx,%rax,8),%xmm0
movsd  (%r12,%rax,8),%xmm2
movapd %xmm0,%xmm3
addsd  %xmm2,%xmm3
unpcklpd %xmm0,%xmm3
subsd  %xmm2,%xmm0
unpcklpd %xmm2,%xmm0
mulpd  %xmm0,%xmm3
addpd  %xmm3,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm0,%xmm0
mov    %rsi,%rbp
call   1050 <atan2@plt>
mulsd  0xb7e(%rip),%xmm0
movsd  %xmm0,(%rsp)
call   1060 <sin@plt>
movapd %xmm0,0x20(%rsp)
movsd  (%rsp),%xmm0
call   1080 <cos@plt>
test   %ebp,%ebp
jle    154f <ls_oneperiod+0x3ef>
movsd  0x70(%rsp),%xmm9
unpcklpd %xmm0,%xmm0
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm1,%xmm1
xorpd  %xmm7,%xmm7
xor    %eax,%eax
movapd 0xb58(%rip),%xmm8
xorpd  %xmm3,%xmm3
nopl   0x0(%rax)
movapd %xmm3,%xmm2
movapd %xmm7,%xmm4
movsd  (%rbx,%rax,8),%xmm3
movapd %xmm3,%xmm5
xorpd  %xmm8,%xmm5
movsd  (%r12,%rax,8),%xmm7
unpcklpd %xmm7,%xmm5
mulpd  %xmm1,%xmm5
unpcklpd %xmm3,%xmm7
mulpd  %xmm0,%xmm7
addpd  %xmm5,%xmm7
movapd %xmm7,%xmm3
movsd  (%r15,%rax,8),%xmm6
subsd  %xmm9,%xmm6
movapd %xmm6,%xmm5
unpcklpd %xmm7,%xmm5
shufpd $0x2,%xmm7,%xmm6
unpcklpd %xmm7,%xmm7
unpckhpd %xmm3,%xmm3
mulpd  %xmm7,%xmm5
mulpd  %xmm3,%xmm6
movapd %xmm6,%xmm3
addpd  %xmm2,%xmm3
movapd %xmm5,%xmm7
addpd  %xmm4,%xmm7
add    $0x1,%rax
cmp    %rax,%r13
jne    14d0 <ls_oneperiod+0x370>
addpd  %xmm4,%xmm5
addpd  %xmm2,%xmm6
jmp    1557 <ls_oneperiod+0x3f7>
xorpd  %xmm5,%xmm5
xorpd  %xmm6,%xmm6
movapd %xmm5,%xmm0
mulpd  %xmm5,%xmm0
unpckhpd %xmm6,%xmm5
mulpd  %xmm6,%xmm6
unpcklpd %xmm6,%xmm0
divpd  %xmm5,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
mulsd  0xa7d(%rip),%xmm1
divsd  0x68(%rsp),%xmm1
movapd %xmm1,(%rsp)
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
movaps (%rsp),%xmm0
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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