#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 */
scalar_t__ fabs(double);
double sqrt(double);
void mytred2(double **a, const unsigned int n, double *d, double *e) {
  unsigned int l, k, j, i;
  double scale, hh, h, g, f;
  for (i = n; i > 1; i--) {
    l = i - 1;
    h = 0.0;
    scale = 0.0;
    if (l > 1) {
      for (k = 1; k <= l; k++)
        scale += fabs(a[k - 1][i - 1]);
      if (scale == 0.0)
        e[i - 1] = a[l - 1][i - 1];
      else {
        for (k = 1; k <= l; k++) {
          a[k - 1][i - 1] /= scale;
          h += a[k - 1][i - 1] * a[k - 1][i - 1];
        }
        f = a[l - 1][i - 1];
        g = ((f > 0) ? -sqrt(h) : sqrt(h));
        e[i - 1] = scale * g;
        h -= f * g;
        a[l - 1][i - 1] = f - g;
        f = 0.0;
        for (j = 1; j <= l; j++) {
          a[i - 1][j - 1] = a[j - 1][i - 1] / h;
          g = 0.0;
          for (k = 1; k <= j; k++)
            g += a[k - 1][j - 1] * a[k - 1][i - 1];
          for (k = j + 1; k <= l; k++)
            g += a[j - 1][k - 1] * a[k - 1][i - 1];
          e[j - 1] = g / h;
          f += e[j - 1] * a[j - 1][i - 1];
        }
        hh = f / (h + h);
        for (j = 1; j <= l; j++) {
          f = a[j - 1][i - 1];
          g = e[j - 1] - hh * f;
          e[j - 1] = g;
          for (k = 1; k <= j; k++)
            a[k - 1][j - 1] -= (f * e[k - 1] + g * a[k - 1][i - 1]);
        }
      }
    } else
      e[i - 1] = a[l - 1][i - 1];
    d[i - 1] = h;
  }
  d[0] = 0.0;
  e[0] = 0.0;
  for (i = 1; i <= n; i++) {
    l = i - 1;
    if (d[i - 1] != 0.0) {
      for (j = 1; j <= l; j++) {
        g = 0.0;
        for (k = 1; k <= l; k++)
          g += a[k - 1][i - 1] * a[j - 1][k - 1];
        for (k = 1; k <= l; k++)
          a[j - 1][k - 1] -= g * a[i - 1][k - 1];
      }
    }
    d[i - 1] = a[i - 1][i - 1];
    a[i - 1][i - 1] = 1.0;
    for (j = 1; j <= l; j++)
      a[i - 1][j - 1] = a[j - 1][i - 1] = 0.0;
  }
}


x86 assembly (clang, -O0):
<mytred2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x1,-0x30(%rbp)
jbe    16cb <mytred2+0x5ab>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
cmpl   $0x1,-0x24(%rbp)
jbe    1679 <mytred2+0x559>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     11bc <mytred2+0x9c>
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1171 <mytred2+0x51>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1207 <mytred2+0xe7>
jp     1207 <mytred2+0xe7>
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1674 <mytred2+0x554>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     129f <mytred2+0x17f>
movsd  -0x38(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    120e <mytred2+0xee>
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12fe <mytred2+0x1de>
movsd  -0x48(%rbp),%xmm0
call   1040 <sqrt@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    130d <mytred2+0x1ed>
movsd  -0x48(%rbp),%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x58(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     1533 <mytred2+0x413>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
ja     145b <mytred2+0x33b>
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13f5 <mytred2+0x2d5>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     14ca <mytred2+0x3aa>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1464 <mytred2+0x344>
movsd  -0x50(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    139b <mytred2+0x27b>
movsd  -0x58(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
addsd  -0x48(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     166f <mytred2+0x54f>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
ja     165c <mytred2+0x53c>
movsd  -0x58(%rbp),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    15dc <mytred2+0x4bc>
jmp    1661 <mytred2+0x541>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1552 <mytred2+0x432>
jmp    1674 <mytred2+0x554>
jmp    16a7 <mytred2+0x587>
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x30(%rbp)
jmp    113d <mytred2+0x1d>
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
ja     1911 <mytred2+0x7f1>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1726 <mytred2+0x606>
jp     1726 <mytred2+0x606>
jmp    184a <mytred2+0x72a>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     1845 <mytred2+0x725>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     17ae <mytred2+0x68e>
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1748 <mytred2+0x628>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     1832 <mytred2+0x712>
movsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    17b5 <mytred2+0x695>
jmp    1837 <mytred2+0x717>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    172d <mytred2+0x60d>
jmp    184a <mytred2+0x72a>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  0x768(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
ja     18fe <mytred2+0x7de>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    18a4 <mytred2+0x784>
jmp    1903 <mytred2+0x7e3>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    16e8 <mytred2+0x5c8>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mytred2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r12
mov    %rdx,0x18(%rsp)
mov    %rdi,%rbx
mov    %rsi,0x10(%rsp)
cmp    $0x2,%esi
jb     15cc <mytred2+0x4ac>
mov    0x10(%rsp),%eax
lea    -0x2(%rax),%rcx
mov    %rcx,0x38(%rsp)
lea    -0x1(%rax),%r13
xor    %r15d,%r15d
mov    %rax,0x40(%rsp)
jmp    11b9 <mytred2+0x99>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xfffffffe,%eax
mov    (%rsp),%rcx
add    %eax,%ecx
mov    (%rbx,%rcx,8),%rax
movsd  (%rax,%r14,8),%xmm0
movsd  %xmm0,(%r12,%r14,8)
xorpd  %xmm5,%xmm5
mov    0x8(%rsp),%r13
mov    0x28(%rsp),%r15
mov    0x18(%rsp),%rax
movsd  %xmm5,(%rax,%r14,8)
add    $0x1,%r15
add    $0xffffffffffffffff,%r13
mov    %r14,%rax
cmp    $0x1,%r14
jbe    15cc <mytred2+0x4ac>
lea    -0x1(%rax),%r14
cmp    $0x2,%r14
jb     15b0 <mytred2+0x490>
mov    %rax,(%rsp)
mov    %r13,0x8(%rsp)
and    $0xfffffffffffffffe,%r13
neg    %r13
mov    %r15,0x28(%rsp)
mov    %r15,%rbp
not    %rbp
add    0x40(%rsp),%rbp
xorps  %xmm4,%xmm4
mov    $0x2,%r15d
movsd  %xmm4,0x20(%rsp)
lea    -0x2(%r15),%eax
mov    (%rbx,%rax,8),%rax
movsd  (%rax,%r14,8),%xmm0
call   1030 <fabs@plt>
movsd  0x20(%rsp),%xmm4
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  %xmm0,%xmm4
mov    %r15d,%eax
add    $0x1,%r15d
cmp    %rax,%r14
jae    11f0 <mytred2+0xd0>
ucomisd 0xde1(%rip),%xmm4
jne    1237 <mytred2+0x117>
jnp    1170 <mytred2+0x50>
mov    0x28(%rsp),%r15
cmp    %r15,0x38(%rsp)
jne    124e <mytred2+0x12e>
xorpd  %xmm5,%xmm5
mov    $0x1,%eax
jmp    12ab <mytred2+0x18b>
xorpd  %xmm5,%xmm5
mov    $0x1,%eax
nopw   0x0(%rax,%rax,1)
mov    -0x8(%rbx,%rax,8),%rcx
movsd  (%rcx,%r14,8),%xmm0
divsd  %xmm4,%xmm0
movsd  %xmm0,(%rcx,%r14,8)
mulsd  %xmm0,%xmm0
addsd  %xmm5,%xmm0
mov    (%rbx,%rax,8),%rcx
movsd  (%rcx,%r14,8),%xmm5
divsd  %xmm4,%xmm5
movsd  %xmm5,(%rcx,%r14,8)
mulsd  %xmm5,%xmm5
addsd  %xmm0,%xmm5
lea    (%rax,%r13,1),%rcx
add    $0x2,%rcx
add    $0x2,%rax
cmp    $0x1,%rcx
jne    1260 <mytred2+0x140>
test   $0x1,%bpl
je     12ce <mytred2+0x1ae>
mov    -0x8(%rbx,%rax,8),%rax
movsd  (%rax,%r14,8),%xmm0
divsd  %xmm4,%xmm0
movsd  %xmm0,(%rax,%r14,8)
mulsd  %xmm0,%xmm0
addsd  %xmm0,%xmm5
mov    $0xfffffffe,%eax
mov    (%rsp),%rbp
add    %eax,%ebp
mov    (%rbx,%rbp,8),%rax
movsd  (%rax,%r14,8),%xmm6
ucomisd 0xd25(%rip),%xmm5
jb     12f6 <mytred2+0x1d6>
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
jmp    1321 <mytred2+0x201>
movapd %xmm5,%xmm0
movsd  %xmm5,(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm6,0x30(%rsp)
call   1040 <sqrt@plt>
movsd  0x30(%rsp),%xmm6
movsd  0x20(%rsp),%xmm4
movsd  (%rsp),%xmm5
mov    0x8(%rsp),%r13
movapd %xmm0,%xmm2
xorpd  0xcce(%rip),%xmm2
xorpd  %xmm1,%xmm1
xorpd  %xmm3,%xmm3
cmpltsd %xmm6,%xmm3
andpd  %xmm3,%xmm2
andnpd %xmm0,%xmm3
orpd   %xmm2,%xmm3
mulsd  %xmm3,%xmm4
movsd  %xmm4,(%r12,%r14,8)
movapd %xmm6,%xmm0
mulsd  %xmm3,%xmm0
subsd  %xmm0,%xmm5
subsd  %xmm3,%xmm6
mov    (%rbx,%rbp,8),%rax
movsd  %xmm6,(%rax,%r14,8)
mov    (%rbx,%r14,8),%r8
mov    $0x1,%eax
mov    $0x3,%r9d
xor    %r10d,%r10d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x8(%rbx,%rax,8),%rdi
movsd  (%rdi,%r14,8),%xmm0
divsd  %xmm5,%xmm0
movsd  %xmm0,-0x8(%r8,%rax,8)
mov    $0x1,%ebp
xorpd  %xmm0,%xmm0
test   %r10,%r10
je     140b <mytred2+0x2eb>
mov    %rax,%rcx
and    $0xfffffffffffffffe,%rcx
neg    %rcx
xorpd  %xmm0,%xmm0
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
mov    -0x8(%rbx,%rbp,8),%rdx
mov    (%rbx,%rbp,8),%rsi
movsd  -0x8(%rdx,%rax,8),%xmm2
mulsd  (%rdx,%r14,8),%xmm2
addsd  %xmm0,%xmm2
movsd  -0x8(%rsi,%rax,8),%xmm0
mulsd  (%rsi,%r14,8),%xmm0
addsd  %xmm2,%xmm0
lea    (%rcx,%rbp,1),%rdx
add    $0x2,%rdx
add    $0x2,%rbp
cmp    $0x1,%rdx
jne    13d0 <mytred2+0x2b0>
test   $0x1,%al
je     1424 <mytred2+0x304>
mov    -0x8(%rbx,%rbp,8),%rcx
movsd  -0x8(%rcx,%rax,8),%xmm2
mulsd  (%rcx,%r14,8),%xmm2
addsd  %xmm2,%xmm0
cmp    %r14,%rax
jae    147b <mytred2+0x35b>
lea    0x1(%rax),%rbp
mov    %r9d,%ecx
lea    -0x2(%rcx),%edx
movsd  (%rdi,%rdx,8),%xmm2
mov    (%rbx,%rdx,8),%rdx
mulsd  (%rdx,%r14,8),%xmm2
addsd  %xmm2,%xmm0
mov    %ecx,%edx
add    $0x1,%ecx
cmp    %rdx,%r14
jae    1430 <mytred2+0x310>
divsd  %xmm5,%xmm0
movsd  %xmm0,-0x8(%r12,%rax,8)
mulsd  (%rdi,%r14,8),%xmm0
addsd  %xmm0,%xmm1
add    $0x1,%r10
add    $0x1,%r9d
cmp    %r14,%rax
mov    %rbp,%rax
jb     1390 <mytred2+0x270>
jmp    1490 <mytred2+0x370>
divsd  %xmm5,%xmm0
movsd  %xmm0,-0x8(%r12,%rax,8)
mulsd  (%rdi,%r14,8),%xmm0
addsd  %xmm0,%xmm1
movapd %xmm5,%xmm0
addsd  %xmm5,%xmm0
xorpd  0xb60(%rip),%xmm1
divsd  %xmm0,%xmm1
mov    $0x1,%ecx
xor    %eax,%eax
jmp    14c4 <mytred2+0x3a4>
nopl   (%rax)
lea    0x1(%rcx),%rdx
add    $0x1,%rax
cmp    %r14,%rcx
mov    %rdx,%rcx
jae    1199 <mytred2+0x79>
mov    -0x8(%rbx,%rcx,8),%rdx
movsd  (%rdx,%r14,8),%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm0,%xmm2
addsd  -0x8(%r12,%rcx,8),%xmm2
movsd  %xmm2,-0x8(%r12,%rcx,8)
mov    $0x1,%edx
test   %rax,%rax
je     157c <mytred2+0x45c>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
neg    %rsi
mov    $0x1,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0x8(%rbx,%rdx,8),%rdi
movsd  (%rdi,%r14,8),%xmm3
mulsd  %xmm2,%xmm3
movsd  -0x8(%r12,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm3,%xmm4
movsd  -0x8(%rdi,%rcx,8),%xmm3
subsd  %xmm4,%xmm3
movsd  %xmm3,-0x8(%rdi,%rcx,8)
mov    (%rbx,%rdx,8),%rdi
movsd  (%rdi,%r14,8),%xmm3
mulsd  %xmm2,%xmm3
movsd  (%r12,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm3,%xmm4
movsd  -0x8(%rdi,%rcx,8),%xmm3
subsd  %xmm4,%xmm3
movsd  %xmm3,-0x8(%rdi,%rcx,8)
lea    (%rsi,%rdx,1),%rdi
add    $0x2,%rdi
add    $0x2,%rdx
cmp    $0x1,%rdi
jne    1510 <mytred2+0x3f0>
test   $0x1,%cl
je     14b0 <mytred2+0x390>
mov    -0x8(%rbx,%rdx,8),%rsi
mulsd  (%rsi,%r14,8),%xmm2
mulsd  -0x8(%r12,%rdx,8),%xmm0
addsd  %xmm2,%xmm0
movsd  -0x8(%rsi,%rcx,8),%xmm2
subsd  %xmm0,%xmm2
movsd  %xmm2,-0x8(%rsi,%rcx,8)
jmp    14b0 <mytred2+0x390>
mov    (%rbx),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%r12)
mov    0x18(%rsp),%rax
movq   $0x0,(%rax,%r14,8)
mov    0x18(%rsp),%rax
movq   $0x0,(%rax)
movq   $0x0,(%r12)
cmpl   $0x0,0x10(%rsp)
je     1984 <mytred2+0x864>
mov    0x10(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x10(%rsp)
mov    $0x1,%eax
movq   $0xfffffffffffffffc,0x8(%rsp)
ff ff
xor    %r10d,%r10d
xorpd  %xmm8,%xmm8
movapd 0x9ea(%rip),%xmm1
jmp    1639 <mytred2+0x519>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
add    $0x1,%r10
addq   $0x1,0x8(%rsp)
cmp    0x10(%rsp),%rax
je     1984 <mytred2+0x864>
mov    %r10,%r12
and    $0xfffffffffffffffe,%r12
neg    %r12
lea    -0x1(%rax),%rcx
mov    %rcx,(%rsp)
mov    0x18(%rsp),%rcx
movsd  -0x8(%rcx,%rax,8),%xmm2
ucomisd %xmm8,%xmm2
jne    1663 <mytred2+0x543>
jnp    18e0 <mytred2+0x7c0>
cmpq   $0x0,(%rsp)
je     18e0 <mytred2+0x7c0>
mov    0x8(%rsp),%r14
shr    $0x2,%r14
add    $0x1,%r14
and    $0xfffffffffffffffe,%r14
lea    -0x4(%r10),%r15
mov    %r15,0x20(%rsp)
shr    $0x2,%r15
add    $0x1,%r15
mov    -0x8(%rbx,%rax,8),%rsi
lea    (%rsi,%r10,8),%r13
mov    %r10,%r11
and    $0xfffffffffffffffc,%r11
lea    0x1(%r11),%rcx
mov    %rcx,0x28(%rsp)
mov    $0x1,%r8d
jmp    16cd <mytred2+0x5ad>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r8
cmp    %rax,%r8
je     18e0 <mytred2+0x7c0>
mov    -0x8(%rbx,%r8,8),%rbp
xorpd  %xmm2,%xmm2
mov    $0x1,%ecx
cmp    $0x1,%r10
je     172b <mytred2+0x60b>
xorpd  %xmm2,%xmm2
mov    $0x1,%ecx
nopw   0x0(%rax,%rax,1)
mov    -0x8(%rbx,%rcx,8),%rdx
mov    (%rbx,%rcx,8),%rdi
movsd  -0x8(%rdx,%rax,8),%xmm0
mulsd  -0x8(%rbp,%rcx,8),%xmm0
addsd  %xmm2,%xmm0
movsd  -0x8(%rdi,%rax,8),%xmm2
mulsd  0x0(%rbp,%rcx,8),%xmm2
addsd  %xmm0,%xmm2
lea    (%r12,%rcx,1),%rdx
add    $0x2,%rdx
add    $0x2,%rcx
cmp    $0x1,%rdx
jne    16f0 <mytred2+0x5d0>
test   $0x1,%r10b
je     1746 <mytred2+0x626>
mov    -0x8(%rbx,%rcx,8),%rdx
movsd  -0x8(%rdx,%rax,8),%xmm3
mulsd  -0x8(%rbp,%rcx,8),%xmm3
addsd  %xmm3,%xmm2
xorpd  %xmm1,%xmm2
mov    -0x8(%rbx,%r8,8),%rbp
mov    $0x1,%edx
cmp    $0x4,%r10
jb     1870 <mytred2+0x750>
cmp    %r13,%rbp
jae    1777 <mytred2+0x657>
lea    0x0(,%r10,8),%rcx
add    %rbp,%rcx
cmp    %rcx,%rsi
jb     1870 <mytred2+0x750>
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
cmpq   $0x4,0x20(%rsp)
jae    178f <mytred2+0x66f>
xor    %r9d,%r9d
jmp    181d <mytred2+0x6fd>
mov    %r14,%rcx
xor    %r9d,%r9d
cs nopw 0x0(%rax,%rax,1)
nop
movupd (%rsi,%r9,8),%xmm4
movupd 0x10(%rsi,%r9,8),%xmm5
mulpd  %xmm3,%xmm4
movupd 0x0(%rbp,%r9,8),%xmm6
addpd  %xmm4,%xmm6
movupd 0x10(%rbp,%r9,8),%xmm4
movupd 0x20(%rbp,%r9,8),%xmm7
movupd 0x30(%rbp,%r9,8),%xmm0
mulpd  %xmm3,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm6,0x0(%rbp,%r9,8)
movupd %xmm5,0x10(%rbp,%r9,8)
movupd 0x20(%rsi,%r9,8),%xmm4
movupd 0x30(%rsi,%r9,8),%xmm5
mulpd  %xmm3,%xmm4
addpd  %xmm7,%xmm4
mulpd  %xmm3,%xmm5
addpd  %xmm0,%xmm5
movupd %xmm4,0x20(%rbp,%r9,8)
movupd %xmm5,0x30(%rbp,%r9,8)
add    $0x8,%r9
add    $0xfffffffffffffffe,%rcx
jne    17a0 <mytred2+0x680>
test   $0x1,%r15b
je     185c <mytred2+0x73c>
movupd (%rsi,%r9,8),%xmm0
movupd 0x10(%rsi,%r9,8),%xmm4
movupd 0x0(%rbp,%r9,8),%xmm5
movupd 0x10(%rbp,%r9,8),%xmm6
mulpd  %xmm3,%xmm0
addpd  %xmm5,%xmm0
mulpd  %xmm3,%xmm4
addpd  %xmm6,%xmm4
movupd %xmm0,0x0(%rbp,%r9,8)
movupd %xmm4,0x10(%rbp,%r9,8)
mov    0x28(%rsp),%rdx
cmp    %r11,%r10
je     16c0 <mytred2+0x5a0>
nopw   0x0(%rax,%rax,1)
mov    %rdx,%rcx
test   $0x1,%al
jne    1891 <mytred2+0x771>
movsd  -0x8(%rsi,%rdx,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  -0x8(%rbp,%rdx,8),%xmm0
movsd  %xmm0,-0x8(%rbp,%rdx,8)
lea    0x1(%rdx),%rcx
cmp    %rdx,%r10
je     16c0 <mytred2+0x5a0>
nopw   0x0(%rax,%rax,1)
movsd  -0x8(%rsi,%rcx,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  -0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rbp,%rcx,8)
movsd  (%rsi,%rcx,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    18a0 <mytred2+0x780>
jmp    16c0 <mytred2+0x5a0>
nopl   0x0(%rax)
mov    -0x8(%rbx,%rax,8),%rcx
movsd  -0x8(%rcx,%rax,8),%xmm0
mov    0x18(%rsp),%rdx
movsd  %xmm0,-0x8(%rdx,%rax,8)
movabs $0x3ff0000000000000,%rdx
mov    %rdx,-0x8(%rcx,%rax,8)
cmpq   $0x0,(%rsp)
je     1620 <mytred2+0x500>
mov    $0x1,%esi
cmp    $0x1,%r10
je     195e <mytred2+0x83e>
mov    $0x1,%esi
mov    -0x8(%rbx,%rsi,8),%rdx
movq   $0x0,-0x8(%rdx,%rax,8)
movq   $0x0,-0x8(%rcx,%rsi,8)
mov    (%rbx,%rsi,8),%rdx
movq   $0x0,-0x8(%rdx,%rax,8)
movq   $0x0,(%rcx,%rsi,8)
lea    (%r12,%rsi,1),%rdx
add    $0x2,%rdx
add    $0x2,%rsi
cmp    $0x1,%rdx
jne    1920 <mytred2+0x800>
test   $0x1,%r10b
je     1620 <mytred2+0x500>
mov    -0x8(%rbx,%rsi,8),%rdx
movq   $0x0,-0x8(%rdx,%rax,8)
movq   $0x0,-0x8(%rcx,%rsi,8)
jmp    1620 <mytred2+0x500>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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