#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*/ btrfly(int, double, double, double, double, double, double,
                          double *, double *, double *, double *);
int /*<<< orphan*/ cft1st(int, double *, double *);
int /*<<< orphan*/ cftmd1(int, int, double *, double *);
int /*<<< orphan*/ cftmd2(int, int, double *, double *);
void dfft(int n, int logn, double *a, double *w) {
  int i, l, j;
  double *v, *b, *c, *d;
  cft1st(n, a, w);
  i = 4;
  l = 8;
  for (; i <= logn / 2; i += 2, l *= 4)
    cftmd1(n, l, a, w);
  for (; i <= logn - 1; i += 2, l *= 4)
    cftmd2(n, l, a, w);
  v = w + 1;
  b = a + l;
  c = a + l + l;
  d = a + l + l + l;
  if ((l << 2) == n) {
#pragma mta use 100 streams
#pragma mta assert no dependence
    for (j = 0; j < l; j += 2)
      btrfly(j, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, a, b, c, d);
  } else {
#pragma mta use 100 streams
#pragma mta assert no dependence
    for (j = 0; j < l; j += 2) {
      double x0r = a[j];
      double x0i = a[j + 1];
      double x1r = b[j];
      double x1i = b[j + 1];
      a[j] = x0r + x1r;
      a[j + 1] = x0i + x1i;
      b[j] = x0r - x1r;
      b[j + 1] = x0i - x1i;
    }
  }
}


x86 assembly (clang, -O0):
<dfft>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1050 <cft1st@plt>
movl   $0x4,-0x1c(%rbp)
movl   $0x8,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x6c(%rbp),%eax
cmp    %ecx,%eax
jg     11bc <dfft+0x7c>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1060 <cftmd1@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x20(%rbp)
jmp    1174 <dfft+0x34>
jmp    11c1 <dfft+0x81>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     11fc <dfft+0xbc>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <cftmd2@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x20(%rbp)
jmp    11c1 <dfft+0x81>
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jne    12c6 <dfft+0x186>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    12c1 <dfft+0x181>
mov    -0x24(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
movsd  0xd61(%rip),%xmm4
xorps  %xmm5,%xmm5
movaps %xmm4,%xmm0
movaps %xmm5,%xmm1
movaps %xmm4,%xmm2
movaps %xmm5,%xmm3
call   1030 <btrfly@plt>
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    1278 <dfft+0x138>
jmp    13a4 <dfft+0x264>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    139f <dfft+0x25f>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
addsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    12cd <dfft+0x18d>
jmp    13a4 <dfft+0x264>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dfft>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r13
mov    %rdx,%r15
mov    %esi,%ebx
mov    %edi,%r12d
mov    %rdx,%rsi
mov    %rcx,%rdx
call   1050 <cft1st@plt>
cmp    $0x8,%ebx
mov    %ebx,0x4(%rsp)
jge    1176 <dfft+0x36>
mov    $0x4,%ebx
mov    $0x8,%ebp
jmp    11ab <dfft+0x6b>
mov    %ebx,%r14d
shr    $0x1f,%r14d
add    %ebx,%r14d
sar    %r14d
mov    $0x8,%ebp
mov    $0x4,%ebx
nopl   (%rax)
mov    %r12d,%edi
mov    %ebp,%esi
mov    %r15,%rdx
mov    %r13,%rcx
call   1060 <cftmd1@plt>
add    $0x2,%ebx
shl    $0x2,%ebp
cmp    %r14d,%ebx
jle    1190 <dfft+0x50>
mov    0x4(%rsp),%r14d
cmp    %r14d,%ebx
jge    11db <dfft+0x9b>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12d,%edi
mov    %ebp,%esi
mov    %r15,%rdx
mov    %r13,%rcx
call   1040 <cftmd2@plt>
add    $0x2,%ebx
shl    $0x2,%ebp
cmp    %r14d,%ebx
jl     11c0 <dfft+0x80>
mov    %ebp,%r13d
lea    (%r15,%r13,8),%r14
shl    $0x2,%ebp
cmp    %r12d,%ebp
jne    1237 <dfft+0xf7>
test   %r13,%r13
je     12a1 <dfft+0x161>
lea    (%r14,%r13,8),%rbx
lea    (%rbx,%r13,8),%r12
xor    %ebp,%ebp
nopl   (%rax)
xorpd  %xmm1,%xmm1
xorpd  %xmm3,%xmm3
xorpd  %xmm5,%xmm5
mov    %ebp,%edi
movsd  0xdea(%rip),%xmm0
movaps %xmm0,%xmm2
movaps %xmm0,%xmm4
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r12,%r8
call   1030 <btrfly@plt>
add    $0x2,%ebp
cmp    %r13d,%ebp
jb     1200 <dfft+0xc0>
jmp    12a1 <dfft+0x161>
test   %r13,%r13
je     12a1 <dfft+0x161>
lea    -0x1(%r13),%rdi
cmp    $0x2,%rdi
jae    12b0 <dfft+0x170>
xor    %edx,%edx
lea    (%r15,%r13,8),%rax
add    $0x8,%rax
movsd  (%r15,%rdx,8),%xmm0
movsd  0x8(%r15,%rdx,8),%xmm1
movsd  -0x8(%rax,%rdx,8),%xmm2
movsd  (%rax,%rdx,8),%xmm3
movapd %xmm0,%xmm4
addsd  %xmm2,%xmm4
movsd  %xmm4,(%r15,%rdx,8)
movapd %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,0x8(%r15,%rdx,8)
subsd  %xmm2,%xmm0
movsd  %xmm0,-0x8(%rax,%rdx,8)
subsd  %xmm3,%xmm1
movsd  %xmm1,(%rax,%rdx,8)
add    $0x2,%rdx
cmp    %r13,%rdx
jb     1250 <dfft+0x110>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rdi,%rcx
shr    %rcx
mov    $0x10,%edx
mov    %rcx,%rax
mul    %rdx
seto   %bl
lea    (%r14,%rax,1),%rsi
xor    %edx,%edx
cmp    %r14,%rsi
jb     1248 <dfft+0x108>
test   %bl,%bl
jne    1248 <dfft+0x108>
lea    (%r15,%r13,8),%rsi
add    $0x8,%rsi
add    %r14,%rax
add    $0x8,%rax
cmp    %rsi,%rax
jb     1248 <dfft+0x108>
test   %bl,%bl
jne    1248 <dfft+0x108>
and    $0xfffffffffffffffe,%rdi
lea    -0x8(,%r13,8),%rdx
ff
or     $0x8,%rdx
add    %r15,%rdx
lea    0x8(%r15),%rbp
lea    (%r15,%rdi,8),%rbx
add    $0x10,%rbx
add    %r13,%rdi
lea    (%r15,%rdi,8),%r11
add    $0x8,%r11
lea    (%r15,%rdi,8),%rdi
add    $0x10,%rdi
cmp    %r15,%rbx
seta   0x4(%rsp)
cmp    %rdx,%rbp
setb   0x3(%rsp)
cmp    %r15,%r11
seta   %al
cmp    %rdx,%r14
setb   0x2(%rsp)
cmp    %r15,%rdi
seta   %r12b
cmp    %rdx,%rsi
setb   0x1(%rsp)
cmp    %r11,%rbp
setb   %r10b
cmp    %rbx,%r14
setb   (%rsp)
cmp    %rdi,%rbp
setb   %r8b
cmp    %rbx,%rsi
setb   %bpl
cmp    %rdi,%r14
setb   %r9b
cmp    %r11,%rsi
setb   %sil
xor    %edx,%edx
mov    0x3(%rsp),%bl
test   %bl,0x4(%rsp)
jne    1248 <dfft+0x108>
and    0x2(%rsp),%al
jne    1248 <dfft+0x108>
and    0x1(%rsp),%r12b
jne    1248 <dfft+0x108>
and    (%rsp),%r10b
jne    1248 <dfft+0x108>
and    %bpl,%r8b
jne    1248 <dfft+0x108>
and    %sil,%r9b
jne    1248 <dfft+0x108>
add    $0x1,%rcx
mov    %rcx,%rax
and    $0xfffffffffffffffe,%rax
lea    (%rax,%rax,1),%rdx
mov    %rax,%rsi
mov    %r15,%rdi
nopw   0x0(%rax,%rax,1)
movupd (%rdi),%xmm0
movupd 0x10(%rdi),%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm1,%xmm2
unpckhpd %xmm1,%xmm0
movupd (%rdi,%r13,8),%xmm1
movupd 0x10(%rdi,%r13,8),%xmm3
movapd %xmm1,%xmm4
unpcklpd %xmm3,%xmm4
unpckhpd %xmm3,%xmm1
movapd %xmm2,%xmm3
addpd  %xmm4,%xmm3
movapd %xmm0,%xmm5
addpd  %xmm1,%xmm5
movapd %xmm3,%xmm6
unpckhpd %xmm5,%xmm6
unpcklpd %xmm5,%xmm3
movupd %xmm3,(%rdi)
movupd %xmm6,0x10(%rdi)
subpd  %xmm4,%xmm2
subpd  %xmm1,%xmm0
movapd %xmm2,%xmm1
unpcklpd %xmm0,%xmm1
movhlps %xmm2,%xmm0
movups %xmm0,0x10(%rdi,%r13,8)
movupd %xmm1,(%rdi,%r13,8)
add    $0x20,%rdi
add    $0xfffffffffffffffe,%rsi
jne    13e0 <dfft+0x2a0>
cmp    %rax,%rcx
jne    1248 <dfft+0x108>
jmp    12a1 <dfft+0x161>

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

LLVM IR (-O2):
define void @dfft(i32 %0, i32 %1, double* %2, double* %3) {
%5 = tail call i32 @cft1st(i32 %0, double* %2, double* %3)
%6 = sdiv i32 %1, 2
%7 = icmp slt i32 %1, 8
br i1 %7, label %8, label %12
8: ; preds = %12, %4
%9 = phi i32 [ 8, %4 ], [ %17, %12 ]
%10 = phi i32 [ 4, %4 ], [ %16, %12 ]
%11 = icmp slt i32 %10, %1
br i1 %11, label %19, label %26
12: ; preds = %4, %12
%13 = phi i32 [ %16, %12 ], [ 4, %4 ]
%14 = phi i32 [ %17, %12 ], [ 8, %4 ]
%15 = tail call i32 @cftmd1(i32 %0, i32 %14, double* %2, double* %3)
%16 = add nuw nsw i32 %13, 2
%17 = shl nsw i32 %14, 2
%18 = icmp sgt i32 %16, %6
br i1 %18, label %8, label %12
19: ; preds = %8, %19
%20 = phi i32 [ %23, %19 ], [ %10, %8 ]
%21 = phi i32 [ %24, %19 ], [ %9, %8 ]
%22 = tail call i32 @cftmd2(i32 %0, i32 %21, double* %2, double* %3)
%23 = add nuw nsw i32 %20, 2
%24 = shl nsw i32 %21, 2
%25 = icmp slt i32 %23, %1
br i1 %25, label %19, label %26
26: ; preds = %19, %8
%27 = phi i32 [ %9, %8 ], [ %24, %19 ]
%28 = zext i32 %27 to i64
%29 = getelementptr double, double* %2, i64 %28
%30 = bitcast double* %29 to i8*
%31 = getelementptr inbounds double, double* %29, i64 %28
%32 = getelementptr inbounds double, double* %31, i64 %28
%33 = shl i32 %27, 2
%34 = icmp eq i32 %33, %0
%35 = icmp eq i32 %27, 0
br i1 %34, label %135, label %36
36: ; preds = %26
br i1 %35, label %158, label %37
37: ; preds = %36
%38 = add nsw i64 %28, -1
%39 = lshr i64 %38, 1
%40 = add nuw i64 %39, 1
%41 = icmp ult i64 %38, 2
br i1 %41, label %133, label %42
42: ; preds = %37
%43 = add nsw i64 %28, -1
%44 = lshr i64 %43, 1
%45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 16)
%46 = extractvalue { i64, i1 } %45, 0
%47 = extractvalue { i64, i1 } %45, 1
%48 = getelementptr i8, i8* %30, i64 %46
%49 = icmp ult i8* %48, %30
%50 = or i1 %49, %47
%51 = add nuw nsw i64 %28, 1
%52 = getelementptr double, double* %2, i64 %51
%53 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 16)
%54 = extractvalue { i64, i1 } %53, 0
%55 = extractvalue { i64, i1 } %53, 1
%56 = bitcast double* %52 to i8*
%57 = getelementptr i8, i8* %56, i64 %54
%58 = icmp ult i8* %57, %56
%59 = or i1 %58, %55
%60 = or i1 %50, %59
br i1 %60, label %133, label %61
61: ; preds = %42
%62 = add nsw i64 %28, -1
%63 = and i64 %62, -2
%64 = or i64 %62, 1
%65 = getelementptr double, double* %2, i64 %64
%66 = getelementptr double, double* %2, i64 1
%67 = add nsw i64 %63, 2
%68 = getelementptr double, double* %2, i64 %67
%69 = add nsw i64 %63, %28
%70 = add nsw i64 %69, 1
%71 = getelementptr double, double* %2, i64 %70
%72 = add nuw nsw i64 %28, 1
%73 = getelementptr double, double* %2, i64 %72
%74 = add nsw i64 %63, %28
%75 = add nsw i64 %74, 2
%76 = getelementptr double, double* %2, i64 %75
%77 = icmp ugt double* %68, %2
%78 = icmp ult double* %66, %65
%79 = and i1 %77, %78
%80 = icmp ugt double* %71, %2
%81 = icmp ult double* %29, %65
%82 = and i1 %80, %81
%83 = or i1 %79, %82
%84 = icmp ugt double* %76, %2
%85 = icmp ult double* %73, %65
%86 = and i1 %84, %85
%87 = or i1 %83, %86
%88 = icmp ult double* %66, %71
%89 = icmp ult double* %29, %68
%90 = and i1 %88, %89
%91 = or i1 %87, %90
%92 = icmp ult double* %66, %76
%93 = icmp ult double* %73, %68
%94 = and i1 %92, %93
%95 = or i1 %91, %94
%96 = icmp ult double* %29, %76
%97 = icmp ult double* %73, %71
%98 = and i1 %96, %97
%99 = or i1 %95, %98
br i1 %99, label %133, label %100
100: ; preds = %61
%101 = and i64 %40, -2
%102 = shl i64 %101, 1
%103 = getelementptr inbounds double, double* %2, i64 -1
%104 = getelementptr inbounds double, double* %29, i64 -1
br label %105
105: ; preds = %105, %100
%106 = phi i64 [ 0, %100 ], [ %129, %105 ]
%107 = shl i64 %106, 1
%108 = getelementptr inbounds double, double* %2, i64 %107
%109 = bitcast double* %108 to <4 x double>*
%110 = load <4 x double>, <4 x double>* %109
%111 = shufflevector <4 x double> %110, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%112 = shufflevector <4 x double> %110, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%113 = or i64 %107, 1
%114 = getelementptr inbounds double, double* %29, i64 %107
%115 = bitcast double* %114 to <4 x double>*
%116 = load <4 x double>, <4 x double>* %115
%117 = shufflevector <4 x double> %116, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%118 = shufflevector <4 x double> %116, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%119 = fadd <2 x double> %111, %117
%120 = fadd <2 x double> %112, %118
%121 = getelementptr inbounds double, double* %103, i64 %113
%122 = bitcast double* %121 to <4 x double>*
%123 = shufflevector <2 x double> %119, <2 x double> %120, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %123, <4 x double>* %122
%124 = fsub <2 x double> %111, %117
%125 = fsub <2 x double> %112, %118
%126 = getelementptr inbounds double, double* %104, i64 %113
%127 = bitcast double* %126 to <4 x double>*
%128 = shufflevector <2 x double> %124, <2 x double> %125, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %128, <4 x double>* %127
%129 = add nuw i64 %106, 2
%130 = icmp eq i64 %129, %101
br i1 %130, label %131, label %105
131: ; preds = %105
%132 = icmp eq i64 %40, %101
br i1 %132, label %158, label %133
133: ; preds = %61, %42, %37, %131
%134 = phi i64 [ 0, %61 ], [ 0, %42 ], [ 0, %37 ], [ %102, %131 ]
br label %141
135: ; preds = %26
br i1 %35, label %158, label %136
136: ; preds = %135, %136
%137 = phi i32 [ %139, %136 ], [ 0, %135 ]
%138 = tail call i32 @btrfly(i32 %137, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double* %2, double* %29, double* %31, double* %32)
%139 = add nuw nsw i32 %137, 2
%140 = icmp ult i32 %139, %27
br i1 %140, label %136, label %158
141: ; preds = %133, %141
%142 = phi i64 [ %156, %141 ], [ %134, %133 ]
%143 = getelementptr inbounds double, double* %2, i64 %142
%144 = load double, double* %143
%145 = or i64 %142, 1
%146 = getelementptr inbounds double, double* %2, i64 %145
%147 = load double, double* %146
%148 = getelementptr inbounds double, double* %29, i64 %142
%149 = load double, double* %148
%150 = getelementptr inbounds double, double* %29, i64 %145
%151 = load double, double* %150
%152 = fadd double %144, %149
store double %152, double* %143
%153 = fadd double %147, %151
store double %153, double* %146
%154 = fsub double %144, %149
store double %154, double* %148
%155 = fsub double %147, %151
store double %155, double* %150
%156 = add nuw nsw i64 %142, 2
%157 = icmp ult i64 %156, %28
br i1 %157, label %141, label %158
158: ; preds = %141, %136, %131, %36, %135
ret void
}