#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);
void elmhes(double **a, int *ordr, int n) {
  int m, j, i;
  double y, x;
  for (i = 0; i < n; i++)
    ordr[i] = 0;
  for (m = 2; m < n; m++) {
    x = 0.0;
    i = m;
    for (j = m; j <= n; j++) {
      if (fabs(a[j - 1][m - 2]) > fabs(x)) {
        x = a[j - 1][m - 2];
        i = j;
      }
    }
    ordr[m - 1] = i;
    if (i != m) {
      for (j = m - 2; j < n; j++) {
        y = a[i - 1][j];
        a[i - 1][j] = a[m - 1][j];
        a[m - 1][j] = y;
      }
      for (j = 0; j < n; j++) {
        y = a[j][i - 1];
        a[j][i - 1] = a[j][m - 1];
        a[j][m - 1] = y;
      }
    }
    if (x != 0.0) {
      for (i = m; i < n; i++) {
        y = a[i][m - 2];
        if (y != 0.0) {
          y /= x;
          a[i][m - 2] = y;
          for (j = m - 1; j < n; j++) {
            a[i][j] -= y * a[m - 1][j];
          }
          for (j = 0; j < n; j++) {
            a[j][m - 1] += y * a[j][i];
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<elmhes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1153 <elmhes+0x43>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    112a <elmhes+0x1a>
movl   $0x2,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14fb <elmhes+0x3eb>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     1205 <elmhes+0xf5>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <fabs@plt>
mov    %rax,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
cmp    %rcx,%rax
jle    11f2 <elmhes+0xe2>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    11f7 <elmhes+0xe7>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    117a <elmhes+0x6a>
mov    -0x20(%rbp),%edx
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     1351 <elmhes+0x241>
mov    -0x18(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12b9 <elmhes+0x1a9>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    122d <elmhes+0x11d>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    134c <elmhes+0x23c>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12c0 <elmhes+0x1b0>
jmp    1351 <elmhes+0x241>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    136e <elmhes+0x25e>
jp     136e <elmhes+0x25e>
jmp    14e8 <elmhes+0x3d8>
mov    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14e3 <elmhes+0x3d3>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13bc <elmhes+0x2ac>
jp     13bc <elmhes+0x2ac>
jmp    14d0 <elmhes+0x3c0>
movsd  -0x30(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1469 <elmhes+0x359>
movsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
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    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13f7 <elmhes+0x2e7>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14cb <elmhes+0x3bb>
movsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1470 <elmhes+0x360>
jmp    14d0 <elmhes+0x3c0>
jmp    14d5 <elmhes+0x3c5>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1374 <elmhes+0x264>
jmp    14e8 <elmhes+0x3d8>
jmp    14ed <elmhes+0x3dd>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115a <elmhes+0x4a>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<elmhes>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsi,0x20(%rsp)
test   %edx,%edx
jle    1796 <elmhes+0x676>
mov    %rdi,%r12
mov    %rdx,%rbp
mov    %rdx,%rbx
mov    %ebx,%r14d
lea    0x0(,%r14,4),%rdx
mov    0x20(%rsp),%rdi
xor    %esi,%esi
call   1030 <memset@plt>
cmp    $0x3,%ebx
jb     1796 <elmhes+0x676>
lea    0x1(%rbp),%eax
mov    %rax,0xa0(%rsp)
add    $0xfffffffe,%ebp
mov    %rbp,0x58(%rsp)
lea    -0x1(%r14),%r10
mov    %r14,%r11
neg    %r11
mov    %r14d,%r13d
and    $0xfffffffe,%r13d
lea    -0x4(%r14),%rbp
lea    -0x5(%r14),%rax
mov    $0x2,%r15d
mov    $0x1,%ebx
mov    $0x6,%ecx
mov    %rcx,0x18(%rsp)
mov    $0x7,%ecx
mov    %rcx,0x30(%rsp)
xor    %ecx,%ecx
mov    %r14,0x50(%rsp)
mov    %r10,0x48(%rsp)
mov    %r11,0x40(%rsp)
jmp    120d <elmhes+0xed>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r15
mov    0x28(%rsp),%rcx
add    $0x1,%rcx
add    $0x1,%rbx
addq   $0x1,0x18(%rsp)
mov    0x80(%rsp),%rbp
add    $0xffffffffffffffff,%rbp
addq   $0x1,0x30(%rsp)
mov    0x78(%rsp),%rax
add    $0xffffffffffffffff,%rax
cmp    0x58(%rsp),%rcx
je     1796 <elmhes+0x676>
mov    %rbx,0x38(%rsp)
mov    %rax,0x78(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,0x88(%rsp)
mov    %rbp,0x80(%rsp)
shr    $0x2,%rbp
add    $0x1,%rbp
and    $0xfffffffffffffffe,%rbp
sub    %rcx,%r10
add    $0xfffffffffffffffc,%r10
mov    %r10,0x98(%rsp)
shr    $0x2,%r10
add    $0x1,%r10
mov    %r10,0x90(%rsp)
mov    %r14,%rax
sub    %rcx,%rax
mov    %rax,0x70(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x60(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
mov    %rax,0x68(%rsp)
mov    %rcx,0x28(%rsp)
not    %rcx
add    %r14,%rcx
mov    %rcx,0x10(%rsp)
mov    %r15,%r14
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r15d,%eax
mov    %r15d,0x4(%rsp)
jmp    12be <elmhes+0x19e>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r14
cmp    %r14,0xa0(%rsp)
je     1300 <elmhes+0x1e0>
mov    -0x8(%r12,%r14,8),%rax
movsd  -0x10(%rax,%r15,8),%xmm0
call   1040 <fabs@plt>
mov    %rax,%rbx
movsd  0x8(%rsp),%xmm0
call   1040 <fabs@plt>
cmp    %rax,%rbx
jle    12b0 <elmhes+0x190>
mov    -0x8(%r12,%r14,8),%rax
movsd  -0x10(%rax,%r15,8),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14d,%eax
mov    %r14d,0x4(%rsp)
jmp    12b0 <elmhes+0x190>
xchg   %ax,%ax
mov    0x20(%rsp),%rax
mov    0x4(%rsp),%ecx
mov    %ecx,-0x4(%rax,%r15,4)
mov    %ecx,%eax
cmp    %rax,%r15
mov    0x50(%rsp),%r14
mov    0x48(%rsp),%r10
mov    0x38(%rsp),%rbx
xorpd  %xmm8,%xmm8
je     1524 <elmhes+0x404>
movslq %ecx,%rax
mov    -0x8(%r12,%rax,8),%rax
mov    -0x8(%r12,%r15,8),%rcx
mov    0x28(%rsp),%r8
mov    %r8,%rdx
mov    0x70(%rsp),%r9
cmp    $0x4,%r9
jb     1440 <elmhes+0x320>
lea    (%rax,%r8,8),%rdx
lea    (%rcx,%r14,8),%rsi
cmp    %rsi,%rdx
jae    1372 <elmhes+0x252>
lea    (%rax,%r14,8),%rsi
lea    (%rcx,%r8,8),%rdi
mov    %r8,%rdx
cmp    %rsi,%rdi
jb     1440 <elmhes+0x320>
cmpq   $0x4,0x60(%rsp)
jae    137e <elmhes+0x25e>
xor    %esi,%esi
jmp    13ee <elmhes+0x2ce>
mov    0x18(%rsp),%rsi
lea    (%rcx,%rsi,8),%rdx
lea    (%rax,%rsi,8),%rdi
xor    %esi,%esi
nopl   (%rax)
movups -0x30(%rdi,%rsi,8),%xmm0
movups -0x20(%rdi,%rsi,8),%xmm1
movups -0x30(%rdx,%rsi,8),%xmm2
movups -0x20(%rdx,%rsi,8),%xmm3
movups %xmm2,-0x30(%rdi,%rsi,8)
movups %xmm3,-0x20(%rdi,%rsi,8)
movups %xmm0,-0x30(%rdx,%rsi,8)
movups %xmm1,-0x20(%rdx,%rsi,8)
movupd -0x10(%rdi,%rsi,8),%xmm0
movupd (%rdi,%rsi,8),%xmm1
movupd -0x10(%rdx,%rsi,8),%xmm2
movupd (%rdx,%rsi,8),%xmm3
movupd %xmm2,-0x10(%rdi,%rsi,8)
movupd %xmm3,(%rdi,%rsi,8)
movupd %xmm0,-0x10(%rdx,%rsi,8)
movupd %xmm1,(%rdx,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rbp
jne    1390 <elmhes+0x270>
mov    %r9,%rdx
and    $0xfffffffffffffffc,%rdx
testb  $0x1,0x68(%rsp)
je     142b <elmhes+0x30b>
add    %r8,%rsi
movupd (%rax,%rsi,8),%xmm0
movupd 0x10(%rax,%rsi,8),%xmm1
movupd (%rcx,%rsi,8),%xmm2
movupd 0x10(%rcx,%rsi,8),%xmm3
movupd %xmm2,(%rax,%rsi,8)
movupd %xmm3,0x10(%rax,%rsi,8)
movupd %xmm0,(%rcx,%rsi,8)
movupd %xmm1,0x10(%rcx,%rsi,8)
cmp    %rdx,%r9
mov    0x4(%rsp),%edi
je     14a5 <elmhes+0x385>
add    %r8,%rdx
nopw   0x0(%rax,%rax,1)
mov    %r14d,%edi
sub    %edx,%edi
mov    %rdx,%rsi
test   $0x1,%dil
je     1466 <elmhes+0x346>
movsd  (%rax,%rdx,8),%xmm0
movsd  (%rcx,%rdx,8),%xmm1
movsd  %xmm1,(%rax,%rdx,8)
movsd  %xmm0,(%rcx,%rdx,8)
lea    0x1(%rdx),%rsi
cmp    %rdx,%r10
mov    0x4(%rsp),%edi
je     14a5 <elmhes+0x385>
nop
movsd  (%rax,%rsi,8),%xmm0
movsd  (%rcx,%rsi,8),%xmm1
movsd  %xmm1,(%rax,%rsi,8)
movsd  %xmm0,(%rcx,%rsi,8)
movsd  0x8(%rax,%rsi,8),%xmm0
movsd  0x8(%rcx,%rsi,8),%xmm1
movsd  %xmm1,0x8(%rax,%rsi,8)
movsd  %xmm0,0x8(%rcx,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%r14
jne    1470 <elmhes+0x350>
add    $0xffffffff,%edi
movslq %edi,%rax
xor    %ecx,%ecx
test   %r10,%r10
je     1502 <elmhes+0x3e2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12,%rcx,8),%rdx
movsd  (%rdx,%rax,8),%xmm0
movsd  -0x8(%rdx,%r15,8),%xmm1
movsd  %xmm1,(%rdx,%rax,8)
movsd  %xmm0,-0x8(%rdx,%r15,8)
mov    0x8(%r12,%rcx,8),%rdx
movsd  (%rdx,%rax,8),%xmm0
movsd  -0x8(%rdx,%r15,8),%xmm1
movsd  %xmm1,(%rdx,%rax,8)
movsd  %xmm0,-0x8(%rdx,%r15,8)
add    $0x2,%rcx
cmp    %rcx,%r13
jne    14c0 <elmhes+0x3a0>
test   $0x1,%r14b
je     1524 <elmhes+0x404>
mov    (%r12,%rcx,8),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  -0x8(%rcx,%r15,8),%xmm1
movsd  %xmm1,(%rcx,%rax,8)
movsd  %xmm0,-0x8(%rcx,%r15,8)
movsd  0x8(%rsp),%xmm0
ucomisd %xmm8,%xmm0
mov    0x40(%rsp),%r11
movapd 0xac3(%rip),%xmm9
jne    1545 <elmhes+0x425>
jnp    11d0 <elmhes+0xb0>
mov    0x10(%rsp),%r9
and    $0xfffffffffffffffc,%r9
lea    (%rbx,%r9,1),%r8
mov    %r15,%rdx
jmp    156d <elmhes+0x44d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rdx
cmp    %r14,%rdx
je     11d0 <elmhes+0xb0>
mov    (%r12,%rdx,8),%rsi
movsd  -0x10(%rsi,%r15,8),%xmm0
ucomisd %xmm8,%xmm0
jne    1581 <elmhes+0x461>
jnp    1560 <elmhes+0x440>
divsd  0x8(%rsp),%xmm0
movsd  %xmm0,-0x10(%rsi,%r15,8)
mov    -0x8(%r12,%r15,8),%rdi
movapd %xmm0,%xmm1
xorpd  %xmm9,%xmm1
mov    %rbx,%rax
cmpq   $0x4,0x10(%rsp)
jb     16c0 <elmhes+0x5a0>
lea    (%rsi,%rbx,8),%rax
lea    (%rdi,%r14,8),%rcx
cmp    %rcx,%rax
jae    15cc <elmhes+0x4ac>
lea    (%rsi,%r14,8),%rcx
lea    (%rdi,%rbx,8),%rbp
mov    %rbx,%rax
cmp    %rcx,%rbp
jb     16c0 <elmhes+0x5a0>
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
cmpq   $0x4,0x98(%rsp)
jae    15e6 <elmhes+0x4c6>
xor    %ebp,%ebp
jmp    166f <elmhes+0x54f>
mov    0x30(%rsp),%rax
lea    (%rsi,%rax,8),%rbx
lea    (%rdi,%rax,8),%rcx
mov    0x88(%rsp),%rax
xor    %ebp,%ebp
nopl   (%rax)
movupd -0x30(%rcx,%rbp,8),%xmm3
movupd -0x20(%rcx,%rbp,8),%xmm4
mulpd  %xmm2,%xmm3
movupd -0x30(%rbx,%rbp,8),%xmm5
addpd  %xmm3,%xmm5
movupd -0x20(%rbx,%rbp,8),%xmm3
movupd -0x10(%rbx,%rbp,8),%xmm6
movupd (%rbx,%rbp,8),%xmm7
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
movupd %xmm5,-0x30(%rbx,%rbp,8)
movupd %xmm4,-0x20(%rbx,%rbp,8)
movupd -0x10(%rcx,%rbp,8),%xmm3
movupd (%rcx,%rbp,8),%xmm4
mulpd  %xmm2,%xmm3
addpd  %xmm6,%xmm3
mulpd  %xmm2,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm3,-0x10(%rbx,%rbp,8)
movupd %xmm4,(%rbx,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%rax
jne    1600 <elmhes+0x4e0>
testb  $0x1,0x90(%rsp)
01
mov    0x38(%rsp),%rbx
je     16b2 <elmhes+0x592>
add    %rbx,%rbp
movupd (%rdi,%rbp,8),%xmm3
movupd 0x10(%rdi,%rbp,8),%xmm4
movupd (%rsi,%rbp,8),%xmm5
movupd 0x10(%rsi,%rbp,8),%xmm6
mulpd  %xmm2,%xmm3
addpd  %xmm5,%xmm3
mulpd  %xmm2,%xmm4
addpd  %xmm6,%xmm4
movupd %xmm3,(%rsi,%rbp,8)
movupd %xmm4,0x10(%rsi,%rbp,8)
mov    %r8,%rax
cmp    %r9,0x10(%rsp)
je     1722 <elmhes+0x602>
nopl   0x0(%rax)
mov    %r14d,%ebp
sub    %eax,%ebp
mov    %rax,%rcx
test   $0x1,%bpl
je     16e5 <elmhes+0x5c5>
movsd  (%rdi,%rax,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rsi,%rax,8),%xmm2
movsd  %xmm2,(%rsi,%rax,8)
lea    0x1(%rax),%rcx
not    %rax
cmp    %r11,%rax
je     1722 <elmhes+0x602>
nopl   (%rax)
movsd  (%rdi,%rcx,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rsi,%rcx,8),%xmm2
movsd  %xmm2,(%rsi,%rcx,8)
movsd  0x8(%rdi,%rcx,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  0x8(%rsi,%rcx,8),%xmm2
movsd  %xmm2,0x8(%rsi,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r14
jne    16f0 <elmhes+0x5d0>
xor    %eax,%eax
test   %r10,%r10
je     1770 <elmhes+0x650>
nopl   0x0(%rax)
mov    (%r12,%rax,8),%rcx
movsd  (%rcx,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  -0x8(%rcx,%r15,8),%xmm1
movsd  %xmm1,-0x8(%rcx,%r15,8)
mov    0x8(%r12,%rax,8),%rcx
movsd  (%rcx,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  -0x8(%rcx,%r15,8),%xmm1
movsd  %xmm1,-0x8(%rcx,%r15,8)
add    $0x2,%rax
cmp    %rax,%r13
jne    1730 <elmhes+0x610>
test   $0x1,%r14b
je     1560 <elmhes+0x440>
mov    (%r12,%rax,8),%rax
mulsd  (%rax,%rdx,8),%xmm0
addsd  -0x8(%rax,%r15,8),%xmm0
movsd  %xmm0,-0x8(%rax,%r15,8)
jmp    1560 <elmhes+0x440>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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