#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*/ cftmd0(int, int, double *, double *);
int /*<<< orphan*/ cftmd21(int, int, double *, double *);
void cftmd2(int n, int l, double *a, double *w) {
  int j, k, k1;
  int m = l << 2;
  int m2 = 2 * m;
  double *v = w + 1;
  double *b = a + l;
  double *c = a + l + l;
  double *d = a + l + l + l;
  cftmd0(n, l, a, w);
  if (m2 >= n)
    return;
  if (m2 >= n / 8) {
    cftmd21(n, l, a, w);
    return;
  }
#pragma mta use 100 streams
#pragma mta assert no dependence
  for (j = 0; j < l; j += 2) {
#pragma mta assert no dependence
    for (k = m2, k1 = 2; k < n; k += m2, k1 += 2) {
      double wk2r = w[k1];
      double wk2i = v[k1];
      double wk1r = w[k1 + k1];
      double wk1i = v[k1 + k1];
      double wk3r = wk1r - 2 * wk2i * wk1i;
      double wk3i = 2 * wk2i * wk1r - wk1i;
      btrfly(j + k, wk1r, wk1i, wk2r, wk2i, wk3r, wk3i, a, b, c, d);
    }
#pragma mta assert no dependence
    for (k = m2, k1 = 2; k < n; k += m2, k1 += 2) {
      double wk2r = w[k1];
      double wk2i = v[k1];
      double wk1r = w[k1 + k1 + 2];
      double wk1i = v[k1 + k1 + 2];
      double wk3r = wk1r - 2 * wk2r * wk1i;
      double wk3i = 2 * wk2r * wk1r - wk1i;
      btrfly(j + k + m, wk1r, wk1i, -wk2i, wk2r, wk3r, wk3i, a, b, c, d);
    }
  }
}


x86 assembly (clang, -O0):
<cftmd2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <cftmd0@plt>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     11e5 <cftmd2+0xb5>
jmp    14ff <cftmd2+0x3cf>
mov    -0x2c(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb4(%rbp),%eax
cmp    %ecx,%eax
jl     1221 <cftmd2+0xf1>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1050 <cftmd21@plt>
jmp    14ff <cftmd2+0x3cf>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14ff <cftmd2+0x3cf>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1365 <cftmd2+0x235>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%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    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  0xd54(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xd1e(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x1c(%rbp),%edi
add    -0x20(%rbp),%edi
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm3
movsd  -0x78(%rbp),%xmm4
movsd  -0x80(%rbp),%xmm5
mov    -0x10(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
call   1030 <btrfly@plt>
mov    -0x2c(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    1241 <cftmd2+0x111>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14ec <cftmd2+0x3bc>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x38(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    -0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  0xc0e(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xbcf(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x1c(%rbp),%edi
add    -0x20(%rbp),%edi
add    -0x28(%rbp),%edi
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm2
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0xa8(%rbp),%xmm4
ff
movsd  -0xb0(%rbp),%xmm5
ff
mov    -0x10(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
call   1030 <btrfly@plt>
mov    -0x2c(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    1372 <cftmd2+0x242>
jmp    14f1 <cftmd2+0x3c1>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    1228 <cftmd2+0xf8>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cftmd2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%rbx
mov    %edi,%ebp
lea    0x0(,%rsi,8),%r12d
mov    %rsi,0x10(%rsp)
mov    %rcx,0x18(%rsp)
call   1040 <cftmd0@plt>
mov    %rbp,%rdi
cmp    %edi,%r12d
jge    1306 <cftmd2+0x1d6>
lea    0x7(%rdi),%eax
test   %edi,%edi
cmovns %edi,%eax
sar    $0x3,%eax
cmp    %eax,%r12d
jge    1315 <cftmd2+0x1e5>
cmpl   $0x0,0x10(%rsp)
jle    1306 <cftmd2+0x1d6>
mov    0x10(%rsp),%rsi
movslq %esi,%rax
lea    (%rbx,%rax,8),%r14
lea    (%r14,%rax,8),%rcx
lea    (%rcx,%rax,8),%r8
lea    0x0(,%rsi,4),%eax
lea    (%rax,%rax,2),%eax
mov    %eax,0xc(%rsp)
xor    %eax,%eax
mov    %rcx,0x40(%rsp)
mov    %r14,0x30(%rsp)
mov    %rdi,0x28(%rsp)
mov    %rbx,0x20(%rsp)
nopl   (%rax)
mov    %rax,0x38(%rsp)
mov    $0x10,%ebp
mov    %r12d,%ebx
mov    0x18(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rax,%rbp,1),%xmm2
movsd  0x8(%rax,%rbp,1),%xmm3
movsd  (%rax,%rbp,2),%xmm0
movsd  0x8(%rax,%rbp,2),%xmm1
movapd %xmm3,%xmm5
addsd  %xmm3,%xmm5
movapd %xmm5,%xmm6
mulsd  %xmm1,%xmm6
movapd %xmm0,%xmm4
subsd  %xmm6,%xmm4
mulsd  %xmm0,%xmm5
subsd  %xmm1,%xmm5
mov    %r12d,%r13d
mov    %rdi,%r12
mov    0x38(%rsp),%rax
lea    (%rax,%rbx,1),%edi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    %r8,%r15
call   1030 <btrfly@plt>
mov    %r12,%rdi
mov    %r13d,%r12d
mov    0x18(%rsp),%rax
mov    %r15,%r8
mov    0x40(%rsp),%rcx
add    %r13d,%ebx
add    $0x10,%rbp
cmp    %edi,%ebx
jl     11e0 <cftmd2+0xb0>
mov    $0x18,%r13d
mov    0xc(%rsp),%r14d
mov    %r12d,%ebp
mov    0x20(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%rax,%r13,1),%xmm3
movsd  (%rax,%r13,2),%xmm0
movsd  0x8(%rax,%r13,2),%xmm1
movapd %xmm3,%xmm5
addsd  %xmm3,%xmm5
movapd %xmm5,%xmm2
mulsd  %xmm1,%xmm2
movapd %xmm0,%xmm4
subsd  %xmm2,%xmm4
mulsd  %xmm0,%xmm5
subsd  %xmm1,%xmm5
movsd  (%rax,%r13,1),%xmm2
xorps  0xd4f(%rip),%xmm2
mov    %r14d,%edi
mov    %rbx,%rsi
mov    0x30(%rsp),%rdx
mov    %r15,%r8
call   1030 <btrfly@plt>
mov    0x18(%rsp),%rax
mov    0x40(%rsp),%rcx
add    %ebp,%r12d
add    $0x10,%r13
add    %ebp,%r14d
cmp    0x28(%rsp),%r12d
jl     1270 <cftmd2+0x140>
mov    %r15,%r8
mov    0x38(%rsp),%rax
add    $0x2,%eax
addl   $0x2,0xc(%rsp)
cmp    0x10(%rsp),%eax
mov    0x28(%rsp),%rdi
mov    %ebp,%r12d
mov    0x30(%rsp),%r14
jl     11c0 <cftmd2+0x90>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rsp),%rsi
mov    %rbx,%rdx
mov    0x18(%rsp),%rcx
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <cftmd21@plt>

LLVM IR (-O0):
define void @cftmd2(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 i32
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store double* %2, double** %7
store double* %3, double** %8
%30 = load i32, i32* %6
%31 = shl i32 %30, 2
store i32 %31, i32* %12
%32 = load i32, i32* %12
%33 = mul nsw i32 2, %32
store i32 %33, i32* %13
%34 = load double*, double** %8
%35 = getelementptr inbounds double, double* %34, i64 1
store double* %35, double** %14
%36 = load double*, double** %7
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
store double* %39, double** %15
%40 = load double*, double** %7
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
store double* %46, double** %16
%47 = load double*, double** %7
%48 = load i32, i32* %6
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, double* %50, i64 %52
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %53, i64 %55
store double* %56, double** %17
%57 = load i32, i32* %5
%58 = load i32, i32* %6
%59 = load double*, double** %7
%60 = load double*, double** %8
%61 = call i32 @cftmd0(i32 %57, i32 %58, double* %59, double* %60)
%62 = load i32, i32* %13
%63 = load i32, i32* %5
%64 = icmp sge i32 %62, %63
br i1 %64, label %65, label %66
65: ; preds = %4
br label %217
66: ; preds = %4
%67 = load i32, i32* %13
%68 = load i32, i32* %5
%69 = sdiv i32 %68, 8
%70 = icmp sge i32 %67, %69
br i1 %70, label %71, label %77
71: ; preds = %66
%72 = load i32, i32* %5
%73 = load i32, i32* %6
%74 = load double*, double** %7
%75 = load double*, double** %8
%76 = call i32 @cftmd21(i32 %72, i32 %73, double* %74, double* %75)
br label %217
77: ; preds = %66
store i32 0, i32* %9
br label %78
78: ; preds = %214, %77
%79 = load i32, i32* %9
%80 = load i32, i32* %6
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %217
82: ; preds = %78
%83 = load i32, i32* %13
store i32 %83, i32* %10
store i32 2, i32* %11
br label %84
84: ; preds = %139, %82
%85 = load i32, i32* %10
%86 = load i32, i32* %5
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %145
88: ; preds = %84
%89 = load double*, double** %8
%90 = load i32, i32* %11
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %89, i64 %91
%93 = load double, double* %92
store double %93, double* %18
%94 = load double*, double** %14
%95 = load i32, i32* %11
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, double* %94, i64 %96
%98 = load double, double* %97
store double %98, double* %19
%99 = load double*, double** %8
%100 = load i32, i32* %11
%101 = load i32, i32* %11
%102 = add nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %99, i64 %103
%105 = load double, double* %104
store double %105, double* %20
%106 = load double*, double** %14
%107 = load i32, i32* %11
%108 = load i32, i32* %11
%109 = add nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, double* %106, i64 %110
%112 = load double, double* %111
store double %112, double* %21
%113 = load double, double* %20
%114 = load double, double* %19
%115 = fmul double 2.000000e+00, %114
%116 = load double, double* %21
%117 = fneg double %115
%118 = call double @llvm.fmuladd.f64(double %117, double %116, double %113)
store double %118, double* %22
%119 = load double, double* %19
%120 = fmul double 2.000000e+00, %119
%121 = load double, double* %20
%122 = load double, double* %21
%123 = fneg double %122
%124 = call double @llvm.fmuladd.f64(double %120, double %121, double %123)
store double %124, double* %23
%125 = load i32, i32* %9
%126 = load i32, i32* %10
%127 = add nsw i32 %125, %126
%128 = load double, double* %20
%129 = load double, double* %21
%130 = load double, double* %18
%131 = load double, double* %19
%132 = load double, double* %22
%133 = load double, double* %23
%134 = load double*, double** %7
%135 = load double*, double** %15
%136 = load double*, double** %16
%137 = load double*, double** %17
%138 = call i32 @btrfly(i32 %127, double %128, double %129, double %130, double %131, double %132, double %133, double* %134, double* %135, double* %136, double* %137)
br label %139
139: ; preds = %88
%140 = load i32, i32* %13
%141 = load i32, i32* %10
%142 = add nsw i32 %141, %140
store i32 %142, i32* %10
%143 = load i32, i32* %11
%144 = add nsw i32 %143, 2
store i32 %144, i32* %11
br label %84
145: ; preds = %84
%146 = load i32, i32* %13
store i32 %146, i32* %10
store i32 2, i32* %11
br label %147
147: ; preds = %207, %145
%148 = load i32, i32* %10
%149 = load i32, i32* %5
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %213
151: ; preds = %147
%152 = load double*, double** %8
%153 = load i32, i32* %11
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
%156 = load double, double* %155
store double %156, double* %24
%157 = load double*, double** %14
%158 = load i32, i32* %11
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
%161 = load double, double* %160
store double %161, double* %25
%162 = load double*, double** %8
%163 = load i32, i32* %11
%164 = load i32, i32* %11
%165 = add nsw i32 %163, %164
%166 = add nsw i32 %165, 2
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, double* %162, i64 %167
%169 = load double, double* %168
store double %169, double* %26
%170 = load double*, double** %14
%171 = load i32, i32* %11
%172 = load i32, i32* %11
%173 = add nsw i32 %171, %172
%174 = add nsw i32 %173, 2
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %170, i64 %175
%177 = load double, double* %176
store double %177, double* %27
%178 = load double, double* %26
%179 = load double, double* %24
%180 = fmul double 2.000000e+00, %179
%181 = load double, double* %27
%182 = fneg double %180
%183 = call double @llvm.fmuladd.f64(double %182, double %181, double %178)
store double %183, double* %28
%184 = load double, double* %24
%185 = fmul double 2.000000e+00, %184
%186 = load double, double* %26
%187 = load double, double* %27
%188 = fneg double %187
%189 = call double @llvm.fmuladd.f64(double %185, double %186, double %188)
store double %189, double* %29
%190 = load i32, i32* %9
%191 = load i32, i32* %10
%192 = add nsw i32 %190, %191
%193 = load i32, i32* %12
%194 = add nsw i32 %192, %193
%195 = load double, double* %26
%196 = load double, double* %27
%197 = load double, double* %25
%198 = fneg double %197
%199 = load double, double* %24
%200 = load double, double* %28
%201 = load double, double* %29
%202 = load double*, double** %7
%203 = load double*, double** %15
%204 = load double*, double** %16
%205 = load double*, double** %17
%206 = call i32 @btrfly(i32 %194, double %195, double %196, double %198, double %199, double %200, double %201, double* %202, double* %203, double* %204, double* %205)
br label %207
207: ; preds = %151
%208 = load i32, i32* %13
%209 = load i32, i32* %10
%210 = add nsw i32 %209, %208
store i32 %210, i32* %10
%211 = load i32, i32* %11
%212 = add nsw i32 %211, 2
store i32 %212, i32* %11
br label %147
213: ; preds = %147
br label %214
214: ; preds = %213
%215 = load i32, i32* %9
%216 = add nsw i32 %215, 2
store i32 %216, i32* %9
br label %78
217: ; preds = %65, %71, %78
ret void
}

LLVM IR (-O2):
define void @cftmd2(i32 %0, i32 %1, double* %2, double* %3) {
%5 = shl i32 %1, 2
%6 = shl i32 %1, 3
%7 = getelementptr inbounds double, double* %3, i64 1
%8 = sext i32 %1 to i64
%9 = getelementptr inbounds double, double* %2, i64 %8
%10 = getelementptr inbounds double, double* %9, i64 %8
%11 = getelementptr inbounds double, double* %10, i64 %8
%12 = tail call i32 @cftmd0(i32 %0, i32 %1, double* %2, double* %3)
%13 = icmp slt i32 %6, %0
br i1 %13, label %14, label %74
14: ; preds = %4
%15 = sdiv i32 %0, 8
%16 = icmp slt i32 %6, %15
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = icmp sgt i32 %1, 0
br i1 %18, label %21, label %74
19: ; preds = %14
%20 = tail call i32 @cftmd21(i32 %0, i32 %1, double* %2, double* %3)
br label %74
21: ; preds = %17, %71
%22 = phi i32 [ %72, %71 ], [ 0, %17 ]
br label %25
23: ; preds = %25
%24 = add i32 %22, %5
br label %47
25: ; preds = %21, %25
%26 = phi i64 [ 2, %21 ], [ %45, %25 ]
%27 = phi i32 [ %6, %21 ], [ %44, %25 ]
%28 = getelementptr inbounds double, double* %3, i64 %26
%29 = load double, double* %28
%30 = getelementptr inbounds double, double* %7, i64 %26
%31 = load double, double* %30
%32 = shl nuw nsw i64 %26, 1
%33 = getelementptr inbounds double, double* %3, i64 %32
%34 = load double, double* %33
%35 = getelementptr inbounds double, double* %7, i64 %32
%36 = load double, double* %35
%37 = fmul double %31, 2.000000e+00
%38 = fneg double %37
%39 = tail call double @llvm.fmuladd.f64(double %38, double %36, double %34)
%40 = fneg double %36
%41 = tail call double @llvm.fmuladd.f64(double %37, double %34, double %40)
%42 = add nsw i32 %27, %22
%43 = tail call i32 @btrfly(i32 %42, double %34, double %36, double %29, double %31, double %39, double %41, double* %2, double* %9, double* %10, double* %11)
%44 = add nsw i32 %27, %6
%45 = add nuw i64 %26, 2
%46 = icmp slt i32 %44, %0
br i1 %46, label %25, label %23
47: ; preds = %23, %47
%48 = phi i64 [ 2, %23 ], [ %69, %47 ]
%49 = phi i32 [ %6, %23 ], [ %68, %47 ]
%50 = getelementptr inbounds double, double* %3, i64 %48
%51 = load double, double* %50
%52 = getelementptr inbounds double, double* %7, i64 %48
%53 = load double, double* %52
%54 = shl nuw nsw i64 %48, 1
%55 = or i64 %54, 2
%56 = getelementptr inbounds double, double* %3, i64 %55
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %7, i64 %55
%59 = load double, double* %58
%60 = fmul double %51, 2.000000e+00
%61 = fneg double %60
%62 = tail call double @llvm.fmuladd.f64(double %61, double %59, double %57)
%63 = fneg double %59
%64 = tail call double @llvm.fmuladd.f64(double %60, double %57, double %63)
%65 = add i32 %24, %49
%66 = fneg double %53
%67 = tail call i32 @btrfly(i32 %65, double %57, double %59, double %66, double %51, double %62, double %64, double* %2, double* %9, double* %10, double* %11)
%68 = add nsw i32 %49, %6
%69 = add nuw i64 %48, 2
%70 = icmp slt i32 %68, %0
br i1 %70, label %47, label %71
71: ; preds = %47
%72 = add nuw nsw i32 %22, 2
%73 = icmp slt i32 %72, %1
br i1 %73, label %21, label %74
74: ; preds = %71, %17, %4, %19
ret void
}