#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*/ printf(char *, int, int);
int /*<<< orphan*/ resetA(double *);
void cftmd1(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);
#pragma mta use 100 streams
#pragma mta no scalar expansion
#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;
    for (j = k; j < l + k; j += 2) {
      resetA(a);
      btrfly(j, wk1r, wk1i, wk2r, wk2i, wk3r, wk3i, a, b, c, d);
    }
    wk1r = w[k1 + k1 + 2];
    wk1i = v[k1 + k1 + 2];
    wk3r = wk1r - 2 * wk2r * wk1i;
    wk3i = 2 * wk2r * wk1r - wk1i;
    for (j = k + m; j < l + k + m; j += 2) {
      resetA(a);
      btrfly(j, wk1r, wk1i, -wk2i, wk2r, wk3r, wk3i, a, b, c, d);
    }
  }
}


x86 assembly (clang, -O0):
<cftmd1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%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    0xe2a(%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
mov    %eax,-0x20(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1482 <cftmd1+0x342>
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  0xd92(%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  0xd5c(%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    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0x20(%rbp),%ecx
cmp    %ecx,%eax
jge    133b <cftmd1+0x1fb>
mov    -0x10(%rbp),%rdi
call   1040 <resetA@plt>
mov    -0x1c(%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    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    12dd <cftmd1+0x19d>
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,-0x68(%rbp)
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,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  0xc84(%rip),%xmm0
mulsd  -0x58(%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  0xc4e(%rip),%xmm0
mulsd  -0x58(%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    -0x20(%rbp),%eax
add    -0x28(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0x20(%rbp),%ecx
add    -0x28(%rbp),%ecx
cmp    %ecx,%eax
jge    1466 <cftmd1+0x326>
mov    -0x10(%rbp),%rdi
call   1040 <resetA@plt>
mov    -0x1c(%rbp),%edi
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
movsd  -0x58(%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    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    13ee <cftmd1+0x2ae>
jmp    146b <cftmd1+0x32b>
mov    -0x2c(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    1203 <cftmd1+0xc3>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cftmd1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %esi,%ebp
mov    %edi,%r15d
lea    0x0(,%rbp,8),%r12d
lea    0xea5(%rip),%rdi
mov    %r15d,%esi
mov    %ebp,%edx
call   1060 <printf@plt>
mov    %r15d,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    %r14,0x10(%rsp)
mov    %r14,%rcx
call   1050 <cftmd0@plt>
mov    %r15d,0x4c(%rsp)
mov    %r12d,0xc(%rsp)
cmp    %r15d,%r12d
jge    13e1 <cftmd1+0x2a1>
lea    0x0(,%rbp,4),%eax
mov    %rax,0x88(%rsp)
movslq %ebp,%rax
lea    (%rbx,%rax,8),%rcx
mov    %rcx,0xa0(%rsp)
lea    (%rcx,%rax,8),%rcx
mov    %rcx,0x98(%rsp)
lea    (%rcx,%rax,8),%rax
mov    %rax,0x90(%rsp)
mov    $0x2,%ecx
mov    0xc(%rsp),%eax
mov    %rbp,0x68(%rsp)
mov    0xa0(%rsp),%r14
mov    0x98(%rsp),%r12
mov    0x90(%rsp),%r13
jmp    1221 <cftmd1+0xe1>
nopl   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rax
add    0xc(%rsp),%eax
mov    0x20(%rsp),%rcx
add    $0x2,%rcx
cmp    0x4c(%rsp),%eax
mov    0x68(%rsp),%rbp
jge    13e1 <cftmd1+0x2a1>
mov    %rax,0x18(%rsp)
lea    (%rax,%rbp,1),%esi
mov    0x10(%rsp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x40(%rsp)
mov    %rcx,0x20(%rsp)
movsd  0x8(%rax,%rcx,8),%xmm0
movaps %xmm0,0x50(%rsp)
test   %ebp,%ebp
jle    12fb <cftmd1+0x1bb>
mov    0x20(%rsp),%rax
shl    $0x4,%rax
mov    0x10(%rsp),%rcx
movsd  (%rcx,%rax,1),%xmm1
movsd  0x8(%rcx,%rax,1),%xmm2
movapd 0x50(%rsp),%xmm3
addsd  %xmm3,%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm1,%xmm4
subsd  %xmm0,%xmm4
movsd  %xmm4,0x28(%rsp)
movsd  %xmm1,0x38(%rsp)
mulsd  %xmm1,%xmm3
movsd  %xmm2,0x30(%rsp)
subsd  %xmm2,%xmm3
movapd %xmm3,0x70(%rsp)
mov    0x18(%rsp),%rax
mov    %eax,%ebp
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %esi,%r15d
call   1040 <resetA@plt>
mov    %ebp,%edi
movsd  0x38(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movsd  0x40(%rsp),%xmm2
movaps 0x50(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movaps 0x70(%rsp),%xmm5
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %r13,%r8
call   1030 <btrfly@plt>
mov    %r15d,%esi
add    $0x2,%ebp
cmp    %r15d,%ebp
jl     12b0 <cftmd1+0x170>
cmpl   $0x0,0x68(%rsp)
jle    1200 <cftmd1+0xc0>
mov    0x20(%rsp),%rax
add    %rax,%rax
shl    $0x3,%rax
or     $0x10,%rax
mov    0x88(%rsp),%rdx
add    %edx,%esi
mov    0x10(%rsp),%rcx
movsd  (%rcx,%rax,1),%xmm1
movsd  0x8(%rcx,%rax,1),%xmm2
movsd  0x40(%rsp),%xmm3
addsd  %xmm3,%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm1,%xmm4
subsd  %xmm0,%xmm4
movsd  %xmm4,0x28(%rsp)
movsd  %xmm1,0x38(%rsp)
mulsd  %xmm1,%xmm3
movsd  %xmm2,0x30(%rsp)
subsd  %xmm2,%xmm3
movsd  %xmm3,0x70(%rsp)
mov    0x18(%rsp),%rax
lea    (%rax,%rdx,1),%r15d
movaps 0x50(%rsp),%xmm0
xorps  0xc81(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %esi,%ebp
call   1040 <resetA@plt>
mov    %r15d,%edi
movsd  0x38(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movaps 0x50(%rsp),%xmm2
movsd  0x40(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x70(%rsp),%xmm5
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %r13,%r8
call   1030 <btrfly@plt>
mov    %ebp,%esi
add    $0x2,%r15d
cmp    %ebp,%r15d
jl     1390 <cftmd1+0x250>
jmp    1200 <cftmd1+0xc0>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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