#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 *);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ resetA(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;
  printf("  cftmd0(n=%d, l=%d, a, w)\n", n, l);
  cftmd0(n, l, a, w);
  if (m2 >= n)
    return;
  if (m2 >= n / 8) {
    printf("  cftmd21(n=%d, l=%d, a, w)\n", n, l);
    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;
      resetA(a);
      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;
      resetA(a);
      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),%esi
mov    -0x8(%rbp),%edx
lea    0xe1a(%rip),%rdi
call   1060 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1050 <cftmd0@plt>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     1217 <cftmd2+0xc7>
jmp    1555 <cftmd2+0x405>
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     1265 <cftmd2+0x115>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xddc(%rip),%rdi
call   1060 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1070 <cftmd21@plt>
jmp    1555 <cftmd2+0x405>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1555 <cftmd2+0x405>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13b2 <cftmd2+0x262>
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  0xd10(%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  0xcda(%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    -0x10(%rbp),%rdi
call   1040 <resetA@plt>
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    1285 <cftmd2+0x135>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1542 <cftmd2+0x3f2>
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  0xbc1(%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  0xb82(%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    -0x10(%rbp),%rdi
call   1040 <resetA@plt>
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    13bf <cftmd2+0x26f>
jmp    1547 <cftmd2+0x3f7>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    126c <cftmd2+0x11c>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cftmd2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %esi,%ebx
mov    %edi,%ebp
lea    0x0(,%rbx,8),%r13d
lea    0xe99(%rip),%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1060 <printf@plt>
mov    %ebp,%edi
mov    %rbx,0x8(%rsp)
mov    %ebx,%esi
mov    %r14,%rdx
mov    %r15,%rcx
call   1050 <cftmd0@plt>
mov    %rbp,%rsi
cmp    %esi,%r13d
jge    13cd <cftmd2+0x27d>
lea    0x7(%rsi),%eax
test   %esi,%esi
cmovns %esi,%eax
sar    $0x3,%eax
cmp    %eax,%r13d
jge    13dc <cftmd2+0x28c>
cmpl   $0x0,0x8(%rsp)
jle    13cd <cftmd2+0x27d>
mov    0x8(%rsp),%rcx
movslq %ecx,%rax
lea    (%r14,%rax,8),%rdx
mov    %rdx,0x58(%rsp)
lea    (%rdx,%rax,8),%rdx
mov    %rdx,0x50(%rsp)
lea    (%rdx,%rax,8),%rax
mov    %rax,0x48(%rsp)
lea    0x0(,%rcx,4),%eax
lea    (%rax,%rax,2),%eax
mov    %eax,0x4(%rsp)
xor    %eax,%eax
mov    %rsi,0x38(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %rax,0x40(%rsp)
mov    $0x10,%ebp
mov    %r13d,%ebx
nopl   (%rax)
movsd  (%r15,%rbp,1),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%r15,%rbp,1),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  (%r15,%rbp,2),%xmm2
movsd  %xmm2,0x10(%rsp)
movsd  0x8(%r15,%rbp,2),%xmm3
movsd  %xmm3,0x60(%rsp)
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm3,%xmm0
movapd %xmm2,%xmm4
subsd  %xmm0,%xmm4
movsd  %xmm4,0x20(%rsp)
mulsd  %xmm2,%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,0x18(%rsp)
mov    %r14,%rdi
mov    %r13d,%r12d
mov    %rsi,%r13
call   1040 <resetA@plt>
mov    0x40(%rsp),%rax
lea    (%rax,%rbx,1),%edi
movsd  0x10(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
movsd  0x18(%rsp),%xmm5
mov    %r14,%rsi
mov    0x58(%rsp),%rdx
mov    0x50(%rsp),%rcx
mov    0x48(%rsp),%r8
call   1030 <btrfly@plt>
mov    %r13,%rsi
mov    %r12d,%r13d
add    %r12d,%ebx
add    $0x10,%rbp
cmp    %esi,%ebx
jl     1210 <cftmd2+0xc0>
mov    $0x18,%ebp
mov    0x4(%rsp),%r12d
mov    %r13d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%r15,%rbp,1),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  (%r15,%rbp,2),%xmm2
movsd  %xmm2,0x18(%rsp)
movsd  0x8(%r15,%rbp,2),%xmm3
movsd  %xmm3,0x10(%rsp)
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm3,%xmm0
movapd %xmm2,%xmm4
subsd  %xmm0,%xmm4
movsd  %xmm4,0x28(%rsp)
mulsd  %xmm2,%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  (%r15,%rbp,1),%xmm0
xorps  0xcb1(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
mov    %r14,%rdi
call   1040 <resetA@plt>
mov    %r12d,%edi
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movaps 0x60(%rsp),%xmm2
movsd  0x30(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x20(%rsp),%xmm5
mov    %r14,%rsi
mov    0x58(%rsp),%rdx
mov    0x50(%rsp),%rcx
mov    0x48(%rsp),%r8
call   1030 <btrfly@plt>
add    %ebx,%r13d
add    $0x10,%rbp
add    %ebx,%r12d
cmp    0x38(%rsp),%r13d
jl     12f0 <cftmd2+0x1a0>
mov    0x40(%rsp),%rax
add    $0x2,%eax
addl   $0x2,0x4(%rsp)
cmp    0x8(%rsp),%eax
mov    0x38(%rsp),%rsi
mov    %ebx,%r13d
jl     1200 <cftmd2+0xb0>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc49(%rip),%rdi
mov    %rsi,%rbp
mov    0x8(%rsp),%rbx
mov    %ebx,%edx
call   1060 <printf@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r14,%rdx
mov    %r15,%rcx
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <cftmd21@plt>

LLVM IR (-O0):
@.str = [28 x i8] c" cftmd0(n=%d, l=%d, a, w)\0A\00"
@.str.1 = [29 x i8] c" cftmd21(n=%d, l=%d, a, w)\0A\00"
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 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %57, i32 %58)
%60 = load i32, i32* %5
%61 = load i32, i32* %6
%62 = load double*, double** %7
%63 = load double*, double** %8
%64 = call i32 @cftmd0(i32 %60, i32 %61, double* %62, double* %63)
%65 = load i32, i32* %13
%66 = load i32, i32* %5
%67 = icmp sge i32 %65, %66
br i1 %67, label %68, label %69
68: ; preds = %4
br label %227
69: ; preds = %4
%70 = load i32, i32* %13
%71 = load i32, i32* %5
%72 = sdiv i32 %71, 8
%73 = icmp sge i32 %70, %72
br i1 %73, label %74, label %83
74: ; preds = %69
%75 = load i32, i32* %5
%76 = load i32, i32* %6
%77 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %75, i32 %76)
%78 = load i32, i32* %5
%79 = load i32, i32* %6
%80 = load double*, double** %7
%81 = load double*, double** %8
%82 = call i32 @cftmd21(i32 %78, i32 %79, double* %80, double* %81)
br label %227
83: ; preds = %69
store i32 0, i32* %9
br label %84
84: ; preds = %224, %83
%85 = load i32, i32* %9
%86 = load i32, i32* %6
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %227
88: ; preds = %84
%89 = load i32, i32* %13
store i32 %89, i32* %10
store i32 2, i32* %11
br label %90
90: ; preds = %147, %88
%91 = load i32, i32* %10
%92 = load i32, i32* %5
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %153
94: ; preds = %90
%95 = load double*, double** %8
%96 = load i32, i32* %11
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
%99 = load double, double* %98
store double %99, double* %18
%100 = load double*, double** %14
%101 = load i32, i32* %11
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
%104 = load double, double* %103
store double %104, double* %19
%105 = load double*, double** %8
%106 = load i32, i32* %11
%107 = load i32, i32* %11
%108 = add nsw i32 %106, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %105, i64 %109
%111 = load double, double* %110
store double %111, double* %20
%112 = load double*, double** %14
%113 = load i32, i32* %11
%114 = load i32, i32* %11
%115 = add nsw i32 %113, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %112, i64 %116
%118 = load double, double* %117
store double %118, double* %21
%119 = load double, double* %20
%120 = load double, double* %19
%121 = fmul double 2.000000e+00, %120
%122 = load double, double* %21
%123 = fneg double %121
%124 = call double @llvm.fmuladd.f64(double %123, double %122, double %119)
store double %124, double* %22
%125 = load double, double* %19
%126 = fmul double 2.000000e+00, %125
%127 = load double, double* %20
%128 = load double, double* %21
%129 = fneg double %128
%130 = call double @llvm.fmuladd.f64(double %126, double %127, double %129)
store double %130, double* %23
%131 = load double*, double** %7
%132 = call i32 @resetA(double* %131)
%133 = load i32, i32* %9
%134 = load i32, i32* %10
%135 = add nsw i32 %133, %134
%136 = load double, double* %20
%137 = load double, double* %21
%138 = load double, double* %18
%139 = load double, double* %19
%140 = load double, double* %22
%141 = load double, double* %23
%142 = load double*, double** %7
%143 = load double*, double** %15
%144 = load double*, double** %16
%145 = load double*, double** %17
%146 = call i32 @btrfly(i32 %135, double %136, double %137, double %138, double %139, double %140, double %141, double* %142, double* %143, double* %144, double* %145)
br label %147
147: ; preds = %94
%148 = load i32, i32* %13
%149 = load i32, i32* %10
%150 = add nsw i32 %149, %148
store i32 %150, i32* %10
%151 = load i32, i32* %11
%152 = add nsw i32 %151, 2
store i32 %152, i32* %11
br label %90
153: ; preds = %90
%154 = load i32, i32* %13
store i32 %154, i32* %10
store i32 2, i32* %11
br label %155
155: ; preds = %217, %153
%156 = load i32, i32* %10
%157 = load i32, i32* %5
%158 = icmp slt i32 %156, %157
br i1 %158, label %159, label %223
159: ; preds = %155
%160 = load double*, double** %8
%161 = load i32, i32* %11
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %160, i64 %162
%164 = load double, double* %163
store double %164, double* %24
%165 = load double*, double** %14
%166 = load i32, i32* %11
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, double* %165, i64 %167
%169 = load double, double* %168
store double %169, double* %25
%170 = load double*, double** %8
%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* %26
%178 = load double*, double** %14
%179 = load i32, i32* %11
%180 = load i32, i32* %11
%181 = add nsw i32 %179, %180
%182 = add nsw i32 %181, 2
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %178, i64 %183
%185 = load double, double* %184
store double %185, double* %27
%186 = load double, double* %26
%187 = load double, double* %24
%188 = fmul double 2.000000e+00, %187
%189 = load double, double* %27
%190 = fneg double %188
%191 = call double @llvm.fmuladd.f64(double %190, double %189, double %186)
store double %191, double* %28
%192 = load double, double* %24
%193 = fmul double 2.000000e+00, %192
%194 = load double, double* %26
%195 = load double, double* %27
%196 = fneg double %195
%197 = call double @llvm.fmuladd.f64(double %193, double %194, double %196)
store double %197, double* %29
%198 = load double*, double** %7
%199 = call i32 @resetA(double* %198)
%200 = load i32, i32* %9
%201 = load i32, i32* %10
%202 = add nsw i32 %200, %201
%203 = load i32, i32* %12
%204 = add nsw i32 %202, %203
%205 = load double, double* %26
%206 = load double, double* %27
%207 = load double, double* %25
%208 = fneg double %207
%209 = load double, double* %24
%210 = load double, double* %28
%211 = load double, double* %29
%212 = load double*, double** %7
%213 = load double*, double** %15
%214 = load double*, double** %16
%215 = load double*, double** %17
%216 = call i32 @btrfly(i32 %204, double %205, double %206, double %208, double %209, double %210, double %211, double* %212, double* %213, double* %214, double* %215)
br label %217
217: ; preds = %159
%218 = load i32, i32* %13
%219 = load i32, i32* %10
%220 = add nsw i32 %219, %218
store i32 %220, i32* %10
%221 = load i32, i32* %11
%222 = add nsw i32 %221, 2
store i32 %222, i32* %11
br label %155
223: ; preds = %155
br label %224
224: ; preds = %223
%225 = load i32, i32* %9
%226 = add nsw i32 %225, 2
store i32 %226, i32* %9
br label %84
227: ; preds = %68, %74, %84
ret void
}

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