#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 M_PI;
scalar_t__ calloc(int, int);
double cos(double);
int /*<<< orphan*/ free(double *);
double sin(double);
double *trinomial_mult(int, double *, double *);
double *dcof_bwbs(int n, double f1f, double f2f) {
  int k;
  double theta;
  double cp;
  double st;
  double ct;
  double s2t;
  double c2t;
  double *rcof;
  double *tcof;
  double *dcof;
  double parg;
  double sparg;
  double cparg;
  double a;
  cp = cos(M_PI * (f2f + f1f) / 2.0);
  theta = M_PI * (f2f - f1f) / 2.0;
  st = sin(theta);
  ct = cos(theta);
  s2t = 2.0 * st * ct;
  c2t = 2.0 * ct * ct - 1.0;
  rcof = (double *)calloc(2 * n, sizeof(double));
  tcof = (double *)calloc(2 * n, sizeof(double));
  for (k = 0; k < n; ++k) {
    parg = M_PI * (double)(2 * k + 1) / (double)(2 * n);
    sparg = sin(parg);
    cparg = cos(parg);
    a = 1.0 + s2t * sparg;
    rcof[2 * k] = c2t / a;
    rcof[2 * k + 1] = -s2t * cparg / a;
    tcof[2 * k] = -2.0 * cp * (ct + st * sparg) / a;
    tcof[2 * k + 1] = 2.0 * cp * st * cparg / a;
  }
  dcof = trinomial_mult(n, tcof, rcof);
  free(tcof);
  free(rcof);
  dcof[1] = dcof[0];
  dcof[0] = 1.0;
  for (k = 3; k <= 2 * n; ++k)
    dcof[k] = dcof[2 * k - 2];
  return (dcof);
}


x86 assembly (clang, -O0):
<dcof_bwbs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    0x2e79(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe7f(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1070 <cos@plt>
movsd  %xmm0,-0x30(%rbp)
mov    0x2e4a(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe50(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1060 <sin@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1070 <cos@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  0xe21(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe0a(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdec(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x4(%rbp),%edi
shl    $0x1,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%edi
shl    $0x1,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13a8 <dcof_bwbs+0x258>
mov    0x2d89(%rip),%rax
movsd  (%rax),%xmm0
mov    -0x1c(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
call   1060 <sin@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
call   1070 <cos@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd55(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x80(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xcec(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x88(%rbp),%xmm0
ff
mov    -0x60(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xc9a(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
mov    -0x60(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    124c <dcof_bwbs+0xfc>
mov    -0x4(%rbp),%edi
mov    -0x60(%rbp),%rsi
mov    -0x58(%rbp),%rdx
call   1040 <trinomial_mult@plt>
mov    %rax,-0x68(%rbp)
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x68(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x68(%rbp),%rax
movsd  0xc25(%rip),%xmm0
movsd  %xmm0,(%rax)
movl   $0x3,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jg     1437 <dcof_bwbs+0x2e7>
mov    -0x68(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13f6 <dcof_bwbs+0x2a6>
mov    -0x68(%rbp),%rax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dcof_bwbs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %edi,%r15d
mov    0x2e71(%rip),%r13
addsd  %xmm1,%xmm0
mulsd  0x0(%r13),%xmm0
mulsd  0xe77(%rip),%xmm0
call   1070 <cos@plt>
movapd %xmm0,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
mulsd  0x0(%r13),%xmm0
mulsd  0xe52(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1060 <sin@plt>
movapd %xmm0,0x50(%rsp)
movsd  0x10(%rsp),%xmm0
call   1070 <cos@plt>
movsd  %xmm0,0x28(%rsp)
lea    (%r15,%r15,1),%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%r12
mov    %ebx,0x4(%rsp)
mov    %ebx,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
test   %r15d,%r15d
jle    1329 <dcof_bwbs+0x1d9>
movapd 0x50(%rsp),%xmm1
movapd %xmm1,%xmm2
addsd  %xmm1,%xmm2
movsd  0x28(%rsp),%xmm0
movapd %xmm0,%xmm3
addsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
addsd  0xde1(%rip),%xmm3
movapd %xmm3,0x70(%rsp)
xorps  %xmm3,%xmm3
cvtsi2sdl 0x4(%rsp),%xmm3
movsd  %xmm3,0x48(%rsp)
mulsd  %xmm0,%xmm2
movapd 0xdd8(%rip),%xmm0
movapd %xmm2,0x80(%rsp)
xorpd  %xmm2,%xmm0
movapd %xmm0,0x60(%rsp)
movapd 0x30(%rsp),%xmm2
movapd %xmm2,%xmm0
addsd  %xmm2,%xmm0
unpcklpd %xmm0,%xmm2
movapd 0xdbb(%rip),%xmm0
unpcklpd %xmm1,%xmm0
mulpd  %xmm2,%xmm0
movapd %xmm0,0x30(%rsp)
mov    %r15d,%ebp
add    %rbp,%rbp
xor    %r14d,%r14d
nopl   0x0(%rax)
lea    0x1(%r14),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x0(%r13),%xmm0
divsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1060 <sin@plt>
movapd %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1070 <cos@plt>
movapd 0x80(%rsp),%xmm1
movapd 0x10(%rsp),%xmm3
mulsd  %xmm3,%xmm1
addsd  0xd32(%rip),%xmm1
mulsd  0x50(%rsp),%xmm3
addsd  0x28(%rsp),%xmm3
unpcklpd %xmm0,%xmm3
mulsd  0x60(%rsp),%xmm0
movapd 0x70(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
unpcklpd %xmm1,%xmm1
divpd  %xmm1,%xmm2
movupd %xmm2,(%r12,%r14,8)
mulpd  0x30(%rsp),%xmm3
divpd  %xmm1,%xmm3
movupd %xmm3,(%rbx,%r14,8)
add    $0x2,%r14
cmp    %r14,%rbp
jne    1290 <dcof_bwbs+0x140>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1040 <trinomial_mult@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x8(%rbp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x0(%rbp)
cmp    $0x2,%r15d
jl     1433 <dcof_bwbs+0x2e3>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
mov    $0x3,%esi
cmovge %eax,%esi
lea    -0x2(%rsi),%rcx
add    $0xfffffffffffffffd,%rsi
mov    %ecx,%eax
and    $0x3,%eax
mov    $0x3,%edx
cmp    $0x3,%rsi
jb     13f1 <dcof_bwbs+0x2a1>
lea    0x50(%rbp),%rsi
and    $0xfffffffffffffffc,%rcx
neg    %rcx
mov    $0x3,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  -0x30(%rsi),%xmm0
movsd  %xmm0,0x0(%rbp,%rdx,8)
movsd  -0x20(%rsi),%xmm0
movsd  %xmm0,0x8(%rbp,%rdx,8)
movsd  -0x10(%rsi),%xmm0
movsd  %xmm0,0x10(%rbp,%rdx,8)
movsd  (%rsi),%xmm0
movsd  %xmm0,0x18(%rbp,%rdx,8)
add    $0x40,%rsi
lea    (%rcx,%rdx,1),%rdi
add    $0x4,%rdi
add    $0x4,%rdx
cmp    $0x3,%rdi
jne    13b0 <dcof_bwbs+0x260>
test   %rax,%rax
je     1433 <dcof_bwbs+0x2e3>
lea    0x0(,%rdx,8),%rcx
add    %rbp,%rcx
shl    $0x4,%rdx
add    %rbp,%rdx
add    $0xfffffffffffffff0,%rdx
shl    $0x3,%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdx,%rsi,2),%xmm0
movsd  %xmm0,(%rcx,%rsi,1)
add    $0x8,%rsi
cmp    %rsi,%rax
jne    1420 <dcof_bwbs+0x2d0>
mov    %rbp,%rax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double* @dcof_bwbs(i32 %0, double %1, double %2) {
%4 = load double, double* @M_PI
%5 = fadd double %1, %2
%6 = fmul double %5, %4
%7 = fmul double %6, 5.000000e-01
%8 = tail call double @cos(double %7)
%9 = load double, double* @M_PI
%10 = fsub double %2, %1
%11 = fmul double %10, %9
%12 = fmul double %11, 5.000000e-01
%13 = tail call double @sin(double %12)
%14 = tail call double @cos(double %12)
%15 = fmul double %13, 2.000000e+00
%16 = fmul double %15, %14
%17 = shl nsw i32 %0, 1
%18 = tail call i64 @calloc(i32 %17, i32 8)
%19 = inttoptr i64 %18 to double*
%20 = tail call i64 @calloc(i32 %17, i32 8)
%21 = inttoptr i64 %20 to double*
%22 = icmp sgt i32 %0, 0
br i1 %22, label %23, label %63
23: ; preds = %3
%24 = fmul double %14, 2.000000e+00
%25 = tail call double @llvm.fmuladd.f64(double %24, double %14, double -1.000000e+00)
%26 = sitofp i32 %17 to double
%27 = fneg double %16
%28 = fmul double %8, 2.000000e+00
%29 = insertelement <2 x double> poison, double %8, i64 0
%30 = insertelement <2 x double> %29, double %28, i64 1
%31 = insertelement <2 x double> <double -2.000000e+00, double poison>, double %13, i64 1
%32 = fmul <2 x double> %30, %31
%33 = zext i32 %0 to i64
%34 = insertelement <2 x double> poison, double %25, i64 0
br label %35
35: ; preds = %23, %35
%36 = phi i64 [ 0, %23 ], [ %61, %35 ]
%37 = load double, double* @M_PI
%38 = shl nuw nsw i64 %36, 1
%39 = trunc i64 %38 to i32
%40 = or i32 %39, 1
%41 = sitofp i32 %40 to double
%42 = fmul double %37, %41
%43 = fdiv double %42, %26
%44 = tail call double @sin(double %43)
%45 = tail call double @cos(double %43)
%46 = tail call double @llvm.fmuladd.f64(double %16, double %44, double 1.000000e+00)
%47 = getelementptr inbounds double, double* %19, i64 %38
%48 = fmul double %45, %27
%49 = insertelement <2 x double> %34, double %48, i64 1
%50 = insertelement <2 x double> poison, double %46, i64 0
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
%52 = fdiv <2 x double> %49, %51
%53 = bitcast double* %47 to <2 x double>*
store <2 x double> %52, <2 x double>* %53
%54 = tail call double @llvm.fmuladd.f64(double %13, double %44, double %14)
%55 = getelementptr inbounds double, double* %21, i64 %38
%56 = insertelement <2 x double> poison, double %54, i64 0
%57 = insertelement <2 x double> %56, double %45, i64 1
%58 = fmul <2 x double> %32, %57
%59 = fdiv <2 x double> %58, %51
%60 = bitcast double* %55 to <2 x double>*
store <2 x double> %59, <2 x double>* %60
%61 = add nuw nsw i64 %36, 1
%62 = icmp eq i64 %61, %33
br i1 %62, label %63, label %35
63: ; preds = %35, %3
%64 = tail call double* @trinomial_mult(i32 %0, double* %21, double* %19)
%65 = tail call i32 @free(double* %21)
%66 = tail call i32 @free(double* %19)
%67 = load double, double* %64
%68 = getelementptr inbounds double, double* %64, i64 1
store double %67, double* %68
store double 1.000000e+00, double* %64
%69 = icmp slt i32 %0, 2
br i1 %69, label %122, label %70
70: ; preds = %63
%71 = call i32 @llvm.smax.i32(i32 %17, i32 3)
%72 = zext i32 %71 to i64
%73 = add nsw i64 %72, -2
%74 = add nsw i64 %72, -3
%75 = and i64 %73, 3
%76 = icmp ult i64 %74, 3
br i1 %76, label %108, label %77
77: ; preds = %70
%78 = and i64 %73, -4
br label %79
79: ; preds = %79, %77
%80 = phi i64 [ 3, %77 ], [ %105, %79 ]
%81 = phi i64 [ 0, %77 ], [ %106, %79 ]
%82 = shl nuw nsw i64 %80, 1
%83 = add nsw i64 %82, -2
%84 = getelementptr inbounds double, double* %64, i64 %83
%85 = load double, double* %84
%86 = getelementptr inbounds double, double* %64, i64 %80
store double %85, double* %86
%87 = add nuw nsw i64 %80, 1
%88 = shl nuw nsw i64 %87, 1
%89 = add nsw i64 %88, -2
%90 = getelementptr inbounds double, double* %64, i64 %89
%91 = load double, double* %90
%92 = getelementptr inbounds double, double* %64, i64 %87
store double %91, double* %92
%93 = add nuw nsw i64 %80, 2
%94 = shl nuw nsw i64 %93, 1
%95 = add nsw i64 %94, -2
%96 = getelementptr inbounds double, double* %64, i64 %95
%97 = load double, double* %96
%98 = getelementptr inbounds double, double* %64, i64 %93
store double %97, double* %98
%99 = add nuw nsw i64 %80, 3
%100 = shl nuw nsw i64 %99, 1
%101 = add nsw i64 %100, -2
%102 = getelementptr inbounds double, double* %64, i64 %101
%103 = load double, double* %102
%104 = getelementptr inbounds double, double* %64, i64 %99
store double %103, double* %104
%105 = add nuw nsw i64 %80, 4
%106 = add i64 %81, 4
%107 = icmp eq i64 %106, %78
br i1 %107, label %108, label %79
108: ; preds = %79, %70
%109 = phi i64 [ 3, %70 ], [ %105, %79 ]
%110 = icmp eq i64 %75, 0
br i1 %110, label %122, label %111
111: ; preds = %108, %111
%112 = phi i64 [ %119, %111 ], [ %109, %108 ]
%113 = phi i64 [ %120, %111 ], [ 0, %108 ]
%114 = shl nuw nsw i64 %112, 1
%115 = add nsw i64 %114, -2
%116 = getelementptr inbounds double, double* %64, i64 %115
%117 = load double, double* %116
%118 = getelementptr inbounds double, double* %64, i64 %112
store double %117, double* %118
%119 = add nuw nsw i64 %112, 1
%120 = add i64 %113, 1
%121 = icmp eq i64 %120, %75
br i1 %121, label %122, label %111
122: ; preds = %108, %111, %63
ret double* %64
}