#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 */
double cos(int);
double sin(int);
int sqrt(double);
int /*<<< orphan*/ willus_mem_alloc(double **, long, char *);
int /*<<< orphan*/ willus_mem_free(double **, char *);
int array_recfft(double *xr, double *xi, int length) {
  static int len = 0;
  static double *wr, *wi, *txr, *txi;
  static int j, i1, i2, index;
  int i, step, f1, f2;
  static char *funcname = "array_recfft";
  if (length == 1)
    return (1);
  if (length <= 0)
    return (0);
  if (len == 0) {
    if (!willus_mem_alloc(&wr, 4L * sizeof(double) * length, funcname))
      return (0);
    wi = &wr[length];
    txr = &wi[length];
    txi = &txr[length];
    for (i = 0; i < length; i++) {
      wi[i] = sin(2 * 3.1415926535897932384 * (double)i / (double)length);
      wr[i] = cos(2 * 3.1415926535897932384 * (double)i / (double)length);
      wi[i] = -wi[i];
    }
    len = length;
  }
  if (length % 2 == 0)
    f1 = 2;
  else if (length % 3 == 0)
    f1 = 3;
  else {
    j = sqrt((double)length) + 1;
    for (i = 5; i <= j; i += 4) {
      if (length % i == 0)
        break;
      i += 2;
      if (i > j)
        break;
      if (length % i == 0)
        break;
    }
    f1 = (i > j) ? length : i;
  }
  f2 = length / f1;
  step = len / length;
  if (f2 > 1)
    for (i = 0; i < f1; i++)
      array_recfft(&xr[i * step], &xi[i * step], f2);
  for (i = 0; i < length; i++) {
    txr[i] = 0;
    txi[i] = 0;
    index = i % f2 * step * f1;
    for (j = 0; j < f1; j++) {
      i1 = index + j * step;
      i2 = i * j % length * step;
      txr[i] += xr[i1] * wr[i2] - xi[i1] * wi[i2];
      txi[i] += xr[i1] * wi[i2] + xi[i1] * wr[i2];
    }
  }
  for (i = 0, j = 0; i < length; i++, j += step) {
    xr[j] = txr[i];
    xi[j] = txi[i];
  }
  if (length == len) {
    willus_mem_free(&wr, funcname);
    len = 0;
  }
  return (1);
}


x86 assembly (clang, -O0):
<array_recfft>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1189 <array_recfft+0x29>
movl   $0x1,-0x4(%rbp)
jmp    169d <array_recfft+0x53d>
cmpl   $0x0,-0x1c(%rbp)
jg     119f <array_recfft+0x3f>
movl   $0x0,-0x4(%rbp)
jmp    169d <array_recfft+0x53d>
cmpl   $0x0,0x2eba(%rip)
jne    12ee <array_recfft+0x18e>
movslq -0x1c(%rbp),%rsi
shl    $0x5,%rsi
mov    0x2e95(%rip),%rdx
lea    0x2ea6(%rip),%rdi
call   1030 <willus_mem_alloc@plt>
cmp    $0x0,%eax
jne    11dc <array_recfft+0x7c>
movl   $0x0,-0x4(%rbp)
jmp    169d <array_recfft+0x53d>
mov    0x2e85(%rip),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2e7b(%rip)
mov    0x2e74(%rip),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2e6a(%rip)
mov    0x2e63(%rip),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2e59(%rip)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12e5 <array_recfft+0x185>
cvtsi2sdl -0x20(%rbp),%xmm1
movsd  0xdb9(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
mov    0x2e0c(%rip),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
cvtsi2sdl -0x20(%rbp),%xmm1
movsd  0xd86(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <cos@plt>
mov    0x2dd1(%rip),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2dc9(%rip),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    0x2da2(%rip),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    122e <array_recfft+0xce>
mov    -0x1c(%rbp),%eax
mov    %eax,0x2d72(%rip)
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    130e <array_recfft+0x1ae>
movl   $0x2,-0x28(%rbp)
jmp    13dc <array_recfft+0x27c>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    132e <array_recfft+0x1ce>
movl   $0x3,-0x28(%rbp)
jmp    13d7 <array_recfft+0x277>
cvtsi2sdl -0x1c(%rbp),%xmm0
call   1070 <sqrt@plt>
add    $0x1,%eax
mov    %eax,0x2d47(%rip)
movl   $0x5,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    0x2d37(%rip),%eax
jg     13b1 <array_recfft+0x251>
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x20(%rbp)
cmp    $0x0,%edx
jne    136c <array_recfft+0x20c>
jmp    13b1 <array_recfft+0x251>
mov    -0x20(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    0x2d0a(%rip),%eax
jle    1389 <array_recfft+0x229>
jmp    13b1 <array_recfft+0x251>
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x20(%rbp)
cmp    $0x0,%edx
jne    139e <array_recfft+0x23e>
jmp    13b1 <array_recfft+0x251>
jmp    13a3 <array_recfft+0x243>
mov    -0x20(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x20(%rbp)
jmp    1348 <array_recfft+0x1e8>
mov    -0x20(%rbp),%eax
cmp    0x2cce(%rip),%eax
jle    13cb <array_recfft+0x26b>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    13d1 <array_recfft+0x271>
mov    -0x20(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    13dc <array_recfft+0x27c>
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x28(%rbp)
mov    %eax,-0x2c(%rbp)
mov    0x2c74(%rip),%eax
cltd
idivl  -0x1c(%rbp)
mov    %eax,-0x24(%rbp)
cmpl   $0x1,-0x2c(%rbp)
jle    1453 <array_recfft+0x2f3>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    144e <array_recfft+0x2ee>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%eax
imul   -0x24(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%eax
imul   -0x24(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x2c(%rbp),%edx
call   1080 <array_recfft@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1404 <array_recfft+0x2a4>
jmp    1453 <array_recfft+0x2f3>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    15f0 <array_recfft+0x490>
mov    0x2c0b(%rip),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2c00(%rip),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
cltd
idivl  -0x2c(%rbp)
mov    %edx,%eax
imul   -0x24(%rbp),%eax
imul   -0x28(%rbp),%eax
mov    %eax,0x2bf1(%rip)
movl   $0x0,0x2bdb(%rip)
mov    0x2bd5(%rip),%eax
cmp    -0x28(%rbp),%eax
jge    15dd <array_recfft+0x47d>
mov    0x2bd2(%rip),%eax
mov    0x2bc0(%rip),%ecx
imul   -0x24(%rbp),%ecx
add    %ecx,%eax
mov    %eax,0x2bb8(%rip)
mov    -0x20(%rbp),%eax
imul   0x2baa(%rip),%eax
cltd
idivl  -0x1c(%rbp)
imul   -0x24(%rbp),%edx
mov    %edx,0x2ba4(%rip)
mov    -0x10(%rbp),%rax
movslq 0x2b95(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2b65(%rip),%rax
movslq 0x2b86(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq 0x2b72(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2b4a(%rip),%rax
movslq 0x2b63(%rip),%rcx
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2b20(%rip),%rax
movslq -0x20(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq 0x2b1b(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2af3(%rip),%rax
movslq 0x2b0c(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq 0x2af8(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2ac8(%rip),%rax
movslq 0x2ae9(%rip),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2ac5(%rip),%rax
movslq -0x20(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2ab9(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ab0(%rip)
jmp    14ad <array_recfft+0x34d>
jmp    15e2 <array_recfft+0x482>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    145a <array_recfft+0x2fa>
movl   $0x0,-0x20(%rbp)
movl   $0x0,0x2a87(%rip)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    166a <array_recfft+0x50a>
mov    0x2a64(%rip),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq 0x2a60(%rip),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2a4c(%rip),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq 0x2a40(%rip),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    0x2a29(%rip),%eax
mov    %eax,0x2a23(%rip)
jmp    1601 <array_recfft+0x4a1>
mov    -0x1c(%rbp),%eax
cmp    0x29ed(%rip),%eax
jne    1696 <array_recfft+0x536>
mov    0x29d0(%rip),%rsi
lea    0x29e1(%rip),%rdi
call   1050 <willus_mem_free@plt>
movl   $0x0,0x29ca(%rip)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<array_recfft>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    $0x1,%edx
je     1542 <array_recfft+0x3e2>
mov    %edx,%r14d
xor    %ebx,%ebx
test   %edx,%edx
jle    1547 <array_recfft+0x3e7>
mov    %rsi,%r12
mov    %rdi,%r15
mov    %r14d,%r13d
mov    0x2ec5(%rip),%esi
test   %esi,%esi
jne    126b <array_recfft+0x10b>
mov    %r13,%rsi
shl    $0x5,%rsi
lea    0x2eb7(%rip),%rdi
lea    0xe70(%rip),%rdx
call   1030 <willus_mem_alloc@plt>
test   %eax,%eax
je     1547 <array_recfft+0x3e7>
lea    0x0(,%r13,8),%rax
add    0x2e94(%rip),%rax
mov    %rax,0x2e95(%rip)
lea    (%rax,%r13,8),%rax
mov    %rax,0x2e92(%rip)
lea    (%rax,%r13,8),%rax
cvtsi2sd %r14d,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %rax,0x2e84(%rip)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0xdf1(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%ebx
mov    %ebx,%edi
call   1040 <sin@plt>
mov    0x2e41(%rip),%rax
movsd  %xmm0,(%rax,%rbp,8)
mov    %ebx,%edi
call   1060 <cos@plt>
mov    0x2e26(%rip),%rax
movsd  %xmm0,(%rax,%rbp,8)
mov    0x2e22(%rip),%rax
movsd  (%rax,%rbp,8),%xmm0
xorpd  0xdbd(%rip),%xmm0
movlpd %xmm0,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1200 <array_recfft+0xa0>
mov    %r14d,0x2df0(%rip)
mov    %r13d,%esi
mov    $0x2,%edi
test   $0x1,%r14b
mov    %r13,0x20(%rsp)
je     12e9 <array_recfft+0x189>
imul   $0xaaaaaaab,%r14d,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555555,%eax
jb     12d4 <array_recfft+0x174>
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
call   1070 <sqrt@plt>
lea    0x1(%rax),%ecx
mov    $0x5,%edi
cmp    $0x4,%eax
jl     12dd <array_recfft+0x17d>
mov    $0x5,%edi
nopl   (%rax)
mov    %r14d,%eax
cltd
idiv   %edi
test   %edx,%edx
je     12dd <array_recfft+0x17d>
lea    0x2(%rdi),%esi
cmp    %ecx,%esi
jg     12db <array_recfft+0x17b>
mov    %r14d,%eax
cltd
idiv   %esi
test   %edx,%edx
je     12db <array_recfft+0x17b>
add    $0x6,%edi
cmp    %ecx,%edi
jle    12b0 <array_recfft+0x150>
jmp    12dd <array_recfft+0x17d>
mov    $0x3,%edi
jmp    12e9 <array_recfft+0x189>
mov    %esi,%edi
cmp    %ecx,%edi
cmovg  %r14d,%edi
mov    0x2d6f(%rip),%esi
mov    %r14d,%eax
cltd
idiv   %edi
mov    %eax,%ecx
mov    %esi,%eax
cltd
mov    %r14d,0x4(%rsp)
idiv   %r14d
mov    %eax,%r14d
cltq
mov    %rax,0x10(%rsp)
mov    %rdi,0x28(%rsp)
mov    %edi,%eax
mov    %rax,0x30(%rsp)
cmp    $0x2,%ecx
mov    %ecx,0x8(%rsp)
jl     1362 <array_recfft+0x202>
cmpl   $0x0,0x28(%rsp)
jle    1362 <array_recfft+0x202>
mov    0x10(%rsp),%rax
lea    0x0(,%rax,8),%rax
mov    %rax,0x18(%rsp)
mov    0x30(%rsp),%rbx
mov    %r12,%rbp
mov    %r15,%r13
nop
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %ecx,%edx
call   1080 <array_recfft@plt>
mov    0x8(%rsp),%ecx
mov    0x18(%rsp),%rax
add    %rax,%r13
add    %rax,%rbp
add    $0xffffffffffffffff,%rbx
jne    1340 <array_recfft+0x1e0>
mov    0x4(%rsp),%r9d
test   %r9d,%r9d
jle    151c <array_recfft+0x3bc>
mov    0x2cf9(%rip),%r9
mov    0x2cfa(%rip),%r11
mov    0x10(%rsp),%rcx
mov    %ecx,%edx
mov    0x28(%rsp),%rax
imul   %eax,%edx
mov    %edx,0x18(%rsp)
mov    0x2cc8(%rip),%r13
mov    0x2cc9(%rip),%rdi
lea    0x0(,%rcx,8),%r10
xor    %ecx,%ecx
mov    0x4(%rsp),%r8d
jmp    13c4 <array_recfft+0x264>
add    $0x1,%rcx
cmp    0x20(%rsp),%rcx
mov    0x28(%rsp),%rax
je     146d <array_recfft+0x30d>
movq   $0x0,(%r9,%rcx,8)
movq   $0x0,(%r11,%rcx,8)
test   %eax,%eax
jle    13b0 <array_recfft+0x250>
mov    %ecx,%eax
cltd
idivl  0x8(%rsp)
imul   0x18(%rsp),%edx
movslq %edx,%rbp
shl    $0x3,%rbp
xor    %esi,%esi
mov    0x30(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %esi,%eax
cltd
idiv   %r8d
imul   %r14d,%edx
movsd  (%r15,%rbp,1),%xmm0
movslq %edx,%rax
movsd  (%rdi,%rax,8),%xmm1
mulsd  (%r12,%rbp,1),%xmm1
mulsd  0x0(%r13,%rax,8),%xmm0
subsd  %xmm1,%xmm0
addsd  (%r9,%rcx,8),%xmm0
movsd  %xmm0,(%r9,%rcx,8)
movsd  (%r15,%rbp,1),%xmm0
movsd  (%r12,%rbp,1),%xmm1
mulsd  0x0(%r13,%rax,8),%xmm1
mulsd  (%rdi,%rax,8),%xmm0
addsd  %xmm1,%xmm0
addsd  (%r11,%rcx,8),%xmm0
movsd  %xmm0,(%r11,%rcx,8)
add    %r10,%rbp
add    %ecx,%esi
add    $0xffffffffffffffff,%rbx
jne    1400 <array_recfft+0x2a0>
jmp    13b0 <array_recfft+0x250>
mov    0x4(%rsp),%r9d
test   %r9d,%r9d
jle    151c <array_recfft+0x3bc>
mov    0x2bee(%rip),%rcx
mov    0x2bef(%rip),%rax
cmp    $0x1,%r9d
jne    149a <array_recfft+0x33a>
xor    %edi,%edi
xor    %edx,%edx
mov    0x20(%rsp),%r10
jmp    1500 <array_recfft+0x3a0>
mov    0x20(%rsp),%r10
mov    %r10d,%r11d
and    $0xfffffffe,%r11d
mov    0x10(%rsp),%rsi
lea    (%r12,%rsi,8),%r8
lea    (%r15,%rsi,8),%rbx
xor    %ebp,%ebp
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movsd  (%rcx,%rdx,8),%xmm0
movsd  %xmm0,(%r15,%rbp,8)
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%r12,%rbp,8)
lea    (%rsi,%rbp,1),%rdi
movsd  0x8(%rcx,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,(%r8,%rbp,8)
add    $0x2,%rdx
add    %rsi,%rdi
mov    %rdi,%rbp
cmp    %rdx,%r11
jne    14c0 <array_recfft+0x360>
test   $0x1,%r10b
je     151c <array_recfft+0x3bc>
movsd  (%rcx,%rdx,8),%xmm0
movsd  %xmm0,(%r15,%rdi,8)
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%r12,%rdi,8)
cmp    %r9d,0x2b35(%rip)
jne    1542 <array_recfft+0x3e2>
lea    0x2b34(%rip),%rdi
lea    0xaed(%rip),%rsi
call   1050 <willus_mem_free@plt>
movl   $0x0,0x2b16(%rip)
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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