#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*/ cfftf(size_t, double *, double *);
int /*<<< orphan*/ cffti(size_t, double *);
double cos(double);
size_t good_size(size_t);
double sin(double);
scalar_t__ util_malloc_(int);
void bluestein_i(size_t n, double **tstorage) {
  static const double pi = 3.14159265358979323846;
  size_t n2 = good_size(n * 2 - 1);
  size_t m, coeff;
  double angle, xn2;
  double *bk, *bkf, *work;
  double pibyn = pi / n;
  *tstorage =
      ((double *)util_malloc_((2 + 2 * n + 8 * n2 + 16) * sizeof(double)));
  ((size_t *)(*tstorage))[0] = n2;
  bk = *tstorage + 2;
  bkf = *tstorage + 2 + 2 * n;
  work = *tstorage + 2 + 2 * (n + n2);
  bk[0] = 1;
  bk[1] = 0;
  coeff = 0;
  for (m = 1; m < n; ++m) {
    coeff += 2 * m - 1;
    if (coeff >= 2 * n)
      coeff -= 2 * n;
    angle = pibyn * coeff;
    bk[2 * m] = cos(angle);
    bk[2 * m + 1] = sin(angle);
  }
  xn2 = 1. / n2;
  bkf[0] = bk[0] * xn2;
  bkf[1] = bk[1] * xn2;
  for (m = 2; m < 2 * n; m += 2) {
    bkf[m] = bkf[2 * n2 - m] = bk[m] * xn2;
    bkf[m + 1] = bkf[2 * n2 - m + 1] = bk[m + 1] * xn2;
  }
  for (m = 2 * n; m <= (2 * n2 - 2 * n + 1); ++m)
    bkf[m] = 0.;
  cffti(n2, work);
  cfftf(n2, bkf, work);
}


x86 assembly (clang, -O0):
<bluestein_i>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
lea    -0x1(%rax,%rax,1),%rdi
call   1050 <good_size@plt>
mov    %rax,-0x18(%rbp)
movaps 0xe87(%rip),%xmm0
movq   -0x8(%rbp),%xmm1
punpckldq %xmm0,%xmm1
movapd 0xe86(%rip),%xmm0
subpd  %xmm0,%xmm1
movaps %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe57(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x8(%rbp),%rax
shl    $0x1,%rax
add    $0x2,%rax
mov    -0x18(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
add    $0x10,%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <util_malloc_@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
add    $0x10,%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
add    $0x10,%rax
mov    -0x8(%rbp),%rcx
shl    $0x1,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
add    $0x10,%rax
mov    -0x8(%rbp),%rcx
add    -0x18(%rbp),%rcx
shl    $0x1,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rax
movsd  0xdad(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
movq   $0x0,-0x28(%rbp)
movq   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    133a <bluestein_i+0x1da>
mov    -0x20(%rbp),%rax
shl    $0x1,%rax
sub    $0x1,%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x8(%rbp),%rcx
shl    $0x1,%rcx
cmp    %rcx,%rax
jb     12bd <bluestein_i+0x15d>
mov    -0x8(%rbp),%rcx
shl    $0x1,%rcx
mov    -0x28(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x28(%rbp)
movsd  -0x58(%rbp),%xmm0
movaps 0xd47(%rip),%xmm2
movq   -0x28(%rbp),%xmm1
punpckldq %xmm2,%xmm1
movapd 0xd46(%rip),%xmm2
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1080 <cos@plt>
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%rcx
shl    $0x1,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
call   1060 <sin@plt>
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%rcx
shl    $0x1,%rcx
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1273 <bluestein_i+0x113>
movaps 0xccf(%rip),%xmm0
movq   -0x18(%rbp),%xmm1
punpckldq %xmm0,%xmm1
movapd 0xcce(%rip),%xmm0
subpd  %xmm0,%xmm1
movaps %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc97(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
movsd  0x8(%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movq   $0x2,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x8(%rbp),%rcx
shl    $0x1,%rcx
cmp    %rcx,%rax
jae    1437 <bluestein_i+0x2d7>
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x38(%rbp),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%rcx
shl    $0x1,%rcx
sub    -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm0
mulsd  -0x38(%rbp),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%rcx
shl    $0x1,%rcx
sub    -0x20(%rbp),%rcx
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
jmp    13a6 <bluestein_i+0x246>
mov    -0x8(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
shl    $0x1,%rcx
mov    -0x8(%rbp),%rdx
shl    $0x1,%rdx
sub    %rdx,%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
ja     1488 <bluestein_i+0x328>
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1443 <bluestein_i+0x2e3>
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1030 <cffti@plt>
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdx
call   1070 <cfftf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bluestein_i>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%r14
mov    %rdi,%rbp
lea    (%rdi,%rdi,1),%rbx
add    %rdi,%rdi
add    $0xffffffffffffffff,%rdi
call   1060 <good_size@plt>
mov    %rax,%r15
lea    (%rbx,%rax,8),%eax
lea    0x90(,%rax,8),%edi
call   1050 <util_malloc_@plt>
mov    %rax,%r13
mov    %rax,(%r14)
mov    %r15,(%rax)
mov    %rbp,%rsi
shl    $0x4,%rsi
lea    (%rax,%rsi,1),%r12
add    $0x10,%r12
lea    (%r15,%rbp,1),%rdi
movsd  0xe5e(%rip),%xmm1
movupd %xmm1,0x10(%rax)
cmp    $0x2,%rbp
jb     12cd <bluestein_i+0x15d>
mov    %rdi,0x10(%rsp)
mov    %rsi,0x18(%rsp)
mov    %r12,0x20(%rsp)
mov    %r15,0x30(%rsp)
movq   %rbp,%xmm0
punpckldq 0xe06(%rip),%xmm0
subpd  0xe0e(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe0a(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x10(%r13),%rax
mov    %rax,0x8(%rsp)
mov    %rbp,0x28(%rsp)
lea    -0x1(%rbp),%r12
lea    0x28(%r13),%rbp
mov    $0x1,%r14d
xor    %r15d,%r15d
nop
lea    (%r15,%r14,1),%rax
cmp    %rbx,%rax
mov    $0x0,%eax
cmovae %rbx,%rax
sub    %rax,%r15
add    %r14,%r15
movq   %r15,%xmm1
punpckldq 0xd9d(%rip),%xmm1
subpd  0xda5(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
mulsd  0x38(%rsp),%xmm0
movapd %xmm0,0x40(%rsp)
call   1090 <cos@plt>
movsd  %xmm0,-0x8(%rbp)
movapd 0x40(%rsp),%xmm0
call   1070 <sin@plt>
movsd  %xmm0,0x0(%rbp)
add    $0x2,%r14
add    $0x10,%rbp
add    $0xffffffffffffffff,%r12
jne    1240 <bluestein_i+0xd0>
mov    0x8(%rsp),%rax
movupd (%rax),%xmm1
mov    0x30(%rsp),%r15
mov    0x28(%rsp),%rbp
mov    0x20(%rsp),%r12
mov    0x18(%rsp),%rsi
mov    0x10(%rsp),%rdi
shl    $0x4,%rdi
movq   %r15,%xmm0
punpckldq 0xd22(%rip),%xmm0
subpd  0xd2a(%rip),%xmm0
movapd %xmm0,%xmm2
unpckhpd %xmm0,%xmm2
addsd  %xmm0,%xmm2
movsd  0xd2e(%rip),%xmm0
divsd  %xmm2,%xmm0
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
mulpd  %xmm1,%xmm2
movupd %xmm2,(%r12)
cmp    $0x3,%rbx
jb     1378 <bluestein_i+0x208>
lea    0x20(,%rbx,8),%rax
add    %r13,%rax
lea    (%rbx,%r15,2),%rcx
lea    0x8(,%rcx,8),%rcx
add    %r13,%rcx
mov    $0x2,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x10(%r13,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,-0x8(%rcx)
movsd  %xmm1,-0x10(%rax,%rdx,8)
movsd  0x18(%r13,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx)
movsd  %xmm1,-0x8(%rax,%rdx,8)
add    $0x2,%rdx
add    $0xfffffffffffffff0,%rcx
cmp    %rbx,%rdx
jb     1340 <bluestein_i+0x1d0>
lea    (%rdi,%r13,1),%r14
add    $0x10,%r14
mov    %r15,%rax
sub    %rbp,%rax
add    %rax,%rax
add    $0x1,%rax
cmp    %rax,%rbx
ja     13ca <bluestein_i+0x25a>
shl    $0x5,%rbp
mov    %r15,%rax
add    %r15,%rax
sub    %rbx,%rax
add    $0x2,%rax
or     $0x1,%rbx
cmp    %rbx,%rax
cmova  %rax,%rbx
lea    0x10(,%rbp,1),%rdi
add    %r13,%rdi
shl    $0x3,%rbx
sub    %rsi,%rbx
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <cffti@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r14,%rdx
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <cfftf@plt>

LLVM IR (-O0):
@bluestein_i.pi = internal constant double 0x400921FB54442D18
define void @bluestein_i(i64 %0, double** %1) {
%3 = alloca i64
%4 = alloca double**
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca double
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
store i64 %0, i64* %3
store double** %1, double*** %4
%14 = load i64, i64* %3
%15 = mul i64 %14, 2
%16 = sub i64 %15, 1
%17 = call i64 @good_size(i64 %16)
store i64 %17, i64* %5
%18 = load i64, i64* %3
%19 = uitofp i64 %18 to double
%20 = fdiv double 0x400921FB54442D18, %19
store double %20, double* %13
%21 = load i64, i64* %3
%22 = mul i64 2, %21
%23 = add i64 2, %22
%24 = load i64, i64* %5
%25 = mul i64 8, %24
%26 = add i64 %23, %25
%27 = add i64 %26, 16
%28 = mul i64 %27, 8
%29 = trunc i64 %28 to i32
%30 = call i64 @util_malloc_(i32 %29)
%31 = inttoptr i64 %30 to double*
%32 = load double**, double*** %4
store double* %31, double** %32
%33 = load i64, i64* %5
%34 = load double**, double*** %4
%35 = load double*, double** %34
%36 = bitcast double* %35 to i64*
%37 = getelementptr inbounds i64, i64* %36, i64 0
store i64 %33, i64* %37
%38 = load double**, double*** %4
%39 = load double*, double** %38
%40 = getelementptr inbounds double, double* %39, i64 2
store double* %40, double** %10
%41 = load double**, double*** %4
%42 = load double*, double** %41
%43 = getelementptr inbounds double, double* %42, i64 2
%44 = load i64, i64* %3
%45 = mul i64 2, %44
%46 = getelementptr inbounds double, double* %43, i64 %45
store double* %46, double** %11
%47 = load double**, double*** %4
%48 = load double*, double** %47
%49 = getelementptr inbounds double, double* %48, i64 2
%50 = load i64, i64* %3
%51 = load i64, i64* %5
%52 = add i64 %50, %51
%53 = mul i64 2, %52
%54 = getelementptr inbounds double, double* %49, i64 %53
store double* %54, double** %12
%55 = load double*, double** %10
%56 = getelementptr inbounds double, double* %55, i64 0
store double 1.000000e+00, double* %56
%57 = load double*, double** %10
%58 = getelementptr inbounds double, double* %57, i64 1
store double 0.000000e+00, double* %58
store i64 0, i64* %7
store i64 1, i64* %6
br label %59
59: ; preds = %96, %2
%60 = load i64, i64* %6
%61 = load i64, i64* %3
%62 = icmp ult i64 %60, %61
br i1 %62, label %63, label %99
63: ; preds = %59
%64 = load i64, i64* %6
%65 = mul i64 2, %64
%66 = sub i64 %65, 1
%67 = load i64, i64* %7
%68 = add i64 %67, %66
store i64 %68, i64* %7
%69 = load i64, i64* %7
%70 = load i64, i64* %3
%71 = mul i64 2, %70
%72 = icmp uge i64 %69, %71
br i1 %72, label %73, label %78
73: ; preds = %63
%74 = load i64, i64* %3
%75 = mul i64 2, %74
%76 = load i64, i64* %7
%77 = sub i64 %76, %75
store i64 %77, i64* %7
br label %78
78: ; preds = %73, %63
%79 = load double, double* %13
%80 = load i64, i64* %7
%81 = uitofp i64 %80 to double
%82 = fmul double %79, %81
store double %82, double* %8
%83 = load double, double* %8
%84 = call double @cos(double %83)
%85 = load double*, double** %10
%86 = load i64, i64* %6
%87 = mul i64 2, %86
%88 = getelementptr inbounds double, double* %85, i64 %87
store double %84, double* %88
%89 = load double, double* %8
%90 = call double @sin(double %89)
%91 = load double*, double** %10
%92 = load i64, i64* %6
%93 = mul i64 2, %92
%94 = add i64 %93, 1
%95 = getelementptr inbounds double, double* %91, i64 %94
store double %90, double* %95
br label %96
96: ; preds = %78
%97 = load i64, i64* %6
%98 = add i64 %97, 1
store i64 %98, i64* %6
br label %59
99: ; preds = %59
%100 = load i64, i64* %5
%101 = uitofp i64 %100 to double
%102 = fdiv double 1.000000e+00, %101
store double %102, double* %9
%103 = load double*, double** %10
%104 = getelementptr inbounds double, double* %103, i64 0
%105 = load double, double* %104
%106 = load double, double* %9
%107 = fmul double %105, %106
%108 = load double*, double** %11
%109 = getelementptr inbounds double, double* %108, i64 0
store double %107, double* %109
%110 = load double*, double** %10
%111 = getelementptr inbounds double, double* %110, i64 1
%112 = load double, double* %111
%113 = load double, double* %9
%114 = fmul double %112, %113
%115 = load double*, double** %11
%116 = getelementptr inbounds double, double* %115, i64 1
store double %114, double* %116
store i64 2, i64* %6
br label %117
117: ; preds = %156, %99
%118 = load i64, i64* %6
%119 = load i64, i64* %3
%120 = mul i64 2, %119
%121 = icmp ult i64 %118, %120
br i1 %121, label %122, label %159
122: ; preds = %117
%123 = load double*, double** %10
%124 = load i64, i64* %6
%125 = getelementptr inbounds double, double* %123, i64 %124
%126 = load double, double* %125
%127 = load double, double* %9
%128 = fmul double %126, %127
%129 = load double*, double** %11
%130 = load i64, i64* %5
%131 = mul i64 2, %130
%132 = load i64, i64* %6
%133 = sub i64 %131, %132
%134 = getelementptr inbounds double, double* %129, i64 %133
store double %128, double* %134
%135 = load double*, double** %11
%136 = load i64, i64* %6
%137 = getelementptr inbounds double, double* %135, i64 %136
store double %128, double* %137
%138 = load double*, double** %10
%139 = load i64, i64* %6
%140 = add i64 %139, 1
%141 = getelementptr inbounds double, double* %138, i64 %140
%142 = load double, double* %141
%143 = load double, double* %9
%144 = fmul double %142, %143
%145 = load double*, double** %11
%146 = load i64, i64* %5
%147 = mul i64 2, %146
%148 = load i64, i64* %6
%149 = sub i64 %147, %148
%150 = add i64 %149, 1
%151 = getelementptr inbounds double, double* %145, i64 %150
store double %144, double* %151
%152 = load double*, double** %11
%153 = load i64, i64* %6
%154 = add i64 %153, 1
%155 = getelementptr inbounds double, double* %152, i64 %154
store double %144, double* %155
br label %156
156: ; preds = %122
%157 = load i64, i64* %6
%158 = add i64 %157, 2
store i64 %158, i64* %6
br label %117
159: ; preds = %117
%160 = load i64, i64* %3
%161 = mul i64 2, %160
store i64 %161, i64* %6
br label %162
162: ; preds = %175, %159
%163 = load i64, i64* %6
%164 = load i64, i64* %5
%165 = mul i64 2, %164
%166 = load i64, i64* %3
%167 = mul i64 2, %166
%168 = sub i64 %165, %167
%169 = add i64 %168, 1
%170 = icmp ule i64 %163, %169
br i1 %170, label %171, label %178
171: ; preds = %162
%172 = load double*, double** %11
%173 = load i64, i64* %6
%174 = getelementptr inbounds double, double* %172, i64 %173
store double 0.000000e+00, double* %174
br label %175
175: ; preds = %171
%176 = load i64, i64* %6
%177 = add i64 %176, 1
store i64 %177, i64* %6
br label %162
178: ; preds = %162
%179 = load i64, i64* %5
%180 = load double*, double** %12
%181 = call i32 @cffti(i64 %179, double* %180)
%182 = load i64, i64* %5
%183 = load double*, double** %11
%184 = load double*, double** %12
%185 = call i32 @cfftf(i64 %182, double* %183, double* %184)
ret void
}

LLVM IR (-O2):
define void @bluestein_i(i64 %0, double** nocapture writeonly %1) {
%3 = shl i64 %0, 1
%4 = add i64 %3, -1
%5 = tail call i64 @good_size(i64 %4)
%6 = uitofp i64 %0 to double
%7 = fdiv double 0x400921FB54442D18, %6
%8 = add i64 %3, 2
%9 = shl i64 %5, 3
%10 = add i64 %8, %9
%11 = trunc i64 %10 to i32
%12 = shl i32 %11, 3
%13 = add i32 %12, 128
%14 = tail call i64 @util_malloc_(i32 %13)
%15 = inttoptr i64 %14 to double*
store double* %15, double** %1
%16 = inttoptr i64 %14 to i64*
store i64 %5, i64* %16
%17 = getelementptr inbounds double, double* %15, i64 2
%18 = getelementptr inbounds double, double* %17, i64 %3
%19 = add i64 %5, %0
%20 = shl i64 %19, 1
%21 = getelementptr inbounds double, double* %17, i64 %20
%22 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 0.000000e+00>, <2 x double>* %22
%23 = icmp ugt i64 %0, 1
br i1 %23, label %24, label %45
24: ; preds = %2, %24
%25 = phi i64 [ %40, %24 ], [ 1, %2 ]
%26 = phi i64 [ %32, %24 ], [ 0, %2 ]
%27 = shl i64 %25, 1
%28 = add i64 %26, -1
%29 = add i64 %28, %27
%30 = icmp ult i64 %29, %3
%31 = select i1 %30, i64 0, i64 %3
%32 = sub i64 %29, %31
%33 = uitofp i64 %32 to double
%34 = fmul double %7, %33
%35 = tail call double @cos(double %34)
%36 = getelementptr inbounds double, double* %17, i64 %27
store double %35, double* %36
%37 = tail call double @sin(double %34)
%38 = or i64 %27, 1
%39 = getelementptr inbounds double, double* %17, i64 %38
store double %37, double* %39
%40 = add nuw i64 %25, 1
%41 = icmp eq i64 %40, %0
br i1 %41, label %42, label %24
42: ; preds = %24
%43 = bitcast double* %17 to <2 x double>*
%44 = load <2 x double>, <2 x double>* %43
br label %45
45: ; preds = %42, %2
%46 = phi <2 x double> [ %44, %42 ], [ <double 1.000000e+00, double 0.000000e+00>, %2 ]
%47 = uitofp i64 %5 to double
%48 = fdiv double 1.000000e+00, %47
%49 = insertelement <2 x double> poison, double %48, i64 0
%50 = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> zeroinitializer
%51 = fmul <2 x double> %50, %46
%52 = bitcast double* %18 to <2 x double>*
store <2 x double> %51, <2 x double>* %52
%53 = icmp ugt i64 %3, 2
br i1 %53, label %54, label %56
54: ; preds = %45
%55 = shl i64 %5, 1
br label %74
56: ; preds = %74, %45
%57 = sub i64 %5, %0
%58 = shl i64 %57, 1
%59 = or i64 %58, 1
%60 = icmp ugt i64 %3, %59
br i1 %60, label %91, label %61
61: ; preds = %56
%62 = shl i64 %0, 2
%63 = or i64 %62, 2
%64 = getelementptr double, double* %15, i64 %63
%65 = bitcast double* %64 to i8*
%66 = shl i64 %5, 1
%67 = add i64 %66, 2
%68 = sub i64 %67, %3
%69 = or i64 %3, 1
%70 = call i64 @llvm.umax.i64(i64 %68, i64 %69)
%71 = shl i64 %70, 3
%72 = mul i64 %0, -16
%73 = add i64 %72, %71
br label %91
74: ; preds = %54, %74
%75 = phi i64 [ 2, %54 ], [ %89, %74 ]
%76 = getelementptr inbounds double, double* %17, i64 %75
%77 = load double, double* %76
%78 = fmul double %48, %77
%79 = sub i64 %55, %75
%80 = getelementptr inbounds double, double* %18, i64 %79
store double %78, double* %80
%81 = getelementptr inbounds double, double* %18, i64 %75
store double %78, double* %81
%82 = or i64 %75, 1
%83 = getelementptr inbounds double, double* %17, i64 %82
%84 = load double, double* %83
%85 = fmul double %48, %84
%86 = or i64 %79, 1
%87 = getelementptr inbounds double, double* %18, i64 %86
store double %85, double* %87
%88 = getelementptr inbounds double, double* %18, i64 %82
store double %85, double* %88
%89 = add nuw i64 %75, 2
%90 = icmp ult i64 %89, %3
br i1 %90, label %74, label %56
91: ; preds = %61, %56
%92 = tail call i32 @cffti(i64 %5, double* %21)
%93 = tail call i32 @cfftf(i64 %5, double* %18, double* %21)
ret void
}