#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 */
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, int);
void fa_levinson_hp(double *r, int p, double *acof, double *kcof, double *err) {
  int i, j;
  double acc;
  double tmp[64 + 1];
  memset(tmp, 0, sizeof(double) * (64 + 1));
  if (r[0] == 0.0) {
    for (i = 1; i <= p; i++) {
      acof[i] = 0.0;
      kcof[i] = 0.0;
    }
    *err = 0.0;
  } else {
    acof[0] = (double)1.0;
    *err = r[0];
    for (i = 1; i <= p; ++i) {
      acc = r[i];
      for (j = 1; j <= i - 1; ++j)
        acc += acof[j] * r[i - j];
      kcof[i - 1] = -acc / (*err);
      acof[i] = kcof[i - 1];
      for (j = 0; j < p; ++j)
        tmp[j] = acof[j];
      for (j = 1; j < i; ++j)
        acof[j] += kcof[i - 1] * tmp[i - j];
      *err *= (1 - kcof[i - 1] * kcof[i - 1]);
    }
  }
}


x86 assembly (clang, -O0):
<fa_levinson_hp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    -0x240(%rbp),%rdi
xor    %esi,%esi
mov    $0x208,%edx
call   1030 <memset@plt>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11ad <fa_levinson_hp+0x9d>
jp     11ad <fa_levinson_hp+0x9d>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     119d <fa_levinson_hp+0x8d>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1163 <fa_levinson_hp+0x53>
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    13a1 <fa_levinson_hp+0x291>
mov    -0x18(%rbp),%rax
movsd  0xe47(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     139c <fa_levinson_hp+0x28c>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1249 <fa_levinson_hp+0x139>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11f9 <fa_levinson_hp+0xe9>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12d9 <fa_levinson_hp+0x1c9>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x30(%rbp),%rax
movsd  %xmm0,-0x240(%rbp,%rax,8)
ff ff
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12a5 <fa_levinson_hp+0x195>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1337 <fa_levinson_hp+0x227>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x2c(%rbp),%eax
sub    -0x30(%rbp),%eax
cltq
movsd  -0x240(%rbp,%rax,8),%xmm2
ff ff
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12e0 <fa_levinson_hp+0x1d0>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc82(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11d4 <fa_levinson_hp+0xc4>
jmp    13a1 <fa_levinson_hp+0x291>
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fa_levinson_hp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x258,%rsp
mov    %r8,%r14
mov    %rcx,%r13
mov    %rdx,%rbx
mov    %esi,%r12d
mov    %rdi,%rbp
lea    0x50(%rsp),%rdi
xor    %esi,%esi
mov    $0x208,%edx
call   1030 <memset@plt>
movsd  0x0(%rbp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11d0 <fa_levinson_hp+0xb0>
jp     11d0 <fa_levinson_hp+0xb0>
test   %r12d,%r12d
jle    1660 <fa_levinson_hp+0x540>
mov    %r12d,%edx
lea    0x1(%rdx),%rax
mov    $0x1,%ecx
cmp    $0x4,%r12d
jb     15cc <fa_levinson_hp+0x4ac>
lea    0x8(%rbx),%rsi
lea    0x0(,%rax,8),%rdi
add    %r13,%rdi
cmp    %rdi,%rsi
jae    11a6 <fa_levinson_hp+0x86>
lea    (%rbx,%rax,8),%rsi
lea    0x8(%r13),%rdi
cmp    %rsi,%rdi
jb     15cc <fa_levinson_hp+0x4ac>
mov    %edx,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%ebp
and    $0x3,%ebp
cmp    $0xc,%rdi
jae    14ff <fa_levinson_hp+0x3df>
xor    %edi,%edi
jmp    1582 <fa_levinson_hp+0x462>
mov    %rbp,%r9
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx)
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,(%r14)
test   %r12d,%r12d
jle    1667 <fa_levinson_hp+0x547>
mov    %r12,%rax
mov    %eax,%ecx
shl    $0x3,%rcx
mov    %rcx,0x18(%rsp)
add    $0x1,%eax
mov    %rax,0x28(%rsp)
lea    0x8(%rbx),%rax
mov    %rax,0x10(%rsp)
lea    0x20(%rbx),%rax
mov    %rax,0x8(%rsp)
lea    0x8(%r9),%r8
lea    0x48(%rsp),%rdi
lea    0x18(%rbx),%rax
mov    %rax,(%rsp)
mov    $0x1,%r12d
xor    %r10d,%r10d
lea    0x50(%rsp),%r11
mov    %r9,%rbp
mov    %r9,0x20(%rsp)
mov    %r14,0x30(%rsp)
jmp    1299 <fa_levinson_hp+0x179>
nopl   0x0(%rax)
movsd  -0x8(%r13,%r12,8),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xdad(%rip),%xmm0
subsd  %xmm1,%xmm0
mov    0x30(%rsp),%r14
mulsd  (%r14),%xmm0
movsd  %xmm0,(%r14)
add    $0x1,%r12
add    $0x1,%r10
add    $0x8,%rbp
add    $0x8,%r8
add    $0x8,%rdi
add    $0x8,%r11
cmp    0x28(%rsp),%r12
je     1667 <fa_levinson_hp+0x547>
mov    %r10,%rsi
and    $0xfffffffffffffffc,%rsi
movsd  (%r9,%r12,8),%xmm1
cmp    $0x2,%r12
mov    %rdi,0x48(%rsp)
mov    %r11,0x40(%rsp)
mov    %rsi,0x38(%rsp)
jb     137a <fa_levinson_hp+0x25a>
lea    -0x1(%r10),%rcx
mov    $0x1,%eax
cmp    $0x3,%rcx
jb     1334 <fa_levinson_hp+0x214>
mov    $0xffffffffffffffff,%rax
mov    0x8(%rsp),%rcx
nopw   0x0(%rax,%rax,1)
movsd  -0x18(%rcx),%xmm2
movsd  -0x10(%rcx),%xmm3
mulsd  0x8(%rbp,%rax,8),%xmm2
addsd  %xmm1,%xmm2
mulsd  0x0(%rbp,%rax,8),%xmm3
addsd  %xmm2,%xmm3
movsd  -0x8(%rcx),%xmm2
mulsd  -0x8(%rbp,%rax,8),%xmm2
addsd  %xmm3,%xmm2
movsd  (%rcx),%xmm1
mulsd  -0x10(%rbp,%rax,8),%xmm1
addsd  %xmm2,%xmm1
add    $0x20,%rcx
lea    (%rsi,%rax,1),%rdx
add    $0xfffffffffffffffc,%rdx
add    $0xfffffffffffffffc,%rax
cmp    $0xffffffffffffffff,%rdx
jne    12e0 <fa_levinson_hp+0x1c0>
neg    %rax
test   $0x3,%r10b
je     137a <fa_levinson_hp+0x25a>
mov    %r10d,%ecx
and    $0x3,%ecx
lea    0x0(,%rax,8),%rsi
mov    %r8,%rdx
sub    %rsi,%rdx
lea    (%rbx,%rax,8),%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rax,%rsi,8),%xmm2
mulsd  (%rdx),%xmm2
addsd  %xmm2,%xmm1
add    $0x1,%rsi
add    $0xfffffffffffffff8,%rdx
cmp    %rsi,%rcx
jne    1360 <fa_levinson_hp+0x240>
xorpd  0xc7e(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,-0x8(%r13,%r12,8)
movsd  %xmm1,(%rbx,%r12,8)
lea    0x50(%rsp),%rdi
mov    %rbx,%rsi
mov    0x18(%rsp),%rdx
mov    %r8,%r15
mov    %r10,%r14
call   1040 <memcpy@plt>
mov    %r14,%r10
mov    %r15,%r8
cmp    $0x2,%r12
mov    0x20(%rsp),%r9
mov    0x48(%rsp),%rdi
mov    0x40(%rsp),%r11
jb     1250 <fa_levinson_hp+0x130>
mov    $0x1,%eax
cmp    $0x4,%r10
jb     1470 <fa_levinson_hp+0x350>
lea    0x0(,%r12,8),%rcx
add    %r13,%rcx
cmp    %rcx,0x10(%rsp)
jae    13ff <fa_levinson_hp+0x2df>
lea    (%rbx,%r12,8),%rcx
lea    0x0(,%r10,8),%rdx
add    %r13,%rdx
cmp    %rcx,%rdx
jb     1470 <fa_levinson_hp+0x350>
mov    0x38(%rsp),%r14
mov    %r14,%rcx
neg    %rcx
lea    0x1(%r14),%rax
movsd  -0x8(%r13,%r12,8),%xmm0
unpcklpd %xmm0,%xmm0
mov    (%rsp),%rdx
xor    %esi,%esi
nop
movupd -0x10(%rdi,%rsi,8),%xmm1
movupd (%rdi,%rsi,8),%xmm2
shufpd $0x1,%xmm2,%xmm2
shufpd $0x1,%xmm1,%xmm1
movupd -0x10(%rdx),%xmm3
movupd (%rdx),%xmm4
mulpd  %xmm0,%xmm2
addpd  %xmm3,%xmm2
mulpd  %xmm0,%xmm1
addpd  %xmm4,%xmm1
movupd %xmm2,-0x10(%rdx)
movupd %xmm1,(%rdx)
add    $0xfffffffffffffffc,%rsi
add    $0x20,%rdx
cmp    %rsi,%rcx
jne    1420 <fa_levinson_hp+0x300>
cmp    %r14,%r10
je     1250 <fa_levinson_hp+0x130>
nopl   (%rax)
mov    %rax,%rcx
test   $0x1,%r12b
jne    149a <fa_levinson_hp+0x37a>
movsd  -0x8(%r13,%r12,8),%xmm0
mov    %r12,%rcx
sub    %rax,%rcx
mulsd  0x50(%rsp,%rcx,8),%xmm0
addsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
lea    0x1(%rax),%rcx
cmp    %rax,%r10
je     1250 <fa_levinson_hp+0x130>
lea    0x0(,%rcx,8),%rdx
mov    %r11,%rax
sub    %rdx,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%r13,%r12,8),%xmm0
mulsd  0x8(%rax),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  -0x8(%r13,%r12,8),%xmm0
mulsd  (%rax),%xmm0
addsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
add    $0x2,%rcx
add    $0xfffffffffffffff0,%rax
cmp    %rcx,%r12
jne    14c0 <fa_levinson_hp+0x3a0>
jmp    1250 <fa_levinson_hp+0x130>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
xorpd  %xmm0,%xmm0
nopl   0x0(%rax)
movupd %xmm0,0x8(%rbx,%rdi,8)
movupd %xmm0,0x18(%rbx,%rdi,8)
movupd %xmm0,0x8(%r13,%rdi,8)
movupd %xmm0,0x18(%r13,%rdi,8)
movupd %xmm0,0x28(%rbx,%rdi,8)
movupd %xmm0,0x38(%rbx,%rdi,8)
movupd %xmm0,0x28(%r13,%rdi,8)
movupd %xmm0,0x38(%r13,%rdi,8)
movupd %xmm0,0x48(%rbx,%rdi,8)
movupd %xmm0,0x58(%rbx,%rdi,8)
movupd %xmm0,0x48(%r13,%rdi,8)
movupd %xmm0,0x58(%r13,%rdi,8)
movupd %xmm0,0x68(%rbx,%rdi,8)
movupd %xmm0,0x78(%rbx,%rdi,8)
movupd %xmm0,0x68(%r13,%rdi,8)
movupd %xmm0,0x78(%r13,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1510 <fa_levinson_hp+0x3f0>
test   %rbp,%rbp
je     15bf <fa_levinson_hp+0x49f>
xorpd  %xmm0,%xmm0
nopl   0x0(%rax,%rax,1)
lea    0x0(,%rdi,8),%rsi
or     $0x8,%rsi
movupd %xmm0,(%rbx,%rsi,1)
movupd %xmm0,0x10(%rbx,%rsi,1)
movupd %xmm0,0x0(%r13,%rsi,1)
movupd %xmm0,0x10(%r13,%rsi,1)
add    $0x4,%rdi
add    $0xffffffffffffffff,%rbp
jne    1590 <fa_levinson_hp+0x470>
cmp    %rcx,%rdx
je     1660 <fa_levinson_hp+0x540>
or     $0x1,%rcx
mov    %eax,%esi
sub    %ecx,%esi
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
and    $0x3,%rsi
je     15fb <fa_levinson_hp+0x4db>
nop
movq   $0x0,(%rbx,%rcx,8)
movq   $0x0,0x0(%r13,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    15e0 <fa_levinson_hp+0x4c0>
cmp    $0x3,%rdx
jb     1660 <fa_levinson_hp+0x540>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movq   $0x0,(%rbx,%rcx,8)
movq   $0x0,0x0(%r13,%rcx,8)
movq   $0x0,0x8(%rbx,%rcx,8)
movq   $0x0,0x8(%r13,%rcx,8)
movq   $0x0,0x10(%rbx,%rcx,8)
movq   $0x0,0x10(%r13,%rcx,8)
movq   $0x0,0x18(%rbx,%rcx,8)
movq   $0x0,0x18(%r13,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    1610 <fa_levinson_hp+0x4f0>
movq   $0x0,(%r14)
add    $0x258,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fa_levinson_hp(double* %0, i32 %1, double* %2, double* %3, double* %4) {
%6 = alloca double*
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca [65 x double]
store double* %0, double** %6
store i32 %1, i32* %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
%15 = getelementptr inbounds [65 x double], [65 x double]* %14, i64 0, i64 0
%16 = call i32 @memset(double* %15, i32 0, i32 520)
%17 = load double*, double** %6
%18 = getelementptr inbounds double, double* %17, i64 0
%19 = load double, double* %18
%20 = fcmp oeq double %19, 0.000000e+00
br i1 %20, label %21, label %40
21: ; preds = %5
store i32 1, i32* %11
br label %22
22: ; preds = %35, %21
%23 = load i32, i32* %11
%24 = load i32, i32* %7
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %38
26: ; preds = %22
%27 = load double*, double** %8
%28 = load i32, i32* %11
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %27, i64 %29
store double 0.000000e+00, double* %30
%31 = load double*, double** %9
%32 = load i32, i32* %11
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %31, i64 %33
store double 0.000000e+00, double* %34
br label %35
35: ; preds = %26
%36 = load i32, i32* %11
%37 = add nsw i32 %36, 1
store i32 %37, i32* %11
br label %22
38: ; preds = %22
%39 = load double*, double** %10
store double 0.000000e+00, double* %39
br label %166
40: ; preds = %5
%41 = load double*, double** %8
%42 = getelementptr inbounds double, double* %41, i64 0
store double 1.000000e+00, double* %42
%43 = load double*, double** %6
%44 = getelementptr inbounds double, double* %43, i64 0
%45 = load double, double* %44
%46 = load double*, double** %10
store double %45, double* %46
store i32 1, i32* %11
br label %47
47: ; preds = %162, %40
%48 = load i32, i32* %11
%49 = load i32, i32* %7
%50 = icmp sle i32 %48, %49
br i1 %50, label %51, label %165
51: ; preds = %47
%52 = load double*, double** %6
%53 = load i32, i32* %11
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
store double %56, double* %13
store i32 1, i32* %12
br label %57
57: ; preds = %77, %51
%58 = load i32, i32* %12
%59 = load i32, i32* %11
%60 = sub nsw i32 %59, 1
%61 = icmp sle i32 %58, %60
br i1 %61, label %62, label %80
62: ; preds = %57
%63 = load double*, double** %8
%64 = load i32, i32* %12
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
%67 = load double, double* %66
%68 = load double*, double** %6
%69 = load i32, i32* %11
%70 = load i32, i32* %12
%71 = sub nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %68, i64 %72
%74 = load double, double* %73
%75 = load double, double* %13
%76 = call double @llvm.fmuladd.f64(double %67, double %74, double %75)
store double %76, double* %13
br label %77
77: ; preds = %62
%78 = load i32, i32* %12
%79 = add nsw i32 %78, 1
store i32 %79, i32* %12
br label %57
80: ; preds = %57
%81 = load double, double* %13
%82 = fneg double %81
%83 = load double*, double** %10
%84 = load double, double* %83
%85 = fdiv double %82, %84
%86 = load double*, double** %9
%87 = load i32, i32* %11
%88 = sub nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %86, i64 %89
store double %85, double* %90
%91 = load double*, double** %9
%92 = load i32, i32* %11
%93 = sub nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %91, i64 %94
%96 = load double, double* %95
%97 = load double*, double** %8
%98 = load i32, i32* %11
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %97, i64 %99
store double %96, double* %100
store i32 0, i32* %12
br label %101
101: ; preds = %114, %80
%102 = load i32, i32* %12
%103 = load i32, i32* %7
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %117
105: ; preds = %101
%106 = load double*, double** %8
%107 = load i32, i32* %12
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, double* %106, i64 %108
%110 = load double, double* %109
%111 = load i32, i32* %12
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [65 x double], [65 x double]* %14, i64 0, i64 %112
store double %110, double* %113
br label %114
114: ; preds = %105
%115 = load i32, i32* %12
%116 = add nsw i32 %115, 1
store i32 %116, i32* %12
br label %101
117: ; preds = %101
store i32 1, i32* %12
br label %118
118: ; preds = %141, %117
%119 = load i32, i32* %12
%120 = load i32, i32* %11
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %144
122: ; preds = %118
%123 = load double*, double** %9
%124 = load i32, i32* %11
%125 = sub nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %123, i64 %126
%128 = load double, double* %127
%129 = load i32, i32* %11
%130 = load i32, i32* %12
%131 = sub nsw i32 %129, %130
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [65 x double], [65 x double]* %14, i64 0, i64 %132
%134 = load double, double* %133
%135 = load double*, double** %8
%136 = load i32, i32* %12
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = call double @llvm.fmuladd.f64(double %128, double %134, double %139)
store double %140, double* %138
br label %141
141: ; preds = %122
%142 = load i32, i32* %12
%143 = add nsw i32 %142, 1
store i32 %143, i32* %12
br label %118
144: ; preds = %118
%145 = load double*, double** %9
%146 = load i32, i32* %11
%147 = sub nsw i32 %146, 1
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %145, i64 %148
%150 = load double, double* %149
%151 = load double*, double** %9
%152 = load i32, i32* %11
%153 = sub nsw i32 %152, 1
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %151, i64 %154
%156 = load double, double* %155
%157 = fneg double %150
%158 = call double @llvm.fmuladd.f64(double %157, double %156, double 1.000000e+00)
%159 = load double*, double** %10
%160 = load double, double* %159
%161 = fmul double %160, %158
store double %161, double* %159
br label %162
162: ; preds = %144
%163 = load i32, i32* %11
%164 = add nsw i32 %163, 1
store i32 %164, i32* %11
br label %47
165: ; preds = %47
br label %166
166: ; preds = %165, %38
ret void
}

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