#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 initial_anticausal_coefficient(double *, long, double);
double initial_causal_coefficient(double *, long, double, double);
void convert_to_interpolation_coefficients(double c[], long data_length,
                                           double z[], long nb_poles,
                                           double tolerance) {
  double lambda = 1.0;
  long n, k;
  if (data_length == 1L) {
    return;
  }
  for (k = 0L; k < nb_poles; k++) {
    lambda = lambda * (1.0 - z[k]) * (1.0 - 1.0 / z[k]);
  }
  for (n = 0L; n < data_length; n++) {
    c[n] *= lambda;
  }
  for (k = 0L; k < nb_poles; k++) {
    c[0] = initial_causal_coefficient(c, data_length, z[k], tolerance);
    for (n = 1L; n < data_length; n++) {
      c[n] += z[k] * c[n - 1L];
    }
    c[data_length - 1L] = initial_anticausal_coefficient(c, data_length, z[k]);
    for (n = data_length - 2L; 0 <= n; n--) {
      c[n] = z[k] * (c[n + 1L] - c[n]);
    }
  }
}


x86 assembly (clang, -O0):
<convert_to_interpolation_coefficients>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  0xebb(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
cmpq   $0x1,-0x10(%rbp)
jne    115a <convert_to_interpolation_coefficients+0x3a>
jmp    1346 <convert_to_interpolation_coefficients+0x226>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x20(%rbp),%rax
jge    11c9 <convert_to_interpolation_coefficients+0xa9>
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  0xe7b(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  0xe62(%rip),%xmm2
divsd  (%rax,%rcx,8),%xmm2
movsd  0xe55(%rip),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1162 <convert_to_interpolation_coefficients+0x42>
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1207 <convert_to_interpolation_coefficients+0xe7>
movsd  -0x30(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    11d1 <convert_to_interpolation_coefficients+0xb1>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x20(%rbp),%rax
jge    1346 <convert_to_interpolation_coefficients+0x226>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x28(%rbp),%xmm1
call   1040 <initial_causal_coefficient@plt>
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movq   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    12a3 <convert_to_interpolation_coefficients+0x183>
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    124c <convert_to_interpolation_coefficients+0x12c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <initial_anticausal_coefficient@plt>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
sub    $0x2,%rax
mov    %rax,-0x38(%rbp)
xor    %eax,%eax
cmp    -0x38(%rbp),%rax
jg     1330 <convert_to_interpolation_coefficients+0x210>
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x38(%rbp)
jmp    12da <convert_to_interpolation_coefficients+0x1ba>
jmp    1335 <convert_to_interpolation_coefficients+0x215>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    120f <convert_to_interpolation_coefficients+0xef>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_to_interpolation_coefficients>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movsd  %xmm0,0x20(%rsp)
cmp    $0x1,%rsi
je     1471 <convert_to_interpolation_coefficients+0x351>
mov    %rcx,%r13
mov    %rdx,%r12
mov    %rsi,%r15
mov    %rdi,%rbx
test   %rcx,%rcx
jle    1164 <convert_to_interpolation_coefficients+0x44>
cmp    $0x1,%r13
jne    1171 <convert_to_interpolation_coefficients+0x51>
movsd  0xea3(%rip),%xmm0
xor    %eax,%eax
jmp    11e6 <convert_to_interpolation_coefficients+0xc6>
movsd  0xe94(%rip),%xmm0
jmp    1216 <convert_to_interpolation_coefficients+0xf6>
mov    %r13,%rdx
and    $0xfffffffffffffffe,%rdx
movsd  0xe80(%rip),%xmm1
xor    %eax,%eax
movapd %xmm1,%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  (%r12,%rax,8),%xmm2
movsd  0x8(%r12,%rax,8),%xmm3
movapd %xmm1,%xmm4
subsd  %xmm2,%xmm4
mulsd  %xmm0,%xmm4
movapd %xmm1,%xmm0
divsd  %xmm2,%xmm0
movapd %xmm1,%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm4,%xmm2
movapd %xmm1,%xmm4
subsd  %xmm3,%xmm4
mulsd  %xmm2,%xmm4
movapd %xmm1,%xmm2
divsd  %xmm3,%xmm2
movapd %xmm1,%xmm0
subsd  %xmm2,%xmm0
mulsd  %xmm4,%xmm0
add    $0x2,%rax
cmp    %rax,%rdx
jne    1190 <convert_to_interpolation_coefficients+0x70>
test   $0x1,%r13b
je     1216 <convert_to_interpolation_coefficients+0xf6>
movsd  (%r12,%rax,8),%xmm1
movsd  0xe06(%rip),%xmm2
movapd %xmm2,%xmm3
subsd  %xmm1,%xmm3
mulsd  %xmm3,%xmm0
movapd %xmm2,%xmm3
divsd  %xmm1,%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
test   %r15,%r15
jle    12e7 <convert_to_interpolation_coefficients+0x1c7>
cmp    $0x4,%r15
jae    122c <convert_to_interpolation_coefficients+0x10c>
xor    %eax,%eax
jmp    12d0 <convert_to_interpolation_coefficients+0x1b0>
mov    %r15,%rax
and    $0xfffffffffffffffc,%rax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     1480 <convert_to_interpolation_coefficients+0x360>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edi,%edi
nopl   0x0(%rax)
movupd (%rbx,%rdi,8),%xmm2
movupd 0x10(%rbx,%rdi,8),%xmm3
movupd 0x20(%rbx,%rdi,8),%xmm4
movupd 0x30(%rbx,%rdi,8),%xmm5
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,(%rbx,%rdi,8)
movupd %xmm3,0x10(%rbx,%rdi,8)
mulpd  %xmm1,%xmm4
mulpd  %xmm1,%xmm5
movupd %xmm4,0x20(%rbx,%rdi,8)
movupd %xmm5,0x30(%rbx,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rsi
jne    1260 <convert_to_interpolation_coefficients+0x140>
test   $0x1,%dl
je     12cb <convert_to_interpolation_coefficients+0x1ab>
movupd (%rbx,%rdi,8),%xmm2
movupd 0x10(%rbx,%rdi,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,(%rbx,%rdi,8)
movupd %xmm3,0x10(%rbx,%rdi,8)
cmp    %r15,%rax
je     12e7 <convert_to_interpolation_coefficients+0x1c7>
movsd  (%rbx,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r15
jne    12d0 <convert_to_interpolation_coefficients+0x1b0>
test   %r13,%r13
jle    1471 <convert_to_interpolation_coefficients+0x351>
lea    -0x2(%r15),%rax
mov    %rax,0x8(%rsp)
lea    -0x1(%r15),%rbp
lea    -0x3(%r15),%rax
mov    %rax,0x18(%rsp)
mov    %rbp,%rax
mov    %rbp,0x10(%rsp)
and    $0xfffffffffffffffe,%rbp
neg    %rbp
xor    %r14d,%r14d
jmp    1345 <convert_to_interpolation_coefficients+0x225>
nopw   0x0(%rax,%rax,1)
movsd  (%r12,%r14,8),%xmm0
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <initial_anticausal_coefficient@plt>
movsd  %xmm0,-0x8(%rbx,%r15,8)
add    $0x1,%r14
cmp    %r13,%r14
je     1471 <convert_to_interpolation_coefficients+0x351>
movsd  (%r12,%r14,8),%xmm0
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x20(%rsp),%xmm1
call   1040 <initial_causal_coefficient@plt>
movsd  %xmm0,(%rbx)
cmp    $0x2,%r15
jl     1320 <convert_to_interpolation_coefficients+0x200>
cmpq   $0x0,0x8(%rsp)
je     1406 <convert_to_interpolation_coefficients+0x2e6>
mov    $0x1,%eax
nopw   0x0(%rax,%rax,1)
mulsd  (%r12,%r14,8),%xmm0
addsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
mulsd  (%r12,%r14,8),%xmm0
addsd  0x8(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
lea    (%rax,%rbp,1),%rcx
add    $0x2,%rcx
add    $0x2,%rax
cmp    $0x1,%rcx
jne    1380 <convert_to_interpolation_coefficients+0x260>
testb  $0x1,0x10(%rsp)
je     13cb <convert_to_interpolation_coefficients+0x2ab>
mulsd  (%r12,%r14,8),%xmm0
addsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  (%r12,%r14,8),%xmm0
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <initial_anticausal_coefficient@plt>
movsd  %xmm0,-0x8(%rbx,%r15,8)
cmp    $0x2,%r15
jl     1338 <convert_to_interpolation_coefficients+0x218>
testb  $0x1,0x10(%rsp)
jne    1414 <convert_to_interpolation_coefficients+0x2f4>
mov    0x8(%rsp),%rdx
mov    %rdx,%rax
test   %rdx,%rdx
jne    1440 <convert_to_interpolation_coefficients+0x320>
jmp    1338 <convert_to_interpolation_coefficients+0x218>
mov    $0x1,%eax
testb  $0x1,0x10(%rsp)
jne    13bb <convert_to_interpolation_coefficients+0x29b>
jmp    13cb <convert_to_interpolation_coefficients+0x2ab>
subsd  -0x10(%rbx,%r15,8),%xmm0
mulsd  (%r12,%r14,8),%xmm0
movsd  %xmm0,-0x10(%rbx,%r15,8)
mov    0x18(%rsp),%rax
mov    0x8(%rsp),%rdx
test   %rdx,%rdx
je     1338 <convert_to_interpolation_coefficients+0x218>
nopl   0x0(%rax,%rax,1)
subsd  (%rbx,%rax,8),%xmm0
mulsd  (%r12,%r14,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
subsd  -0x8(%rbx,%rax,8),%xmm0
mulsd  (%r12,%r14,8),%xmm0
movsd  %xmm0,-0x8(%rbx,%rax,8)
add    $0xfffffffffffffffe,%rax
cmp    $0xffffffffffffffff,%rax
jne    1440 <convert_to_interpolation_coefficients+0x320>
jmp    1338 <convert_to_interpolation_coefficients+0x218>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
test   $0x1,%dl
jne    12ad <convert_to_interpolation_coefficients+0x18d>
jmp    12cb <convert_to_interpolation_coefficients+0x1ab>

LLVM IR (-O0):
define void @convert_to_interpolation_coefficients(double* %0, i64 %1, double* %2, i64 %3, double %4) {
%6 = alloca double*
%7 = alloca i64
%8 = alloca double*
%9 = alloca i64
%10 = alloca double
%11 = alloca double
%12 = alloca i64
%13 = alloca i64
store double* %0, double** %6
store i64 %1, i64* %7
store double* %2, double** %8
store i64 %3, i64* %9
store double %4, double* %10
store double 1.000000e+00, double* %11
%14 = load i64, i64* %7
%15 = icmp eq i64 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %5
br label %136
17: ; preds = %5
store i64 0, i64* %13
br label %18
18: ; preds = %37, %17
%19 = load i64, i64* %13
%20 = load i64, i64* %9
%21 = icmp slt i64 %19, %20
br i1 %21, label %22, label %40
22: ; preds = %18
%23 = load double, double* %11
%24 = load double*, double** %8
%25 = load i64, i64* %13
%26 = getelementptr inbounds double, double* %24, i64 %25
%27 = load double, double* %26
%28 = fsub double 1.000000e+00, %27
%29 = fmul double %23, %28
%30 = load double*, double** %8
%31 = load i64, i64* %13
%32 = getelementptr inbounds double, double* %30, i64 %31
%33 = load double, double* %32
%34 = fdiv double 1.000000e+00, %33
%35 = fsub double 1.000000e+00, %34
%36 = fmul double %29, %35
store double %36, double* %11
br label %37
37: ; preds = %22
%38 = load i64, i64* %13
%39 = add nsw i64 %38, 1
store i64 %39, i64* %13
br label %18
40: ; preds = %18
store i64 0, i64* %12
br label %41
41: ; preds = %52, %40
%42 = load i64, i64* %12
%43 = load i64, i64* %7
%44 = icmp slt i64 %42, %43
br i1 %44, label %45, label %55
45: ; preds = %41
%46 = load double, double* %11
%47 = load double*, double** %6
%48 = load i64, i64* %12
%49 = getelementptr inbounds double, double* %47, i64 %48
%50 = load double, double* %49
%51 = fmul double %50, %46
store double %51, double* %49
br label %52
52: ; preds = %45
%53 = load i64, i64* %12
%54 = add nsw i64 %53, 1
store i64 %54, i64* %12
br label %41
55: ; preds = %41
store i64 0, i64* %13
br label %56
56: ; preds = %133, %55
%57 = load i64, i64* %13
%58 = load i64, i64* %9
%59 = icmp slt i64 %57, %58
br i1 %59, label %60, label %136
60: ; preds = %56
%61 = load double*, double** %6
%62 = load i64, i64* %7
%63 = load double*, double** %8
%64 = load i64, i64* %13
%65 = getelementptr inbounds double, double* %63, i64 %64
%66 = load double, double* %65
%67 = load double, double* %10
%68 = call double @initial_causal_coefficient(double* %61, i64 %62, double %66, double %67)
%69 = load double*, double** %6
%70 = getelementptr inbounds double, double* %69, i64 0
store double %68, double* %70
store i64 1, i64* %12
br label %71
71: ; preds = %90, %60
%72 = load i64, i64* %12
%73 = load i64, i64* %7
%74 = icmp slt i64 %72, %73
br i1 %74, label %75, label %93
75: ; preds = %71
%76 = load double*, double** %8
%77 = load i64, i64* %13
%78 = getelementptr inbounds double, double* %76, i64 %77
%79 = load double, double* %78
%80 = load double*, double** %6
%81 = load i64, i64* %12
%82 = sub nsw i64 %81, 1
%83 = getelementptr inbounds double, double* %80, i64 %82
%84 = load double, double* %83
%85 = load double*, double** %6
%86 = load i64, i64* %12
%87 = getelementptr inbounds double, double* %85, i64 %86
%88 = load double, double* %87
%89 = call double @llvm.fmuladd.f64(double %79, double %84, double %88)
store double %89, double* %87
br label %90
90: ; preds = %75
%91 = load i64, i64* %12
%92 = add nsw i64 %91, 1
store i64 %92, i64* %12
br label %71
93: ; preds = %71
%94 = load double*, double** %6
%95 = load i64, i64* %7
%96 = load double*, double** %8
%97 = load i64, i64* %13
%98 = getelementptr inbounds double, double* %96, i64 %97
%99 = load double, double* %98
%100 = call double @initial_anticausal_coefficient(double* %94, i64 %95, double %99)
%101 = load double*, double** %6
%102 = load i64, i64* %7
%103 = sub nsw i64 %102, 1
%104 = getelementptr inbounds double, double* %101, i64 %103
store double %100, double* %104
%105 = load i64, i64* %7
%106 = sub nsw i64 %105, 2
store i64 %106, i64* %12
br label %107
107: ; preds = %129, %93
%108 = load i64, i64* %12
%109 = icmp sle i64 0, %108
br i1 %109, label %110, label %132
110: ; preds = %107
%111 = load double*, double** %8
%112 = load i64, i64* %13
%113 = getelementptr inbounds double, double* %111, i64 %112
%114 = load double, double* %113
%115 = load double*, double** %6
%116 = load i64, i64* %12
%117 = add nsw i64 %116, 1
%118 = getelementptr inbounds double, double* %115, i64 %117
%119 = load double, double* %118
%120 = load double*, double** %6
%121 = load i64, i64* %12
%122 = getelementptr inbounds double, double* %120, i64 %121
%123 = load double, double* %122
%124 = fsub double %119, %123
%125 = fmul double %114, %124
%126 = load double*, double** %6
%127 = load i64, i64* %12
%128 = getelementptr inbounds double, double* %126, i64 %127
store double %125, double* %128
br label %129
129: ; preds = %110
%130 = load i64, i64* %12
%131 = add nsw i64 %130, -1
store i64 %131, i64* %12
br label %107
132: ; preds = %107
br label %133
133: ; preds = %132
%134 = load i64, i64* %13
%135 = add nsw i64 %134, 1
store i64 %135, i64* %13
br label %56
136: ; preds = %16, %56
ret void
}

LLVM IR (-O2):
define void @convert_to_interpolation_coefficients(double* %0, i64 %1, double* nocapture %2, i64 %3, double %4) {
%6 = icmp eq i64 %1, 1
br i1 %6, label %200, label %7
7: ; preds = %5
%8 = icmp sgt i64 %3, 0
br i1 %8, label %9, label %27
9: ; preds = %7
%10 = and i64 %3, 1
%11 = icmp eq i64 %3, 1
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = and i64 %3, -2
br label %90
14: ; preds = %90, %9
%15 = phi double [ undef, %9 ], [ %108, %90 ]
%16 = phi i64 [ 0, %9 ], [ %109, %90 ]
%17 = phi double [ 1.000000e+00, %9 ], [ %108, %90 ]
%18 = icmp eq i64 %10, 0
br i1 %18, label %27, label %19
19: ; preds = %14
%20 = getelementptr inbounds double, double* %2, i64 %16
%21 = load double, double* %20
%22 = fsub double 1.000000e+00, %21
%23 = fmul double %17, %22
%24 = fdiv double 1.000000e+00, %21
%25 = fsub double 1.000000e+00, %24
%26 = fmul double %23, %25
br label %27
27: ; preds = %19, %14, %7
%28 = phi double [ 1.000000e+00, %7 ], [ %15, %14 ], [ %26, %19 ]
%29 = icmp sgt i64 %1, 0
br i1 %29, label %30, label %112
30: ; preds = %27
%31 = icmp ult i64 %1, 4
br i1 %31, label %88, label %32
32: ; preds = %30
%33 = and i64 %1, -4
%34 = insertelement <2 x double> poison, double %28, i64 0
%35 = shufflevector <2 x double> %34, <2 x double> poison, <2 x i32> zeroinitializer
%36 = insertelement <2 x double> poison, double %28, i64 0
%37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
%38 = add i64 %33, -4
%39 = lshr exact i64 %38, 2
%40 = add nuw nsw i64 %39, 1
%41 = and i64 %40, 1
%42 = icmp eq i64 %38, 0
br i1 %42, label %72, label %43
43: ; preds = %32
%44 = and i64 %40, 9223372036854775806
br label %45
45: ; preds = %45, %43
%46 = phi i64 [ 0, %43 ], [ %69, %45 ]
%47 = phi i64 [ 0, %43 ], [ %70, %45 ]
%48 = getelementptr inbounds double, double* %0, i64 %46
%49 = bitcast double* %48 to <2 x double>*
%50 = load <2 x double>, <2 x double>* %49
%51 = getelementptr inbounds double, double* %48, i64 2
%52 = bitcast double* %51 to <2 x double>*
%53 = load <2 x double>, <2 x double>* %52
%54 = fmul <2 x double> %35, %50
%55 = fmul <2 x double> %37, %53
%56 = bitcast double* %48 to <2 x double>*
store <2 x double> %54, <2 x double>* %56
%57 = bitcast double* %51 to <2 x double>*
store <2 x double> %55, <2 x double>* %57
%58 = or i64 %46, 4
%59 = getelementptr inbounds double, double* %0, i64 %58
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = getelementptr inbounds double, double* %59, i64 2
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = fmul <2 x double> %35, %61
%66 = fmul <2 x double> %37, %64
%67 = bitcast double* %59 to <2 x double>*
store <2 x double> %65, <2 x double>* %67
%68 = bitcast double* %62 to <2 x double>*
store <2 x double> %66, <2 x double>* %68
%69 = add nuw i64 %46, 8
%70 = add i64 %47, 2
%71 = icmp eq i64 %70, %44
br i1 %71, label %72, label %45
72: ; preds = %45, %32
%73 = phi i64 [ 0, %32 ], [ %69, %45 ]
%74 = icmp eq i64 %41, 0
br i1 %74, label %86, label %75
75: ; preds = %72
%76 = getelementptr inbounds double, double* %0, i64 %73
%77 = bitcast double* %76 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = getelementptr inbounds double, double* %76, i64 2
%80 = bitcast double* %79 to <2 x double>*
%81 = load <2 x double>, <2 x double>* %80
%82 = fmul <2 x double> %35, %78
%83 = fmul <2 x double> %37, %81
%84 = bitcast double* %76 to <2 x double>*
store <2 x double> %82, <2 x double>* %84
%85 = bitcast double* %79 to <2 x double>*
store <2 x double> %83, <2 x double>* %85
br label %86
86: ; preds = %72, %75
%87 = icmp eq i64 %33, %1
br i1 %87, label %112, label %88
88: ; preds = %30, %86
%89 = phi i64 [ 0, %30 ], [ %33, %86 ]
br label %129
90: ; preds = %90, %12
%91 = phi i64 [ 0, %12 ], [ %109, %90 ]
%92 = phi double [ 1.000000e+00, %12 ], [ %108, %90 ]
%93 = phi i64 [ 0, %12 ], [ %110, %90 ]
%94 = getelementptr inbounds double, double* %2, i64 %91
%95 = load double, double* %94
%96 = fsub double 1.000000e+00, %95
%97 = fmul double %92, %96
%98 = fdiv double 1.000000e+00, %95
%99 = fsub double 1.000000e+00, %98
%100 = fmul double %97, %99
%101 = or i64 %91, 1
%102 = getelementptr inbounds double, double* %2, i64 %101
%103 = load double, double* %102
%104 = fsub double 1.000000e+00, %103
%105 = fmul double %100, %104
%106 = fdiv double 1.000000e+00, %103
%107 = fsub double 1.000000e+00, %106
%108 = fmul double %105, %107
%109 = add nuw nsw i64 %91, 2
%110 = add i64 %93, 2
%111 = icmp eq i64 %110, %13
br i1 %111, label %14, label %90
112: ; preds = %129, %86, %27
br i1 %8, label %113, label %200
113: ; preds = %112
%114 = icmp sgt i64 %1, 1
%115 = add nsw i64 %1, -1
%116 = getelementptr inbounds double, double* %0, i64 %115
%117 = add nsw i64 %1, -2
%118 = add i64 %1, -1
%119 = add i64 %1, -2
%120 = and i64 %118, 1
%121 = icmp eq i64 %119, 0
%122 = and i64 %118, -2
%123 = icmp eq i64 %120, 0
%124 = and i64 %118, 1
%125 = icmp eq i64 %124, 0
%126 = getelementptr inbounds double, double* %0, i64 %117
%127 = add nsw i64 %1, -3
%128 = icmp eq i64 %119, 0
br label %136
129: ; preds = %88, %129
%130 = phi i64 [ %134, %129 ], [ %89, %88 ]
%131 = getelementptr inbounds double, double* %0, i64 %130
%132 = load double, double* %131
%133 = fmul double %28, %132
store double %133, double* %131
%134 = add nuw nsw i64 %130, 1
%135 = icmp eq i64 %134, %1
br i1 %135, label %112, label %129
136: ; preds = %113, %197
%137 = phi i64 [ 0, %113 ], [ %198, %197 ]
%138 = getelementptr inbounds double, double* %2, i64 %137
%139 = load double, double* %138
%140 = tail call double @initial_causal_coefficient(double* %0, i64 %1, double %139, double %4)
store double %140, double* %0
br i1 %114, label %141, label %142
141: ; preds = %136
br i1 %121, label %161, label %145
142: ; preds = %136
%143 = load double, double* %138
%144 = tail call double @initial_anticausal_coefficient(double* %0, i64 %1, double %143)
store double %144, double* %116
br label %197
145: ; preds = %141, %145
%146 = phi double [ %157, %145 ], [ %140, %141 ]
%147 = phi i64 [ %158, %145 ], [ 1, %141 ]
%148 = phi i64 [ %159, %145 ], [ 0, %141 ]
%149 = load double, double* %138
%150 = getelementptr inbounds double, double* %0, i64 %147
%151 = load double, double* %150
%152 = tail call double @llvm.fmuladd.f64(double %149, double %146, double %151)
store double %152, double* %150
%153 = add nuw nsw i64 %147, 1
%154 = load double, double* %138
%155 = getelementptr inbounds double, double* %0, i64 %153
%156 = load double, double* %155
%157 = tail call double @llvm.fmuladd.f64(double %154, double %152, double %156)
store double %157, double* %155
%158 = add nuw nsw i64 %147, 2
%159 = add i64 %148, 2
%160 = icmp eq i64 %159, %122
br i1 %160, label %161, label %145
161: ; preds = %145, %141
%162 = phi double [ %140, %141 ], [ %157, %145 ]
%163 = phi i64 [ 1, %141 ], [ %158, %145 ]
br i1 %123, label %169, label %164
164: ; preds = %161
%165 = load double, double* %138
%166 = getelementptr inbounds double, double* %0, i64 %163
%167 = load double, double* %166
%168 = tail call double @llvm.fmuladd.f64(double %165, double %162, double %167)
store double %168, double* %166
br label %169
169: ; preds = %161, %164
%170 = load double, double* %138
%171 = tail call double @initial_anticausal_coefficient(double* %0, i64 %1, double %170)
store double %171, double* %116
br i1 %114, label %172, label %197
172: ; preds = %169
br i1 %125, label %178, label %173
173: ; preds = %172
%174 = load double, double* %138
%175 = load double, double* %126
%176 = fsub double %171, %175
%177 = fmul double %174, %176
store double %177, double* %126
br label %178
178: ; preds = %173, %172
%179 = phi double [ %171, %172 ], [ %177, %173 ]
%180 = phi i64 [ %117, %172 ], [ %127, %173 ]
br i1 %128, label %197, label %181
181: ; preds = %178, %181
%182 = phi double [ %194, %181 ], [ %179, %178 ]
%183 = phi i64 [ %195, %181 ], [ %180, %178 ]
%184 = load double, double* %138
%185 = getelementptr inbounds double, double* %0, i64 %183
%186 = load double, double* %185
%187 = fsub double %182, %186
%188 = fmul double %184, %187
store double %188, double* %185
%189 = add nsw i64 %183, -1
%190 = load double, double* %138
%191 = getelementptr inbounds double, double* %0, i64 %189
%192 = load double, double* %191
%193 = fsub double %188, %192
%194 = fmul double %190, %193
store double %194, double* %191
%195 = add nsw i64 %183, -2
%196 = icmp eq i64 %189, 0
br i1 %196, label %197, label %181
197: ; preds = %178, %181, %142, %169
%198 = add nuw nsw i64 %137, 1
%199 = icmp eq i64 %198, %3
br i1 %199, label %200, label %136
200: ; preds = %197, %112, %5
ret void
}