#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*/ dyaddown_1D_keep_even(double *, int, double *, int);
int /*<<< orphan*/ dyaddown_1D_keep_odd(double *, int, double *, int);
scalar_t__ floor(int);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ i_conv(double *, int, double *, int, double *, int);
double *malloc(int);
int /*<<< orphan*/ swt_exp2(int, int *);
void iswt_conv_step(double *approx, double *detail, int sigInLength,
                    double *sigOut, int sigOutLength, double *filterLow,
                    double *filterHi, int filterLength, int level) {
  int length1, length2, count, twt, mu, su, startpoint;
  double *approxTempOdd, *detailTempOdd;
  double *approxTempEven, *detailTempEven;
  double *approxOutOdd, *detailOutOdd;
  double *approxOutEven, *detailOutEven;
  double *approxT, *detailT;
  double *sigOdd, *sigEven;
  double *filterLowTemp, *filterHiTemp;
  length1 = (int)floor(sigInLength / 2.0);
  approxTempOdd = malloc(length1 * sizeof(double));
  detailTempOdd = malloc(length1 * sizeof(double));
  approxTempEven = malloc(length1 * sizeof(double));
  detailTempEven = malloc(length1 * sizeof(double));
  dyaddown_1D_keep_odd(approx, sigInLength, approxTempOdd, length1);
  dyaddown_1D_keep_even(approx, sigInLength, approxTempEven, length1);
  dyaddown_1D_keep_odd(detail, sigInLength, detailTempOdd, length1);
  dyaddown_1D_keep_even(detail, sigInLength, detailTempEven, length1);
  length2 = 2 * length1;
  approxOutOdd = malloc(length2 * sizeof(double));
  approxOutEven = malloc(length2 * sizeof(double));
  detailOutOdd = malloc(length2 * sizeof(double));
  detailOutEven = malloc(length2 * sizeof(double));
  for (count = 0; count < length1; count++) {
    approxOutOdd[2 * count] = approxTempOdd[count];
    detailOutOdd[2 * count] = detailTempOdd[count];
    approxOutOdd[2 * count + 1] = 0;
    detailOutOdd[2 * count + 1] = 0;
    approxOutEven[2 * count] = 0;
    detailOutEven[2 * count] = 0;
    approxOutEven[2 * count + 1] = approxTempEven[count];
    detailOutEven[2 * count + 1] = detailTempEven[count];
  }
  free(approxTempOdd);
  free(detailTempOdd);
  free(approxTempEven);
  free(detailTempEven);
  swt_exp2(level - 1, &twt);
  if (level == 1) {
    mu = 1;
    su = 0;
  } else {
    mu = twt;
    su = twt - 1;
  }
  filterLowTemp = malloc(mu * filterLength * sizeof(double));
  filterHiTemp = malloc(mu * filterLength * sizeof(double));
  for (count = 0; count < mu * filterLength; count++) {
    filterLowTemp[count] = 0;
    filterHiTemp[count] = 0;
  }
  for (count = 0; count < filterLength; count++) {
    filterLowTemp[mu * count] = filterLow[count];
    filterHiTemp[mu * count] = filterHi[count];
  }
  approxT = malloc(length2 * sizeof(double));
  detailT = malloc(length2 * sizeof(double));
  sigOdd = malloc(length2 * sizeof(double));
  sigEven = malloc(length2 * sizeof(double));
  i_conv(approxOutOdd, length2, approxT, length2, filterLowTemp,
         mu * filterLength);
  i_conv(detailOutOdd, length2, detailT, length2, filterHiTemp,
         mu * filterLength);
  for (count = 0; count < length2; count++)
    sigOdd[count] = approxT[count] + detailT[count];
  free(approxOutOdd);
  free(detailOutOdd);
  i_conv(approxOutEven, length2, approxT, length2, filterLowTemp,
         mu * filterLength);
  i_conv(detailOutEven, length2, detailT, length2, filterHiTemp,
         mu * filterLength);
  for (count = 0; count < length2; count++)
    sigEven[count] = approxT[count] + detailT[count];
  free(approxOutEven);
  free(detailOutEven);
  free(approxT);
  free(detailT);
  free(filterLowTemp);
  free(filterHiTemp);
  startpoint = sigInLength - filterLength * mu - su - 1;
  for (count = (startpoint); count < sigOutLength; count++)
    sigOut[count - startpoint] = (sigOdd[count] + sigEven[count]) / 2.0;
  for (count = 0; count < startpoint; count++)
    sigOut[count + 1 + filterLength * mu + su] =
        (sigOdd[count] + sigEven[count]) / 2.0;
  free(sigOdd);
  free(sigEven);
  return;
}


x86 assembly (clang, -O0):
<iswt_conv_step>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe57(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x34(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x60(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x68(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x70(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x58(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   1070 <dyaddown_1D_keep_odd@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x68(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   1050 <dyaddown_1D_keep_even@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x60(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   1070 <dyaddown_1D_keep_odd@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x70(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   1050 <dyaddown_1D_keep_even@plt>
mov    -0x34(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x38(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x78(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x88(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x80(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x90(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    13b5 <iswt_conv_step+0x245>
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x80(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x90(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x70(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x90(%rbp),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12b3 <iswt_conv_step+0x143>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
mov    0x20(%rbp),%edi
sub    $0x1,%edi
lea    -0x40(%rbp),%rsi
call   1090 <swt_exp2@plt>
cmpl   $0x1,0x20(%rbp)
jne    1405 <iswt_conv_step+0x295>
movl   $0x1,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
jmp    1414 <iswt_conv_step+0x2a4>
mov    -0x40(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
imul   0x18(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0xb8(%rbp)
mov    -0x44(%rbp),%eax
imul   0x18(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0xc0(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x44(%rbp),%ecx
imul   0x18(%rbp),%ecx
cmp    %ecx,%eax
jge    1497 <iswt_conv_step+0x327>
mov    -0xb8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1451 <iswt_conv_step+0x2e1>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    14fe <iswt_conv_step+0x38e>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xc0(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    149e <iswt_conv_step+0x32e>
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x98(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0xa0(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0xa8(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0xb0(%rbp)
mov    -0x78(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0x98(%rbp),%rdx
mov    -0x38(%rbp),%ecx
mov    -0xb8(%rbp),%r8
mov    -0x44(%rbp),%r9d
imul   0x18(%rbp),%r9d
call   1060 <i_conv@plt>
mov    -0x80(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0xa0(%rbp),%rdx
mov    -0x38(%rbp),%ecx
mov    -0xc0(%rbp),%r8
mov    -0x44(%rbp),%r9d
imul   0x18(%rbp),%r9d
call   1060 <i_conv@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    15f3 <iswt_conv_step+0x483>
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xa0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0xa8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    15a9 <iswt_conv_step+0x439>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x88(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0x98(%rbp),%rdx
mov    -0x38(%rbp),%ecx
mov    -0xb8(%rbp),%r8
mov    -0x44(%rbp),%r9d
imul   0x18(%rbp),%r9d
call   1060 <i_conv@plt>
mov    -0x90(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0xa0(%rbp),%rdx
mov    -0x38(%rbp),%ecx
mov    -0xc0(%rbp),%r8
mov    -0x44(%rbp),%r9d
imul   0x18(%rbp),%r9d
call   1060 <i_conv@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    16a8 <iswt_conv_step+0x538>
mov    -0x98(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xa0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    165e <iswt_conv_step+0x4ee>
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0xa0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <free@plt>
mov    -0xc0(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
mov    0x18(%rbp),%ecx
imul   -0x44(%rbp),%ecx
sub    %ecx,%eax
sub    -0x48(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1763 <iswt_conv_step+0x5f3>
mov    -0xa8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  0x8c1(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    -0x4c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    170b <iswt_conv_step+0x59b>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    17ce <iswt_conv_step+0x65e>
mov    -0xa8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  0x862(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
mov    0x18(%rbp),%edx
imul   -0x44(%rbp),%edx
add    %edx,%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    176a <iswt_conv_step+0x5fa>
mov    -0xa8(%rbp),%rdi
call   1030 <free@plt>
mov    -0xb0(%rbp),%rdi
call   1030 <free@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iswt_conv_step>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,0x28(%rsp)
mov    %r8,0x70(%rsp)
mov    %rcx,0x60(%rsp)
mov    %edx,%r14d
mov    %rsi,0x18(%rsp)
mov    %rdi,0x8(%rsp)
cvtsi2sd %edx,%xmm0
mulsd  0xe4a(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1090 <floor@plt>
mov    %rax,%r13
lea    0x0(,%rax,8),%r12d
mov    %r12d,%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    %r12d,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %r12d,%edi
call   1050 <malloc@plt>
mov    %rax,%rbp
mov    %r12d,%edi
call   1050 <malloc@plt>
mov    %rax,%r12
mov    0x8(%rsp),%rdi
mov    %r14d,%esi
mov    %r15,%rdx
mov    %r13d,%ecx
call   1080 <dyaddown_1D_keep_odd@plt>
mov    0x8(%rsp),%rdi
mov    %r14d,0x24(%rsp)
mov    %r14d,%esi
mov    %rbp,%rdx
mov    %r13d,%ecx
call   1060 <dyaddown_1D_keep_even@plt>
mov    0x18(%rsp),%r14
mov    %r14,%rdi
mov    0x24(%rsp),%esi
mov    %rbx,%rdx
mov    %r13d,%ecx
call   1080 <dyaddown_1D_keep_odd@plt>
mov    %r14,%rdi
mov    0x24(%rsp),%esi
mov    %r12,%rdx
mov    %r13d,%ecx
mov    %r13,0x40(%rsp)
call   1060 <dyaddown_1D_keep_even@plt>
mov    %r13d,%r14d
shl    $0x4,%r14d
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rax,0x30(%rsp)
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rax,0x48(%rsp)
mov    %r14d,0x58(%rsp)
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    0x48(%rsp),%rdi
mov    0x30(%rsp),%rsi
cmpl   $0x0,0x40(%rsp)
jle    130a <iswt_conv_step+0x18a>
mov    0x40(%rsp),%edx
shl    $0x3,%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%r15,%rcx,1),%xmm0
movsd  %xmm0,(%rsi,%rcx,2)
movsd  (%rbx,%rcx,1),%xmm0
movsd  %xmm0,(%rdi,%rcx,2)
movq   $0x0,0x8(%rsi,%rcx,2)
movq   $0x0,0x8(%rdi,%rcx,2)
movq   $0x0,0x0(%r13,%rcx,2)
movq   $0x0,(%rax,%rcx,2)
movsd  0x0(%rbp,%rcx,1),%xmm0
movsd  %xmm0,0x8(%r13,%rcx,2)
movsd  (%r12,%rcx,1),%xmm0
movsd  %xmm0,0x8(%rax,%rcx,2)
add    $0x8,%rcx
cmp    %rcx,%rdx
jne    12b0 <iswt_conv_step+0x130>
mov    %rax,0x50(%rsp)
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    0xc0(%rsp),%eax
mov    %rax,%rbx
lea    -0x1(%rax),%edi
lea    0x5c(%rsp),%rsi
call   10a0 <swt_exp2@plt>
mov    0x5c(%rsp),%r15d
lea    -0x1(%r15),%eax
xor    %ecx,%ecx
cmp    $0x1,%ebx
cmovne %eax,%ecx
mov    %rcx,0x68(%rsp)
cmove  %ebx,%r15d
mov    %r15d,%ebp
mov    0xb8(%rsp),%r14d
imul   %r14d,%ebp
lea    0x0(,%rbp,8),%ebx
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%r12
test   %ebp,%ebp
jle    13b2 <iswt_conv_step+0x232>
mov    %ebp,%ebx
shl    $0x3,%rbx
mov    0x8(%rsp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    %r12,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    %r12,0x18(%rsp)
mov    %rbp,0x38(%rsp)
mov    0x40(%rsp),%rax
add    %eax,%eax
mov    %eax,0x14(%rsp)
test   %r14d,%r14d
mov    0x28(%rsp),%rdx
jle    15a9 <iswt_conv_step+0x429>
mov    0xb0(%rsp),%r12
movslq %r15d,%r10
mov    %r14d,%r9d
xor    %esi,%esi
cmp    $0x4,%r14d
jb     14f7 <iswt_conv_step+0x377>
cmp    $0x1,%r15d
jne    14f7 <iswt_conv_step+0x377>
mov    %r9d,%esi
and    $0xfffffffc,%esi
lea    -0x4(%rsi),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     1c08 <iswt_conv_step+0xa88>
mov    %r8,%rdi
and    $0xfffffffffffffffe,%rdi
mov    %r10,%rcx
shl    $0x5,%rcx
mov    0x18(%rsp),%r15
lea    (%r15,%rcx,1),%rbx
add    $0x10,%rbx
mov    %r10,%r11
shl    $0x6,%r11
mov    0x8(%rsp),%r14
lea    (%r14,%rcx,1),%rax
add    $0x10,%rax
xor    %ecx,%ecx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movups (%rdx,%rbp,8),%xmm0
movups 0x10(%rdx,%rbp,8),%xmm1
movups %xmm0,(%r14,%rcx,1)
movups %xmm1,0x10(%r14,%rcx,1)
movups (%r12,%rbp,8),%xmm0
movups 0x10(%r12,%rbp,8),%xmm1
movups %xmm0,(%r15,%rcx,1)
movups %xmm1,0x10(%r15,%rcx,1)
movups 0x20(%rdx,%rbp,8),%xmm0
movups 0x30(%rdx,%rbp,8),%xmm1
movups %xmm0,-0x10(%rax,%rcx,1)
movups %xmm1,(%rax,%rcx,1)
movupd 0x20(%r12,%rbp,8),%xmm0
movupd 0x30(%r12,%rbp,8),%xmm1
movupd %xmm0,-0x10(%rbx,%rcx,1)
movupd %xmm1,(%rbx,%rcx,1)
add    $0x8,%rbp
add    %r11,%rcx
add    $0xfffffffffffffffe,%rdi
jne    1450 <iswt_conv_step+0x2d0>
test   $0x1,%r8b
je     14ee <iswt_conv_step+0x36e>
movups (%rdx,%rbp,8),%xmm0
movups 0x10(%rdx,%rbp,8),%xmm1
mov    %rbp,%rcx
imul   %r10,%rcx
movups %xmm0,(%r14,%rcx,8)
movups %xmm1,0x10(%r14,%rcx,8)
movupd (%r12,%rbp,8),%xmm0
movupd 0x10(%r12,%rbp,8),%xmm1
movupd %xmm0,(%r15,%rcx,8)
movupd %xmm1,0x10(%r15,%rcx,8)
cmp    %r9,%rsi
je     15a9 <iswt_conv_step+0x429>
mov    %rsi,%rcx
not    %rcx
test   $0x1,%r9b
je     152d <iswt_conv_step+0x3ad>
movsd  (%rdx,%rsi,8),%xmm0
mov    %rsi,%rdi
imul   %r10,%rdi
mov    0x8(%rsp),%rax
movsd  %xmm0,(%rax,%rdi,8)
movsd  (%r12,%rsi,8),%xmm0
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax,%rdi,8)
or     $0x1,%rsi
add    %r9,%rcx
je     15a9 <iswt_conv_step+0x429>
mov    %rsi,%rbp
imul   %r10,%rbp
mov    0x8(%rsp),%rbx
lea    (%rbx,%rbp,8),%rcx
mov    0x18(%rsp),%rdi
lea    (%rdi,%rbp,8),%rax
lea    0x1(%rsi),%rbp
imul   %r10,%rbp
shl    $0x4,%r10
lea    (%rdi,%rbp,8),%rdi
lea    (%rbx,%rbp,8),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,(%rcx,%rbx,1)
movsd  (%r12,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rbx,1)
movsd  0x8(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rbx,1)
movsd  0x8(%r12,%rsi,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,1)
add    $0x2,%rsi
add    %r10,%rbx
cmp    %rsi,%r9
jne    1570 <iswt_conv_step+0x3f0>
mov    %r13,0x28(%rsp)
mov    0x58(%rsp),%ebx
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%rbp
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x30(%rsp),%rdi
mov    0x14(%rsp),%r12d
mov    %r12d,%esi
mov    %r14,%rdx
mov    %r12d,%ecx
mov    0x8(%rsp),%r8
mov    0x38(%rsp),%rbx
mov    %ebx,%r9d
call   1070 <i_conv@plt>
mov    0x48(%rsp),%rdi
mov    %r12d,%esi
mov    %r15,%rdx
mov    %r12d,%ecx
mov    0x18(%rsp),%r8
mov    %ebx,%r9d
call   1070 <i_conv@plt>
cmpl   $0x0,0x40(%rsp)
jle    1644 <iswt_conv_step+0x4c4>
mov    0x14(%rsp),%eax
cmp    $0x2,%eax
mov    $0x1,%r12d
cmovge %eax,%r12d
cmp    $0x4,%r12d
jae    169d <iswt_conv_step+0x51d>
xor    %eax,%eax
mov    0x30(%rsp),%rdi
jmp    1770 <iswt_conv_step+0x5f0>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    0x48(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
mov    0x14(%rsp),%r12d
mov    %r12d,%esi
mov    %r14,%rdx
mov    %r12d,%ecx
mov    0x8(%rsp),%r8
mov    %ebx,%r9d
call   1070 <i_conv@plt>
mov    0x50(%rsp),%rdi
mov    %r12d,%esi
mov    %r15,%rdx
mov    %r12d,%ecx
mov    0x18(%rsp),%r8
mov    %ebx,%r9d
call   1070 <i_conv@plt>
mov    0x60(%rsp),%rbx
jmp    18ec <iswt_conv_step+0x76c>
mov    %r12d,%eax
and    $0x7ffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
mov    0x30(%rsp),%rdi
je     1c23 <iswt_conv_step+0xaa3>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd (%r14,%rcx,8),%xmm0
movupd 0x10(%r14,%rcx,8),%xmm1
movupd (%r15,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r15,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x0(%rbp,%rcx,8)
movupd %xmm0,0x10(%rbp,%rcx,8)
movupd 0x20(%r14,%rcx,8),%xmm0
movupd 0x30(%r14,%rcx,8),%xmm1
movupd 0x20(%r15,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x30(%r15,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x20(%rbp,%rcx,8)
movupd %xmm0,0x30(%rbp,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    16d0 <iswt_conv_step+0x550>
test   $0x1,%dl
je     176b <iswt_conv_step+0x5eb>
movupd (%r14,%rcx,8),%xmm0
movupd 0x10(%r14,%rcx,8),%xmm1
movupd (%r15,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r15,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x0(%rbp,%rcx,8)
movupd %xmm0,0x10(%rbp,%rcx,8)
cmp    %r12,%rax
je     178b <iswt_conv_step+0x60b>
movsd  (%r14,%rax,8),%xmm0
addsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    1770 <iswt_conv_step+0x5f0>
call   1030 <free@plt>
mov    0x48(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
mov    0x14(%rsp),%ecx
mov    %ecx,%esi
mov    %r14,%rdx
mov    0x8(%rsp),%r8
mov    0x38(%rsp),%rbx
mov    %ebx,%r9d
call   1070 <i_conv@plt>
mov    0x50(%rsp),%rdi
mov    0x14(%rsp),%ecx
mov    %ecx,%esi
mov    %r15,%rdx
mov    0x18(%rsp),%r8
mov    %ebx,%r9d
call   1070 <i_conv@plt>
cmpl   $0x0,0x40(%rsp)
mov    0x60(%rsp),%rbx
jle    18ec <iswt_conv_step+0x76c>
cmp    $0x4,%r12d
jae    17f2 <iswt_conv_step+0x672>
xor    %eax,%eax
jmp    18d0 <iswt_conv_step+0x750>
mov    %r12d,%eax
and    $0x7ffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     1c44 <iswt_conv_step+0xac4>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd (%r14,%rcx,8),%xmm0
movupd 0x10(%r14,%rcx,8),%xmm1
movupd (%r15,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r15,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x0(%r13,%rcx,8)
movupd %xmm0,0x10(%r13,%rcx,8)
movupd 0x20(%r14,%rcx,8),%xmm0
movupd 0x30(%r14,%rcx,8),%xmm1
movupd 0x20(%r15,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x30(%r15,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x20(%r13,%rcx,8)
movupd %xmm0,0x30(%r13,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1820 <iswt_conv_step+0x6a0>
test   $0x1,%dl
je     18c1 <iswt_conv_step+0x741>
movupd (%r14,%rcx,8),%xmm0
movupd 0x10(%r14,%rcx,8),%xmm1
movupd (%r15,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r15,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x0(%r13,%rcx,8)
movupd %xmm0,0x10(%r13,%rcx,8)
cmp    %r12,%rax
je     18ec <iswt_conv_step+0x76c>
cs nopw 0x0(%rax,%rax,1)
movsd  (%r14,%rax,8),%xmm0
addsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x0(%r13,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    18d0 <iswt_conv_step+0x750>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x50(%rsp),%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x68(%rsp),%r12
mov    0x38(%rsp),%rax
lea    (%rax,%r12,1),%r8d
mov    %r8d,%r14d
not    %r14d
mov    0x24(%rsp),%eax
add    %eax,%r14d
mov    0x70(%rsp),%r15
cmp    %r15d,%r14d
jge    1abe <iswt_conv_step+0x93e>
movslq %r14d,%r10
lea    (%r12,%r15,1),%r11d
add    0x38(%rsp),%r11d
sub    %eax,%r11d
mov    %r10,%rdx
cmp    $0x3,%r11d
jb     1a7e <iswt_conv_step+0x8fe>
add    $0x1,%r11
mov    %r11,%rdx
and    $0xfffffffffffffffc,%rdx
lea    -0x4(%rdx),%rax
mov    %rax,%r9
shr    $0x2,%r9
add    $0x1,%r9
test   %rax,%rax
je     1c33 <iswt_conv_step+0xab3>
mov    %r9,%rsi
and    $0xfffffffffffffffe,%rsi
lea    0x30(,%r10,8),%rdi
add    %r13,%rdi
lea    0x30(,%r10,8),%rcx
add    %rbp,%rcx
xor    %eax,%eax
movapd 0x65d(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd -0x30(%rcx,%rax,8),%xmm1
movupd -0x20(%rcx,%rax,8),%xmm2
movupd -0x30(%rdi,%rax,8),%xmm3
addpd  %xmm1,%xmm3
movupd -0x20(%rdi,%rax,8),%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm1
movupd %xmm3,(%rbx,%rax,8)
movupd %xmm1,0x10(%rbx,%rax,8)
movupd -0x10(%rcx,%rax,8),%xmm1
movupd (%rcx,%rax,8),%xmm2
movupd -0x10(%rdi,%rax,8),%xmm3
addpd  %xmm1,%xmm3
movupd (%rdi,%rax,8),%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm1
movupd %xmm3,0x20(%rbx,%rax,8)
movupd %xmm1,0x30(%rbx,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rsi
jne    19c0 <iswt_conv_step+0x840>
test   $0x1,%r9b
je     1a76 <iswt_conv_step+0x8f6>
lea    (%rax,%r10,1),%rcx
movupd 0x0(%rbp,%rcx,8),%xmm0
movupd 0x10(%rbp,%rcx,8),%xmm1
movupd 0x0(%r13,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r13,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movapd 0x5ad(%rip),%xmm1
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm0
movupd %xmm2,(%rbx,%rax,8)
movupd %xmm0,0x10(%rbx,%rax,8)
cmp    %rdx,%r11
je     1abe <iswt_conv_step+0x93e>
add    %r10,%rdx
shl    $0x3,%r10
mov    %rbx,%rax
sub    %r10,%rax
mov    %r15d,%ecx
movsd  0x56d(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x0(%rbp,%rdx,8),%xmm1
addsd  0x0(%r13,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rdx,8)
add    $0x1,%rdx
cmp    %edx,%ecx
jne    1aa0 <iswt_conv_step+0x920>
test   %r14d,%r14d
jle    1be9 <iswt_conv_step+0xa69>
mov    %r14d,%edx
cmp    $0x4,%r14d
jae    1ad7 <iswt_conv_step+0x957>
xor    %ecx,%ecx
jmp    1b5d <iswt_conv_step+0x9dd>
lea    -0x1(%rdx),%rsi
mov    0x38(%rsp),%rax
add    %r12d,%eax
add    $0x1,%eax
lea    (%rsi,%r8,1),%edi
add    $0x1,%edi
xor    %ecx,%ecx
cmp    %eax,%edi
jl     1b5d <iswt_conv_step+0x9dd>
shr    $0x20,%rsi
jne    1b5d <iswt_conv_step+0x9dd>
mov    %edx,%ecx
and    $0xfffffffc,%ecx
mov    %eax,%eax
xor    %esi,%esi
movapd 0x506(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movupd 0x0(%rbp,%rsi,8),%xmm1
movupd 0x10(%rbp,%rsi,8),%xmm2
movupd 0x0(%r13,%rsi,8),%xmm3
addpd  %xmm1,%xmm3
movupd 0x10(%r13,%rsi,8),%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm1
lea    (%rax,%rsi,1),%edi
movslq %edi,%rdi
movupd %xmm3,(%rbx,%rdi,8)
movupd %xmm1,0x10(%rbx,%rdi,8)
add    $0x4,%rsi
cmp    %rsi,%rcx
jne    1b10 <iswt_conv_step+0x990>
cmp    %rdx,%rcx
je     1be9 <iswt_conv_step+0xa69>
mov    %rcx,%rax
not    %rax
test   $0x1,%dl
je     1b8d <iswt_conv_step+0xa0d>
movsd  0x0(%rbp,%rcx,8),%xmm0
addsd  0x0(%r13,%rcx,8),%xmm0
mulsd  0x483(%rip),%xmm0
or     $0x1,%rcx
lea    (%r8,%rcx,1),%esi
movslq %esi,%rsi
movsd  %xmm0,(%rbx,%rsi,8)
add    %rdx,%rax
je     1be9 <iswt_conv_step+0xa69>
mov    %r8d,%eax
movsd  0x463(%rip),%xmm0
mov    %rcx,%rsi
movsd  0x0(%rbp,%rcx,8),%xmm1
addsd  0x0(%r13,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
lea    (%rax,%rcx,1),%edi
add    $0x1,%edi
movslq %edi,%rdi
movsd  %xmm1,(%rbx,%rdi,8)
movsd  0x8(%rbp,%rcx,8),%xmm1
addsd  0x8(%r13,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
add    $0x2,%rsi
add    %eax,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm1,(%rbx,%rcx,8)
mov    %rsi,%rcx
cmp    %rsi,%rdx
jne    1ba0 <iswt_conv_step+0xa20>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ebp,%ebp
mov    0x8(%rsp),%r14
mov    0x18(%rsp),%r15
test   $0x1,%r8b
jne    14b9 <iswt_conv_step+0x339>
jmp    14ee <iswt_conv_step+0x36e>
xor    %ecx,%ecx
test   $0x1,%dl
jne    173d <iswt_conv_step+0x5bd>
jmp    176b <iswt_conv_step+0x5eb>
xor    %eax,%eax
test   $0x1,%r9b
jne    1a35 <iswt_conv_step+0x8b5>
jmp    1a76 <iswt_conv_step+0x8f6>
xor    %ecx,%ecx
test   $0x1,%dl
jne    1891 <iswt_conv_step+0x711>
jmp    18c1 <iswt_conv_step+0x741>

LLVM IR (-O0):
define void @iswt_conv_step(double* %0, double* %1, i32 %2, double* %3, i32 %4, double* %5, double* %6, i32 %7, i32 %8) {
%10 = alloca double*
%11 = alloca double*
%12 = alloca i32
%13 = alloca double*
%14 = alloca i32
%15 = alloca double*
%16 = alloca double*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca double*
%27 = alloca double*
%28 = alloca double*
%29 = alloca double*
%30 = alloca double*
%31 = alloca double*
%32 = alloca double*
%33 = alloca double*
%34 = alloca double*
%35 = alloca double*
%36 = alloca double*
%37 = alloca double*
%38 = alloca double*
%39 = alloca double*
store double* %0, double** %10
store double* %1, double** %11
store i32 %2, i32* %12
store double* %3, double** %13
store i32 %4, i32* %14
store double* %5, double** %15
store double* %6, double** %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%40 = load i32, i32* %12
%41 = sitofp i32 %40 to double
%42 = fdiv double %41, 2.000000e+00
%43 = fptosi double %42 to i32
%44 = call i64 @floor(i32 %43)
%45 = trunc i64 %44 to i32
store i32 %45, i32* %19
%46 = load i32, i32* %19
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 8
%49 = trunc i64 %48 to i32
%50 = call double* @malloc(i32 %49)
store double* %50, double** %26
%51 = load i32, i32* %19
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 8
%54 = trunc i64 %53 to i32
%55 = call double* @malloc(i32 %54)
store double* %55, double** %27
%56 = load i32, i32* %19
%57 = sext i32 %56 to i64
%58 = mul i64 %57, 8
%59 = trunc i64 %58 to i32
%60 = call double* @malloc(i32 %59)
store double* %60, double** %28
%61 = load i32, i32* %19
%62 = sext i32 %61 to i64
%63 = mul i64 %62, 8
%64 = trunc i64 %63 to i32
%65 = call double* @malloc(i32 %64)
store double* %65, double** %29
%66 = load double*, double** %10
%67 = load i32, i32* %12
%68 = load double*, double** %26
%69 = load i32, i32* %19
%70 = call i32 @dyaddown_1D_keep_odd(double* %66, i32 %67, double* %68, i32 %69)
%71 = load double*, double** %10
%72 = load i32, i32* %12
%73 = load double*, double** %28
%74 = load i32, i32* %19
%75 = call i32 @dyaddown_1D_keep_even(double* %71, i32 %72, double* %73, i32 %74)
%76 = load double*, double** %11
%77 = load i32, i32* %12
%78 = load double*, double** %27
%79 = load i32, i32* %19
%80 = call i32 @dyaddown_1D_keep_odd(double* %76, i32 %77, double* %78, i32 %79)
%81 = load double*, double** %11
%82 = load i32, i32* %12
%83 = load double*, double** %29
%84 = load i32, i32* %19
%85 = call i32 @dyaddown_1D_keep_even(double* %81, i32 %82, double* %83, i32 %84)
%86 = load i32, i32* %19
%87 = mul nsw i32 2, %86
store i32 %87, i32* %20
%88 = load i32, i32* %20
%89 = sext i32 %88 to i64
%90 = mul i64 %89, 8
%91 = trunc i64 %90 to i32
%92 = call double* @malloc(i32 %91)
store double* %92, double** %30
%93 = load i32, i32* %20
%94 = sext i32 %93 to i64
%95 = mul i64 %94, 8
%96 = trunc i64 %95 to i32
%97 = call double* @malloc(i32 %96)
store double* %97, double** %32
%98 = load i32, i32* %20
%99 = sext i32 %98 to i64
%100 = mul i64 %99, 8
%101 = trunc i64 %100 to i32
%102 = call double* @malloc(i32 %101)
store double* %102, double** %31
%103 = load i32, i32* %20
%104 = sext i32 %103 to i64
%105 = mul i64 %104, 8
%106 = trunc i64 %105 to i32
%107 = call double* @malloc(i32 %106)
store double* %107, double** %33
store i32 0, i32* %21
br label %108
108: ; preds = %177, %9
%109 = load i32, i32* %21
%110 = load i32, i32* %19
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %180
112: ; preds = %108
%113 = load double*, double** %26
%114 = load i32, i32* %21
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
%117 = load double, double* %116
%118 = load double*, double** %30
%119 = load i32, i32* %21
%120 = mul nsw i32 2, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %118, i64 %121
store double %117, double* %122
%123 = load double*, double** %27
%124 = load i32, i32* %21
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %123, i64 %125
%127 = load double, double* %126
%128 = load double*, double** %31
%129 = load i32, i32* %21
%130 = mul nsw i32 2, %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, double* %128, i64 %131
store double %127, double* %132
%133 = load double*, double** %30
%134 = load i32, i32* %21
%135 = mul nsw i32 2, %134
%136 = add nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %133, i64 %137
store double 0.000000e+00, double* %138
%139 = load double*, double** %31
%140 = load i32, i32* %21
%141 = mul nsw i32 2, %140
%142 = add nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, double* %139, i64 %143
store double 0.000000e+00, double* %144
%145 = load double*, double** %32
%146 = load i32, i32* %21
%147 = mul nsw i32 2, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %145, i64 %148
store double 0.000000e+00, double* %149
%150 = load double*, double** %33
%151 = load i32, i32* %21
%152 = mul nsw i32 2, %151
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %150, i64 %153
store double 0.000000e+00, double* %154
%155 = load double*, double** %28
%156 = load i32, i32* %21
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, double* %155, i64 %157
%159 = load double, double* %158
%160 = load double*, double** %32
%161 = load i32, i32* %21
%162 = mul nsw i32 2, %161
%163 = add nsw i32 %162, 1
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %160, i64 %164
store double %159, double* %165
%166 = load double*, double** %29
%167 = load i32, i32* %21
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, double* %166, i64 %168
%170 = load double, double* %169
%171 = load double*, double** %33
%172 = load i32, i32* %21
%173 = mul nsw i32 2, %172
%174 = add nsw i32 %173, 1
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %171, i64 %175
store double %170, double* %176
br label %177
177: ; preds = %112
%178 = load i32, i32* %21
%179 = add nsw i32 %178, 1
store i32 %179, i32* %21
br label %108
180: ; preds = %108
%181 = load double*, double** %26
%182 = call i32 @free(double* %181)
%183 = load double*, double** %27
%184 = call i32 @free(double* %183)
%185 = load double*, double** %28
%186 = call i32 @free(double* %185)
%187 = load double*, double** %29
%188 = call i32 @free(double* %187)
%189 = load i32, i32* %18
%190 = sub nsw i32 %189, 1
%191 = call i32 @swt_exp2(i32 %190, i32* %22)
%192 = load i32, i32* %18
%193 = icmp eq i32 %192, 1
br i1 %193, label %194, label %195
194: ; preds = %180
store i32 1, i32* %23
store i32 0, i32* %24
br label %199
195: ; preds = %180
%196 = load i32, i32* %22
store i32 %196, i32* %23
%197 = load i32, i32* %22
%198 = sub nsw i32 %197, 1
store i32 %198, i32* %24
br label %199
199: ; preds = %195, %194
%200 = load i32, i32* %23
%201 = load i32, i32* %17
%202 = mul nsw i32 %200, %201
%203 = sext i32 %202 to i64
%204 = mul i64 %203, 8
%205 = trunc i64 %204 to i32
%206 = call double* @malloc(i32 %205)
store double* %206, double** %38
%207 = load i32, i32* %23
%208 = load i32, i32* %17
%209 = mul nsw i32 %207, %208
%210 = sext i32 %209 to i64
%211 = mul i64 %210, 8
%212 = trunc i64 %211 to i32
%213 = call double* @malloc(i32 %212)
store double* %213, double** %39
store i32 0, i32* %21
br label %214
214: ; preds = %229, %199
%215 = load i32, i32* %21
%216 = load i32, i32* %23
%217 = load i32, i32* %17
%218 = mul nsw i32 %216, %217
%219 = icmp slt i32 %215, %218
br i1 %219, label %220, label %232
220: ; preds = %214
%221 = load double*, double** %38
%222 = load i32, i32* %21
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double, double* %221, i64 %223
store double 0.000000e+00, double* %224
%225 = load double*, double** %39
%226 = load i32, i32* %21
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds double, double* %225, i64 %227
store double 0.000000e+00, double* %228
br label %229
229: ; preds = %220
%230 = load i32, i32* %21
%231 = add nsw i32 %230, 1
store i32 %231, i32* %21
br label %214
232: ; preds = %214
store i32 0, i32* %21
br label %233
233: ; preds = %260, %232
%234 = load i32, i32* %21
%235 = load i32, i32* %17
%236 = icmp slt i32 %234, %235
br i1 %236, label %237, label %263
237: ; preds = %233
%238 = load double*, double** %15
%239 = load i32, i32* %21
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, double* %238, i64 %240
%242 = load double, double* %241
%243 = load double*, double** %38
%244 = load i32, i32* %23
%245 = load i32, i32* %21
%246 = mul nsw i32 %244, %245
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds double, double* %243, i64 %247
store double %242, double* %248
%249 = load double*, double** %16
%250 = load i32, i32* %21
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, double* %249, i64 %251
%253 = load double, double* %252
%254 = load double*, double** %39
%255 = load i32, i32* %23
%256 = load i32, i32* %21
%257 = mul nsw i32 %255, %256
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, double* %254, i64 %258
store double %253, double* %259
br label %260
260: ; preds = %237
%261 = load i32, i32* %21
%262 = add nsw i32 %261, 1
store i32 %262, i32* %21
br label %233
263: ; preds = %233
%264 = load i32, i32* %20
%265 = sext i32 %264 to i64
%266 = mul i64 %265, 8
%267 = trunc i64 %266 to i32
%268 = call double* @malloc(i32 %267)
store double* %268, double** %34
%269 = load i32, i32* %20
%270 = sext i32 %269 to i64
%271 = mul i64 %270, 8
%272 = trunc i64 %271 to i32
%273 = call double* @malloc(i32 %272)
store double* %273, double** %35
%274 = load i32, i32* %20
%275 = sext i32 %274 to i64
%276 = mul i64 %275, 8
%277 = trunc i64 %276 to i32
%278 = call double* @malloc(i32 %277)
store double* %278, double** %36
%279 = load i32, i32* %20
%280 = sext i32 %279 to i64
%281 = mul i64 %280, 8
%282 = trunc i64 %281 to i32
%283 = call double* @malloc(i32 %282)
store double* %283, double** %37
%284 = load double*, double** %30
%285 = load i32, i32* %20
%286 = load double*, double** %34
%287 = load i32, i32* %20
%288 = load double*, double** %38
%289 = load i32, i32* %23
%290 = load i32, i32* %17
%291 = mul nsw i32 %289, %290
%292 = call i32 @i_conv(double* %284, i32 %285, double* %286, i32 %287, double* %288, i32 %291)
%293 = load double*, double** %31
%294 = load i32, i32* %20
%295 = load double*, double** %35
%296 = load i32, i32* %20
%297 = load double*, double** %39
%298 = load i32, i32* %23
%299 = load i32, i32* %17
%300 = mul nsw i32 %298, %299
%301 = call i32 @i_conv(double* %293, i32 %294, double* %295, i32 %296, double* %297, i32 %300)
store i32 0, i32* %21
br label %302
302: ; preds = %322, %263
%303 = load i32, i32* %21
%304 = load i32, i32* %20
%305 = icmp slt i32 %303, %304
br i1 %305, label %306, label %325
306: ; preds = %302
%307 = load double*, double** %34
%308 = load i32, i32* %21
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds double, double* %307, i64 %309
%311 = load double, double* %310
%312 = load double*, double** %35
%313 = load i32, i32* %21
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds double, double* %312, i64 %314
%316 = load double, double* %315
%317 = fadd double %311, %316
%318 = load double*, double** %36
%319 = load i32, i32* %21
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds double, double* %318, i64 %320
store double %317, double* %321
br label %322
322: ; preds = %306
%323 = load i32, i32* %21
%324 = add nsw i32 %323, 1
store i32 %324, i32* %21
br label %302
325: ; preds = %302
%326 = load double*, double** %30
%327 = call i32 @free(double* %326)
%328 = load double*, double** %31
%329 = call i32 @free(double* %328)
%330 = load double*, double** %32
%331 = load i32, i32* %20
%332 = load double*, double** %34
%333 = load i32, i32* %20
%334 = load double*, double** %38
%335 = load i32, i32* %23
%336 = load i32, i32* %17
%337 = mul nsw i32 %335, %336
%338 = call i32 @i_conv(double* %330, i32 %331, double* %332, i32 %333, double* %334, i32 %337)
%339 = load double*, double** %33
%340 = load i32, i32* %20
%341 = load double*, double** %35
%342 = load i32, i32* %20
%343 = load double*, double** %39
%344 = load i32, i32* %23
%345 = load i32, i32* %17
%346 = mul nsw i32 %344, %345
%347 = call i32 @i_conv(double* %339, i32 %340, double* %341, i32 %342, double* %343, i32 %346)
store i32 0, i32* %21
br label %348
348: ; preds = %368, %325
%349 = load i32, i32* %21
%350 = load i32, i32* %20
%351 = icmp slt i32 %349, %350
br i1 %351, label %352, label %371
352: ; preds = %348
%353 = load double*, double** %34
%354 = load i32, i32* %21
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds double, double* %353, i64 %355
%357 = load double, double* %356
%358 = load double*, double** %35
%359 = load i32, i32* %21
%360 = sext i32 %359 to i64
%361 = getelementptr inbounds double, double* %358, i64 %360
%362 = load double, double* %361
%363 = fadd double %357, %362
%364 = load double*, double** %37
%365 = load i32, i32* %21
%366 = sext i32 %365 to i64
%367 = getelementptr inbounds double, double* %364, i64 %366
store double %363, double* %367
br label %368
368: ; preds = %352
%369 = load i32, i32* %21
%370 = add nsw i32 %369, 1
store i32 %370, i32* %21
br label %348
371: ; preds = %348
%372 = load double*, double** %32
%373 = call i32 @free(double* %372)
%374 = load double*, double** %33
%375 = call i32 @free(double* %374)
%376 = load double*, double** %34
%377 = call i32 @free(double* %376)
%378 = load double*, double** %35
%379 = call i32 @free(double* %378)
%380 = load double*, double** %38
%381 = call i32 @free(double* %380)
%382 = load double*, double** %39
%383 = call i32 @free(double* %382)
%384 = load i32, i32* %12
%385 = load i32, i32* %17
%386 = load i32, i32* %23
%387 = mul nsw i32 %385, %386
%388 = sub nsw i32 %384, %387
%389 = load i32, i32* %24
%390 = sub nsw i32 %388, %389
%391 = sub nsw i32 %390, 1
store i32 %391, i32* %25
%392 = load i32, i32* %25
store i32 %392, i32* %21
br label %393
393: ; preds = %416, %371
%394 = load i32, i32* %21
%395 = load i32, i32* %14
%396 = icmp slt i32 %394, %395
br i1 %396, label %397, label %419
397: ; preds = %393
%398 = load double*, double** %36
%399 = load i32, i32* %21
%400 = sext i32 %399 to i64
%401 = getelementptr inbounds double, double* %398, i64 %400
%402 = load double, double* %401
%403 = load double*, double** %37
%404 = load i32, i32* %21
%405 = sext i32 %404 to i64
%406 = getelementptr inbounds double, double* %403, i64 %405
%407 = load double, double* %406
%408 = fadd double %402, %407
%409 = fdiv double %408, 2.000000e+00
%410 = load double*, double** %13
%411 = load i32, i32* %21
%412 = load i32, i32* %25
%413 = sub nsw i32 %411, %412
%414 = sext i32 %413 to i64
%415 = getelementptr inbounds double, double* %410, i64 %414
store double %409, double* %415
br label %416
416: ; preds = %397
%417 = load i32, i32* %21
%418 = add nsw i32 %417, 1
store i32 %418, i32* %21
br label %393
419: ; preds = %393
store i32 0, i32* %21
br label %420
420: ; preds = %448, %419
%421 = load i32, i32* %21
%422 = load i32, i32* %25
%423 = icmp slt i32 %421, %422
br i1 %423, label %424, label %451
424: ; preds = %420
%425 = load double*, double** %36
%426 = load i32, i32* %21
%427 = sext i32 %426 to i64
%428 = getelementptr inbounds double, double* %425, i64 %427
%429 = load double, double* %428
%430 = load double*, double** %37
%431 = load i32, i32* %21
%432 = sext i32 %431 to i64
%433 = getelementptr inbounds double, double* %430, i64 %432
%434 = load double, double* %433
%435 = fadd double %429, %434
%436 = fdiv double %435, 2.000000e+00
%437 = load double*, double** %13
%438 = load i32, i32* %21
%439 = add nsw i32 %438, 1
%440 = load i32, i32* %17
%441 = load i32, i32* %23
%442 = mul nsw i32 %440, %441
%443 = add nsw i32 %439, %442
%444 = load i32, i32* %24
%445 = add nsw i32 %443, %444
%446 = sext i32 %445 to i64
%447 = getelementptr inbounds double, double* %437, i64 %446
store double %436, double* %447
br label %448
448: ; preds = %424
%449 = load i32, i32* %21
%450 = add nsw i32 %449, 1
store i32 %450, i32* %21
br label %420
451: ; preds = %420
%452 = load double*, double** %36
%453 = call i32 @free(double* %452)
%454 = load double*, double** %37
%455 = call i32 @free(double* %454)
ret void
}

LLVM IR (-O2):
define void @iswt_conv_step(double* %0, double* %1, i32 %2, double* nocapture writeonly %3, i32 %4, double* nocapture %5, double* nocapture %6, i32 %7, i32 %8) {
%10 = alloca i32
%11 = bitcast i32* %10 to i8*
%12 = sitofp i32 %2 to double
%13 = fmul double %12, 5.000000e-01
%14 = fptosi double %13 to i32
%15 = tail call i64 @floor(i32 %14)
%16 = trunc i64 %15 to i32
%17 = shl i32 %16, 3
%18 = tail call double* @malloc(i32 %17)
%19 = tail call double* @malloc(i32 %17)
%20 = tail call double* @malloc(i32 %17)
%21 = tail call double* @malloc(i32 %17)
%22 = tail call i32 @dyaddown_1D_keep_odd(double* %0, i32 %2, double* %18, i32 %16)
%23 = tail call i32 @dyaddown_1D_keep_even(double* %0, i32 %2, double* %20, i32 %16)
%24 = tail call i32 @dyaddown_1D_keep_odd(double* %1, i32 %2, double* %19, i32 %16)
%25 = tail call i32 @dyaddown_1D_keep_even(double* %1, i32 %2, double* %21, i32 %16)
%26 = shl i32 %16, 1
%27 = shl i32 %16, 4
%28 = tail call double* @malloc(i32 %27)
%29 = tail call double* @malloc(i32 %27)
%30 = tail call double* @malloc(i32 %27)
%31 = tail call double* @malloc(i32 %27)
%32 = icmp sgt i32 %16, 0
br i1 %32, label %33, label %57
33: ; preds = %9
%34 = and i64 %15, 4294967295
br label %35
35: ; preds = %33, %35
%36 = phi i64 [ 0, %33 ], [ %55, %35 ]
%37 = getelementptr inbounds double, double* %18, i64 %36
%38 = load double, double* %37
%39 = shl nuw nsw i64 %36, 1
%40 = getelementptr inbounds double, double* %28, i64 %39
store double %38, double* %40
%41 = getelementptr inbounds double, double* %19, i64 %36
%42 = load double, double* %41
%43 = getelementptr inbounds double, double* %30, i64 %39
store double %42, double* %43
%44 = or i64 %39, 1
%45 = getelementptr inbounds double, double* %28, i64 %44
store double 0.000000e+00, double* %45
%46 = getelementptr inbounds double, double* %30, i64 %44
store double 0.000000e+00, double* %46
%47 = getelementptr inbounds double, double* %29, i64 %39
store double 0.000000e+00, double* %47
%48 = getelementptr inbounds double, double* %31, i64 %39
store double 0.000000e+00, double* %48
%49 = getelementptr inbounds double, double* %20, i64 %36
%50 = load double, double* %49
%51 = getelementptr inbounds double, double* %29, i64 %44
store double %50, double* %51
%52 = getelementptr inbounds double, double* %21, i64 %36
%53 = load double, double* %52
%54 = getelementptr inbounds double, double* %31, i64 %44
store double %53, double* %54
%55 = add nuw nsw i64 %36, 1
%56 = icmp eq i64 %55, %34
br i1 %56, label %57, label %35
57: ; preds = %35, %9
%58 = tail call i32 @free(double* %18)
%59 = tail call i32 @free(double* %19)
%60 = tail call i32 @free(double* %20)
%61 = tail call i32 @free(double* %21)
%62 = add nsw i32 %8, -1
%63 = call i32 @swt_exp2(i32 %62, i32* %10)
%64 = icmp eq i32 %8, 1
%65 = load i32, i32* %10
%66 = add nsw i32 %65, -1
%67 = select i1 %64, i32 0, i32 %66
%68 = select i1 %64, i32 1, i32 %65
%69 = mul nsw i32 %68, %7
%70 = shl i32 %69, 3
%71 = call double* @malloc(i32 %70)
%72 = call double* @malloc(i32 %70)
%73 = icmp sgt i32 %69, 0
br i1 %73, label %74, label %79
74: ; preds = %57
%75 = bitcast double* %72 to i8*
%76 = bitcast double* %71 to i8*
%77 = zext i32 %69 to i64
%78 = shl nuw nsw i64 %77, 3
br label %79
79: ; preds = %74, %57
%80 = icmp sgt i32 %7, 0
br i1 %80, label %81, label %209
81: ; preds = %79
%82 = sext i32 %68 to i64
%83 = zext i32 %7 to i64
%84 = icmp ugt i32 %7, 3
%85 = icmp eq i32 %68, 1
%86 = select i1 %84, i1 %85, i1 false
br i1 %86, label %87, label %172
87: ; preds = %81
%88 = and i64 %83, 4294967292
%89 = add nsw i64 %88, -4
%90 = lshr exact i64 %89, 2
%91 = add nuw nsw i64 %90, 1
%92 = and i64 %91, 1
%93 = icmp eq i64 %89, 0
br i1 %93, label %145, label %94
94: ; preds = %87
%95 = and i64 %91, 9223372036854775806
br label %96
96: ; preds = %96, %94
%97 = phi i64 [ 0, %94 ], [ %142, %96 ]
%98 = phi i64 [ 0, %94 ], [ %143, %96 ]
%99 = getelementptr inbounds double, double* %5, i64 %97
%100 = bitcast double* %99 to <2 x double>*
%101 = load <2 x double>, <2 x double>* %100
%102 = getelementptr inbounds double, double* %99, i64 2
%103 = bitcast double* %102 to <2 x double>*
%104 = load <2 x double>, <2 x double>* %103
%105 = mul nsw i64 %97, %82
%106 = getelementptr inbounds double, double* %71, i64 %105
%107 = bitcast double* %106 to <2 x double>*
store <2 x double> %101, <2 x double>* %107
%108 = getelementptr inbounds double, double* %106, i64 2
%109 = bitcast double* %108 to <2 x double>*
store <2 x double> %104, <2 x double>* %109
%110 = getelementptr inbounds double, double* %6, i64 %97
%111 = bitcast double* %110 to <2 x double>*
%112 = load <2 x double>, <2 x double>* %111
%113 = getelementptr inbounds double, double* %110, i64 2
%114 = bitcast double* %113 to <2 x double>*
%115 = load <2 x double>, <2 x double>* %114
%116 = getelementptr inbounds double, double* %72, i64 %105
%117 = bitcast double* %116 to <2 x double>*
store <2 x double> %112, <2 x double>* %117
%118 = getelementptr inbounds double, double* %116, i64 2
%119 = bitcast double* %118 to <2 x double>*
store <2 x double> %115, <2 x double>* %119
%120 = or i64 %97, 4
%121 = getelementptr inbounds double, double* %5, i64 %120
%122 = bitcast double* %121 to <2 x double>*
%123 = load <2 x double>, <2 x double>* %122
%124 = getelementptr inbounds double, double* %121, i64 2
%125 = bitcast double* %124 to <2 x double>*
%126 = load <2 x double>, <2 x double>* %125
%127 = mul nsw i64 %120, %82
%128 = getelementptr inbounds double, double* %71, i64 %127
%129 = bitcast double* %128 to <2 x double>*
store <2 x double> %123, <2 x double>* %129
%130 = getelementptr inbounds double, double* %128, i64 2
%131 = bitcast double* %130 to <2 x double>*
store <2 x double> %126, <2 x double>* %131
%132 = getelementptr inbounds double, double* %6, i64 %120
%133 = bitcast double* %132 to <2 x double>*
%134 = load <2 x double>, <2 x double>* %133
%135 = getelementptr inbounds double, double* %132, i64 2
%136 = bitcast double* %135 to <2 x double>*
%137 = load <2 x double>, <2 x double>* %136
%138 = getelementptr inbounds double, double* %72, i64 %127
%139 = bitcast double* %138 to <2 x double>*
store <2 x double> %134, <2 x double>* %139
%140 = getelementptr inbounds double, double* %138, i64 2
%141 = bitcast double* %140 to <2 x double>*
store <2 x double> %137, <2 x double>* %141
%142 = add nuw i64 %97, 8
%143 = add i64 %98, 2
%144 = icmp eq i64 %143, %95
br i1 %144, label %145, label %96
145: ; preds = %96, %87
%146 = phi i64 [ 0, %87 ], [ %142, %96 ]
%147 = icmp eq i64 %92, 0
br i1 %147, label %170, label %148
148: ; preds = %145
%149 = getelementptr inbounds double, double* %5, i64 %146
%150 = bitcast double* %149 to <2 x double>*
%151 = load <2 x double>, <2 x double>* %150
%152 = getelementptr inbounds double, double* %149, i64 2
%153 = bitcast double* %152 to <2 x double>*
%154 = load <2 x double>, <2 x double>* %153
%155 = mul nsw i64 %146, %82
%156 = getelementptr inbounds double, double* %71, i64 %155
%157 = bitcast double* %156 to <2 x double>*
store <2 x double> %151, <2 x double>* %157
%158 = getelementptr inbounds double, double* %156, i64 2
%159 = bitcast double* %158 to <2 x double>*
store <2 x double> %154, <2 x double>* %159
%160 = getelementptr inbounds double, double* %6, i64 %146
%161 = bitcast double* %160 to <2 x double>*
%162 = load <2 x double>, <2 x double>* %161
%163 = getelementptr inbounds double, double* %160, i64 2
%164 = bitcast double* %163 to <2 x double>*
%165 = load <2 x double>, <2 x double>* %164
%166 = getelementptr inbounds double, double* %72, i64 %155
%167 = bitcast double* %166 to <2 x double>*
store <2 x double> %162, <2 x double>* %167
%168 = getelementptr inbounds double, double* %166, i64 2
%169 = bitcast double* %168 to <2 x double>*
store <2 x double> %165, <2 x double>* %169
br label %170
170: ; preds = %145, %148
%171 = icmp eq i64 %88, %83
br i1 %171, label %209, label %172
172: ; preds = %81, %170
%173 = phi i64 [ 0, %81 ], [ %88, %170 ]
%174 = xor i64 %173, -1
%175 = and i64 %83, 1
%176 = icmp eq i64 %175, 0
br i1 %176, label %186, label %177
177: ; preds = %172
%178 = getelementptr inbounds double, double* %5, i64 %173
%179 = load double, double* %178
%180 = mul nsw i64 %173, %82
%181 = getelementptr inbounds double, double* %71, i64 %180
store double %179, double* %181
%182 = getelementptr inbounds double, double* %6, i64 %173
%183 = load double, double* %182
%184 = getelementptr inbounds double, double* %72, i64 %180
store double %183, double* %184
%185 = or i64 %173, 1
br label %186
186: ; preds = %177, %172
%187 = phi i64 [ %173, %172 ], [ %185, %177 ]
%188 = sub nsw i64 0, %83
%189 = icmp eq i64 %174, %188
br i1 %189, label %209, label %190
190: ; preds = %186, %190
%191 = phi i64 [ %207, %190 ], [ %187, %186 ]
%192 = getelementptr inbounds double, double* %5, i64 %191
%193 = load double, double* %192
%194 = mul nsw i64 %191, %82
%195 = getelementptr inbounds double, double* %71, i64 %194
store double %193, double* %195
%196 = getelementptr inbounds double, double* %6, i64 %191
%197 = load double, double* %196
%198 = getelementptr inbounds double, double* %72, i64 %194
store double %197, double* %198
%199 = add nuw nsw i64 %191, 1
%200 = getelementptr inbounds double, double* %5, i64 %199
%201 = load double, double* %200
%202 = mul nsw i64 %199, %82
%203 = getelementptr inbounds double, double* %71, i64 %202
store double %201, double* %203
%204 = getelementptr inbounds double, double* %6, i64 %199
%205 = load double, double* %204
%206 = getelementptr inbounds double, double* %72, i64 %202
store double %205, double* %206
%207 = add nuw nsw i64 %191, 2
%208 = icmp eq i64 %207, %83
br i1 %208, label %209, label %190
209: ; preds = %186, %190, %170, %79
%210 = call double* @malloc(i32 %27)
%211 = call double* @malloc(i32 %27)
%212 = call double* @malloc(i32 %27)
%213 = call double* @malloc(i32 %27)
%214 = call i32 @i_conv(double* %28, i32 %26, double* %210, i32 %26, double* %71, i32 %69)
%215 = call i32 @i_conv(double* %30, i32 %26, double* %211, i32 %26, double* %72, i32 %69)
br i1 %32, label %216, label %405
216: ; preds = %209
%217 = call i32 @llvm.smax.i32(i32 %26, i32 1)
%218 = zext i32 %217 to i64
%219 = icmp ult i32 %217, 4
br i1 %219, label %296, label %220
220: ; preds = %216
%221 = and i64 %218, 2147483644
%222 = add nsw i64 %221, -4
%223 = lshr exact i64 %222, 2
%224 = add nuw nsw i64 %223, 1
%225 = and i64 %224, 1
%226 = icmp eq i64 %222, 0
br i1 %226, label %272, label %227
227: ; preds = %220
%228 = and i64 %224, 9223372036854775806
br label %229
229: ; preds = %229, %227
%230 = phi i64 [ 0, %227 ], [ %269, %229 ]
%231 = phi i64 [ 0, %227 ], [ %270, %229 ]
%232 = getelementptr inbounds double, double* %210, i64 %230
%233 = bitcast double* %232 to <2 x double>*
%234 = load <2 x double>, <2 x double>* %233
%235 = getelementptr inbounds double, double* %232, i64 2
%236 = bitcast double* %235 to <2 x double>*
%237 = load <2 x double>, <2 x double>* %236
%238 = getelementptr inbounds double, double* %211, i64 %230
%239 = bitcast double* %238 to <2 x double>*
%240 = load <2 x double>, <2 x double>* %239
%241 = getelementptr inbounds double, double* %238, i64 2
%242 = bitcast double* %241 to <2 x double>*
%243 = load <2 x double>, <2 x double>* %242
%244 = fadd <2 x double> %234, %240
%245 = fadd <2 x double> %237, %243
%246 = getelementptr inbounds double, double* %212, i64 %230
%247 = bitcast double* %246 to <2 x double>*
store <2 x double> %244, <2 x double>* %247
%248 = getelementptr inbounds double, double* %246, i64 2
%249 = bitcast double* %248 to <2 x double>*
store <2 x double> %245, <2 x double>* %249
%250 = or i64 %230, 4
%251 = getelementptr inbounds double, double* %210, i64 %250
%252 = bitcast double* %251 to <2 x double>*
%253 = load <2 x double>, <2 x double>* %252
%254 = getelementptr inbounds double, double* %251, i64 2
%255 = bitcast double* %254 to <2 x double>*
%256 = load <2 x double>, <2 x double>* %255
%257 = getelementptr inbounds double, double* %211, i64 %250
%258 = bitcast double* %257 to <2 x double>*
%259 = load <2 x double>, <2 x double>* %258
%260 = getelementptr inbounds double, double* %257, i64 2
%261 = bitcast double* %260 to <2 x double>*
%262 = load <2 x double>, <2 x double>* %261
%263 = fadd <2 x double> %253, %259
%264 = fadd <2 x double> %256, %262
%265 = getelementptr inbounds double, double* %212, i64 %250
%266 = bitcast double* %265 to <2 x double>*
store <2 x double> %263, <2 x double>* %266
%267 = getelementptr inbounds double, double* %265, i64 2
%268 = bitcast double* %267 to <2 x double>*
store <2 x double> %264, <2 x double>* %268
%269 = add nuw i64 %230, 8
%270 = add i64 %231, 2
%271 = icmp eq i64 %270, %228
br i1 %271, label %272, label %229
272: ; preds = %229, %220
%273 = phi i64 [ 0, %220 ], [ %269, %229 ]
%274 = icmp eq i64 %225, 0
br i1 %274, label %294, label %275
275: ; preds = %272
%276 = getelementptr inbounds double, double* %210, i64 %273
%277 = bitcast double* %276 to <2 x double>*
%278 = load <2 x double>, <2 x double>* %277
%279 = getelementptr inbounds double, double* %276, i64 2
%280 = bitcast double* %279 to <2 x double>*
%281 = load <2 x double>, <2 x double>* %280
%282 = getelementptr inbounds double, double* %211, i64 %273
%283 = bitcast double* %282 to <2 x double>*
%284 = load <2 x double>, <2 x double>* %283
%285 = getelementptr inbounds double, double* %282, i64 2
%286 = bitcast double* %285 to <2 x double>*
%287 = load <2 x double>, <2 x double>* %286
%288 = fadd <2 x double> %278, %284
%289 = fadd <2 x double> %281, %287
%290 = getelementptr inbounds double, double* %212, i64 %273
%291 = bitcast double* %290 to <2 x double>*
store <2 x double> %288, <2 x double>* %291
%292 = getelementptr inbounds double, double* %290, i64 2
%293 = bitcast double* %292 to <2 x double>*
store <2 x double> %289, <2 x double>* %293
br label %294
294: ; preds = %272, %275
%295 = icmp eq i64 %221, %218
br i1 %295, label %308, label %296
296: ; preds = %216, %294
%297 = phi i64 [ 0, %216 ], [ %221, %294 ]
br label %298
298: ; preds = %296, %298
%299 = phi i64 [ %306, %298 ], [ %297, %296 ]
%300 = getelementptr inbounds double, double* %210, i64 %299
%301 = load double, double* %300
%302 = getelementptr inbounds double, double* %211, i64 %299
%303 = load double, double* %302
%304 = fadd double %301, %303
%305 = getelementptr inbounds double, double* %212, i64 %299
store double %304, double* %305
%306 = add nuw nsw i64 %299, 1
%307 = icmp eq i64 %306, %218
br i1 %307, label %308, label %298
308: ; preds = %298, %294
%309 = call i32 @free(double* %28)
%310 = call i32 @free(double* %30)
%311 = call i32 @i_conv(double* %29, i32 %26, double* %210, i32 %26, double* %71, i32 %69)
%312 = call i32 @i_conv(double* %31, i32 %26, double* %211, i32 %26, double* %72, i32 %69)
br i1 %32, label %313, label %410
313: ; preds = %308
%314 = call i32 @llvm.smax.i32(i32 %26, i32 1)
%315 = zext i32 %314 to i64
%316 = icmp ult i32 %217, 4
br i1 %316, label %393, label %317
317: ; preds = %313
%318 = and i64 %218, 2147483644
%319 = add nsw i64 %318, -4
%320 = lshr exact i64 %319, 2
%321 = add nuw nsw i64 %320, 1
%322 = and i64 %321, 1
%323 = icmp eq i64 %319, 0
br i1 %323, label %369, label %324
324: ; preds = %317
%325 = and i64 %321, 9223372036854775806
br label %326
326: ; preds = %326, %324
%327 = phi i64 [ 0, %324 ], [ %366, %326 ]
%328 = phi i64 [ 0, %324 ], [ %367, %326 ]
%329 = getelementptr inbounds double, double* %210, i64 %327
%330 = bitcast double* %329 to <2 x double>*
%331 = load <2 x double>, <2 x double>* %330
%332 = getelementptr inbounds double, double* %329, i64 2
%333 = bitcast double* %332 to <2 x double>*
%334 = load <2 x double>, <2 x double>* %333
%335 = getelementptr inbounds double, double* %211, i64 %327
%336 = bitcast double* %335 to <2 x double>*
%337 = load <2 x double>, <2 x double>* %336
%338 = getelementptr inbounds double, double* %335, i64 2
%339 = bitcast double* %338 to <2 x double>*
%340 = load <2 x double>, <2 x double>* %339
%341 = fadd <2 x double> %331, %337
%342 = fadd <2 x double> %334, %340
%343 = getelementptr inbounds double, double* %213, i64 %327
%344 = bitcast double* %343 to <2 x double>*
store <2 x double> %341, <2 x double>* %344
%345 = getelementptr inbounds double, double* %343, i64 2
%346 = bitcast double* %345 to <2 x double>*
store <2 x double> %342, <2 x double>* %346
%347 = or i64 %327, 4
%348 = getelementptr inbounds double, double* %210, i64 %347
%349 = bitcast double* %348 to <2 x double>*
%350 = load <2 x double>, <2 x double>* %349
%351 = getelementptr inbounds double, double* %348, i64 2
%352 = bitcast double* %351 to <2 x double>*
%353 = load <2 x double>, <2 x double>* %352
%354 = getelementptr inbounds double, double* %211, i64 %347
%355 = bitcast double* %354 to <2 x double>*
%356 = load <2 x double>, <2 x double>* %355
%357 = getelementptr inbounds double, double* %354, i64 2
%358 = bitcast double* %357 to <2 x double>*
%359 = load <2 x double>, <2 x double>* %358
%360 = fadd <2 x double> %350, %356
%361 = fadd <2 x double> %353, %359
%362 = getelementptr inbounds double, double* %213, i64 %347
%363 = bitcast double* %362 to <2 x double>*
store <2 x double> %360, <2 x double>* %363
%364 = getelementptr inbounds double, double* %362, i64 2
%365 = bitcast double* %364 to <2 x double>*
store <2 x double> %361, <2 x double>* %365
%366 = add nuw i64 %327, 8
%367 = add i64 %328, 2
%368 = icmp eq i64 %367, %325
br i1 %368, label %369, label %326
369: ; preds = %326, %317
%370 = phi i64 [ 0, %317 ], [ %366, %326 ]
%371 = icmp eq i64 %322, 0
br i1 %371, label %391, label %372
372: ; preds = %369
%373 = getelementptr inbounds double, double* %210, i64 %370
%374 = bitcast double* %373 to <2 x double>*
%375 = load <2 x double>, <2 x double>* %374
%376 = getelementptr inbounds double, double* %373, i64 2
%377 = bitcast double* %376 to <2 x double>*
%378 = load <2 x double>, <2 x double>* %377
%379 = getelementptr inbounds double, double* %211, i64 %370
%380 = bitcast double* %379 to <2 x double>*
%381 = load <2 x double>, <2 x double>* %380
%382 = getelementptr inbounds double, double* %379, i64 2
%383 = bitcast double* %382 to <2 x double>*
%384 = load <2 x double>, <2 x double>* %383
%385 = fadd <2 x double> %375, %381
%386 = fadd <2 x double> %378, %384
%387 = getelementptr inbounds double, double* %213, i64 %370
%388 = bitcast double* %387 to <2 x double>*
store <2 x double> %385, <2 x double>* %388
%389 = getelementptr inbounds double, double* %387, i64 2
%390 = bitcast double* %389 to <2 x double>*
store <2 x double> %386, <2 x double>* %390
br label %391
391: ; preds = %369, %372
%392 = icmp eq i64 %318, %218
br i1 %392, label %410, label %393
393: ; preds = %313, %391
%394 = phi i64 [ 0, %313 ], [ %318, %391 ]
br label %395
395: ; preds = %393, %395
%396 = phi i64 [ %403, %395 ], [ %394, %393 ]
%397 = getelementptr inbounds double, double* %210, i64 %396
%398 = load double, double* %397
%399 = getelementptr inbounds double, double* %211, i64 %396
%400 = load double, double* %399
%401 = fadd double %398, %400
%402 = getelementptr inbounds double, double* %213, i64 %396
store double %401, double* %402
%403 = add nuw nsw i64 %396, 1
%404 = icmp eq i64 %403, %315
br i1 %404, label %410, label %395
405: ; preds = %209
%406 = call i32 @free(double* %28)
%407 = call i32 @free(double* %30)
%408 = call i32 @i_conv(double* %29, i32 %26, double* %210, i32 %26, double* %71, i32 %69)
%409 = call i32 @i_conv(double* %31, i32 %26, double* %211, i32 %26, double* %72, i32 %69)
br label %410
410: ; preds = %395, %391, %405, %308
%411 = call i32 @free(double* %29)
%412 = call i32 @free(double* %31)
%413 = call i32 @free(double* %210)
%414 = call i32 @free(double* %211)
%415 = call i32 @free(double* %71)
%416 = call i32 @free(double* %72)
%417 = add i32 %69, %67
%418 = xor i32 %417, -1
%419 = add i32 %418, %2
%420 = icmp slt i32 %419, %4
br i1 %420, label %421, label %517
421: ; preds = %410
%422 = sext i32 %419 to i64
%423 = add i32 %67, %4
%424 = add i32 %423, %69
%425 = sub i32 %424, %2
%426 = zext i32 %425 to i64
%427 = add nuw nsw i64 %426, 1
%428 = icmp ult i32 %425, 3
br i1 %428, label %515, label %429
429: ; preds = %421
%430 = and i64 %427, 8589934588
%431 = add nsw i64 %430, %422
%432 = add nsw i64 %430, -4
%433 = lshr exact i64 %432, 2
%434 = add nuw nsw i64 %433, 1
%435 = and i64 %434, 1
%436 = icmp eq i64 %432, 0
br i1 %436, label %488, label %437
437: ; preds = %429
%438 = and i64 %434, 9223372036854775806
br label %439
439: ; preds = %439, %437
%440 = phi i64 [ 0, %437 ], [ %485, %439 ]
%441 = phi i64 [ 0, %437 ], [ %486, %439 ]
%442 = add i64 %440, %422
%443 = getelementptr inbounds double, double* %212, i64 %442
%444 = bitcast double* %443 to <2 x double>*
%445 = load <2 x double>, <2 x double>* %444
%446 = getelementptr inbounds double, double* %443, i64 2
%447 = bitcast double* %446 to <2 x double>*
%448 = load <2 x double>, <2 x double>* %447
%449 = getelementptr inbounds double, double* %213, i64 %442
%450 = bitcast double* %449 to <2 x double>*
%451 = load <2 x double>, <2 x double>* %450
%452 = getelementptr inbounds double, double* %449, i64 2
%453 = bitcast double* %452 to <2 x double>*
%454 = load <2 x double>, <2 x double>* %453
%455 = fadd <2 x double> %445, %451
%456 = fadd <2 x double> %448, %454
%457 = fmul <2 x double> %455, <double 5.000000e-01, double 5.000000e-01>
%458 = fmul <2 x double> %456, <double 5.000000e-01, double 5.000000e-01>
%459 = getelementptr inbounds double, double* %3, i64 %440
%460 = bitcast double* %459 to <2 x double>*
store <2 x double> %457, <2 x double>* %460
%461 = getelementptr inbounds double, double* %459, i64 2
%462 = bitcast double* %461 to <2 x double>*
store <2 x double> %458, <2 x double>* %462
%463 = or i64 %440, 4
%464 = add i64 %463, %422
%465 = getelementptr inbounds double, double* %212, i64 %464
%466 = bitcast double* %465 to <2 x double>*
%467 = load <2 x double>, <2 x double>* %466
%468 = getelementptr inbounds double, double* %465, i64 2
%469 = bitcast double* %468 to <2 x double>*
%470 = load <2 x double>, <2 x double>* %469
%471 = getelementptr inbounds double, double* %213, i64 %464
%472 = bitcast double* %471 to <2 x double>*
%473 = load <2 x double>, <2 x double>* %472
%474 = getelementptr inbounds double, double* %471, i64 2
%475 = bitcast double* %474 to <2 x double>*
%476 = load <2 x double>, <2 x double>* %475
%477 = fadd <2 x double> %467, %473
%478 = fadd <2 x double> %470, %476
%479 = fmul <2 x double> %477, <double 5.000000e-01, double 5.000000e-01>
%480 = fmul <2 x double> %478, <double 5.000000e-01, double 5.000000e-01>
%481 = getelementptr inbounds double, double* %3, i64 %463
%482 = bitcast double* %481 to <2 x double>*
store <2 x double> %479, <2 x double>* %482
%483 = getelementptr inbounds double, double* %481, i64 2
%484 = bitcast double* %483 to <2 x double>*
store <2 x double> %480, <2 x double>* %484
%485 = add nuw i64 %440, 8
%486 = add i64 %441, 2
%487 = icmp eq i64 %486, %438
br i1 %487, label %488, label %439
488: ; preds = %439, %429
%489 = phi i64 [ 0, %429 ], [ %485, %439 ]
%490 = icmp eq i64 %435, 0
br i1 %490, label %513, label %491
491: ; preds = %488
%492 = add i64 %489, %422
%493 = getelementptr inbounds double, double* %212, i64 %492
%494 = bitcast double* %493 to <2 x double>*
%495 = load <2 x double>, <2 x double>* %494
%496 = getelementptr inbounds double, double* %493, i64 2
%497 = bitcast double* %496 to <2 x double>*
%498 = load <2 x double>, <2 x double>* %497
%499 = getelementptr inbounds double, double* %213, i64 %492
%500 = bitcast double* %499 to <2 x double>*
%501 = load <2 x double>, <2 x double>* %500
%502 = getelementptr inbounds double, double* %499, i64 2
%503 = bitcast double* %502 to <2 x double>*
%504 = load <2 x double>, <2 x double>* %503
%505 = fadd <2 x double> %495, %501
%506 = fadd <2 x double> %498, %504
%507 = fmul <2 x double> %505, <double 5.000000e-01, double 5.000000e-01>
%508 = fmul <2 x double> %506, <double 5.000000e-01, double 5.000000e-01>
%509 = getelementptr inbounds double, double* %3, i64 %489
%510 = bitcast double* %509 to <2 x double>*
store <2 x double> %507, <2 x double>* %510
%511 = getelementptr inbounds double, double* %509, i64 2
%512 = bitcast double* %511 to <2 x double>*
store <2 x double> %508, <2 x double>* %512
br label %513
513: ; preds = %488, %491
%514 = icmp eq i64 %427, %430
br i1 %514, label %517, label %515
515: ; preds = %421, %513
%516 = phi i64 [ %422, %421 ], [ %431, %513 ]
br label %584
517: ; preds = %584, %513, %410
%518 = icmp sgt i32 %419, 0
br i1 %518, label %519, label %622
519: ; preds = %517
%520 = zext i32 %419 to i64
%521 = icmp ult i32 %419, 4
br i1 %521, label %563, label %522
522: ; preds = %519
%523 = add nsw i64 %520, -1
%524 = add i32 %67, %69
%525 = add i32 %524, 1
%526 = trunc i64 %523 to i32
%527 = add i32 %525, %526
%528 = icmp slt i32 %527, %525
%529 = icmp ugt i64 %523, 4294967295
%530 = or i1 %528, %529
br i1 %530, label %563, label %531
531: ; preds = %522
%532 = and i64 %520, 4294967292
br label %533
533: ; preds = %533, %531
%534 = phi i64 [ 0, %531 ], [ %559, %533 ]
%535 = getelementptr inbounds double, double* %212, i64 %534
%536 = bitcast double* %535 to <2 x double>*
%537 = load <2 x double>, <2 x double>* %536
%538 = getelementptr inbounds double, double* %535, i64 2
%539 = bitcast double* %538 to <2 x double>*
%540 = load <2 x double>, <2 x double>* %539
%541 = getelementptr inbounds double, double* %213, i64 %534
%542 = bitcast double* %541 to <2 x double>*
%543 = load <2 x double>, <2 x double>* %542
%544 = getelementptr inbounds double, double* %541, i64 2
%545 = bitcast double* %544 to <2 x double>*
%546 = load <2 x double>, <2 x double>* %545
%547 = fadd <2 x double> %537, %543
%548 = fadd <2 x double> %540, %546
%549 = fmul <2 x double> %547, <double 5.000000e-01, double 5.000000e-01>
%550 = fmul <2 x double> %548, <double 5.000000e-01, double 5.000000e-01>
%551 = trunc i64 %534 to i32
%552 = or i32 %551, 1
%553 = add i32 %417, %552
%554 = sext i32 %553 to i64
%555 = getelementptr inbounds double, double* %3, i64 %554
%556 = bitcast double* %555 to <2 x double>*
store <2 x double> %549, <2 x double>* %556
%557 = getelementptr inbounds double, double* %555, i64 2
%558 = bitcast double* %557 to <2 x double>*
store <2 x double> %550, <2 x double>* %558
%559 = add nuw i64 %534, 4
%560 = icmp eq i64 %559, %532
br i1 %560, label %561, label %533
561: ; preds = %533
%562 = icmp eq i64 %532, %520
br i1 %562, label %622, label %563
563: ; preds = %522, %519, %561
%564 = phi i64 [ 0, %522 ], [ 0, %519 ], [ %532, %561 ]
%565 = xor i64 %564, -1
%566 = and i64 %520, 1
%567 = icmp eq i64 %566, 0
br i1 %567, label %580, label %568
568: ; preds = %563
%569 = getelementptr inbounds double, double* %212, i64 %564
%570 = load double, double* %569
%571 = getelementptr inbounds double, double* %213, i64 %564
%572 = load double, double* %571
%573 = fadd double %570, %572
%574 = fmul double %573, 5.000000e-01
%575 = or i64 %564, 1
%576 = trunc i64 %575 to i32
%577 = add i32 %417, %576
%578 = sext i32 %577 to i64
%579 = getelementptr inbounds double, double* %3, i64 %578
store double %574, double* %579
br label %580
580: ; preds = %568, %563
%581 = phi i64 [ %564, %563 ], [ %575, %568 ]
%582 = sub nsw i64 0, %520
%583 = icmp eq i64 %565, %582
br i1 %583, label %622, label %597
584: ; preds = %515, %584
%585 = phi i64 [ %594, %584 ], [ %516, %515 ]
%586 = getelementptr inbounds double, double* %212, i64 %585
%587 = load double, double* %586
%588 = getelementptr inbounds double, double* %213, i64 %585
%589 = load double, double* %588
%590 = fadd double %587, %589
%591 = fmul double %590, 5.000000e-01
%592 = sub nsw i64 %585, %422
%593 = getelementptr inbounds double, double* %3, i64 %592
store double %591, double* %593
%594 = add nsw i64 %585, 1
%595 = trunc i64 %594 to i32
%596 = icmp eq i32 %595, %4
br i1 %596, label %517, label %584
597: ; preds = %580, %597
%598 = phi i64 [ %616, %597 ], [ %581, %580 ]
%599 = getelementptr inbounds double, double* %212, i64 %598
%600 = load double, double* %599
%601 = getelementptr inbounds double, double* %213, i64 %598
%602 = load double, double* %601
%603 = fadd double %600, %602
%604 = fmul double %603, 5.000000e-01
%605 = add nuw nsw i64 %598, 1
%606 = trunc i64 %605 to i32
%607 = add i32 %417, %606
%608 = sext i32 %607 to i64
%609 = getelementptr inbounds double, double* %3, i64 %608
store double %604, double* %609
%610 = getelementptr inbounds double, double* %212, i64 %605
%611 = load double, double* %610
%612 = getelementptr inbounds double, double* %213, i64 %605
%613 = load double, double* %612
%614 = fadd double %611, %613
%615 = fmul double %614, 5.000000e-01
%616 = add nuw nsw i64 %598, 2
%617 = trunc i64 %616 to i32
%618 = add i32 %417, %617
%619 = sext i32 %618 to i64
%620 = getelementptr inbounds double, double* %3, i64 %619
store double %615, double* %620
%621 = icmp eq i64 %616, %520
br i1 %621, label %622, label %597
622: ; preds = %580, %597, %561, %517
%623 = call i32 @free(double* %212)
%624 = call i32 @free(double* %213)
ret void
}