#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*/ free(double *);
double *malloc(int);
int /*<<< orphan*/ matrix_tran(double *, int, int, double *, int, int);
void dyadup_2D_feed_even(double *matrixIn, int matrixInRow, int matrixInCol,
                         double *matrixOut, int matrixOutRow,
                         int matrixOutCol) {
  int row, col;
  double *matrixInTemp, *matrixOutPre, *matrixOutTemp;
  matrixInTemp = malloc(matrixInRow * matrixInCol * sizeof(double));
  matrix_tran(matrixIn, matrixInCol, matrixInRow, matrixInTemp, matrixOutCol,
              matrixInRow);
  matrixOutPre = malloc(matrixOutRow * matrixInCol * sizeof(double));
  for (row = 0; row < matrixInRow; row++) {
    for (col = 0; col < matrixInCol; col++) {
      matrixOutPre[col + (2 * row + 1) * matrixInCol] =
          matrixInTemp[col + row * matrixInCol];
      matrixOutPre[col + 2 * row * matrixInCol] = 0;
    }
  }
  for (col = 0; col < matrixInCol; col++)
    matrixOutPre[col + (matrixOutRow - 1) * matrixInCol] = 0;
  free(matrixInTemp);
  matrixOutTemp = malloc(matrixOutRow * matrixInCol * sizeof(double));
  matrix_tran(matrixOutPre, matrixOutRow, matrixInCol, matrixOutTemp,
              matrixInRow, matrixOutCol);
  free(matrixOutPre);
  for (col = 0; col < matrixInCol; col++) {
    for (row = 0; row < matrixOutRow; row++) {
      matrixOut[row + (2 * col + 1) * matrixOutRow] =
          matrixOutTemp[row + col * matrixOutRow];
      matrixOut[row + 2 * col * matrixOutRow] = 0;
    }
  }
  for (row = 0; row < matrixOutRow; row++)
    matrixOut[row + (matrixOutCol - 1) * matrixOutRow] = 0;
  free(matrixOutTemp);
  return;
}


x86 assembly (clang, -O0):
<dyadup_2D_feed_even>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x20(%rbp),%r8d
mov    -0xc(%rbp),%r9d
call   1050 <matrix_tran@plt>
mov    -0x1c(%rbp),%eax
imul   -0x10(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1234 <dyadup_2D_feed_even+0x104>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1221 <dyadup_2D_feed_even+0xf1>
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%edx
imul   -0x10(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%edx
shl    $0x1,%edx
add    $0x1,%edx
imul   -0x10(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%edx
shl    $0x1,%edx
imul   -0x10(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11b3 <dyadup_2D_feed_even+0x83>
jmp    1226 <dyadup_2D_feed_even+0xf6>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a0 <dyadup_2D_feed_even+0x70>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1273 <dyadup_2D_feed_even+0x143>
mov    -0x38(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    -0x1c(%rbp),%edx
sub    $0x1,%edx
imul   -0x10(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    123b <dyadup_2D_feed_even+0x10b>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
imul   -0x10(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x40(%rbp),%rcx
mov    -0xc(%rbp),%r8d
mov    -0x20(%rbp),%r9d
call   1050 <matrix_tran@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1353 <dyadup_2D_feed_even+0x223>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1340 <dyadup_2D_feed_even+0x210>
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%edx
imul   -0x1c(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%edx
shl    $0x1,%edx
add    $0x1,%edx
imul   -0x1c(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%edx
shl    $0x1,%edx
imul   -0x1c(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12d2 <dyadup_2D_feed_even+0x1a2>
jmp    1345 <dyadup_2D_feed_even+0x215>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12bf <dyadup_2D_feed_even+0x18f>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1392 <dyadup_2D_feed_even+0x262>
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%edx
sub    $0x1,%edx
imul   -0x1c(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    135a <dyadup_2D_feed_even+0x22a>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dyadup_2D_feed_even>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9d,%r15d
mov    %r8d,%ebp
mov    %rcx,0x58(%rsp)
mov    %edx,%ebx
mov    %esi,%r12d
mov    %rdi,%r14
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
mov    %rax,0x98(%rsp)
mov    %esi,%edi
imul   %edx,%edi
shl    $0x3,%edi
call   1050 <malloc@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %r12d,%edx
mov    %rax,0x8(%rsp)
mov    %rax,%rcx
mov    %r15d,0x3c(%rsp)
mov    %r15d,%r8d
mov    %r12d,%r9d
call   1060 <matrix_tran@plt>
mov    %ebx,%edi
imul   %ebp,%edi
shl    $0x3,%edi
mov    %edi,0x94(%rsp)
call   1050 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    %ebx,%r13d
mov    %r12d,0x38(%rsp)
test   %r12d,%r12d
mov    %rbp,0x50(%rsp)
jle    14cc <dyadup_2D_feed_even+0x38c>
movslq %ebx,%rdx
mov    0x38(%rsp),%eax
mov    %rax,0x88(%rsp)
lea    (%rbx,%rbx,1),%eax
mov    %rax,0x30(%rsp)
mov    0x18(%rsp),%rcx
lea    (%rcx,%r13,8),%rax
mov    %rax,0x80(%rsp)
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x70(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x68(%rsp)
mov    %rax,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %rsi,%rax
mov    %rsi,0xb0(%rsp)
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
and    %rax,%rsi
mov    %rsi,0xa8(%rsp)
mov    %r13,%rax
neg    %rax
mov    %rax,0x48(%rsp)
mov    0x8(%rsp),%r12
lea    0x30(%r12),%r10
mov    %rdx,0x10(%rsp)
lea    0x0(,%rdx,8),%rax
mov    %rax,0x60(%rsp)
lea    0x30(%rcx),%rax
mov    %rax,0xa0(%rsp)
lea    0x8(%rcx),%rax
mov    %rax,0x78(%rsp)
add    $0x8,%r12
xor    %r11d,%r11d
xorps  %xmm0,%xmm0
mov    %ebx,%esi
xor    %r9d,%r9d
mov    %rbx,0x40(%rsp)
jmp    12b7 <dyadup_2D_feed_even+0x177>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r9
mov    0x60(%rsp),%rcx
add    %rcx,%r10
mov    0x30(%rsp),%rax
add    %eax,%esi
add    %eax,%r11d
add    %rcx,%r12
cmp    0x88(%rsp),%r9
je     14cc <dyadup_2D_feed_even+0x38c>
test   %ebx,%ebx
jle    1290 <dyadup_2D_feed_even+0x150>
movslq %r11d,%rax
mov    %rax,0x28(%rsp)
movslq %esi,%rax
mov    %rax,0x20(%rsp)
mov    %r9,%rdi
imul   0x10(%rsp),%rdi
lea    (%r9,%r9,1),%eax
lea    (%r9,%r9,1),%ecx
add    $0x1,%ecx
imul   %ebx,%ecx
imul   %ebx,%eax
movslq %ecx,%r14
movslq %eax,%r8
cmp    $0x4,%ebx
jae    1300 <dyadup_2D_feed_even+0x1c0>
xor    %r15d,%r15d
jmp    1420 <dyadup_2D_feed_even+0x2e0>
nopl   0x0(%rax,%rax,1)
mov    %r9,%rdx
imul   0x30(%rsp),%rdx
lea    (%rdx,%rbx,1),%eax
cltq
mov    0x18(%rsp),%r15
lea    (%r15,%rax,8),%rbx
movslq %edx,%rdx
mov    0x80(%rsp),%rcx
lea    (%rcx,%rdx,8),%rbp
cmp    %rbp,%rbx
jae    134a <dyadup_2D_feed_even+0x20a>
lea    (%rcx,%rax,8),%rax
lea    (%r15,%rdx,8),%rdx
cmp    %rax,%rdx
jae    134a <dyadup_2D_feed_even+0x20a>
xor    %r15d,%r15d
mov    0x50(%rsp),%rbp
mov    0x40(%rsp),%rbx
jmp    1420 <dyadup_2D_feed_even+0x2e0>
cmpq   $0x0,0x68(%rsp)
je     14b7 <dyadup_2D_feed_even+0x377>
mov    0xa0(%rsp),%rax
mov    0x20(%rsp),%rcx
lea    (%rax,%rcx,8),%rbp
mov    0x28(%rsp),%rcx
lea    (%rax,%rcx,8),%rdx
mov    0xa8(%rsp),%rbx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movups -0x30(%r10,%rax,8),%xmm1
movups -0x20(%r10,%rax,8),%xmm2
movups %xmm1,-0x30(%rbp,%rax,8)
movups %xmm2,-0x20(%rbp,%rax,8)
movups %xmm0,-0x30(%rdx,%rax,8)
movups %xmm0,-0x20(%rdx,%rax,8)
movups -0x10(%r10,%rax,8),%xmm1
movups (%r10,%rax,8),%xmm2
movups %xmm1,-0x10(%rbp,%rax,8)
movups %xmm2,0x0(%rbp,%rax,8)
movups %xmm0,-0x10(%rdx,%rax,8)
movups %xmm0,(%rdx,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rbx
jne    1380 <dyadup_2D_feed_even+0x240>
testb  $0x1,0xb0(%rsp)
01
je     1401 <dyadup_2D_feed_even+0x2c1>
lea    (%rax,%rdi,1),%rdx
mov    0x8(%rsp),%rbx
movups (%rbx,%rdx,8),%xmm1
movups 0x10(%rbx,%rdx,8),%xmm2
lea    (%rax,%r14,1),%rdx
movups %xmm1,(%r15,%rdx,8)
movups %xmm2,0x10(%r15,%rdx,8)
add    %r8,%rax
movups %xmm0,(%r15,%rax,8)
movups %xmm0,0x10(%r15,%rax,8)
mov    0x70(%rsp),%rax
mov    %rax,%r15
cmp    %r13,%rax
mov    0x50(%rsp),%rbp
mov    0x40(%rsp),%rbx
je     1290 <dyadup_2D_feed_even+0x150>
nopl   0x0(%rax)
mov    %r15,%rax
test   $0x1,%r13b
je     1456 <dyadup_2D_feed_even+0x316>
add    %r15,%rdi
mov    0x8(%rsp),%rax
movsd  (%rax,%rdi,8),%xmm1
add    %r15,%r14
mov    0x18(%rsp),%rax
movsd  %xmm1,(%rax,%r14,8)
add    %r15,%r8
movq   $0x0,(%rax,%r8,8)
mov    %r15,%rax
or     $0x1,%rax
not    %r15
cmp    0x48(%rsp),%r15
je     1290 <dyadup_2D_feed_even+0x150>
mov    0x78(%rsp),%rdx
mov    0x28(%rsp),%rcx
lea    (%rdx,%rcx,8),%rcx
mov    0x20(%rsp),%rdi
lea    (%rdx,%rdi,8),%rdx
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%r12,%rax,8),%xmm1
movsd  %xmm1,-0x8(%rdx,%rax,8)
movq   $0x0,-0x8(%rcx,%rax,8)
movsd  (%r12,%rax,8),%xmm1
movsd  %xmm1,(%rdx,%rax,8)
movq   $0x0,(%rcx,%rax,8)
add    $0x2,%rax
cmp    %rax,%r13
jne    1480 <dyadup_2D_feed_even+0x340>
jmp    1290 <dyadup_2D_feed_even+0x150>
xor    %eax,%eax
testb  $0x1,0xb0(%rsp)
01
jne    13d2 <dyadup_2D_feed_even+0x292>
jmp    1401 <dyadup_2D_feed_even+0x2c1>
test   %ebx,%ebx
mov    0x18(%rsp),%r14
jle    14f0 <dyadup_2D_feed_even+0x3b0>
lea    -0x1(%rbp),%eax
imul   %ebx,%eax
cltq
lea    (%r14,%rax,8),%rdi
lea    0x0(,%r13,8),%rdx
xor    %esi,%esi
call   1040 <memset@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x94(%rsp),%edi
call   1050 <malloc@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %rax,0x10(%rsp)
mov    %rax,%rcx
mov    0x38(%rsp),%r8d
mov    0x3c(%rsp),%r9d
call   1060 <matrix_tran@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %ebp,%edx
test   %ebx,%ebx
jle    1819 <dyadup_2D_feed_even+0x6d9>
movslq %ebp,%rbx
lea    0x0(%rbp,%rbp,1),%eax
mov    %rax,0x30(%rsp)
mov    0x58(%rsp),%rax
lea    (%rax,%rdx,8),%rcx
mov    %rcx,0x8(%rsp)
mov    %edx,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,0x80(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0x78(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rsi
mov    %rcx,0x70(%rsp)
and    %rcx,0x98(%rsp)
mov    %rdx,%rcx
neg    %rcx
mov    %rcx,0x18(%rsp)
mov    0x10(%rsp),%r12
lea    0x30(%r12),%rdi
lea    0x0(,%rbx,8),%rcx
mov    %rcx,0x88(%rsp)
lea    0x30(%rax),%rcx
mov    %rcx,0x68(%rsp)
add    $0x8,%rax
mov    %rax,0x40(%rsp)
add    $0x8,%r12
xor    %r14d,%r14d
xorps  %xmm0,%xmm0
mov    %ebp,%r9d
xor    %r10d,%r10d
mov    %rbx,0x48(%rsp)
jmp    15f6 <dyadup_2D_feed_even+0x4b6>
nopl   0x0(%rax)
add    $0x1,%r10
mov    0x88(%rsp),%rcx
add    %rcx,%rdi
mov    0x30(%rsp),%rax
add    %eax,%r9d
add    %eax,%r14d
add    %rcx,%r12
cmp    %r13,%r10
je     1819 <dyadup_2D_feed_even+0x6d9>
test   %ebp,%ebp
jle    15d0 <dyadup_2D_feed_even+0x490>
movslq %r14d,%rax
mov    %rax,0x60(%rsp)
movslq %r9d,%rax
mov    %rax,0x28(%rsp)
mov    %r10,%r8
imul   %rbx,%r8
lea    (%r10,%r10,1),%eax
lea    (%r10,%r10,1),%ecx
add    $0x1,%ecx
imul   %ebp,%ecx
imul   %ebp,%eax
movslq %ecx,%r15
movslq %eax,%rcx
cmp    $0x4,%ebp
jae    1640 <dyadup_2D_feed_even+0x500>
xor    %r11d,%r11d
jmp    1760 <dyadup_2D_feed_even+0x620>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rcx,0x20(%rsp)
mov    %r10,%rcx
imul   0x30(%rsp),%rcx
lea    (%rcx,%rbp,1),%eax
cltq
mov    0x58(%rsp),%r11
lea    (%r11,%rax,8),%rsi
movslq %ecx,%rcx
mov    0x8(%rsp),%rbx
lea    (%rbx,%rcx,8),%rbp
cmp    %rbp,%rsi
jae    1691 <dyadup_2D_feed_even+0x551>
lea    (%rbx,%rax,8),%rax
lea    (%r11,%rcx,8),%rcx
cmp    %rax,%rcx
jae    1691 <dyadup_2D_feed_even+0x551>
xor    %r11d,%r11d
mov    0x50(%rsp),%rbp
mov    0x48(%rsp),%rbx
mov    0x20(%rsp),%rcx
jmp    1760 <dyadup_2D_feed_even+0x620>
cmpq   $0x0,0x78(%rsp)
je     1807 <dyadup_2D_feed_even+0x6c7>
mov    0x68(%rsp),%rax
mov    0x28(%rsp),%rcx
lea    (%rax,%rcx,8),%rbp
mov    0x60(%rsp),%rcx
lea    (%rax,%rcx,8),%rsi
mov    0x98(%rsp),%rcx
xor    %eax,%eax
xchg   %ax,%ax
movups -0x30(%rdi,%rax,8),%xmm1
movups -0x20(%rdi,%rax,8),%xmm2
movups %xmm1,-0x30(%rbp,%rax,8)
movups %xmm2,-0x20(%rbp,%rax,8)
movups %xmm0,-0x30(%rsi,%rax,8)
movups %xmm0,-0x20(%rsi,%rax,8)
movups -0x10(%rdi,%rax,8),%xmm1
movups (%rdi,%rax,8),%xmm2
movups %xmm1,-0x10(%rbp,%rax,8)
movups %xmm2,0x0(%rbp,%rax,8)
movups %xmm0,-0x10(%rsi,%rax,8)
movups %xmm0,(%rsi,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    16c0 <dyadup_2D_feed_even+0x580>
testb  $0x1,0x70(%rsp)
je     173c <dyadup_2D_feed_even+0x5fc>
lea    (%rax,%r8,1),%rcx
mov    0x10(%rsp),%rsi
movups (%rsi,%rcx,8),%xmm1
movups 0x10(%rsi,%rcx,8),%xmm2
lea    (%rax,%r15,1),%rcx
movups %xmm1,(%r11,%rcx,8)
movups %xmm2,0x10(%r11,%rcx,8)
add    0x20(%rsp),%rax
movups %xmm0,(%r11,%rax,8)
movups %xmm0,0x10(%r11,%rax,8)
mov    0x80(%rsp),%rax
mov    %rax,%r11
cmp    %rdx,%rax
mov    0x50(%rsp),%rbp
mov    0x48(%rsp),%rbx
mov    0x20(%rsp),%rcx
je     15d0 <dyadup_2D_feed_even+0x490>
nop
mov    %r11,%rax
test   $0x1,%dl
je     1796 <dyadup_2D_feed_even+0x656>
add    %r11,%r8
mov    0x10(%rsp),%rax
movsd  (%rax,%r8,8),%xmm1
add    %r11,%r15
mov    0x58(%rsp),%rax
movsd  %xmm1,(%rax,%r15,8)
add    %r11,%rcx
movq   $0x0,(%rax,%rcx,8)
mov    %r11,%rax
or     $0x1,%rax
not    %r11
cmp    0x18(%rsp),%r11
je     15d0 <dyadup_2D_feed_even+0x490>
mov    0x40(%rsp),%rsi
mov    0x60(%rsp),%rcx
lea    (%rsi,%rcx,8),%rcx
mov    %rbp,%r8
mov    %rbx,%rbp
mov    0x28(%rsp),%rbx
lea    (%rsi,%rbx,8),%rsi
mov    %rbp,%rbx
mov    %r8,%rbp
nopw   0x0(%rax,%rax,1)
movsd  -0x8(%r12,%rax,8),%xmm1
movsd  %xmm1,-0x8(%rsi,%rax,8)
movq   $0x0,-0x8(%rcx,%rax,8)
movsd  (%r12,%rax,8),%xmm1
movsd  %xmm1,(%rsi,%rax,8)
movq   $0x0,(%rcx,%rax,8)
add    $0x2,%rax
cmp    %rax,%rdx
jne    17d0 <dyadup_2D_feed_even+0x690>
jmp    15d0 <dyadup_2D_feed_even+0x490>
xor    %eax,%eax
testb  $0x1,0x70(%rsp)
jne    170b <dyadup_2D_feed_even+0x5cb>
jmp    173c <dyadup_2D_feed_even+0x5fc>
test   %ebp,%ebp
jle    183d <dyadup_2D_feed_even+0x6fd>
mov    0x3c(%rsp),%eax
add    $0xffffffff,%eax
imul   %ebp,%eax
cltq
mov    0x58(%rsp),%rcx
lea    (%rcx,%rax,8),%rdi
shl    $0x3,%rdx
xor    %esi,%esi
call   1040 <memset@plt>
mov    0x10(%rsp),%rdi
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @dyadup_2D_feed_even(double* %0, i32 %1, i32 %2, double* nocapture writeonly %3, i32 %4, i32 %5) {
%7 = shl i32 %1, 3
%8 = mul i32 %7, %2
%9 = tail call double* @malloc(i32 %8)
%10 = tail call i32 @matrix_tran(double* %0, i32 %2, i32 %1, double* %9, i32 %5, i32 %1)
%11 = shl i32 %2, 3
%12 = mul i32 %11, %4
%13 = tail call double* @malloc(i32 %12)
%14 = icmp sgt i32 %1, 0
br i1 %14, label %15, label %142
15: ; preds = %6
%16 = icmp sgt i32 %2, 0
%17 = sext i32 %2 to i64
%18 = zext i32 %1 to i64
%19 = zext i32 %2 to i64
%20 = shl i32 %2, 1
%21 = zext i32 %20 to i64
%22 = getelementptr double, double* %13, i64 %19
%23 = getelementptr double, double* %13, i64 %19
%24 = and i64 %19, 4294967292
%25 = add nsw i64 %24, -4
%26 = lshr exact i64 %25, 2
%27 = add nuw nsw i64 %26, 1
%28 = icmp ult i32 %2, 4
%29 = and i64 %19, 4294967292
%30 = and i64 %27, 1
%31 = icmp eq i64 %25, 0
%32 = and i64 %27, 9223372036854775806
%33 = icmp eq i64 %30, 0
%34 = icmp eq i64 %29, %19
%35 = and i64 %19, 1
%36 = icmp eq i64 %35, 0
%37 = sub nsw i64 0, %19
br label %38
38: ; preds = %15, %171
%39 = phi i64 [ 0, %15 ], [ %172, %171 ]
%40 = mul i64 %39, %21
%41 = trunc i64 %40 to i32
%42 = add i32 %41, %2
%43 = sext i32 %42 to i64
%44 = getelementptr double, double* %13, i64 %43
%45 = getelementptr double, double* %22, i64 %43
%46 = shl i64 %40, 32
%47 = ashr exact i64 %46, 32
%48 = getelementptr double, double* %13, i64 %47
%49 = getelementptr double, double* %23, i64 %47
br i1 %16, label %50, label %171
50: ; preds = %38
%51 = mul nsw i64 %39, %17
%52 = shl nuw nsw i64 %39, 1
%53 = trunc i64 %52 to i32
%54 = or i32 %53, 1
%55 = mul nsw i32 %54, %2
%56 = trunc i64 %52 to i32
%57 = mul nsw i32 %56, %2
%58 = sext i32 %55 to i64
%59 = sext i32 %57 to i64
br i1 %28, label %127, label %60
60: ; preds = %50
%61 = icmp ult double* %44, %49
%62 = icmp ult double* %48, %45
%63 = and i1 %61, %62
br i1 %63, label %127, label %64
64: ; preds = %60
br i1 %31, label %106, label %65
65: ; preds = %64, %65
%66 = phi i64 [ %103, %65 ], [ 0, %64 ]
%67 = phi i64 [ %104, %65 ], [ 0, %64 ]
%68 = add nsw i64 %66, %51
%69 = getelementptr inbounds double, double* %9, i64 %68
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = getelementptr inbounds double, double* %69, i64 2
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = add nsw i64 %66, %58
%76 = getelementptr inbounds double, double* %13, i64 %75
%77 = bitcast double* %76 to <2 x double>*
store <2 x double> %71, <2 x double>* %77
%78 = getelementptr inbounds double, double* %76, i64 2
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %74, <2 x double>* %79
%80 = add nsw i64 %66, %59
%81 = getelementptr inbounds double, double* %13, i64 %80
%82 = bitcast double* %81 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %82
%83 = getelementptr inbounds double, double* %81, i64 2
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %84
%85 = or i64 %66, 4
%86 = add nsw i64 %85, %51
%87 = getelementptr inbounds double, double* %9, i64 %86
%88 = bitcast double* %87 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = getelementptr inbounds double, double* %87, i64 2
%91 = bitcast double* %90 to <2 x double>*
%92 = load <2 x double>, <2 x double>* %91
%93 = add nsw i64 %85, %58
%94 = getelementptr inbounds double, double* %13, i64 %93
%95 = bitcast double* %94 to <2 x double>*
store <2 x double> %89, <2 x double>* %95
%96 = getelementptr inbounds double, double* %94, i64 2
%97 = bitcast double* %96 to <2 x double>*
store <2 x double> %92, <2 x double>* %97
%98 = add nsw i64 %85, %59
%99 = getelementptr inbounds double, double* %13, i64 %98
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %100
%101 = getelementptr inbounds double, double* %99, i64 2
%102 = bitcast double* %101 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %102
%103 = add nuw i64 %66, 8
%104 = add i64 %67, 2
%105 = icmp eq i64 %104, %32
br i1 %105, label %106, label %65
106: ; preds = %65, %64
%107 = phi i64 [ 0, %64 ], [ %103, %65 ]
br i1 %33, label %126, label %108
108: ; preds = %106
%109 = add nsw i64 %107, %51
%110 = getelementptr inbounds double, double* %9, i64 %109
%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 = add nsw i64 %107, %58
%117 = getelementptr inbounds double, double* %13, i64 %116
%118 = bitcast double* %117 to <2 x double>*
store <2 x double> %112, <2 x double>* %118
%119 = getelementptr inbounds double, double* %117, i64 2
%120 = bitcast double* %119 to <2 x double>*
store <2 x double> %115, <2 x double>* %120
%121 = add nsw i64 %107, %59
%122 = getelementptr inbounds double, double* %13, i64 %121
%123 = bitcast double* %122 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %123
%124 = getelementptr inbounds double, double* %122, i64 2
%125 = bitcast double* %124 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %125
br label %126
126: ; preds = %106, %108
br i1 %34, label %171, label %127
127: ; preds = %60, %50, %126
%128 = phi i64 [ 0, %60 ], [ 0, %50 ], [ %29, %126 ]
%129 = xor i64 %128, -1
br i1 %36, label %139, label %130
130: ; preds = %127
%131 = add nsw i64 %128, %51
%132 = getelementptr inbounds double, double* %9, i64 %131
%133 = load double, double* %132
%134 = add nsw i64 %128, %58
%135 = getelementptr inbounds double, double* %13, i64 %134
store double %133, double* %135
%136 = add nsw i64 %128, %59
%137 = getelementptr inbounds double, double* %13, i64 %136
store double 0.000000e+00, double* %137
%138 = or i64 %128, 1
br label %139
139: ; preds = %130, %127
%140 = phi i64 [ %128, %127 ], [ %138, %130 ]
%141 = icmp eq i64 %129, %37
br i1 %141, label %171, label %152
142: ; preds = %171, %6
%143 = icmp sgt i32 %2, 0
br i1 %143, label %144, label %174
144: ; preds = %142
%145 = add nsw i32 %4, -1
%146 = mul nsw i32 %145, %2
%147 = sext i32 %146 to i64
%148 = getelementptr double, double* %13, i64 %147
%149 = bitcast double* %148 to i8*
%150 = zext i32 %2 to i64
%151 = shl nuw nsw i64 %150, 3
br label %174
152: ; preds = %139, %152
%153 = phi i64 [ %169, %152 ], [ %140, %139 ]
%154 = add nsw i64 %153, %51
%155 = getelementptr inbounds double, double* %9, i64 %154
%156 = load double, double* %155
%157 = add nsw i64 %153, %58
%158 = getelementptr inbounds double, double* %13, i64 %157
store double %156, double* %158
%159 = add nsw i64 %153, %59
%160 = getelementptr inbounds double, double* %13, i64 %159
store double 0.000000e+00, double* %160
%161 = add nuw nsw i64 %153, 1
%162 = add nsw i64 %161, %51
%163 = getelementptr inbounds double, double* %9, i64 %162
%164 = load double, double* %163
%165 = add nsw i64 %161, %58
%166 = getelementptr inbounds double, double* %13, i64 %165
store double %164, double* %166
%167 = add nsw i64 %161, %59
%168 = getelementptr inbounds double, double* %13, i64 %167
store double 0.000000e+00, double* %168
%169 = add nuw nsw i64 %153, 2
%170 = icmp eq i64 %169, %19
br i1 %170, label %171, label %152
171: ; preds = %139, %152, %126, %38
%172 = add nuw nsw i64 %39, 1
%173 = icmp eq i64 %172, %18
br i1 %173, label %142, label %38
174: ; preds = %144, %142
%175 = tail call i32 @free(double* %9)
%176 = tail call double* @malloc(i32 %12)
%177 = tail call i32 @matrix_tran(double* %13, i32 %4, i32 %2, double* %176, i32 %1, i32 %5)
%178 = tail call i32 @free(double* %13)
br i1 %143, label %179, label %306
179: ; preds = %174
%180 = icmp sgt i32 %4, 0
%181 = sext i32 %4 to i64
%182 = zext i32 %2 to i64
%183 = zext i32 %4 to i64
%184 = shl i32 %4, 1
%185 = zext i32 %184 to i64
%186 = getelementptr double, double* %3, i64 %183
%187 = getelementptr double, double* %3, i64 %183
%188 = and i64 %183, 4294967292
%189 = add nsw i64 %188, -4
%190 = lshr exact i64 %189, 2
%191 = add nuw nsw i64 %190, 1
%192 = icmp ult i32 %4, 4
%193 = and i64 %183, 4294967292
%194 = and i64 %191, 1
%195 = icmp eq i64 %189, 0
%196 = and i64 %191, 9223372036854775806
%197 = icmp eq i64 %194, 0
%198 = icmp eq i64 %193, %183
%199 = and i64 %183, 1
%200 = icmp eq i64 %199, 0
%201 = sub nsw i64 0, %183
br label %202
202: ; preds = %179, %335
%203 = phi i64 [ 0, %179 ], [ %336, %335 ]
%204 = mul i64 %203, %185
%205 = trunc i64 %204 to i32
%206 = add i32 %205, %4
%207 = sext i32 %206 to i64
%208 = getelementptr double, double* %3, i64 %207
%209 = getelementptr double, double* %186, i64 %207
%210 = shl i64 %204, 32
%211 = ashr exact i64 %210, 32
%212 = getelementptr double, double* %3, i64 %211
%213 = getelementptr double, double* %187, i64 %211
br i1 %180, label %214, label %335
214: ; preds = %202
%215 = mul nsw i64 %203, %181
%216 = shl nuw nsw i64 %203, 1
%217 = trunc i64 %216 to i32
%218 = or i32 %217, 1
%219 = mul nsw i32 %218, %4
%220 = trunc i64 %216 to i32
%221 = mul nsw i32 %220, %4
%222 = sext i32 %219 to i64
%223 = sext i32 %221 to i64
br i1 %192, label %291, label %224
224: ; preds = %214
%225 = icmp ult double* %208, %213
%226 = icmp ult double* %212, %209
%227 = and i1 %225, %226
br i1 %227, label %291, label %228
228: ; preds = %224
br i1 %195, label %270, label %229
229: ; preds = %228, %229
%230 = phi i64 [ %267, %229 ], [ 0, %228 ]
%231 = phi i64 [ %268, %229 ], [ 0, %228 ]
%232 = add nsw i64 %230, %215
%233 = getelementptr inbounds double, double* %176, i64 %232
%234 = bitcast double* %233 to <2 x double>*
%235 = load <2 x double>, <2 x double>* %234
%236 = getelementptr inbounds double, double* %233, i64 2
%237 = bitcast double* %236 to <2 x double>*
%238 = load <2 x double>, <2 x double>* %237
%239 = add nsw i64 %230, %222
%240 = getelementptr inbounds double, double* %3, i64 %239
%241 = bitcast double* %240 to <2 x double>*
store <2 x double> %235, <2 x double>* %241
%242 = getelementptr inbounds double, double* %240, i64 2
%243 = bitcast double* %242 to <2 x double>*
store <2 x double> %238, <2 x double>* %243
%244 = add nsw i64 %230, %223
%245 = getelementptr inbounds double, double* %3, i64 %244
%246 = bitcast double* %245 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %246
%247 = getelementptr inbounds double, double* %245, i64 2
%248 = bitcast double* %247 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %248
%249 = or i64 %230, 4
%250 = add nsw i64 %249, %215
%251 = getelementptr inbounds double, double* %176, 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 = add nsw i64 %249, %222
%258 = getelementptr inbounds double, double* %3, i64 %257
%259 = bitcast double* %258 to <2 x double>*
store <2 x double> %253, <2 x double>* %259
%260 = getelementptr inbounds double, double* %258, i64 2
%261 = bitcast double* %260 to <2 x double>*
store <2 x double> %256, <2 x double>* %261
%262 = add nsw i64 %249, %223
%263 = getelementptr inbounds double, double* %3, i64 %262
%264 = bitcast double* %263 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %264
%265 = getelementptr inbounds double, double* %263, i64 2
%266 = bitcast double* %265 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %266
%267 = add nuw i64 %230, 8
%268 = add i64 %231, 2
%269 = icmp eq i64 %268, %196
br i1 %269, label %270, label %229
270: ; preds = %229, %228
%271 = phi i64 [ 0, %228 ], [ %267, %229 ]
br i1 %197, label %290, label %272
272: ; preds = %270
%273 = add nsw i64 %271, %215
%274 = getelementptr inbounds double, double* %176, i64 %273
%275 = bitcast double* %274 to <2 x double>*
%276 = load <2 x double>, <2 x double>* %275
%277 = getelementptr inbounds double, double* %274, i64 2
%278 = bitcast double* %277 to <2 x double>*
%279 = load <2 x double>, <2 x double>* %278
%280 = add nsw i64 %271, %222
%281 = getelementptr inbounds double, double* %3, i64 %280
%282 = bitcast double* %281 to <2 x double>*
store <2 x double> %276, <2 x double>* %282
%283 = getelementptr inbounds double, double* %281, i64 2
%284 = bitcast double* %283 to <2 x double>*
store <2 x double> %279, <2 x double>* %284
%285 = add nsw i64 %271, %223
%286 = getelementptr inbounds double, double* %3, i64 %285
%287 = bitcast double* %286 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %287
%288 = getelementptr inbounds double, double* %286, i64 2
%289 = bitcast double* %288 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %289
br label %290
290: ; preds = %270, %272
br i1 %198, label %335, label %291
291: ; preds = %224, %214, %290
%292 = phi i64 [ 0, %224 ], [ 0, %214 ], [ %193, %290 ]
%293 = xor i64 %292, -1
br i1 %200, label %303, label %294
294: ; preds = %291
%295 = add nsw i64 %292, %215
%296 = getelementptr inbounds double, double* %176, i64 %295
%297 = load double, double* %296
%298 = add nsw i64 %292, %222
%299 = getelementptr inbounds double, double* %3, i64 %298
store double %297, double* %299
%300 = add nsw i64 %292, %223
%301 = getelementptr inbounds double, double* %3, i64 %300
store double 0.000000e+00, double* %301
%302 = or i64 %292, 1
br label %303
303: ; preds = %294, %291
%304 = phi i64 [ %292, %291 ], [ %302, %294 ]
%305 = icmp eq i64 %293, %201
br i1 %305, label %335, label %316
306: ; preds = %335, %174
%307 = icmp sgt i32 %4, 0
br i1 %307, label %308, label %338
308: ; preds = %306
%309 = add nsw i32 %5, -1
%310 = mul nsw i32 %309, %4
%311 = sext i32 %310 to i64
%312 = getelementptr double, double* %3, i64 %311
%313 = bitcast double* %312 to i8*
%314 = zext i32 %4 to i64
%315 = shl nuw nsw i64 %314, 3
br label %338
316: ; preds = %303, %316
%317 = phi i64 [ %333, %316 ], [ %304, %303 ]
%318 = add nsw i64 %317, %215
%319 = getelementptr inbounds double, double* %176, i64 %318
%320 = load double, double* %319
%321 = add nsw i64 %317, %222
%322 = getelementptr inbounds double, double* %3, i64 %321
store double %320, double* %322
%323 = add nsw i64 %317, %223
%324 = getelementptr inbounds double, double* %3, i64 %323
store double 0.000000e+00, double* %324
%325 = add nuw nsw i64 %317, 1
%326 = add nsw i64 %325, %215
%327 = getelementptr inbounds double, double* %176, i64 %326
%328 = load double, double* %327
%329 = add nsw i64 %325, %222
%330 = getelementptr inbounds double, double* %3, i64 %329
store double %328, double* %330
%331 = add nsw i64 %325, %223
%332 = getelementptr inbounds double, double* %3, i64 %331
store double 0.000000e+00, double* %332
%333 = add nuw nsw i64 %317, 2
%334 = icmp eq i64 %333, %183
br i1 %334, label %335, label %316
335: ; preds = %303, %316, %290, %202
%336 = add nuw nsw i64 %203, 1
%337 = icmp eq i64 %336, %182
br i1 %337, label %306, label %202
338: ; preds = %308, %306
%339 = tail call i32 @free(double* %176)
ret void
}