#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*/ NNTProduct(double *, int, int, int, int, double *, int, int,
                              int, int, int, int, int, double, double, double *,
                              int, int, int, int, int, int, int);
int ceil(double);
int /*<<< orphan*/ dsyrk_(char *, char *, int *, int *, double *, double *,
                          int *, double *, double *, int *);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ getSubMatrix(double *, int, int, int, int, double *, int,
                                int, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ putSubMatrix(double *, int, int, int, int, double *, int,
                                int, int);
void AATProduct(double *m1, int r1, int ro1, int c1, int co1, int n1, int n2,
                double K1, double K2, double *result, int rr, int ror, int cr,
                int cor, int nCores, int posIni, int numTh) {
  if (nCores <= 1) {
    if (n1 > 0 & n2 > 0) {
      double *m1T = (double *)malloc(n1 * n2 * sizeof(double));
      double *mresultT = (double *)malloc(n1 * n1 * sizeof(double));
      getSubMatrix(m1, r1, c1, ro1, co1, m1T, n1, n2, nCores);
      getSubMatrix(result, rr, cr, ror, cor, mresultT, n1, n1, nCores);
      char transN = 'L';
      char transY = 'N';
      dsyrk_(&transN, &transY, &(n1), &(n2), &(K1), m1T, &(n1), &(K2), mresultT,
             &(n1));
      int i, j;
      for (i = 0; i < n1; i++) {
        for (j = i; j < n1; j++) {
          mresultT[j * n1 + i] = mresultT[i * n1 + j];
        }
      }
      putSubMatrix(result, rr, cr, ror, cor, mresultT, n1, n1, nCores);
      free(m1T);
      free(mresultT);
    }
  } else {
    int rows1A = ceil(0.5 * n1);
    int rows1B = n1 - rows1A;
    int cols1A = ceil(0.5 * n2);
    int cols1B = n2 - cols1A;
    if (numTh < posIni + nCores / 2) {
      AATProduct(m1, r1, ro1, c1, co1, rows1A, cols1A, K1, K2, result, rr, ror,
                 cr, cor, nCores / 2, posIni, numTh);
      AATProduct(m1, r1, ro1, c1, co1 + cols1A, rows1A, cols1B, K1, 1.0, result,
                 rr, ror, cr, cor, nCores / 2, posIni, numTh);
    } else {
      AATProduct(m1, r1, ro1 + rows1A, c1, co1, rows1B, cols1A, K1, K2, result,
                 rr, ror + rows1A, cr, cor + rows1A, nCores / 2,
                 posIni + nCores / 2, numTh);
      AATProduct(m1, r1, ro1 + rows1A, c1, co1 + cols1A, rows1B, cols1B, K1,
                 1.0, result, rr, ror + rows1A, cr, cor + rows1A, nCores / 2,
                 posIni + nCores / 2, numTh);
    }
    NNTProduct(m1, r1, ro1 + rows1A, c1, co1, m1, r1, ro1, c1, co1, rows1B,
               cols1A, rows1A, K1, K2, result, rr, ror + rows1A, cr, cor,
               nCores, posIni, numTh);
    NNTProduct(m1, r1, ro1 + rows1A, c1, co1 + cols1A, m1, r1, ro1, c1,
               co1 + cols1A, rows1B, cols1B, rows1A, K1, 1.0, result, rr,
               ror + rows1A, cr, cor, nCores, posIni, numTh);
  }
}


x86 assembly (clang, -O0):
<AATProduct>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x158,%rsp
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
mov    %edx,-0x38(%rbp)
mov    %ecx,-0x3c(%rbp)
mov    %r8d,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
movsd  %xmm0,-0x50(%rbp)
movsd  %xmm1,-0x58(%rbp)
cmpl   $0x1,0x40(%rbp)
jg     138f <AATProduct+0x20f>
cmpl   $0x0,-0x44(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,0x10(%rbp)
setg   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     138a <AATProduct+0x20a>
mov    -0x44(%rbp),%eax
imul   0x10(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x44(%rbp),%eax
imul   -0x44(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x40(%rbp),%r8d
mov    -0x60(%rbp),%r9
mov    -0x44(%rbp),%r11d
mov    0x10(%rbp),%r10d
mov    0x40(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <getSubMatrix@plt>
mov    0x18(%rbp),%rdi
mov    0x20(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x28(%rbp),%ecx
mov    0x38(%rbp),%r8d
mov    -0x68(%rbp),%r9
mov    -0x44(%rbp),%r11d
mov    -0x44(%rbp),%r10d
mov    0x40(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <getSubMatrix@plt>
movb   $0x4c,-0x69(%rbp)
movb   $0x4e,-0x6a(%rbp)
mov    -0x60(%rbp),%r9
mov    -0x68(%rbp),%r10
lea    -0x69(%rbp),%rdi
lea    -0x6a(%rbp),%rsi
lea    -0x44(%rbp),%rax
lea    0x10(%rbp),%rcx
lea    -0x50(%rbp),%r8
lea    -0x58(%rbp),%r11
mov    %rax,%rdx
mov    %rax,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   10a0 <dsyrk_@plt>
movl   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    1346 <AATProduct+0x1c6>
mov    -0x70(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    1333 <AATProduct+0x1b3>
mov    -0x68(%rbp),%rax
mov    -0x70(%rbp),%ecx
imul   -0x44(%rbp),%ecx
add    -0x74(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x68(%rbp),%rax
mov    -0x74(%rbp),%ecx
imul   -0x44(%rbp),%ecx
add    -0x70(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    12ed <AATProduct+0x16d>
jmp    1338 <AATProduct+0x1b8>
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    12db <AATProduct+0x15b>
mov    0x18(%rbp),%rdi
mov    0x20(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x28(%rbp),%ecx
mov    0x38(%rbp),%r8d
mov    -0x68(%rbp),%r9
mov    -0x44(%rbp),%r11d
mov    -0x44(%rbp),%r10d
mov    0x40(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1080 <putSubMatrix@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
jmp    18df <AATProduct+0x75f>
cvtsi2sdl -0x44(%rbp),%xmm1
movsd  0xc64(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <ceil@plt>
mov    %eax,-0x78(%rbp)
mov    -0x44(%rbp),%eax
sub    -0x78(%rbp),%eax
mov    %eax,-0x7c(%rbp)
cvtsi2sdl 0x10(%rbp),%xmm1
movsd  0xc42(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <ceil@plt>
mov    %eax,-0x80(%rbp)
mov    0x10(%rbp),%eax
sub    -0x80(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    0x50(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    0x48(%rbp),%ecx
mov    0x40(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
mov    %eax,%edx
mov    -0x88(%rbp),%eax
add    %edx,%ecx
cmp    %ecx,%eax
jge    154a <AATProduct+0x3ca>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%r8d
mov    -0x78(%rbp),%r9d
mov    -0x80(%rbp),%eax
mov    %eax,-0x9c(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12d
mov    0x28(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x38(%rbp),%ebx
mov    0x40(%rbp),%eax
mov    $0x2,%r10d
cltd
idiv   %r10d
mov    -0xa0(%rbp),%edx
mov    %eax,%r11d
mov    0x48(%rbp),%r10d
mov    0x50(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x9c(%rbp),%eax
mov    %eax,(%rsp)
mov    -0x98(%rbp),%eax
mov    %r13,0x8(%rsp)
mov    %r12d,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14d,0x20(%rsp)
mov    %ebx,0x28(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10d,0x38(%rsp)
mov    %eax,0x40(%rsp)
call   1040 <AATProduct@plt>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%r8d
add    -0x80(%rbp),%r8d
mov    -0x78(%rbp),%r9d
mov    -0x84(%rbp),%eax
mov    %eax,-0x90(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12d
mov    0x28(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x38(%rbp),%ebx
mov    0x40(%rbp),%eax
mov    $0x2,%r10d
cltd
idiv   %r10d
mov    -0x94(%rbp),%edx
mov    %eax,%r11d
mov    0x48(%rbp),%r10d
mov    0x50(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x90(%rbp),%eax
movsd  0xaf7(%rip),%xmm1
mov    %eax,(%rsp)
mov    -0x8c(%rbp),%eax
mov    %r13,0x8(%rsp)
mov    %r12d,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14d,0x20(%rsp)
mov    %ebx,0x28(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10d,0x38(%rsp)
mov    %eax,0x40(%rsp)
call   1040 <AATProduct@plt>
jmp    16d4 <AATProduct+0x554>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%eax
add    -0x78(%rbp),%eax
mov    %eax,-0xbc(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0xc0(%rbp)
mov    -0x40(%rbp),%r8d
mov    -0x7c(%rbp),%r9d
mov    -0x80(%rbp),%eax
mov    %eax,-0xb8(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12d
mov    0x28(%rbp),%r15d
add    -0x78(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x38(%rbp),%ebx
add    -0x78(%rbp),%ebx
mov    0x40(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%r11d
mov    0x48(%rbp),%r10d
mov    0x40(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0xc0(%rbp),%ecx
mov    -0xbc(%rbp),%edx
add    %eax,%r10d
mov    0x50(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0xb8(%rbp),%eax
mov    %eax,(%rsp)
mov    -0xb4(%rbp),%eax
mov    %r13,0x8(%rsp)
mov    %r12d,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14d,0x20(%rsp)
mov    %ebx,0x28(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10d,0x38(%rsp)
mov    %eax,0x40(%rsp)
call   1040 <AATProduct@plt>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%eax
add    -0x78(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x40(%rbp),%r8d
add    -0x80(%rbp),%r8d
mov    -0x7c(%rbp),%r9d
mov    -0x84(%rbp),%eax
mov    %eax,-0xa8(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12d
mov    0x28(%rbp),%r15d
add    -0x78(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x38(%rbp),%ebx
add    -0x78(%rbp),%ebx
mov    0x40(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%r11d
mov    0x48(%rbp),%r10d
mov    0x40(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0xb0(%rbp),%ecx
mov    -0xac(%rbp),%edx
add    %eax,%r10d
mov    0x50(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa8(%rbp),%eax
movsd  0x968(%rip),%xmm1
mov    %eax,(%rsp)
mov    -0xa4(%rbp),%eax
mov    %r13,0x8(%rsp)
mov    %r12d,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14d,0x20(%rsp)
mov    %ebx,0x28(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10d,0x38(%rsp)
mov    %eax,0x40(%rsp)
call   1040 <AATProduct@plt>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
add    -0x78(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%r8d
mov    -0x30(%rbp),%r9
mov    -0x34(%rbp),%eax
mov    %eax,-0x100(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0xfc(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0xf8(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0xf4(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0xf0(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0xec(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0xe8(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12d
mov    0x28(%rbp),%r15d
add    -0x78(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x38(%rbp),%ebx
mov    0x40(%rbp),%r11d
mov    0x48(%rbp),%r10d
mov    0x50(%rbp),%eax
mov    %eax,-0xe4(%rbp)
mov    -0x100(%rbp),%eax
mov    %eax,(%rsp)
mov    -0xfc(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0xf8(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0xf4(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0xf0(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0xec(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0xe8(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    -0xe4(%rbp),%eax
mov    %r13,0x38(%rsp)
mov    %r12d,0x40(%rsp)
mov    %r15d,0x48(%rsp)
mov    %r14d,0x50(%rsp)
mov    %ebx,0x58(%rsp)
mov    %r11d,0x60(%rsp)
mov    %r10d,0x68(%rsp)
mov    %eax,0x70(%rsp)
call   1090 <NNTProduct@plt>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
add    -0x78(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%r8d
add    -0x80(%rbp),%r8d
mov    -0x30(%rbp),%r9
mov    -0x34(%rbp),%eax
mov    %eax,-0xe0(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0xd8(%rbp)
mov    -0x40(%rbp),%eax
add    -0x80(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0xd0(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0xcc(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0xc8(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12d
mov    0x28(%rbp),%r15d
add    -0x78(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x38(%rbp),%ebx
mov    0x40(%rbp),%r11d
mov    0x48(%rbp),%r10d
mov    0x50(%rbp),%eax
mov    %eax,-0xc4(%rbp)
mov    -0xe0(%rbp),%eax
movsd  0x799(%rip),%xmm1
mov    %eax,(%rsp)
mov    -0xdc(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0xd8(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0xd4(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0xd0(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0xcc(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0xc8(%rbp),%eax
mov    %eax,0x30(%rsp)
mov    -0xc4(%rbp),%eax
mov    %r13,0x38(%rsp)
mov    %r12d,0x40(%rsp)
mov    %r15d,0x48(%rsp)
mov    %r14d,0x50(%rsp)
mov    %ebx,0x58(%rsp)
mov    %r11d,0x60(%rsp)
mov    %r10d,0x68(%rsp)
mov    %eax,0x70(%rsp)
call   1090 <NNTProduct@plt>
add    $0x158,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<AATProduct>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9d,%ebp
mov    %edx,%r12d
mov    %esi,%r13d
mov    %rdi,0x20(%rsp)
mov    0xf0(%rsp),%r14d
mov    0xd0(%rsp),%r15d
mov    0xc0(%rsp),%ebx
mov    %r9d,0x3c(%rsp)
movsd  %xmm0,0x80(%rsp)
movsd  %xmm1,0x78(%rsp)
cmp    $0x1,%r14d
jg     12dd <AATProduct+0x15d>
test   %ebp,%ebp
jle    17c1 <AATProduct+0x641>
test   %ebx,%ebx
jle    17c1 <AATProduct+0x641>
mov    %rcx,0x28(%rsp)
mov    %rbx,%r15
lea    0x0(,%rbp,8),%ebx
mov    %ebx,%edi
imul   %r15d,%edi
mov    %r8,0x8(%rsp)
call   1070 <malloc@plt>
mov    %rax,0x10(%rsp)
imul   %ebp,%ebx
mov    %ebx,%edi
call   1070 <malloc@plt>
sub    $0x8,%rsp
mov    0x28(%rsp),%rdi
mov    %r13d,%esi
mov    0x30(%rsp),%rdx
mov    %r12d,%ecx
mov    0x10(%rsp),%r8
mov    0x18(%rsp),%r12
mov    %r12,%r9
push   %r14
push   %r15
mov    %rax,%r15
push   %rbp
call   1060 <getSubMatrix@plt>
add    $0x18,%rsp
mov    0xd0(%rsp),%rdi
mov    0xd8(%rsp),%ebx
mov    %ebx,%esi
mov    0xe8(%rsp),%edx
mov    0xe0(%rsp),%ecx
mov    0xf0(%rsp),%r8d
mov    %r15,%r9
push   %r14
mov    %r12,%r14
push   %rbp
push   %rbp
call   1060 <getSubMatrix@plt>
add    $0x20,%rsp
movb   $0x4c,0x7(%rsp)
movb   $0x4e,0x6(%rsp)
lea    0x3c(%rsp),%rdx
lea    0x78(%rsp),%rax
lea    0x7(%rsp),%rdi
lea    0x6(%rsp),%rsi
lea    0xc0(%rsp),%rcx
lea    0x80(%rsp),%r8
mov    %r12,%r9
push   %rdx
push   %r15
push   %rax
push   %rdx
call   10a0 <dsyrk_@plt>
add    $0x20,%rsp
mov    0x3c(%rsp),%r10d
test   %r10d,%r10d
jle    1775 <AATProduct+0x5f5>
cmp    $0x1,%r10d
jne    1692 <AATProduct+0x512>
xor    %r11d,%r11d
jmp    172c <AATProduct+0x5ac>
movsd  %xmm1,0x40(%rsp)
movsd  %xmm0,0x10(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,0x28(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0xcfe(%rip),%xmm0
call   1050 <ceil@plt>
mov    %rax,0x48(%rsp)
sub    %eax,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0xce3(%rip),%xmm0
call   1050 <ceil@plt>
mov    0xf8(%rsp),%ecx
mov    %eax,%r10d
sub    %eax,%ebx
mov    %rbx,0x50(%rsp)
shr    %r14d
lea    (%r14,%rcx,1),%ebx
mov    0x100(%rsp),%eax
cmp    %eax,%ebx
mov    %r12,0x30(%rsp)
mov    %r13,0x68(%rsp)
mov    %r10,0x60(%rsp)
mov    %rbp,0x70(%rsp)
jle    147d <AATProduct+0x2fd>
sub    $0x8,%rsp
mov    0x28(%rsp),%rdi
mov    %r13d,%esi
mov    %r12d,%edx
mov    %r15,%r11
mov    0x30(%rsp),%r15
mov    %rcx,%rbx
mov    %r15d,%ecx
mov    0x10(%rsp),%r8
mov    0x50(%rsp),%r9
movsd  0x18(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
mov    0x108(%rsp),%eax
push   %rax
push   %rbx
push   %r14
mov    0x108(%rsp),%eax
push   %rax
mov    0x108(%rsp),%eax
push   %rax
mov    %r13,%rbx
mov    0x108(%rsp),%r13d
push   %r13
mov    %r11,%r13
push   %r11
mov    0x108(%rsp),%rax
push   %rax
push   %r10
mov    %r10,%r12
call   1040 <AATProduct@plt>
add    $0x50,%rsp
mov    %r13,%r10
mov    %r12d,%r8d
mov    0x8(%rsp),%r13
add    %r13d,%r8d
sub    $0x8,%rsp
movsd  0xc1a(%rip),%xmm1
mov    0x28(%rsp),%rdi
mov    %ebx,%esi
mov    0x38(%rsp),%rdx
mov    %r15d,%ecx
mov    %r8,0x60(%rsp)
mov    0x50(%rsp),%rbx
mov    %ebx,%r9d
movsd  0x18(%rsp),%xmm0
mov    0x108(%rsp),%eax
push   %rax
mov    0x108(%rsp),%eax
push   %rax
push   %r14
mov    0x108(%rsp),%eax
push   %rax
mov    0x108(%rsp),%eax
push   %rax
mov    0x108(%rsp),%r14d
push   %r14
push   %r10
push   0x108(%rsp)
push   0x98(%rsp)
call   1040 <AATProduct@plt>
movsd  0x90(%rsp),%xmm1
movsd  0x60(%rsp),%xmm0
mov    %r13,%r8
add    $0x50,%rsp
mov    0x30(%rsp),%rax
add    %ebx,%eax
mov    %eax,0x1c(%rsp)
mov    %ebx,%r10d
add    %r14d,%r10d
jmp    1580 <AATProduct+0x400>
mov    0x48(%rsp),%rax
lea    (%rax,%r12,1),%edx
mov    %edx,0x1c(%rsp)
mov    %r13,%rsi
mov    0xd8(%rsp),%r13d
add    %eax,%r13d
mov    %r15,%r11
mov    %eax,%r15d
mov    0xe8(%rsp),%eax
add    %eax,%r15d
sub    $0x8,%rsp
mov    0x28(%rsp),%rdi
mov    0x30(%rsp),%r12
mov    %r12d,%ecx
mov    0x10(%rsp),%r8
mov    %ebp,%r9d
movsd  0x18(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
mov    0x108(%rsp),%eax
push   %rax
push   %rbx
push   %r14
push   %r15
mov    0x108(%rsp),%eax
push   %rax
push   %r13
push   %r11
push   0x108(%rsp)
push   %r10
call   1040 <AATProduct@plt>
add    $0x50,%rsp
mov    0x60(%rsp),%rax
mov    %eax,%r8d
add    0x8(%rsp),%r8d
sub    $0x8,%rsp
movsd  0xaf7(%rip),%xmm1
mov    0x28(%rsp),%rdi
mov    0x70(%rsp),%rsi
mov    0x24(%rsp),%edx
mov    %r12d,%ecx
mov    %r8,0x60(%rsp)
mov    %ebp,%r9d
movsd  0x18(%rsp),%xmm0
mov    0x108(%rsp),%eax
push   %rax
push   %rbx
push   %r14
push   %r15
mov    0xf0(%rsp),%r15
mov    0x108(%rsp),%eax
push   %rax
push   %r13
mov    0x108(%rsp),%eax
push   %rax
push   %r15
push   0x98(%rsp)
call   1040 <AATProduct@plt>
movsd  0x90(%rsp),%xmm1
movsd  0x60(%rsp),%xmm0
mov    0x58(%rsp),%r8
add    $0x50,%rsp
mov    %r13d,%r10d
mov    0x30(%rsp),%r11
mov    0xf0(%rsp),%r14d
mov    %r14,%rbx
sub    $0x8,%rsp
mov    0x28(%rsp),%r15
mov    %r15,%rdi
mov    0x70(%rsp),%r14
mov    %r14d,%esi
mov    0x24(%rsp),%edx
mov    0x30(%rsp),%rbp
mov    %ebp,%ecx
mov    %r15,%r9
mov    0x108(%rsp),%eax
push   %rax
mov    0x108(%rsp),%r12d
push   %r12
push   %rbx
mov    0x108(%rsp),%ebx
push   %rbx
mov    0x108(%rsp),%eax
push   %rax
mov    %r10,0x38(%rsp)
push   %r10
mov    0x108(%rsp),%eax
push   %rax
mov    0x108(%rsp),%rax
push   %rax
mov    0x90(%rsp),%r13
push   %r13
push   0xb0(%rsp)
push   0xc8(%rsp)
push   %r8
push   %rbp
push   %r11
push   %r14
call   1090 <NNTProduct@plt>
add    $0x78,%rsp
movsd  0x9eb(%rip),%xmm1
mov    %r15,%rdi
mov    %r14d,%esi
mov    0x24(%rsp),%edx
mov    %ebp,%ecx
mov    0x60(%rsp),%r8
mov    %r15,%r9
movsd  0x18(%rsp),%xmm0
mov    0x108(%rsp),%eax
push   %rax
push   %r12
mov    0x108(%rsp),%eax
push   %rax
push   %rbx
mov    0x108(%rsp),%eax
push   %rax
push   0x38(%rsp)
mov    0x108(%rsp),%eax
push   %rax
push   0x108(%rsp)
push   %r13
push   0xa0(%rsp)
push   0xc8(%rsp)
push   %r8
push   %rbp
push   0xa0(%rsp)
push   %r14
call   1090 <NNTProduct@plt>
add    $0x108,%rsp
jmp    17c8 <AATProduct+0x648>
mov    %r10d,%r8d
and    $0xfffffffe,%r8d
mov    %r10,%r9
shl    $0x4,%r9
add    $0x10,%r9
lea    0x0(,%r10,8),%rdi
lea    (%r15,%r10,8),%r12
add    $0x8,%r12
lea    (%r15,%r10,8),%rbx
xor    %r11d,%r11d
mov    %r10,%rax
mov    %r15,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %esi,%esi
mov    %rcx,%rdx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%rdx)
add    %rdi,%rdx
add    $0x1,%rsi
cmp    %rsi,%rax
jne    16e0 <AATProduct+0x560>
mov    $0x1,%esi
mov    %r12,%rbp
nopl   (%rax)
movsd  (%rbx,%rsi,8),%xmm0
movsd  %xmm0,0x0(%rbp)
add    $0x1,%rsi
add    %rdi,%rbp
cmp    %rsi,%rax
jne    1700 <AATProduct+0x580>
add    $0x2,%r11
add    %r9,%rcx
add    $0xfffffffffffffffe,%rax
add    %r9,%r12
add    %r9,%rbx
cmp    %r8,%r11
jne    16d0 <AATProduct+0x550>
test   $0x1,%r10b
mov    0xd0(%rsp),%ebx
je     1775 <AATProduct+0x5f5>
mov    %r10,%rax
sub    %r11,%rax
lea    0x1(%r10),%rcx
imul   %r11,%rcx
lea    (%r15,%rcx,8),%rcx
lea    0x0(,%r10,8),%rdx
xor    %esi,%esi
mov    %rcx,%rdi
nopl   0x0(%rax,%rax,1)
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%rdi)
add    $0x1,%rsi
add    %rdx,%rdi
cmp    %rsi,%rax
jne    1760 <AATProduct+0x5e0>
sub    $0x8,%rsp
mov    0xd0(%rsp),%rdi
mov    %ebx,%esi
mov    0xe8(%rsp),%edx
mov    0xe0(%rsp),%ecx
mov    0xf0(%rsp),%r8d
mov    %r15,%r9
mov    0xf8(%rsp),%eax
push   %rax
push   %r10
push   %r10
call   1080 <putSubMatrix@plt>
add    $0x20,%rsp
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @AATProduct(double* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, double %7, double %8, double* %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 %16) {
%18 = alloca i32
%19 = alloca i32
%20 = alloca double
%21 = alloca double
%22 = alloca i8
%23 = alloca i8
store i32 %5, i32* %18
store i32 %6, i32* %19
store double %7, double* %20
store double %8, double* %21
%24 = icmp slt i32 %14, 2
br i1 %24, label %25, label %99
25: ; preds = %17
%26 = icmp sgt i32 %5, 0
%27 = icmp sgt i32 %6, 0
%28 = and i1 %26, %27
br i1 %28, label %29, label %126
29: ; preds = %25
%30 = shl i32 %5, 3
%31 = mul i32 %30, %6
%32 = tail call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to double*
%34 = mul i32 %30, %5
%35 = tail call i64 @malloc(i32 %34)
%36 = inttoptr i64 %35 to double*
%37 = tail call i32 @getSubMatrix(double* %0, i32 %1, i32 %3, i32 %2, i32 %4, double* %33, i32 %5, i32 %6, i32 %14)
%38 = tail call i32 @getSubMatrix(double* %9, i32 %10, i32 %12, i32 %11, i32 %13, double* %36, i32 %5, i32 %5, i32 %14)
store i8 76, i8* %22
store i8 78, i8* %23
%39 = call i32 @dsyrk_(i8* %22, i8* %23, i32* %18, i32* %19, double* %20, double* %33, i32* %18, double* %21, double* %36, i32* %18)
%40 = load i32, i32* %18
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %95
42: ; preds = %29
%43 = zext i32 %40 to i64
%44 = zext i32 %40 to i64
%45 = and i64 %43, 1
%46 = icmp eq i32 %40, 1
br i1 %46, label %80, label %47
47: ; preds = %42
%48 = and i64 %43, 4294967294
br label %49
49: ; preds = %76, %47
%50 = phi i64 [ 0, %47 ], [ %77, %76 ]
%51 = phi i64 [ 0, %47 ], [ %78, %76 ]
%52 = mul nsw i64 %50, %43
br label %53
53: ; preds = %49, %53
%54 = phi i64 [ %50, %49 ], [ %61, %53 ]
%55 = add nuw nsw i64 %54, %52
%56 = getelementptr inbounds double, double* %36, i64 %55
%57 = load double, double* %56
%58 = mul nsw i64 %54, %43
%59 = add nuw nsw i64 %58, %50
%60 = getelementptr inbounds double, double* %36, i64 %59
store double %57, double* %60
%61 = add nuw nsw i64 %54, 1
%62 = icmp eq i64 %61, %44
br i1 %62, label %63, label %53
63: ; preds = %53
%64 = or i64 %50, 1
%65 = mul nsw i64 %64, %43
br label %66
66: ; preds = %66, %63
%67 = phi i64 [ %64, %63 ], [ %74, %66 ]
%68 = add nuw nsw i64 %67, %65
%69 = getelementptr inbounds double, double* %36, i64 %68
%70 = load double, double* %69
%71 = mul nsw i64 %67, %43
%72 = add nuw nsw i64 %71, %64
%73 = getelementptr inbounds double, double* %36, i64 %72
store double %70, double* %73
%74 = add nuw nsw i64 %67, 1
%75 = icmp eq i64 %74, %44
br i1 %75, label %76, label %66
76: ; preds = %66
%77 = add nuw nsw i64 %50, 2
%78 = add i64 %51, 2
%79 = icmp eq i64 %78, %48
br i1 %79, label %80, label %49
80: ; preds = %76, %42
%81 = phi i64 [ 0, %42 ], [ %77, %76 ]
%82 = icmp eq i64 %45, 0
br i1 %82, label %95, label %83
83: ; preds = %80
%84 = mul nsw i64 %81, %43
br label %85
85: ; preds = %85, %83
%86 = phi i64 [ %81, %83 ], [ %93, %85 ]
%87 = add nuw nsw i64 %86, %84
%88 = getelementptr inbounds double, double* %36, i64 %87
%89 = load double, double* %88
%90 = mul nsw i64 %86, %43
%91 = add nuw nsw i64 %90, %81
%92 = getelementptr inbounds double, double* %36, i64 %91
store double %89, double* %92
%93 = add nuw nsw i64 %86, 1
%94 = icmp eq i64 %93, %44
br i1 %94, label %95, label %85
95: ; preds = %80, %85, %29
%96 = call i32 @putSubMatrix(double* %9, i32 %10, i32 %12, i32 %11, i32 %13, double* %36, i32 %40, i32 %40, i32 %14)
%97 = call i32 @free(double* %33)
%98 = call i32 @free(double* %36)
br label %126
99: ; preds = %17
%100 = sitofp i32 %5 to double
%101 = fmul double %100, 5.000000e-01
%102 = tail call i32 @ceil(double %101)
%103 = sub nsw i32 %5, %102
%104 = sitofp i32 %6 to double
%105 = fmul double %104, 5.000000e-01
%106 = tail call i32 @ceil(double %105)
%107 = sub nsw i32 %6, %106
%108 = lshr i32 %14, 1
%109 = add nsw i32 %108, %15
%110 = icmp sgt i32 %109, %16
br i1 %110, label %111, label %115
111: ; preds = %99
tail call void @AATProduct(double* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %102, i32 %106, double %7, double %8, double* %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %108, i32 %15, i32 %16)
%112 = add nsw i32 %106, %4
tail call void @AATProduct(double* %0, i32 %1, i32 %2, i32 %3, i32 %112, i32 %102, i32 %107, double %7, double 1.000000e+00, double* %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %108, i32 %15, i32 %16)
%113 = add nsw i32 %102, %2
%114 = add nsw i32 %102, %11
br label %120
115: ; preds = %99
%116 = add nsw i32 %102, %2
%117 = add nsw i32 %102, %11
%118 = add nsw i32 %102, %13
tail call void @AATProduct(double* %0, i32 %1, i32 %116, i32 %3, i32 %4, i32 %103, i32 %106, double %7, double %8, double* %9, i32 %10, i32 %117, i32 %12, i32 %118, i32 %108, i32 %109, i32 %16)
%119 = add nsw i32 %106, %4
tail call void @AATProduct(double* %0, i32 %1, i32 %116, i32 %3, i32 %119, i32 %103, i32 %107, double %7, double 1.000000e+00, double* %9, i32 %10, i32 %117, i32 %12, i32 %118, i32 %108, i32 %109, i32 %16)
br label %120
120: ; preds = %115, %111
%121 = phi i32 [ %119, %115 ], [ %112, %111 ]
%122 = phi i32 [ %117, %115 ], [ %114, %111 ]
%123 = phi i32 [ %116, %115 ], [ %113, %111 ]
%124 = tail call i32 @NNTProduct(double* %0, i32 %1, i32 %123, i32 %3, i32 %4, double* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %103, i32 %106, i32 %102, double %7, double %8, double* %9, i32 %10, i32 %122, i32 %12, i32 %13, i32 %14, i32 %15, i32 %16)
%125 = tail call i32 @NNTProduct(double* %0, i32 %1, i32 %123, i32 %3, i32 %121, double* %0, i32 %1, i32 %2, i32 %3, i32 %121, i32 %103, i32 %107, i32 %102, double %7, double 1.000000e+00, double* %9, i32 %10, i32 %122, i32 %12, i32 %13, i32 %14, i32 %15, i32 %16)
br label %126
126: ; preds = %25, %95, %120
ret void
}