#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*/ dtrsl_(double *, int, int, double *, int, int *);
int subsm_(int n, int m, int nsub, int *ind, double *l, double *u, int *nbd,
           double *x, double *d, double *ws, double *wy, double theta, int col,
           int head, int *iword, double *wv, double *wn, int *info) {
  int ws_offset, wy_offset, wn_offset;
  int pointr, ibd = 0, m2 = m * 2;
  double dk, temp1, temp2, alpha;
  int js, jy, col2;
  int i, j, k;
  --d;
  --x;
  --nbd;
  --u;
  --l;
  wn_offset = 1 + m2;
  wn -= wn_offset;
  --wv;
  wy_offset = 1 + n;
  wy -= wy_offset;
  ws_offset = 1 + n;
  ws -= ws_offset;
  --ind;
  if (nsub <= 0) {
    return 0;
  }
  pointr = head;
  for (i = 1; i <= col; ++i) {
    temp1 = temp2 = 0.0;
    for (j = 1; j <= nsub; ++j) {
      k = ind[j];
      temp1 += wy[k + pointr * n] * d[j];
      temp2 += ws[k + pointr * n] * d[j];
    }
    wv[i] = temp1;
    wv[col + i] = theta * temp2;
    pointr = pointr % m + 1;
  }
  col2 = col * 2;
  dtrsl_(&wn[wn_offset], m2, col2, &wv[1], 1, info);
  if (*info != 0) {
    return 0;
  }
  for (i = 1; i <= col; ++i) {
    wv[i] = -wv[i];
  }
  dtrsl_(&wn[wn_offset], m2, col2, &wv[1], 0, info);
  if (*info != 0) {
    return 0;
  }
  pointr = head;
  for (jy = 1; jy <= col; ++jy) {
    js = col + jy;
    for (i = 1; i <= nsub; ++i) {
      k = ind[i];
      d[i] = d[i] + wy[k + pointr * n] * wv[jy] / theta +
             ws[k + pointr * n] * wv[js];
    }
    pointr = pointr % m + 1;
  }
  for (i = 1; i <= nsub; ++i) {
    d[i] /= theta;
  }
  alpha = 1.;
  temp1 = alpha;
  for (i = 1; i <= nsub; ++i) {
    k = ind[i];
    dk = d[i];
    if (nbd[k] != 0) {
      if (dk < 0 && nbd[k] <= 2) {
        temp2 = l[k] - x[k];
        if (temp2 >= 0.) {
          temp1 = 0.;
        } else if (dk * alpha < temp2) {
          temp1 = temp2 / dk;
        }
      } else if (dk > 0 && nbd[k] >= 2) {
        temp2 = u[k] - x[k];
        if (temp2 <= 0) {
          temp1 = 0;
        } else if (dk * alpha > temp2) {
          temp1 = temp2 / dk;
        }
      }
      if (temp1 < alpha) {
        alpha = temp1;
        ibd = i;
      }
    }
  }
  if (alpha < 1.) {
    dk = d[ibd];
    k = ind[ibd];
    if (dk > 0.) {
      x[k] = u[k];
      d[ibd] = 0.;
    } else if (dk < 0.) {
      x[k] = l[k];
      d[ibd] = 0.;
    }
  }
  for (i = 1; i <= nsub; ++i) {
    k = ind[i];
    x[k] += alpha * d[i];
  }
  *iword = (alpha < 1.0);
  return 0;
}


x86 assembly (clang, -O0):
<subsm_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    0x20(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x20(%rbp)
mov    0x18(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x18(%rbp)
mov    0x10(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%ecx
mov    0x58(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x58(%rbp)
mov    0x50(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x50(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%ecx
mov    0x30(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x30(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%ecx
mov    0x28(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x28(%rbp)
mov    -0x18(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0x10(%rbp)
jg     1242 <subsm_+0x132>
movl   $0x0,-0x4(%rbp)
jmp    183c <subsm_+0x72c>
mov    0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    0x38(%rbp),%eax
jg     1351 <subsm_+0x241>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1308 <subsm_+0x1f8>
mov    -0x18(%rbp),%rax
movslq -0x7c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
mov    0x30(%rbp),%rax
mov    -0x80(%rbp),%ecx
mov    -0x40(%rbp),%edx
imul   -0x8(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x28(%rbp),%rax
mov    -0x80(%rbp),%ecx
mov    -0x40(%rbp),%edx
imul   -0x8(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    1272 <subsm_+0x162>
movsd  -0x58(%rbp),%xmm0
mov    0x50(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mov    0x50(%rbp),%rax
mov    0x38(%rbp),%ecx
add    -0x78(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
cltd
idivl  -0xc(%rbp)
add    $0x1,%edx
mov    %edx,-0x40(%rbp)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    124f <subsm_+0x13f>
mov    0x38(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    0x58(%rbp),%rdi
movslq -0x3c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x48(%rbp),%esi
mov    -0x74(%rbp),%edx
mov    0x50(%rbp),%rcx
add    $0x8,%rcx
mov    0x60(%rbp),%r9
mov    $0x1,%r8d
call   1030 <dtrsl_@plt>
mov    0x60(%rbp),%rax
cmpl   $0x0,(%rax)
je     139f <subsm_+0x28f>
movl   $0x0,-0x4(%rbp)
jmp    183c <subsm_+0x72c>
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    0x38(%rbp),%eax
jg     13f1 <subsm_+0x2e1>
mov    0x50(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    0x50(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    13a6 <subsm_+0x296>
mov    0x58(%rbp),%rdi
movslq -0x3c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x48(%rbp),%esi
mov    -0x74(%rbp),%edx
mov    0x50(%rbp),%rcx
add    $0x8,%rcx
mov    0x60(%rbp),%r9
xor    %r8d,%r8d
call   1030 <dtrsl_@plt>
mov    0x60(%rbp),%rax
cmpl   $0x0,(%rax)
je     1433 <subsm_+0x323>
movl   $0x0,-0x4(%rbp)
jmp    183c <subsm_+0x72c>
mov    0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x1,-0x70(%rbp)
mov    -0x70(%rbp),%eax
cmp    0x38(%rbp),%eax
jg     1514 <subsm_+0x404>
mov    0x38(%rbp),%eax
add    -0x70(%rbp),%eax
mov    %eax,-0x6c(%rbp)
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     14f9 <subsm_+0x3e9>
mov    -0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
mov    0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x30(%rbp),%rax
mov    -0x80(%rbp),%ecx
mov    -0x40(%rbp),%edx
imul   -0x8(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x50(%rbp),%rax
movslq -0x70(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
divsd  -0x30(%rbp),%xmm0
addsd  %xmm0,%xmm1
mov    0x28(%rbp),%rax
mov    -0x80(%rbp),%ecx
mov    -0x40(%rbp),%edx
imul   -0x8(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x50(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    145c <subsm_+0x34c>
mov    -0x40(%rbp),%eax
cltd
idivl  -0xc(%rbp)
add    $0x1,%edx
mov    %edx,-0x40(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    1440 <subsm_+0x330>
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1550 <subsm_+0x440>
movsd  -0x30(%rbp),%xmm1
mov    0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    151b <subsm_+0x40b>
movsd  0xaa8(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1709 <subsm_+0x5f9>
mov    -0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
mov    0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x10(%rbp),%rax
movslq -0x80(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     16f6 <subsm_+0x5e6>
xorps  %xmm0,%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    163c <subsm_+0x52c>
mov    0x10(%rbp),%rax
movslq -0x80(%rbp),%rcx
cmpl   $0x2,(%rax,%rcx,4)
jg     163c <subsm_+0x52c>
mov    -0x20(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x80(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     160a <subsm_+0x4fa>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1637 <subsm_+0x527>
movsd  -0x50(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1632 <subsm_+0x522>
movsd  -0x60(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1637 <subsm_+0x527>
jmp    16cd <subsm_+0x5bd>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    16c8 <subsm_+0x5b8>
mov    0x10(%rbp),%rax
movslq -0x80(%rbp),%rcx
cmpl   $0x2,(%rax,%rcx,4)
jl     16c8 <subsm_+0x5b8>
mov    -0x28(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x80(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     169a <subsm_+0x58a>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    16c3 <subsm_+0x5b3>
movsd  -0x50(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    16be <subsm_+0x5ae>
movsd  -0x60(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    16c3 <subsm_+0x5b3>
jmp    16c8 <subsm_+0x5b8>
jmp    16cd <subsm_+0x5bd>
movsd  -0x58(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    16f1 <subsm_+0x5e1>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    16f6 <subsm_+0x5e6>
jmp    16fb <subsm_+0x5eb>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    156e <subsm_+0x45e>
movsd  0x8ef(%rip),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    17bf <subsm_+0x6af>
mov    0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    177d <subsm_+0x66d>
mov    -0x28(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    17ba <subsm_+0x6aa>
xorps  %xmm0,%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    17b5 <subsm_+0x6a5>
mov    -0x20(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    17ba <subsm_+0x6aa>
jmp    17bf <subsm_+0x6af>
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     181a <subsm_+0x70a>
mov    -0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x18(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    17c6 <subsm_+0x6b6>
movsd  0x7de(%rip),%xmm0
ucomisd -0x68(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%ecx
mov    0x48(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<subsm_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x28(%rsp)
mov    %r8,0x30(%rsp)
mov    %rsi,0x10(%rsp)
mov    %edi,0xc(%rsp)
test   %edx,%edx
jle    12f6 <subsm_+0x1e6>
mov    %rcx,%rbx
mov    %edx,%r11d
mov    0xd0(%rsp),%r12
mov    0xb8(%rsp),%ecx
mov    0xa0(%rsp),%r14
mov    0x10(%rsp),%rax
add    %eax,%eax
mov    %eax,0x8(%rsp)
mov    0xc(%rsp),%eax
not    %eax
movslq %eax,%r15
shl    $0x3,%r15
mov    0xb0(%rsp),%r13
add    %r15,%r13
add    0xa8(%rsp),%r15
test   %ecx,%ecx
jle    12ab <subsm_+0x19b>
mov    0xb8(%rsp),%eax
mov    %eax,%r8d
lea    0x1(%rax),%r9d
mov    %r11d,%r10d
mov    %r10d,%edi
and    $0xfffffffe,%edi
neg    %rdi
mov    $0x1,%ecx
mov    0xc0(%rsp),%edx
jmp    11ed <subsm_+0xdd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movhpd %xmm4,-0x8(%r12,%rcx,8)
mulsd  %xmm0,%xmm4
lea    (%rcx,%r8,1),%rax
movsd  %xmm4,-0x8(%r12,%rax,8)
mov    %edx,%eax
cltd
idivl  0x10(%rsp)
add    $0x1,%edx
add    $0x1,%rcx
cmp    %r9,%rcx
je     12ab <subsm_+0x19b>
mov    %edx,%eax
imul   0xc(%rsp),%eax
xorpd  %xmm4,%xmm4
cltq
mov    $0x1,%esi
cmp    $0x1,%r11d
je     1274 <subsm_+0x164>
xorpd  %xmm1,%xmm1
mov    $0x1,%esi
xchg   %ax,%ax
movslq -0x4(%rbx,%rsi,4),%rbp
add    %rax,%rbp
movsd  (%r15,%rbp,8),%xmm2
movhpd 0x0(%r13,%rbp,8),%xmm2
movsd  -0x8(%r14,%rsi,8),%xmm3
movsd  (%r14,%rsi,8),%xmm4
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
addpd  %xmm1,%xmm3
movslq (%rbx,%rsi,4),%rbp
add    %rax,%rbp
movsd  (%r15,%rbp,8),%xmm1
movhpd 0x0(%r13,%rbp,8),%xmm1
unpcklpd %xmm4,%xmm4
mulpd  %xmm1,%xmm4
addpd  %xmm3,%xmm4
lea    (%rdi,%rsi,1),%rbp
add    $0x2,%rbp
add    $0x2,%rsi
movapd %xmm4,%xmm1
cmp    $0x1,%rbp
jne    1210 <subsm_+0x100>
test   $0x1,%r10b
je     11c0 <subsm_+0xb0>
movslq -0x4(%rbx,%rsi,4),%rbp
add    %rax,%rbp
movsd  (%r15,%rbp,8),%xmm1
movhpd 0x0(%r13,%rbp,8),%xmm1
movsd  -0x8(%r14,%rsi,8),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm1,%xmm2
addpd  %xmm2,%xmm4
jmp    11c0 <subsm_+0xb0>
mov    0xb8(%rsp),%eax
lea    (%rax,%rax,1),%edx
mov    0xd8(%rsp),%rdi
mov    0x8(%rsp),%esi
mov    %edx,0x1c(%rsp)
mov    %r12,%rcx
mov    $0x1,%r8d
mov    0xe0(%rsp),%rbp
mov    %rbp,%r9
mov    %r11,0x20(%rsp)
movapd %xmm0,0x40(%rsp)
call   1030 <dtrsl_@plt>
mov    0xb8(%rsp),%ecx
cmpl   $0x0,0x0(%rbp)
je     1307 <subsm_+0x1f7>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x1c(%rsp),%edx
test   %ecx,%ecx
jle    1507 <subsm_+0x3f7>
mov    %ecx,%r8d
mov    $0x1,%eax
cmp    $0x4,%ecx
mov    0xd8(%rsp),%rdi
mov    0x8(%rsp),%esi
jb     1406 <subsm_+0x2f6>
mov    %rbp,%r9
mov    %r8d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%r10
shr    $0x2,%r10
add    $0x1,%r10
test   %rcx,%rcx
je     15c0 <subsm_+0x4b0>
mov    %r10,%rbp
and    $0xfffffffffffffffe,%rbp
xor    %ecx,%ecx
movapd 0xc9e(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd (%r12,%rcx,8),%xmm1
movupd 0x10(%r12,%rcx,8),%xmm2
movupd 0x20(%r12,%rcx,8),%xmm3
movupd 0x30(%r12,%rcx,8),%xmm4
xorpd  %xmm0,%xmm1
xorpd  %xmm0,%xmm2
movupd %xmm1,(%r12,%rcx,8)
movupd %xmm2,0x10(%r12,%rcx,8)
xorpd  %xmm0,%xmm3
xorpd  %xmm0,%xmm4
movupd %xmm3,0x20(%r12,%rcx,8)
movupd %xmm4,0x30(%r12,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rbp
jne    1370 <subsm_+0x260>
test   $0x1,%r10b
je     13fa <subsm_+0x2ea>
shl    $0x3,%rcx
or     $0x8,%rcx
movupd -0x8(%r12,%rcx,1),%xmm0
movupd 0x8(%r12,%rcx,1),%xmm1
movapd 0xc1c(%rip),%xmm2
xorpd  %xmm2,%xmm0
xorpd  %xmm2,%xmm1
movupd %xmm0,-0x8(%r12,%rcx,1)
movupd %xmm1,0x8(%r12,%rcx,1)
cmp    %rax,%r8
mov    %r9,%rbp
je     143b <subsm_+0x32b>
or     $0x1,%rax
lea    0x1(%r8),%rcx
movapd 0xbee(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x8(%r12,%rax,8),%xmm1
xorpd  %xmm0,%xmm1
movlpd %xmm1,-0x8(%r12,%rax,8)
add    $0x1,%rax
cmp    %rax,%rcx
jne    1420 <subsm_+0x310>
mov    %r8,0x38(%rsp)
mov    %r12,%rcx
xor    %r8d,%r8d
mov    %rbp,%r9
call   1030 <dtrsl_@plt>
mov    0xc0(%rsp),%edx
mov    0xb8(%rsp),%r9d
movapd 0x40(%rsp),%xmm3
mov    0x20(%rsp),%r10
cmpl   $0x0,0x0(%rbp)
jne    12f6 <subsm_+0x1e6>
test   %r9d,%r9d
jle    1536 <subsm_+0x426>
lea    0x1(%r10),%r8d
add    $0x1,%r9d
add    $0xffffffffffffffff,%r8
mov    $0x1,%r11d
nopl   (%rax)
mov    0x38(%rsp),%rax
add    %r11,%rax
mov    %edx,%esi
imul   0xc(%rsp),%esi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq (%rbx,%rdi,4),%rbp
movslq %esi,%rcx
add    %rbp,%rcx
movsd  0x0(%r13,%rcx,8),%xmm0
mulsd  -0x8(%r12,%r11,8),%xmm0
divsd  %xmm3,%xmm0
addsd  (%r14,%rdi,8),%xmm0
movsd  (%r15,%rcx,8),%xmm1
mulsd  -0x8(%r12,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%r14,%rdi,8)
add    $0x1,%rdi
cmp    %rdi,%r8
jne    14b0 <subsm_+0x3a0>
mov    %edx,%eax
cltd
idivl  0x10(%rsp)
add    $0x1,%edx
add    $0x1,%r11
cmp    %r9,%r11
jne    1490 <subsm_+0x380>
jmp    1536 <subsm_+0x426>
mov    0xd8(%rsp),%rdi
mov    0x8(%rsp),%esi
mov    %r12,%rcx
xor    %r8d,%r8d
mov    %rbp,%r9
call   1030 <dtrsl_@plt>
movapd 0x40(%rsp),%xmm3
mov    0x20(%rsp),%r10
cmpl   $0x0,0x0(%rbp)
jne    12f6 <subsm_+0x1e6>
add    $0x1,%r10d
lea    -0x1(%r10),%r9
mov    $0x1,%ecx
cmp    $0x2,%r9
mov    0x30(%rsp),%r11
mov    0x28(%rsp),%r15
jb     1600 <subsm_+0x4f0>
mov    %r9,%rcx
and    $0xfffffffffffffffe,%rcx
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
lea    -0x2(%rcx),%rax
mov    %rax,%rdx
shr    %rdx
add    $0x1,%rdx
test   %rax,%rax
je     15d1 <subsm_+0x4c1>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movupd -0x8(%r14,%rsi,8),%xmm1
movupd 0x8(%r14,%rsi,8),%xmm2
divpd  %xmm0,%xmm1
movupd %xmm1,-0x8(%r14,%rsi,8)
divpd  %xmm0,%xmm2
movupd %xmm2,0x8(%r14,%rsi,8)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1590 <subsm_+0x480>
jmp    15d6 <subsm_+0x4c6>
xor    %ecx,%ecx
test   $0x1,%r10b
jne    13c6 <subsm_+0x2b6>
jmp    13fa <subsm_+0x2ea>
mov    $0x1,%esi
test   $0x1,%dl
je     15ed <subsm_+0x4dd>
movupd -0x8(%r14,%rsi,8),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,-0x8(%r14,%rsi,8)
cmp    %rcx,%r9
je     161b <subsm_+0x50b>
mov    %r9,%rcx
or     $0x1,%rcx
nopl   0x0(%rax)
movsd  -0x8(%r14,%rcx,8),%xmm0
divsd  %xmm3,%xmm0
movsd  %xmm0,-0x8(%r14,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r10
jne    1600 <subsm_+0x4f0>
mov    0xc8(%rsp),%r8
mov    0x98(%rsp),%rdx
mov    0x90(%rsp),%rsi
add    $0xfffffffffffffff8,%r15
add    $0xfffffffffffffff8,%r11
xor    %edi,%edi
movsd  0x9cb(%rip),%xmm0
mov    $0x1,%ebp
xorpd  %xmm1,%xmm1
movapd %xmm0,%xmm2
jmp    1675 <subsm_+0x565>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movapd %xmm2,%xmm4
add    $0x1,%rbp
movapd %xmm4,%xmm2
cmp    %rbp,%r10
je     1735 <subsm_+0x625>
movslq -0x4(%rbx,%rbp,4),%rcx
mov    -0x4(%rsi,%rcx,4),%eax
test   %eax,%eax
je     1660 <subsm_+0x550>
movsd  -0x8(%r14,%rbp,8),%xmm3
ucomisd %xmm3,%xmm1
jbe    16c0 <subsm_+0x5b0>
cmp    $0x2,%eax
jg     16c0 <subsm_+0x5b0>
movsd  (%r11,%rcx,8),%xmm5
subsd  -0x8(%rdx,%rcx,8),%xmm5
xorpd  %xmm4,%xmm4
ucomisd %xmm4,%xmm5
jae    1710 <subsm_+0x600>
movapd %xmm0,%xmm4
mulsd  %xmm3,%xmm4
ucomisd %xmm4,%xmm5
movapd %xmm2,%xmm4
ja     16f3 <subsm_+0x5e3>
jmp    1710 <subsm_+0x600>
xchg   %ax,%ax
ucomisd %xmm1,%xmm3
jbe    1707 <subsm_+0x5f7>
cmp    $0x2,%eax
jl     1725 <subsm_+0x615>
movsd  (%r15,%rcx,8),%xmm5
subsd  -0x8(%rdx,%rcx,8),%xmm5
xorpd  %xmm4,%xmm4
ucomisd %xmm5,%xmm4
jae    1710 <subsm_+0x600>
movapd %xmm0,%xmm4
mulsd  %xmm3,%xmm4
ucomisd %xmm5,%xmm4
movapd %xmm2,%xmm4
jbe    1710 <subsm_+0x600>
divsd  %xmm3,%xmm5
movapd %xmm5,%xmm4
ucomisd %xmm4,%xmm0
jbe    1664 <subsm_+0x554>
jmp    171a <subsm_+0x60a>
movapd %xmm2,%xmm4
nopl   0x0(%rax,%rax,1)
ucomisd %xmm4,%xmm0
jbe    1664 <subsm_+0x554>
mov    %ebp,%edi
movapd %xmm4,%xmm0
jmp    1664 <subsm_+0x554>
movapd %xmm2,%xmm4
ucomisd %xmm4,%xmm0
jbe    1664 <subsm_+0x554>
jmp    171a <subsm_+0x60a>
movsd  0x8d3(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    177f <subsm_+0x66f>
movslq %edi,%rcx
movsd  -0x8(%r14,%rcx,8),%xmm2
movslq -0x4(%rbx,%rcx,4),%rsi
xorpd  %xmm3,%xmm3
ucomisd %xmm3,%xmm2
jbe    1762 <subsm_+0x652>
lea    (%r15,%rsi,8),%rax
jmp    176c <subsm_+0x65c>
ucomisd %xmm2,%xmm3
jbe    177f <subsm_+0x66f>
lea    (%r11,%rsi,8),%rax
movsd  (%rax),%xmm2
movsd  %xmm2,-0x8(%rdx,%rsi,8)
movq   $0x0,-0x8(%r14,%rcx,8)
mov    $0x1,%esi
cmp    $0x2,%r10d
je     17e8 <subsm_+0x6d8>
mov    %r9,%rdi
and    $0xfffffffffffffffe,%rdi
neg    %rdi
mov    $0x1,%esi
nopl   0x0(%rax)
movslq -0x4(%rbx,%rsi,4),%rax
movsd  -0x8(%r14,%rsi,8),%xmm2
mulsd  %xmm0,%xmm2
addsd  -0x8(%rdx,%rax,8),%xmm2
movsd  %xmm2,-0x8(%rdx,%rax,8)
movslq (%rbx,%rsi,4),%rax
movsd  (%r14,%rsi,8),%xmm2
mulsd  %xmm0,%xmm2
addsd  -0x8(%rdx,%rax,8),%xmm2
movsd  %xmm2,-0x8(%rdx,%rax,8)
lea    (%rdi,%rsi,1),%rax
add    $0x2,%rax
add    $0x2,%rsi
cmp    $0x1,%rax
jne    17a0 <subsm_+0x690>
test   $0x1,%r9b
je     180a <subsm_+0x6fa>
movslq -0x4(%rbx,%rsi,4),%rax
movsd  -0x8(%r14,%rsi,8),%xmm2
mulsd  %xmm0,%xmm2
addsd  -0x8(%rdx,%rax,8),%xmm2
movsd  %xmm2,-0x8(%rdx,%rax,8)
xor    %eax,%eax
ucomisd %xmm0,%xmm1
seta   %al
mov    %eax,(%r8)
jmp    12f6 <subsm_+0x1e6>

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

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