void fft_(double *a, double *b, int nseg, int n, int nspn, int isn) {
  int nfac[32];
  int m = 0, nf, k, kt, ntot, j, jj, maxf, maxp = -1;
  double *at, *ck, *bt, *sk;
  int *np;
  a--;
  b--;
  k = nf = abs(n);
  if (nf == 1)
    return;
  nspn = abs(nf * nspn);
  ntot = abs(nspn * nseg);
  if (isn * ntot == 0) {
    printf("\nerror - zero in fft parameters %d %d %d %d", nseg, n, nspn, isn);
    return;
  }
  for (m = 0; !(k % 16); nfac[++m] = 4, k /= 16)
    ;
  for (j = 3, jj = 9; jj <= k; j += 2, jj = j * j)
    for (; !(k % jj); nfac[++m] = j, k /= jj)
      ;
  if (k <= 4) {
    kt = m;
    nfac[m + 1] = k;
    if (k != 1)
      m++;
  } else {
    if (k % 4 == 0) {
      nfac[++m] = 2;
      k /= 4;
    }
    kt = m;
    maxp = (kt + kt + 2 > k - 1 ? kt + kt + 2 : k - 1);
    for (j = 2; j <= k; j = 1 + ((j + 1) / 2) * 2)
      if (k % j == 0) {
        nfac[++m] = j;
        k /= j;
      }
  }
  if (m <= kt + 1)
    maxp = m + kt + 1;
  if (m + kt > 15) {
    printf("\nerror - fft parameter n has more than 15 factors : %d", n);
    return;
  }
  if (kt != 0) {
    j = kt;
    while (j)
      nfac[++m] = nfac[j--];
  }
  maxf = nfac[m - kt];
  if (kt > 0 && maxf < nfac[kt])
    maxf = nfac[kt];
  at = (double *)calloc(maxf, sizeof(double));
  ck = (double *)calloc(maxf, sizeof(double));
  bt = (double *)calloc(maxf, sizeof(double));
  sk = (double *)calloc(maxf, sizeof(double));
  np = (int *)calloc(maxp, sizeof(int));
  at--;
  bt--;
  ck--;
  sk--;
  np--;
  fftmx(a, b, ntot, nf, nspn, isn, m, &kt, at, ck, bt, sk, np, nfac);
  at++;
  bt++;
  ck++;
  sk++;
  np++;
  free(at);
  free(sk);
  free(bt);
  free(ck);
  free(np);
  return;
}


x86 assembly (clang, -O0):
<fft_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %edx,-0x3c(%rbp)
mov    %ecx,-0x40(%rbp)
mov    %r8d,-0x44(%rbp)
mov    %r9d,-0x48(%rbp)
movl   $0x0,-0xd4(%rbp)
movl   $0xffffffff,-0xf4(%rbp)
ff ff ff
mov    -0x30(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x30(%rbp)
mov    -0x38(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%edi
call   1040 <abs@plt>
mov    %eax,-0xd8(%rbp)
mov    %eax,-0xdc(%rbp)
cmpl   $0x1,-0xd8(%rbp)
jne    11cc <fft_+0x7c>
jmp    17c4 <fft_+0x674>
mov    -0xd8(%rbp),%edi
imul   -0x44(%rbp),%edi
call   1040 <abs@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%edi
imul   -0x3c(%rbp),%edi
call   1040 <abs@plt>
mov    %eax,-0xe4(%rbp)
mov    -0x48(%rbp),%eax
imul   -0xe4(%rbp),%eax
cmp    $0x0,%eax
jne    1223 <fft_+0xd3>
mov    -0x3c(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
lea    0xde9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17c4 <fft_+0x674>
movl   $0x0,-0xd4(%rbp)
mov    -0xdc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1250 <fft_+0x100>
jmp    128a <fft_+0x13a>
jmp    1255 <fft_+0x105>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
cltq
movl   $0x4,-0xd0(%rbp,%rax,4)
mov    -0xdc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,-0xdc(%rbp)
jmp    122d <fft_+0xdd>
movl   $0x3,-0xe8(%rbp)
movl   $0x9,-0xec(%rbp)
mov    -0xec(%rbp),%eax
cmp    -0xdc(%rbp),%eax
jg     1340 <fft_+0x1f0>
jmp    12b5 <fft_+0x165>
mov    -0xdc(%rbp),%eax
cltd
idivl  -0xec(%rbp)
cmp    $0x0,%edx
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12d7 <fft_+0x187>
jmp    1314 <fft_+0x1c4>
jmp    12dc <fft_+0x18c>
mov    -0xe8(%rbp),%ecx
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
cltq
mov    %ecx,-0xd0(%rbp,%rax,4)
mov    -0xec(%rbp),%ecx
mov    -0xdc(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0xdc(%rbp)
jmp    12b5 <fft_+0x165>
jmp    1319 <fft_+0x1c9>
mov    -0xe8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xe8(%rbp)
mov    -0xe8(%rbp),%eax
imul   -0xe8(%rbp),%eax
mov    %eax,-0xec(%rbp)
jmp    129e <fft_+0x14e>
cmpl   $0x4,-0xdc(%rbp)
jg     1392 <fft_+0x242>
mov    -0xd4(%rbp),%eax
mov    %eax,-0xe0(%rbp)
mov    -0xdc(%rbp),%ecx
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xd0(%rbp,%rax,4)
cmpl   $0x1,-0xdc(%rbp)
je     138d <fft_+0x23d>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    14cb <fft_+0x37b>
mov    -0xdc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    13d9 <fft_+0x289>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
cltq
movl   $0x2,-0xd0(%rbp,%rax,4)
mov    -0xdc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0xdc(%rbp)
mov    -0xd4(%rbp),%eax
mov    %eax,-0xe0(%rbp)
mov    -0xe0(%rbp),%eax
add    -0xe0(%rbp),%eax
add    $0x2,%eax
mov    -0xdc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jle    141f <fft_+0x2cf>
mov    -0xe0(%rbp),%eax
add    -0xe0(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x124(%rbp)
jmp    142e <fft_+0x2de>
mov    -0xdc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x124(%rbp)
mov    -0x124(%rbp),%eax
mov    %eax,-0xf4(%rbp)
movl   $0x2,-0xe8(%rbp)
mov    -0xe8(%rbp),%eax
cmp    -0xdc(%rbp),%eax
jg     14c6 <fft_+0x376>
mov    -0xdc(%rbp),%eax
cltd
idivl  -0xe8(%rbp)
cmp    $0x0,%edx
jne    149f <fft_+0x34f>
mov    -0xe8(%rbp),%ecx
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
cltq
mov    %ecx,-0xd0(%rbp,%rax,4)
mov    -0xe8(%rbp),%ecx
mov    -0xdc(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0xdc(%rbp)
jmp    14a4 <fft_+0x354>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    1444 <fft_+0x2f4>
jmp    14cb <fft_+0x37b>
mov    -0xd4(%rbp),%eax
mov    -0xe0(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jg     14f7 <fft_+0x3a7>
mov    -0xd4(%rbp),%eax
add    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf4(%rbp)
mov    -0xd4(%rbp),%eax
add    -0xe0(%rbp),%eax
cmp    $0xf,%eax
jle    1522 <fft_+0x3d2>
mov    -0x40(%rbp),%esi
lea    0xb16(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17c4 <fft_+0x674>
cmpl   $0x0,-0xe0(%rbp)
je     1584 <fft_+0x434>
mov    -0xe0(%rbp),%eax
mov    %eax,-0xe8(%rbp)
cmpl   $0x0,-0xe8(%rbp)
je     157f <fft_+0x42f>
mov    -0xe8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xe8(%rbp)
cltq
mov    -0xd0(%rbp,%rax,4),%ecx
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
cltq
mov    %ecx,-0xd0(%rbp,%rax,4)
jmp    153b <fft_+0x3eb>
jmp    1584 <fft_+0x434>
mov    -0xd4(%rbp),%eax
sub    -0xe0(%rbp),%eax
cltq
mov    -0xd0(%rbp,%rax,4),%eax
mov    %eax,-0xf0(%rbp)
cmpl   $0x0,-0xe0(%rbp)
jle    15da <fft_+0x48a>
mov    -0xf0(%rbp),%eax
movslq -0xe0(%rbp),%rcx
cmp    -0xd0(%rbp,%rcx,4),%eax
jge    15da <fft_+0x48a>
movslq -0xe0(%rbp),%rax
mov    -0xd0(%rbp,%rax,4),%eax
mov    %eax,-0xf0(%rbp)
movslq -0xf0(%rbp),%rdi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,-0x100(%rbp)
movslq -0xf0(%rbp),%rdi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,-0x108(%rbp)
movslq -0xf0(%rbp),%rdi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,-0x110(%rbp)
movslq -0xf0(%rbp),%rdi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,-0x118(%rbp)
movslq -0xf4(%rbp),%rdi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x120(%rbp)
mov    -0x100(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x100(%rbp)
mov    -0x110(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x110(%rbp)
mov    -0x108(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x108(%rbp)
mov    -0x118(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x118(%rbp)
mov    -0x120(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x120(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0xe4(%rbp),%edx
mov    -0xd8(%rbp),%ecx
mov    -0x44(%rbp),%r8d
mov    -0x48(%rbp),%r9d
mov    -0xd4(%rbp),%r13d
mov    -0x100(%rbp),%r15
mov    -0x108(%rbp),%r14
mov    -0x110(%rbp),%rbx
mov    -0x118(%rbp),%r11
mov    -0x120(%rbp),%r10
lea    -0xd0(%rbp),%rax
lea    -0xe0(%rbp),%r12
mov    %r13d,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
mov    $0x0,%al
call   1050 <fftmx@plt>
mov    -0x100(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x100(%rbp)
mov    -0x110(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x110(%rbp)
mov    -0x108(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x108(%rbp)
mov    -0x118(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x118(%rbp)
mov    -0x120(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x120(%rbp)
mov    -0x100(%rbp),%rdi
call   1030 <free@plt>
mov    -0x118(%rbp),%rdi
call   1030 <free@plt>
mov    -0x110(%rbp),%rdi
call   1030 <free@plt>
mov    -0x108(%rbp),%rdi
call   1030 <free@plt>
mov    -0x120(%rbp),%rdi
call   1030 <free@plt>
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<fft_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %ecx,%r12d
neg    %r12d
cmovs  %ecx,%r12d
cmp    $0x1,%r12d
je     14ea <fft_+0x3aa>
imul   %r12d,%r8d
mov    %r8d,%r15d
neg    %r15d
cmovs  %r8d,%r15d
mov    %r15d,%eax
imul   %edx,%eax
mov    %eax,%ebp
neg    %ebp
cmovs  %eax,%ebp
mov    %ebp,%eax
imul   %r9d,%eax
test   %eax,%eax
je     11fc <fft_+0xbc>
xor    %r11d,%r11d
mov    %r12d,%r13d
test   $0xf,%r12b
jne    11c5 <fft_+0x85>
xor    %r11d,%r11d
mov    %r12d,%r13d
nopl   0x0(%rax)
movl   $0x4,0x54(%rsp,%r11,4)
add    $0x1,%r11
lea    0xf(%r13),%eax
test   %r13d,%r13d
cmovns %r13d,%eax
mov    %eax,%r13d
sar    $0x4,%r13d
test   $0xf,%r13b
je     11a0 <fft_+0x60>
mov    %ebp,0x1c(%rsp)
cmp    $0x9,%r13d
jge    1225 <fft_+0xe5>
cmp    $0x4,%r13d
jg     128e <fft_+0x14e>
mov    %r11d,0x4(%rsp)
lea    0x1(%r11),%r14d
movslq %r11d,%rax
mov    %r13d,0x54(%rsp,%rax,4)
cmp    $0x1,%r13d
cmove  %r11d,%r14d
mov    $0xffffffff,%ebx
jmp    12ca <fft_+0x18a>
lea    0xdfd(%rip),%rdi
mov    %edx,%esi
mov    %ecx,%edx
mov    %r15d,%ecx
mov    %r9d,%r8d
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
mov    $0x3,%r10d
mov    $0x9,%ebx
lea    0x54(%rsp),%r8
jmp    1254 <fft_+0x114>
nopw   0x0(%rax,%rax,1)
add    $0x2,%r10d
mov    %r10d,%ebx
imul   %r10d,%ebx
cmp    %r13d,%ebx
jg     11cf <fft_+0x8f>
mov    %r13d,%eax
cltd
idiv   %ebx
test   %edx,%edx
jne    1240 <fft_+0x100>
movslq %r11d,%rax
lea    (%r8,%rax,4),%rbp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r10d,0x0(%rbp)
mov    %r13d,%eax
cltd
idiv   %ebx
mov    %eax,%r13d
cltd
idiv   %ebx
add    $0x1,%r11d
add    $0x4,%rbp
test   %edx,%edx
je     1270 <fft_+0x130>
jmp    1240 <fft_+0x100>
test   $0x3,%r13b
jne    12a7 <fft_+0x167>
movslq %r11d,%rax
add    $0x1,%r11d
movl   $0x2,0x54(%rsp,%rax,4)
shr    $0x2,%r13d
mov    %r11d,0x4(%rsp)
lea    (%r11,%r11,1),%eax
add    $0x2,%eax
lea    -0x1(%r13),%ebx
cmp    %r13d,%eax
cmovge %eax,%ebx
cmp    $0x2,%r13d
jae    13ab <fft_+0x26b>
mov    %r11d,%r14d
lea    0x1(%r11),%eax
lea    (%r11,%r14,1),%edx
cmp    %eax,%r14d
lea    0x1(%r11,%r14,1),%ebp
cmovg  %ebx,%ebp
cmp    $0x10,%edx
jl     1303 <fft_+0x1c3>
lea    0xd43(%rip),%rdi
mov    %ecx,%esi
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
add    $0xfffffffffffffff8,%rdi
add    $0xfffffffffffffff8,%rsi
movslq %r14d,%rax
test   %r11d,%r11d
mov    %r9d,0x18(%rsp)
mov    %rsi,0x48(%rsp)
mov    %rdi,0x40(%rsp)
mov    %ebp,0x8(%rsp)
mov    %r15d,0x14(%rsp)
je     13f3 <fft_+0x2b3>
movslq %r11d,%rcx
lea    -0x1(%r11),%edx
mov    %r11d,%edi
and    $0x3,%edi
je     1355 <fft_+0x215>
xchg   %ax,%ax
mov    0x50(%rsp,%rcx,4),%ebx
add    $0xffffffffffffffff,%rcx
mov    %ebx,0x54(%rsp,%rax,4)
add    $0x1,%rax
add    $0xffffffff,%edi
jne    1340 <fft_+0x200>
cmp    $0x3,%edx
jb     138c <fft_+0x24c>
nopw   0x0(%rax,%rax,1)
mov    0x50(%rsp,%rcx,4),%edx
mov    %edx,0x54(%rsp,%rax,4)
mov    0x4c(%rsp,%rcx,4),%edx
mov    %edx,0x58(%rsp,%rax,4)
mov    0x48(%rsp,%rcx,4),%edx
mov    %edx,0x5c(%rsp,%rax,4)
mov    0x44(%rsp,%rcx,4),%edx
add    $0xfffffffffffffffc,%rcx
mov    %edx,0x60(%rsp,%rax,4)
add    $0x4,%rax
test   %ecx,%ecx
jne    1360 <fft_+0x220>
mov    %eax,%r14d
sub    %r11d,%eax
cltq
mov    0x50(%rsp,%rax,4),%eax
test   %r11d,%r11d
jle    13f7 <fft_+0x2b7>
mov    %r11d,%ecx
mov    0x50(%rsp,%rcx,4),%ecx
cmp    %ecx,%eax
cmovl  %ecx,%eax
jmp    13f7 <fft_+0x2b7>
mov    $0x2,%ebp
mov    %r11d,%r14d
jmp    13d9 <fft_+0x299>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebp,%eax
add    $0x1,%eax
shr    $0x1f,%eax
add    %eax,%ebp
add    $0x1,%ebp
or     $0x1,%ebp
cmp    %r13d,%ebp
jg     12ca <fft_+0x18a>
mov    %r13d,%eax
cltd
idiv   %ebp
test   %edx,%edx
jne    13c0 <fft_+0x280>
movslq %r14d,%rdx
add    $0x1,%r14d
mov    %ebp,0x54(%rsp,%rdx,4)
mov    %eax,%r13d
jmp    13c0 <fft_+0x280>
mov    0x50(%rsp,%rax,4),%eax
movslq %eax,%rbx
mov    $0x8,%esi
mov    %rbx,%rdi
call   1060 <calloc@plt>
mov    %rax,0x20(%rsp)
mov    $0x8,%esi
mov    %rbx,%rdi
call   1060 <calloc@plt>
mov    %rax,%r13
mov    %rax,0x38(%rsp)
mov    $0x8,%esi
mov    %rbx,%rdi
call   1060 <calloc@plt>
mov    %rax,%r15
mov    %rax,0x30(%rsp)
mov    $0x8,%esi
mov    %rbx,%rdi
call   1060 <calloc@plt>
mov    %rax,%rbp
movslq 0x8(%rsp),%rdi
mov    $0x4,%esi
call   1060 <calloc@plt>
mov    %rax,0x28(%rsp)
mov    0x20(%rsp),%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,0x8(%rsp)
lea    -0x8(%r15),%r11
lea    -0x8(%r13),%r15
lea    -0x8(%rbp),%rbx
mov    %rbp,%r13
lea    -0x4(%rax),%r10
mov    0x40(%rsp),%rdi
mov    0x48(%rsp),%rsi
mov    0x1c(%rsp),%edx
mov    %r12d,%ecx
mov    0x14(%rsp),%r8d
mov    0x18(%rsp),%r9d
xor    %eax,%eax
lea    0x50(%rsp),%rbp
push   %rbp
push   %r10
push   %rbx
push   %r11
push   %r15
push   0x30(%rsp)
lea    0x34(%rsp),%rbx
push   %rbx
push   %r14
call   1040 <fftmx@plt>
add    $0x40,%rsp
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    0x38(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [44 x i8] c"\0Aerror - zero in fft parameters %d %d %d %d\00"
@.str.1 = [55 x i8] c"\0Aerror - fft parameter n has more than 15 factors : %d\00"
define void @fft_(double* %0, double* %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca [32 x i32]
%8 = alloca i32
%9 = bitcast [32 x i32]* %7 to i8*
%10 = bitcast i32* %8 to i8*
%11 = getelementptr inbounds double, double* %0, i64 -1
%12 = getelementptr inbounds double, double* %1, i64 -1
%13 = tail call i32 @llvm.abs.i32(i32 %3, i1 true)
%14 = icmp eq i32 %13, 1
br i1 %14, label %212, label %15
15: ; preds = %6
%16 = mul nsw i32 %13, %4
%17 = tail call i32 @llvm.abs.i32(i32 %16, i1 true)
%18 = mul nsw i32 %17, %2
%19 = tail call i32 @llvm.abs.i32(i32 %18, i1 true)
%20 = mul nsw i32 %19, %5
%21 = icmp eq i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %15
%23 = and i32 %13, 15
%24 = icmp eq i32 %23, 0
br i1 %24, label %33, label %29
25: ; preds = %15
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %17, i32 %5)
br label %212
27: ; preds = %33
%28 = trunc i64 %36 to i32
br label %29
29: ; preds = %27, %22
%30 = phi i32 [ %13, %22 ], [ %38, %27 ]
%31 = phi i32 [ 0, %22 ], [ %28, %27 ]
%32 = icmp slt i32 %30, 9
br i1 %32, label %66, label %41
33: ; preds = %22, %33
%34 = phi i64 [ %36, %33 ], [ 0, %22 ]
%35 = phi i32 [ %38, %33 ], [ %13, %22 ]
%36 = add nuw nsw i64 %34, 1
%37 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %36
store i32 4, i32* %37
%38 = sdiv i32 %35, 16
%39 = and i32 %38, 15
%40 = icmp eq i32 %39, 0
br i1 %40, label %33, label %27
41: ; preds = %29, %60
%42 = phi i32 [ %62, %60 ], [ %31, %29 ]
%43 = phi i32 [ %61, %60 ], [ %30, %29 ]
%44 = phi i32 [ %64, %60 ], [ 9, %29 ]
%45 = phi i32 [ %63, %60 ], [ 3, %29 ]
%46 = srem i32 %43, %44
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %60
48: ; preds = %41
%49 = sext i32 %42 to i64
br label %50
50: ; preds = %48, %50
%51 = phi i64 [ %49, %48 ], [ %53, %50 ]
%52 = phi i32 [ %43, %48 ], [ %55, %50 ]
%53 = add i64 %51, 1
%54 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %53
store i32 %45, i32* %54
%55 = sdiv i32 %52, %44
%56 = srem i32 %55, %44
%57 = icmp eq i32 %56, 0
br i1 %57, label %50, label %58
58: ; preds = %50
%59 = trunc i64 %53 to i32
br label %60
60: ; preds = %58, %41
%61 = phi i32 [ %43, %41 ], [ %55, %58 ]
%62 = phi i32 [ %42, %41 ], [ %59, %58 ]
%63 = add nuw nsw i32 %45, 2
%64 = mul nsw i32 %63, %63
%65 = icmp sgt i32 %64, %61
br i1 %65, label %66, label %41
66: ; preds = %60, %29
%67 = phi i32 [ %30, %29 ], [ %61, %60 ]
%68 = phi i32 [ %31, %29 ], [ %62, %60 ]
%69 = icmp slt i32 %67, 5
br i1 %69, label %70, label %76
70: ; preds = %66
store i32 %68, i32* %8
%71 = add nsw i32 %68, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %72
store i32 %67, i32* %73
%74 = icmp eq i32 %67, 1
%75 = select i1 %74, i32 %68, i32 %71
br label %112
76: ; preds = %66
%77 = and i32 %67, 3
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %76
%80 = add nsw i32 %68, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %81
store i32 2, i32* %82
%83 = lshr i32 %67, 2
br label %84
84: ; preds = %79, %76
%85 = phi i32 [ %83, %79 ], [ %67, %76 ]
%86 = phi i32 [ %80, %79 ], [ %68, %76 ]
store i32 %86, i32* %8
%87 = shl nsw i32 %86, 1
%88 = add nsw i32 %87, 2
%89 = icmp slt i32 %88, %85
%90 = add nsw i32 %85, -1
%91 = select i1 %89, i32 %90, i32 %88
%92 = icmp ult i32 %85, 2
br i1 %92, label %112, label %93
93: ; preds = %84, %104
%94 = phi i32 [ %106, %104 ], [ %86, %84 ]
%95 = phi i32 [ %105, %104 ], [ %85, %84 ]
%96 = phi i32 [ %110, %104 ], [ 2, %84 ]
%97 = srem i32 %95, %96
%98 = sdiv i32 %95, %96
%99 = icmp eq i32 %97, 0
br i1 %99, label %100, label %104
100: ; preds = %93
%101 = add nsw i32 %94, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %102
store i32 %96, i32* %103
br label %104
104: ; preds = %93, %100
%105 = phi i32 [ %98, %100 ], [ %95, %93 ]
%106 = phi i32 [ %101, %100 ], [ %94, %93 ]
%107 = add nsw i32 %96, 1
%108 = sdiv i32 %107, 2
%109 = shl nsw i32 %108, 1
%110 = or i32 %109, 1
%111 = icmp sgt i32 %110, %105
br i1 %111, label %112, label %93
112: ; preds = %104, %84, %70
%113 = phi i32 [ %68, %70 ], [ %86, %84 ], [ %86, %104 ]
%114 = phi i32 [ -1, %70 ], [ %91, %84 ], [ %91, %104 ]
%115 = phi i32 [ %75, %70 ], [ %86, %84 ], [ %106, %104 ]
%116 = add nsw i32 %113, 1
%117 = icmp sgt i32 %115, %116
%118 = add nsw i32 %113, %115
%119 = add nsw i32 %118, 1
%120 = select i1 %117, i32 %114, i32 %119
%121 = icmp sgt i32 %118, 15
br i1 %121, label %122, label %124
122: ; preds = %112
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 %3)
br label %212
124: ; preds = %112
%125 = icmp eq i32 %113, 0
%126 = sext i32 %115 to i64
br i1 %125, label %148, label %127
127: ; preds = %124
%128 = sext i32 %113 to i64
%129 = add i32 %113, -1
%130 = and i32 %113, 3
%131 = icmp eq i32 %130, 0
br i1 %131, label %143, label %132
132: ; preds = %127, %132
%133 = phi i64 [ %136, %132 ], [ %128, %127 ]
%134 = phi i64 [ %139, %132 ], [ %126, %127 ]
%135 = phi i32 [ %141, %132 ], [ 0, %127 ]
%136 = add nsw i64 %133, -1
%137 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %133
%138 = load i32, i32* %137
%139 = add nsw i64 %134, 1
%140 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %139
store i32 %138, i32* %140
%141 = add i32 %135, 1
%142 = icmp eq i32 %141, %130
br i1 %142, label %143, label %132
143: ; preds = %132, %127
%144 = phi i64 [ undef, %127 ], [ %139, %132 ]
%145 = phi i64 [ %128, %127 ], [ %136, %132 ]
%146 = phi i64 [ %126, %127 ], [ %139, %132 ]
%147 = icmp ult i32 %129, 3
br i1 %147, label %176, label %151
148: ; preds = %124
%149 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %126
%150 = load i32, i32* %149
br label %190
151: ; preds = %143, %151
%152 = phi i64 [ %169, %151 ], [ %145, %143 ]
%153 = phi i64 [ %172, %151 ], [ %146, %143 ]
%154 = add nsw i64 %152, -1
%155 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %152
%156 = load i32, i32* %155
%157 = add nsw i64 %153, 1
%158 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %157
store i32 %156, i32* %158
%159 = add nsw i64 %152, -2
%160 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %154
%161 = load i32, i32* %160
%162 = add nsw i64 %153, 2
%163 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %162
store i32 %161, i32* %163
%164 = add nsw i64 %152, -3
%165 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %159
%166 = load i32, i32* %165
%167 = add nsw i64 %153, 3
%168 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %167
store i32 %166, i32* %168
%169 = add nsw i64 %152, -4
%170 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %164
%171 = load i32, i32* %170
%172 = add nsw i64 %153, 4
%173 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %172
store i32 %171, i32* %173
%174 = trunc i64 %169 to i32
%175 = icmp eq i32 %174, 0
br i1 %175, label %176, label %151
176: ; preds = %151, %143
%177 = phi i64 [ %144, %143 ], [ %172, %151 ]
%178 = trunc i64 %177 to i32
%179 = sub nsw i32 %178, %113
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %180
%182 = load i32, i32* %181
%183 = icmp sgt i32 %113, 0
br i1 %183, label %184, label %190
184: ; preds = %176
%185 = zext i32 %113 to i64
%186 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 %185
%187 = load i32, i32* %186
%188 = icmp slt i32 %182, %187
%189 = select i1 %188, i32 %187, i32 %182
br label %190
190: ; preds = %148, %184, %176
%191 = phi i32 [ %178, %176 ], [ %178, %184 ], [ %115, %148 ]
%192 = phi i32 [ %182, %176 ], [ %189, %184 ], [ %150, %148 ]
%193 = sext i32 %192 to i64
%194 = tail call i8* @calloc(i64 %193, i64 8)
%195 = bitcast i8* %194 to double*
%196 = tail call i8* @calloc(i64 %193, i64 8)
%197 = bitcast i8* %196 to double*
%198 = tail call i8* @calloc(i64 %193, i64 8)
%199 = bitcast i8* %198 to double*
%200 = tail call i8* @calloc(i64 %193, i64 8)
%201 = bitcast i8* %200 to double*
%202 = sext i32 %120 to i64
%203 = tail call i8* @calloc(i64 %202, i64 4)
%204 = bitcast i8* %203 to i32*
%205 = getelementptr inbounds double, double* %195, i64 -1
%206 = getelementptr inbounds double, double* %199, i64 -1
%207 = getelementptr inbounds double, double* %197, i64 -1
%208 = getelementptr inbounds double, double* %201, i64 -1
%209 = getelementptr inbounds i32, i32* %204, i64 -1
%210 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 0
%211 = call i32 (double*, double*, i32, i32, i32, i32, i32, i32*, double*, double*, double*, double*, i32*, i32*, ...) bitcast (i32 (...)* @fftmx to i32 (double*, double*, i32, i32, i32, i32, i32, i32*, double*, double*, double*, double*, i32*, i32*, ...)*)(double* %11, double* %12, i32 %19, i32 %13, i32 %17, i32 %5, i32 %191, i32* %8, double* %205, double* %207, double* %206, double* %208, i32* %209, i32* %210)
br label %212
212: ; preds = %6, %190, %122, %25
ret void
}