#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*/ cft1st(int, double *, double const *);
int /*<<< orphan*/ cftmdl(int, int, double *, double const *);
void cftfsub(int n, double *a, double const *w) {
  int j, j1, j2, j3, l;
  double x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;
  l = 2;
  if (n > 8) {
    cft1st(n, a, w);
    l = 8;
    while ((l << 2) < n) {
      cftmdl(n, l, a, w);
      l <<= 2;
    }
  }
  if ((l << 2) == n) {
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      j2 = j1 + l;
      j3 = j2 + l;
      x0r = a[j] + a[j1];
      x0i = a[j + 1] + a[j1 + 1];
      x1r = a[j] - a[j1];
      x1i = a[j + 1] - a[j1 + 1];
      x2r = a[j2] + a[j3];
      x2i = a[j2 + 1] + a[j3 + 1];
      x3r = a[j2] - a[j3];
      x3i = a[j2 + 1] - a[j3 + 1];
      a[j] = x0r + x2r;
      a[j + 1] = x0i + x2i;
      a[j2] = x0r - x2r;
      a[j2 + 1] = x0i - x2i;
      a[j1] = x1r - x3i;
      a[j1 + 1] = x1i + x3r;
      a[j3] = x1r + x3i;
      a[j3 + 1] = x1i - x3r;
    }
  } else {
    for (j = 0; j < l; j += 2) {
      j1 = j + l;
      x0r = a[j] - a[j1];
      x0i = a[j + 1] - a[j1 + 1];
      a[j] += a[j1];
      a[j + 1] += a[j1 + 1];
      a[j1] = x0r;
      a[j1 + 1] = x0i;
    }
  }
}


x86 assembly (clang, -O0):
<cftfsub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x2,-0x2c(%rbp)
cmpl   $0x8,-0x4(%rbp)
jle    1190 <cftfsub+0x70>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <cft1st@plt>
movl   $0x8,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jge    118b <cftfsub+0x6b>
mov    -0x4(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <cftmdl@plt>
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    115b <cftfsub+0x3b>
jmp    1190 <cftfsub+0x70>
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
jne    13cc <cftfsub+0x2ac>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13c7 <cftfsub+0x2a7>
mov    -0x1c(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
addsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a6 <cftfsub+0x86>
jmp    14b4 <cftfsub+0x394>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    14af <cftfsub+0x38f>
mov    -0x1c(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    13d3 <cftfsub+0x2b3>
jmp    14b4 <cftfsub+0x394>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cftfsub>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%rbx
mov    %edi,%r15d
mov    $0x2,%r12d
cmp    $0x9,%edi
jl     1181 <cftfsub+0x61>
mov    %rdx,%r14
mov    %r15d,%edi
mov    %rbx,%rsi
call   1030 <cft1st@plt>
mov    $0x8,%r12d
cmp    $0x21,%r15d
jb     1181 <cftfsub+0x61>
mov    $0x8,%esi
mov    $0x20,%eax
nopl   (%rax)
mov    %eax,%r12d
mov    %r15d,%edi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1040 <cftmdl@plt>
lea    0x0(,%r12,4),%eax
mov    %r12d,%esi
cmp    %r15d,%eax
jl     1160 <cftfsub+0x40>
lea    0x0(,%r12,4),%eax
cmp    %r15d,%eax
jne    12b2 <cftfsub+0x192>
test   %r12d,%r12d
jle    132d <cftfsub+0x20d>
movabs $0x200000000,%r8
mov    %r12d,%r9d
add    %r12d,%r12d
or     $0x1,%r12
mov    %r9,%rax
shl    $0x20,%rax
lea    (%rbx,%r9,8),%r10
lea    (%rax,%rax,2),%rcx
lea    (%r9,%r9,2),%rdx
lea    (%rbx,%rdx,8),%r11
mov    %r9,%r14
shl    $0x4,%r14
add    %rbx,%r14
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%r10,%rsi,8),%xmm2
movupd (%rbx,%rsi,8),%xmm0
mov    %rax,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm3
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
unpcklpd %xmm3,%xmm2
addpd  %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
subsd  %xmm3,%xmm0
movsd  (%r14,%rsi,8),%xmm3
movsd  (%r11,%rsi,8),%xmm4
lea    (%r12,%rsi,1),%edi
movslq %edi,%rbp
movsd  (%rbx,%rbp,8),%xmm5
mov    %rcx,%rdi
sar    $0x1d,%rdi
or     $0x8,%rdi
movsd  (%rbx,%rdi,1),%xmm6
movapd %xmm3,%xmm7
unpcklpd %xmm5,%xmm7
subsd  %xmm4,%xmm3
unpcklpd %xmm6,%xmm4
addpd  %xmm7,%xmm4
subsd  %xmm6,%xmm5
movapd %xmm2,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm6,(%rbx,%rsi,8)
subpd  %xmm4,%xmm2
movlpd %xmm2,(%r14,%rsi,8)
movhpd %xmm2,(%rbx,%rbp,8)
movapd %xmm1,%xmm2
subsd  %xmm5,%xmm2
movsd  %xmm2,(%r10,%rsi,8)
movapd %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rbx,%rdx,1)
addsd  %xmm1,%xmm5
movsd  %xmm5,(%r11,%rsi,8)
subsd  %xmm3,%xmm0
movsd  %xmm0,(%rbx,%rdi,1)
add    $0x2,%rsi
add    %r8,%rax
add    %r8,%rcx
cmp    %r9,%rsi
jb     11e0 <cftfsub+0xc0>
jmp    132d <cftfsub+0x20d>
test   %r12d,%r12d
jle    132d <cftfsub+0x20d>
movabs $0x200000000,%rax
mov    %r12d,%ebp
mov    %rbp,%rcx
shl    $0x20,%rcx
lea    (%rbx,%rbp,8),%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rsi,%rdi,8),%xmm0
movupd (%rbx,%rdi,8),%xmm1
movapd %xmm1,%xmm2
subsd  %xmm0,%xmm2
mov    %rcx,%rdx
sar    $0x1d,%rdx
or     $0x8,%rdx
movsd  (%rbx,%rdx,1),%xmm3
unpcklpd %xmm3,%xmm0
addpd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
subsd  %xmm3,%xmm1
movupd %xmm0,(%rbx,%rdi,8)
movsd  %xmm2,(%rsi,%rdi,8)
movsd  %xmm1,(%rbx,%rdx,1)
add    $0x2,%rdi
add    %rax,%rcx
cmp    %rbp,%rdi
jb     12e0 <cftfsub+0x1c0>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @cftfsub(i32 %0, double* %1, double* %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%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* %4
store double* %1, double** %5
store double* %2, double** %6
store i32 2, i32* %11
%20 = load i32, i32* %4
%21 = icmp sgt i32 %20, 8
br i1 %21, label %22, label %41
22: ; preds = %3
%23 = load i32, i32* %4
%24 = load double*, double** %5
%25 = load double*, double** %6
%26 = call i32 @cft1st(i32 %23, double* %24, double* %25)
store i32 8, i32* %11
br label %27
27: ; preds = %32, %22
%28 = load i32, i32* %11
%29 = shl i32 %28, 2
%30 = load i32, i32* %4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %40
32: ; preds = %27
%33 = load i32, i32* %4
%34 = load i32, i32* %11
%35 = load double*, double** %5
%36 = load double*, double** %6
%37 = call i32 @cftmdl(i32 %33, i32 %34, double* %35, double* %36)
%38 = load i32, i32* %11
%39 = shl i32 %38, 2
store i32 %39, i32* %11
br label %27
40: ; preds = %27
br label %41
41: ; preds = %40, %3
%42 = load i32, i32* %11
%43 = shl i32 %42, 2
%44 = load i32, i32* %4
%45 = icmp eq i32 %43, %44
br i1 %45, label %46, label %221
46: ; preds = %41
store i32 0, i32* %7
br label %47
47: ; preds = %217, %46
%48 = load i32, i32* %7
%49 = load i32, i32* %11
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %220
51: ; preds = %47
%52 = load i32, i32* %7
%53 = load i32, i32* %11
%54 = add nsw i32 %52, %53
store i32 %54, i32* %8
%55 = load i32, i32* %8
%56 = load i32, i32* %11
%57 = add nsw i32 %55, %56
store i32 %57, i32* %9
%58 = load i32, i32* %9
%59 = load i32, i32* %11
%60 = add nsw i32 %58, %59
store i32 %60, i32* %10
%61 = load double*, double** %5
%62 = load i32, i32* %7
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
%66 = load double*, double** %5
%67 = load i32, i32* %8
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
%70 = load double, double* %69
%71 = fadd double %65, %70
store double %71, double* %12
%72 = load double*, double** %5
%73 = load i32, i32* %7
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %72, i64 %75
%77 = load double, double* %76
%78 = load double*, double** %5
%79 = load i32, i32* %8
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %78, i64 %81
%83 = load double, double* %82
%84 = fadd double %77, %83
store double %84, double* %13
%85 = load double*, double** %5
%86 = load i32, i32* %7
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
%89 = load double, double* %88
%90 = load double*, double** %5
%91 = load i32, i32* %8
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = fsub double %89, %94
store double %95, double* %14
%96 = load double*, double** %5
%97 = load i32, i32* %7
%98 = add nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %96, i64 %99
%101 = load double, double* %100
%102 = load double*, double** %5
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %102, i64 %105
%107 = load double, double* %106
%108 = fsub double %101, %107
store double %108, double* %15
%109 = load double*, double** %5
%110 = load i32, i32* %9
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
%113 = load double, double* %112
%114 = load double*, double** %5
%115 = load i32, i32* %10
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %114, i64 %116
%118 = load double, double* %117
%119 = fadd double %113, %118
store double %119, double* %16
%120 = load double*, double** %5
%121 = load i32, i32* %9
%122 = add nsw i32 %121, 1
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %120, i64 %123
%125 = load double, double* %124
%126 = load double*, double** %5
%127 = load i32, i32* %10
%128 = add nsw i32 %127, 1
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, double* %126, i64 %129
%131 = load double, double* %130
%132 = fadd double %125, %131
store double %132, double* %17
%133 = load double*, double** %5
%134 = load i32, i32* %9
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, double* %133, i64 %135
%137 = load double, double* %136
%138 = load double*, double** %5
%139 = load i32, i32* %10
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %138, i64 %140
%142 = load double, double* %141
%143 = fsub double %137, %142
store double %143, double* %18
%144 = load double*, double** %5
%145 = load i32, i32* %9
%146 = add nsw i32 %145, 1
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, double* %144, i64 %147
%149 = load double, double* %148
%150 = load double*, double** %5
%151 = load i32, i32* %10
%152 = add nsw i32 %151, 1
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %150, i64 %153
%155 = load double, double* %154
%156 = fsub double %149, %155
store double %156, double* %19
%157 = load double, double* %12
%158 = load double, double* %16
%159 = fadd double %157, %158
%160 = load double*, double** %5
%161 = load i32, i32* %7
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %160, i64 %162
store double %159, double* %163
%164 = load double, double* %13
%165 = load double, double* %17
%166 = fadd double %164, %165
%167 = load double*, double** %5
%168 = load i32, i32* %7
%169 = add nsw i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, double* %167, i64 %170
store double %166, double* %171
%172 = load double, double* %12
%173 = load double, double* %16
%174 = fsub double %172, %173
%175 = load double*, double** %5
%176 = load i32, i32* %9
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, double* %175, i64 %177
store double %174, double* %178
%179 = load double, double* %13
%180 = load double, double* %17
%181 = fsub double %179, %180
%182 = load double*, double** %5
%183 = load i32, i32* %9
%184 = add nsw i32 %183, 1
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds double, double* %182, i64 %185
store double %181, double* %186
%187 = load double, double* %14
%188 = load double, double* %19
%189 = fsub double %187, %188
%190 = load double*, double** %5
%191 = load i32, i32* %8
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %190, i64 %192
store double %189, double* %193
%194 = load double, double* %15
%195 = load double, double* %18
%196 = fadd double %194, %195
%197 = load double*, double** %5
%198 = load i32, i32* %8
%199 = add nsw i32 %198, 1
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %197, i64 %200
store double %196, double* %201
%202 = load double, double* %14
%203 = load double, double* %19
%204 = fadd double %202, %203
%205 = load double*, double** %5
%206 = load i32, i32* %10
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds double, double* %205, i64 %207
store double %204, double* %208
%209 = load double, double* %15
%210 = load double, double* %18
%211 = fsub double %209, %210
%212 = load double*, double** %5
%213 = load i32, i32* %10
%214 = add nsw i32 %213, 1
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, double* %212, i64 %215
store double %211, double* %216
br label %217
217: ; preds = %51
%218 = load i32, i32* %7
%219 = add nsw i32 %218, 2
store i32 %219, i32* %7
br label %47
220: ; preds = %47
br label %293
221: ; preds = %41
store i32 0, i32* %7
br label %222
222: ; preds = %289, %221
%223 = load i32, i32* %7
%224 = load i32, i32* %11
%225 = icmp slt i32 %223, %224
br i1 %225, label %226, label %292
226: ; preds = %222
%227 = load i32, i32* %7
%228 = load i32, i32* %11
%229 = add nsw i32 %227, %228
store i32 %229, i32* %8
%230 = load double*, double** %5
%231 = load i32, i32* %7
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, double* %230, i64 %232
%234 = load double, double* %233
%235 = load double*, double** %5
%236 = load i32, i32* %8
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds double, double* %235, i64 %237
%239 = load double, double* %238
%240 = fsub double %234, %239
store double %240, double* %12
%241 = load double*, double** %5
%242 = load i32, i32* %7
%243 = add nsw i32 %242, 1
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, double* %241, i64 %244
%246 = load double, double* %245
%247 = load double*, double** %5
%248 = load i32, i32* %8
%249 = add nsw i32 %248, 1
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds double, double* %247, i64 %250
%252 = load double, double* %251
%253 = fsub double %246, %252
store double %253, double* %13
%254 = load double*, double** %5
%255 = load i32, i32* %8
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds double, double* %254, i64 %256
%258 = load double, double* %257
%259 = load double*, double** %5
%260 = load i32, i32* %7
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, double* %259, i64 %261
%263 = load double, double* %262
%264 = fadd double %263, %258
store double %264, double* %262
%265 = load double*, double** %5
%266 = load i32, i32* %8
%267 = add nsw i32 %266, 1
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds double, double* %265, i64 %268
%270 = load double, double* %269
%271 = load double*, double** %5
%272 = load i32, i32* %7
%273 = add nsw i32 %272, 1
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds double, double* %271, i64 %274
%276 = load double, double* %275
%277 = fadd double %276, %270
store double %277, double* %275
%278 = load double, double* %12
%279 = load double*, double** %5
%280 = load i32, i32* %8
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds double, double* %279, i64 %281
store double %278, double* %282
%283 = load double, double* %13
%284 = load double*, double** %5
%285 = load i32, i32* %8
%286 = add nsw i32 %285, 1
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds double, double* %284, i64 %287
store double %283, double* %288
br label %289
289: ; preds = %226
%290 = load i32, i32* %7
%291 = add nsw i32 %290, 2
store i32 %291, i32* %7
br label %222
292: ; preds = %222
br label %293
293: ; preds = %292, %220
ret void
}

LLVM IR (-O2):
define void @cftfsub(i32 %0, double* %1, double* %2) {
%4 = icmp sgt i32 %0, 8
br i1 %4, label %5, label %14
5: ; preds = %3
%6 = tail call i32 @cft1st(i32 %0, double* %1, double* %2)
%7 = icmp ugt i32 %0, 32
br i1 %7, label %8, label %14
8: ; preds = %5, %8
%9 = phi i32 [ %12, %8 ], [ 32, %5 ]
%10 = phi i32 [ %9, %8 ], [ 8, %5 ]
%11 = tail call i32 @cftmdl(i32 %0, i32 %10, double* %1, double* %2)
%12 = shl i32 %9, 2
%13 = icmp slt i32 %12, %0
br i1 %13, label %8, label %14
14: ; preds = %8, %5, %3
%15 = phi i32 [ 2, %3 ], [ 8, %5 ], [ %9, %8 ]
%16 = shl i32 %15, 2
%17 = icmp eq i32 %16, %0
%18 = icmp sgt i32 %15, 0
br i1 %17, label %22, label %19
19: ; preds = %14
br i1 %18, label %20, label %105
20: ; preds = %19
%21 = zext i32 %15 to i64
br label %82
22: ; preds = %14
br i1 %18, label %23, label %105
23: ; preds = %22
%24 = zext i32 %15 to i64
%25 = shl i32 %15, 1
br label %26
26: ; preds = %23, %26
%27 = phi i64 [ 0, %23 ], [ %80, %26 ]
%28 = trunc i64 %27 to i32
%29 = add nuw nsw i64 %27, %24
%30 = add nuw nsw i64 %29, %24
%31 = add i32 %25, %28
%32 = add nuw nsw i64 %30, %24
%33 = getelementptr inbounds double, double* %1, i64 %27
%34 = getelementptr inbounds double, double* %1, i64 %29
%35 = load double, double* %34
%36 = bitcast double* %33 to <2 x double>*
%37 = load <2 x double>, <2 x double>* %36
%38 = shl i64 %29, 32
%39 = ashr exact i64 %38, 32
%40 = or i64 %39, 1
%41 = getelementptr inbounds double, double* %1, i64 %40
%42 = load double, double* %41
%43 = insertelement <2 x double> poison, double %35, i64 0
%44 = insertelement <2 x double> %43, double %42, i64 1
%45 = fadd <2 x double> %37, %44
%46 = extractelement <2 x double> %37, i64 0
%47 = fsub double %46, %35
%48 = extractelement <2 x double> %37, i64 1
%49 = fsub double %48, %42
%50 = getelementptr inbounds double, double* %1, i64 %30
%51 = load double, double* %50
%52 = getelementptr inbounds double, double* %1, i64 %32
%53 = load double, double* %52
%54 = or i32 %31, 1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %1, i64 %55
%57 = load double, double* %56
%58 = shl i64 %32, 32
%59 = ashr exact i64 %58, 32
%60 = or i64 %59, 1
%61 = getelementptr inbounds double, double* %1, i64 %60
%62 = load double, double* %61
%63 = insertelement <2 x double> poison, double %51, i64 0
%64 = insertelement <2 x double> %63, double %57, i64 1
%65 = insertelement <2 x double> poison, double %53, i64 0
%66 = insertelement <2 x double> %65, double %62, i64 1
%67 = fadd <2 x double> %64, %66
%68 = fsub double %51, %53
%69 = fsub double %57, %62
%70 = fadd <2 x double> %45, %67
%71 = bitcast double* %33 to <2 x double>*
store <2 x double> %70, <2 x double>* %71
%72 = fsub <2 x double> %45, %67
%73 = extractelement <2 x double> %72, i64 0
store double %73, double* %50
%74 = fsub <2 x double> %45, %67
%75 = extractelement <2 x double> %74, i64 1
store double %75, double* %56
%76 = fsub double %47, %69
store double %76, double* %34
%77 = fadd double %49, %68
store double %77, double* %41
%78 = fadd double %47, %69
store double %78, double* %52
%79 = fsub double %49, %68
store double %79, double* %61
%80 = add nuw nsw i64 %27, 2
%81 = icmp ult i64 %80, %24
br i1 %81, label %26, label %105
82: ; preds = %20, %82
%83 = phi i64 [ 0, %20 ], [ %103, %82 ]
%84 = add nuw nsw i64 %83, %21
%85 = getelementptr inbounds double, double* %1, i64 %83
%86 = getelementptr inbounds double, double* %1, i64 %84
%87 = load double, double* %86
%88 = bitcast double* %85 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = extractelement <2 x double> %89, i64 0
%91 = fsub double %90, %87
%92 = shl i64 %84, 32
%93 = ashr exact i64 %92, 32
%94 = or i64 %93, 1
%95 = getelementptr inbounds double, double* %1, i64 %94
%96 = load double, double* %95
%97 = extractelement <2 x double> %89, i64 1
%98 = fsub double %97, %96
%99 = insertelement <2 x double> poison, double %87, i64 0
%100 = insertelement <2 x double> %99, double %96, i64 1
%101 = fadd <2 x double> %89, %100
%102 = bitcast double* %85 to <2 x double>*
store <2 x double> %101, <2 x double>* %102
store double %91, double* %86
store double %98, double* %95
%103 = add nuw nsw i64 %83, 2
%104 = icmp ult i64 %103, %21
br i1 %104, label %82, label %105
105: ; preds = %82, %26, %19, %22
ret void
}