#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 *);
int /*<<< orphan*/ madd_stride(double *, double *, double *, int, int, int, int,
                               int);
scalar_t__ malloc(int);
int /*<<< orphan*/ msub_stride(double *, double *, double *, int, int, int, int,
                               int);
void srecmult(double *A, double *B, double *C, int m, int n, int p, int sA,
              int sB, int sC) {
  register int i, j, k;
  int u, v, t;
  double sum;
  double *A1, *B1;
  double *a11, *a12, *a21, *a22;
  double *b11, *b12, *b21, *b22;
  double *c11, *c12, *c21, *c22;
  double *m1, *m2, *m3, *m4, *m5, *m6, *m7;
  int sm1, sm2, sm3, sm4, sm5, sm6, sm7;
  int sA1, sB1;
  if (m + n + p <= 192) {
    for (i = 0; i < m; ++i) {
      for (j = 0; j < p; ++j) {
        v = i * sA;
        u = i * sC;
        t = j + u;
        sum = 0.;
        for (k = 0; k < n; ++k) {
          sum += A[k + v] * B[j + k * sB];
        }
        C[t] = sum;
      }
    }
  } else {
    m /= 2;
    n /= 2;
    p /= 2;
    a11 = A;
    a12 = A + n;
    a21 = A + m * sA;
    a22 = A + n + m * sA;
    b11 = B;
    b12 = B + p;
    b21 = B + n * sB;
    b22 = B + p + n * sB;
    c11 = C;
    c12 = C + p;
    c21 = C + m * sC;
    c22 = C + p + m * sC;
    m1 = (double *)malloc(sizeof(double) * m * p);
    sm1 = p;
    m3 = (double *)malloc(sizeof(double) * m * p);
    sm3 = p;
    m4 = (double *)malloc(sizeof(double) * m * p);
    sm4 = p;
    m2 = c21;
    sm2 = sC;
    m5 = c12;
    sm5 = sC;
    m6 = c22;
    sm6 = sC;
    m7 = c11;
    sm7 = sC;
    sA1 = n;
    sB1 = p;
    A1 = (double *)malloc(sizeof(double) * m * n);
    B1 = (double *)malloc(sizeof(double) * n * p);
    madd_stride(a11, a22, A1, m, n, sA, sA, sA1);
    madd_stride(b11, b22, B1, n, p, sB, sB, sB1);
    srecmult(A1, B1, m1, m, n, p, sA1, sB1, sm1);
    free(A1);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    madd_stride(a21, a22, A1, m, n, sA, sA, sA1);
    srecmult(A1, b11, m2, m, n, p, sA1, sB, sm2);
    free(A1);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(b12, b22, B1, n, p, sB, sB, sB1);
    srecmult(a11, B1, m3, m, n, p, sA, sB1, sm3);
    free(B1);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(b21, b11, B1, n, p, sB, sB, sB1);
    srecmult(a22, B1, m4, m, n, p, sA, sB1, sm4);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    madd_stride(a11, a12, A1, m, n, sA, sA, sA1);
    srecmult(A1, b22, m5, m, n, p, sA1, sB, sm5);
    free(A1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(a21, a11, A1, m, n, sA, sA, sA1);
    madd_stride(b11, b12, B1, n, p, sB, sB, sB1);
    srecmult(A1, B1, m6, m, n, p, sA1, sB1, sm6);
    free(A1);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(a12, a22, A1, m, n, sA, sA, sA1);
    madd_stride(b21, b22, B1, n, p, sB, sB, sB1);
    srecmult(A1, B1, m7, m, n, p, sA1, sB1, sm7);
    free(A1);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * p);
    sA1 = p;
    madd_stride(m1, m7, m7, m, p, sm1, sm7, sm7);
    msub_stride(m4, m5, A1, m, p, sm4, sm5, sA1);
    madd_stride(m7, A1, m7, m, p, sm7, sA1, sm7);
    free(A1);
    A1 = (double *)malloc(sizeof(double) * m * p);
    sA1 = p;
    madd_stride(m1, m6, m6, m, p, sm1, sm6, sm6);
    msub_stride(m3, m2, A1, m, p, sm3, sm2, sA1);
    madd_stride(m6, A1, m6, m, p, sm6, sA1, sm6);
    free(A1);
    madd_stride(m3, m5, m5, m, p, sm3, sm5, sm5);
    madd_stride(m4, m2, m2, m, p, sm4, sm2, sm2);
    free(m1);
    free(m3);
    free(m4);
  }
}


x86 assembly (clang, -O0):
<srecmult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
cmp    $0xc0,%eax
jg     126f <srecmult+0x11f>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    126a <srecmult+0x11a>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1257 <srecmult+0x107>
mov    -0x28(%rbp),%eax
imul   0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
imul   0x20(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1237 <srecmult+0xe7>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   0x18(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11e1 <srecmult+0x91>
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11a9 <srecmult+0x59>
jmp    125c <srecmult+0x10c>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1196 <srecmult+0x46>
jmp    1bf3 <srecmult+0xaa3>
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   0x10(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x1c(%rbp),%ecx
imul   0x10(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   0x18(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x20(%rbp),%ecx
imul   0x18(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x98(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   0x20(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb0(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x1c(%rbp),%ecx
imul   0x20(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0xc0(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0xf4(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0xd0(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0xfc(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0xd8(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x100(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    0x20(%rbp),%eax
mov    %eax,-0xf8(%rbp)
mov    -0xa8(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    0x20(%rbp),%eax
mov    %eax,-0x104(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    0x20(%rbp),%eax
mov    %eax,-0x108(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    0x20(%rbp),%eax
mov    %eax,-0x10c(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x110(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x114(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x20(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x80(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x18(%rbp),%r10d
mov    -0x114(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x110(%rbp),%r11d
mov    -0x114(%rbp),%r10d
mov    -0xf4(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x20(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x70(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0xc8(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x110(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    -0xf8(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x88(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x18(%rbp),%r10d
mov    -0x114(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <msub_stride@plt>
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0xd0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%r11d
mov    -0x114(%rbp),%r10d
mov    -0xfc(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x18(%rbp),%r10d
mov    -0x114(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <msub_stride@plt>
mov    -0x78(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0xd8(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%r11d
mov    -0x114(%rbp),%r10d
mov    -0x100(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x20(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0xe0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x110(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    -0x104(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x20(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x70(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <msub_stride@plt>
mov    -0x80(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x18(%rbp),%r10d
mov    -0x114(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0xe8(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x110(%rbp),%r11d
mov    -0x114(%rbp),%r10d
mov    -0x108(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x20(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <msub_stride@plt>
mov    -0x90(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x18(%rbp),%r10d
mov    -0x114(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0xf0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x110(%rbp),%r11d
mov    -0x114(%rbp),%r10d
mov    -0x10c(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <srecmult@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x110(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0xf0(%rbp),%rsi
mov    -0xf0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0xf4(%rbp),%r9d
mov    -0x10c(%rbp),%r10d
mov    -0x10c(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0xd8(%rbp),%rdi
mov    -0xe0(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0x100(%rbp),%r9d
mov    -0x104(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <msub_stride@plt>
mov    -0xf0(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0xf0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0x10c(%rbp),%r9d
mov    -0x110(%rbp),%r10d
mov    -0x10c(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x110(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0xe8(%rbp),%rsi
mov    -0xe8(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0xf4(%rbp),%r9d
mov    -0x108(%rbp),%r10d
mov    -0x108(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0xd0(%rbp),%rdi
mov    -0xc8(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0xfc(%rbp),%r9d
mov    -0xf8(%rbp),%r10d
mov    -0x110(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <msub_stride@plt>
mov    -0xe8(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0xe8(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0x108(%rbp),%r9d
mov    -0x110(%rbp),%r10d
mov    -0x108(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0xd0(%rbp),%rdi
mov    -0xe0(%rbp),%rsi
mov    -0xe0(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0xfc(%rbp),%r9d
mov    -0x104(%rbp),%r10d
mov    -0x104(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0xd8(%rbp),%rdi
mov    -0xc8(%rbp),%rsi
mov    -0xc8(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x24(%rbp),%r8d
mov    -0x100(%rbp),%r9d
mov    -0xf8(%rbp),%r10d
mov    -0xf8(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <madd_stride@plt>
mov    -0xc0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xd0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xd8(%rbp),%rdi
call   1030 <free@plt>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<srecmult>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    0x100(%rsp),%r15d
mov    0xf8(%rsp),%r11d
mov    0xf0(%rsp),%r10d
lea    (%r8,%rcx,1),%eax
add    %r9d,%eax
cmp    $0xc0,%eax
mov    %rdi,0x50(%rsp)
jg     131f <srecmult+0x1cf>
mov    %r8,0x18(%rsp)
test   %ecx,%ecx
jle    1917 <srecmult+0x7c7>
mov    %rsi,%rdi
movslq %r11d,%rbp
movslq %r10d,%rbx
movslq %r15d,%rax
mov    %rax,0x30(%rsp)
mov    %ecx,%eax
mov    %rax,0x28(%rsp)
mov    %r9d,%r10d
mov    0x18(%rsp),%r14d
mov    %r14d,%esi
and    $0xfffffffe,%esi
mov    0x50(%rsp),%rax
lea    0x8(%rax),%rcx
mov    %rbx,0x38(%rsp)
lea    0x0(,%rbx,8),%rax
mov    %rax,0x40(%rsp)
mov    %rbp,%rax
shl    $0x4,%rax
xor    %ebx,%ebx
mov    %rbx,0x8(%rsp)
mov    %r9d,0x48(%rsp)
jmp    122f <srecmult+0xdf>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%rbx
mov    %rdi,%r8
mov    %rbx,%rdi
add    $0x1,%rdi
add    0x40(%rsp),%rcx
mov    %rdi,%rbx
mov    %rdi,0x8(%rsp)
cmp    0x28(%rsp),%rdi
mov    %r8,%rdi
mov    0x48(%rsp),%r9d
je     1917 <srecmult+0x7c7>
test   %r9d,%r9d
mov    0x18(%rsp),%r11
jle    1200 <srecmult+0xb0>
mov    0x8(%rsp),%r8
mov    %r8,%rbx
imul   0x38(%rsp),%rbx
mov    %rbx,0x10(%rsp)
imul   0x30(%rsp),%r8
mov    %rdi,%rbx
xor    %r9d,%r9d
jmp    1277 <srecmult+0x127>
nopw   0x0(%rax,%rax,1)
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rdx,%r12,8)
add    $0x1,%r9
add    $0x8,%rbx
cmp    %r10,%r9
je     1200 <srecmult+0xb0>
lea    (%r9,%r8,1),%r12
test   %r11d,%r11d
jle    1260 <srecmult+0x110>
cmp    $0x1,%r11d
jne    1290 <srecmult+0x140>
xorpd  %xmm0,%xmm0
xor    %r15d,%r15d
jmp    12d2 <srecmult+0x182>
nop
xorpd  %xmm1,%xmm1
mov    %rbx,%r13
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
movsd  -0x8(%rcx,%r15,8),%xmm2
mulsd  0x0(%r13),%xmm2
movsd  (%rcx,%r15,8),%xmm0
addsd  %xmm1,%xmm2
mulsd  0x0(%r13,%rbp,8),%xmm0
addsd  %xmm2,%xmm0
add    $0x2,%r15
add    %rax,%r13
movapd %xmm0,%xmm1
cmp    %r15,%rsi
jne    12a0 <srecmult+0x150>
test   $0x1,%r14b
je     1264 <srecmult+0x114>
mov    %rdi,%r13
mov    %rdx,%rdi
mov    0x10(%rsp),%rdx
add    %r15,%rdx
mov    %r10,%r11
mov    %r14,%r10
mov    0x50(%rsp),%r14
movsd  (%r14,%rdx,8),%xmm1
mov    %r10,%r14
mov    %r11,%r10
mov    0x18(%rsp),%r11
mov    %rdi,%rdx
mov    %r13,%rdi
imul   %rbp,%r15
add    %r9,%r15
mulsd  0x0(%r13,%r15,8),%xmm1
addsd  %xmm1,%xmm0
jmp    1264 <srecmult+0x114>
mov    %ecx,%r12d
shr    $0x1f,%r12d
add    %ecx,%r12d
sar    %r12d
mov    %r8d,%eax
shr    $0x1f,%eax
add    %r8d,%eax
sar    %eax
mov    %r9d,%ecx
shr    $0x1f,%ecx
add    %r9d,%ecx
sar    %ecx
movslq %eax,%r14
lea    (%rdi,%r14,8),%rbp
mov    %rbp,0x88(%rsp)
mov    %r12,0x68(%rsp)
mov    %r12d,%eax
imul   %r10d,%eax
cltq
lea    (%rdi,%rax,8),%rbx
mov    %rbx,0x78(%rsp)
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
mov    %rax,0x70(%rsp)
movslq %ecx,%rbp
lea    (%rsi,%rbp,8),%rbx
mov    %rbx,0x80(%rsp)
mov    %r14d,%eax
imul   %r11d,%eax
cltq
lea    (%rsi,%rax,8),%rcx
mov    %rcx,0x90(%rsp)
lea    (%rbx,%rax,8),%rax
mov    %rax,0x8(%rsp)
lea    (%rdx,%rbp,8),%rcx
mov    %rcx,0x30(%rsp)
mov    %r12d,%eax
imul   %r15d,%eax
cltq
lea    (%rdx,%rax,8),%rbx
mov    %rbx,0x48(%rsp)
lea    (%rcx,%rax,8),%rax
mov    %rax,0xa0(%rsp)
lea    0x0(,%r12,8),%r13d
mov    %ebp,%ebx
imul   %r13d,%ebx
mov    %ebx,0x5c(%rsp)
mov    %rdi,%r12
mov    %ebx,%edi
mov    %rdx,0xb0(%rsp)
mov    %r15,0x18(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x10(%rsp)
mov    %rsi,0x60(%rsp)
call   1050 <malloc@plt>
mov    %rax,0x40(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x98(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x38(%rsp)
imul   %r14d,%r13d
mov    %r13d,0x24(%rsp)
mov    %r13d,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    %r14d,%edi
imul   %ebp,%edi
shl    $0x3,%edi
mov    %edi,0x20(%rsp)
call   1050 <malloc@plt>
mov    %rax,0xa8(%rsp)
mov    %r12,%rdi
mov    0x70(%rsp),%r15
mov    %r15,%rsi
mov    %r13,%rdx
mov    %r13,%r12
mov    0x68(%rsp),%rbx
mov    %ebx,%ecx
mov    %r14d,%r8d
mov    0x10(%rsp),%r9
push   %r14
push   %r9
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    0x60(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    0xa8(%rsp),%r13
mov    %r13,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    0x28(%rsp),%r9
push   %rbp
push   %r9
call   1040 <madd_stride@plt>
add    $0x8,%rsp
mov    %r12,%rdi
mov    %r13,%rsi
mov    0x48(%rsp),%rdx
mov    %ebx,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
push   %rbp
push   %rbp
push   %r14
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x24(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x78(%rsp),%rdi
mov    %r15,%rsi
mov    %rax,%rdx
mov    %ebx,%ecx
mov    %r14d,%r8d
mov    0x10(%rsp),%r9
push   %r14
push   %r9
call   1040 <madd_stride@plt>
add    $0x8,%rsp
mov    %r13,%rdi
mov    0x68(%rsp),%rsi
mov    0x50(%rsp),%rdx
mov    %ebx,%ecx
mov    %rbx,%r12
mov    %r14d,%r8d
mov    %ebp,%r9d
push   0x20(%rsp)
mov    0x38(%rsp),%r15
push   %r15
push   %r14
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%ebx
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x80(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    %rax,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %r15d,%r9d
push   %rbp
push   %r15
call   1070 <msub_stride@plt>
add    $0x8,%rsp
mov    0x58(%rsp),%rdi
mov    %r13,%rsi
mov    0xa0(%rsp),%rdx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
push   %rbp
push   %rbp
push   0x28(%rsp)
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x90(%rsp),%rdi
mov    0x60(%rsp),%rsi
mov    %rax,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %r15d,%r9d
push   %rbp
push   %r15
call   1070 <msub_stride@plt>
add    $0x8,%rsp
mov    0x78(%rsp),%rdi
mov    %r13,%rsi
mov    0x40(%rsp),%rdx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
push   %rbp
push   %rbp
mov    0x28(%rsp),%rbx
push   %rbx
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x24(%rsp),%r15d
mov    %r15d,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x50(%rsp),%rdi
mov    0x88(%rsp),%rsi
mov    %rax,%rdx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    %rbx,%r9
push   %r14
push   %rbx
call   1040 <madd_stride@plt>
add    $0x8,%rsp
mov    %r13,%rdi
mov    0x10(%rsp),%rsi
mov    0x38(%rsp),%rdx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
push   0x20(%rsp)
mov    0x38(%rsp),%rbx
push   %rbx
push   %r14
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15d,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x20(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    0x78(%rsp),%rdi
mov    0x50(%rsp),%rsi
mov    %r13,%rdx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    0x10(%rsp),%r9
push   %r14
push   %r9
call   1070 <msub_stride@plt>
add    $0x10,%rsp
mov    0x60(%rsp),%rdi
mov    0x80(%rsp),%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %ebx,%r9d
push   %rbp
push   %rbx
call   1040 <madd_stride@plt>
add    $0x8,%rsp
mov    %r13,%rdi
mov    %r15,%rsi
mov    0xa8(%rsp),%rdx
mov    %r12d,%ecx
mov    %r12,%rbx
mov    %r14d,%r8d
mov    %ebp,%r9d
push   0x20(%rsp)
push   %rbp
push   %r14
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x24(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    0x20(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    0x88(%rsp),%rdi
mov    0x70(%rsp),%rsi
mov    %r13,%rdx
mov    %ebx,%ecx
mov    %r14d,%r8d
mov    0x10(%rsp),%r9
push   %r14
push   %r9
call   1070 <msub_stride@plt>
add    $0x10,%rsp
mov    0x90(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    0x28(%rsp),%r9
push   %rbp
push   %r9
call   1040 <madd_stride@plt>
add    $0x8,%rsp
mov    %r13,%rdi
mov    %r15,%rsi
mov    0xb8(%rsp),%r12
mov    %r12,%rdx
mov    %ebx,%ecx
mov    %r14d,%r8d
mov    %ebp,%r9d
mov    0x20(%rsp),%rbx
push   %rbx
push   %rbp
push   %r14
call   1060 <srecmult@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x5c(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    0x40(%rsp),%r15
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    0x68(%rsp),%r13
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    %ebp,%r9d
push   %rbx
push   %rbx
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    0x38(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    %r14,%rdx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    %ebp,%r9d
push   %rbp
push   %rbx
call   1070 <msub_stride@plt>
add    $0x10,%rsp
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r12,%rdx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    %rbx,%r12
mov    %r12d,%r9d
push   %rbx
push   %rbp
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x5c(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    %r15,%rdi
mov    0xa0(%rsp),%rbx
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    0x68(%rsp),%r14
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %ebp,%r9d
push   %r12
push   %r12
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    0x98(%rsp),%r15
mov    %r15,%rdi
mov    0x48(%rsp),%rsi
mov    %r13,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %ebp,%r9d
push   %rbp
push   %r12
call   1070 <msub_stride@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %r12d,%r9d
push   %r12
push   %rbp
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
mov    0x30(%rsp),%rdx
mov    %rdx,%rsi
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %ebp,%r9d
push   %r12
push   %r12
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    0x38(%rsp),%r13
mov    %r13,%rdi
mov    0x48(%rsp),%rdx
mov    %rdx,%rsi
mov    %r14d,%ecx
mov    %ebp,%r8d
mov    %ebp,%r9d
push   %r12
push   %r12
call   1040 <madd_stride@plt>
add    $0x10,%rsp
mov    0x40(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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