#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int fabs(double);
int relax_gauss(double *A, int m, int n, int stride, double *b) {
  double tmp, maxpiv;
  int i, j, k, ioff, joff, maxrow;
  int row[m];
  for (i = 0; i < m; i++)
    row[i] = i;
  for (i = 0; i < m; i++) {
    maxpiv = A[row[i] * stride + i];
    maxrow = i;
    for (k = i + 1; k < m; k++) {
      tmp = A[row[k] * stride + i];
      if (fabs(tmp) > fabs(maxpiv)) {
        maxpiv = tmp;
        maxrow = k;
      }
    }
    if (fabs(maxpiv) < 1e-6)
      return -1;
    ioff = row[i];
    row[i] = row[maxrow];
    row[maxrow] = ioff;
    ioff = row[i] * stride;
    for (j = i + 1; j < m; j++) {
      joff = row[j] * stride;
      tmp = -A[joff + i] / maxpiv;
      for (k = i; k < n; k++)
        A[joff + k] += tmp * A[ioff + k];
      b[row[j]] += tmp * b[row[i]];
    }
  }
  for (i = m - 1; i >= 0; i--) {
    tmp = 0.0;
    ioff = row[i] * stride;
    for (j = i + 1; j < n; j++)
      tmp += A[ioff + j] * b[row[j]];
    b[row[i]] = (b[row[i]] - tmp) / A[ioff + i];
  }
  return 0;
}


x86 assembly (clang, -O0):
<relax_gauss>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1182 <relax_gauss+0x72>
mov    -0x70(%rbp),%rax
mov    -0x3c(%rbp),%edx
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    115a <relax_gauss+0x4a>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13ad <relax_gauss+0x29d>
mov    -0x70(%rbp),%rcx
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    123d <relax_gauss+0x12d>
mov    -0x70(%rbp),%rcx
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %eax,-0x74(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %eax,%ecx
mov    -0x74(%rbp),%eax
cmp    %ecx,%eax
jle    122a <relax_gauss+0x11a>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    122f <relax_gauss+0x11f>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11c7 <relax_gauss+0xb7>
movsd  -0x38(%rbp),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xdad(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1270 <relax_gauss+0x160>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
jmp    148f <relax_gauss+0x37f>
mov    -0x70(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
mov    %ecx,-0x48(%rbp)
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x48(%rbp),%edx
movslq -0x50(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    139a <relax_gauss+0x28a>
mov    -0x70(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1354 <relax_gauss+0x244>
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1304 <relax_gauss+0x1f4>
mov    -0x70(%rbp),%rcx
movsd  -0x30(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rdx
movslq (%rcx,%rdx,4),%rdx
movsd  (%rax,%rdx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0x40(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12ad <relax_gauss+0x19d>
jmp    139f <relax_gauss+0x28f>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1189 <relax_gauss+0x79>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jl     1481 <relax_gauss+0x371>
mov    -0x70(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1436 <relax_gauss+0x326>
mov    -0x70(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    -0x48(%rbp),%edx
add    -0x40(%rbp),%edx
movslq %edx,%rdx
movsd  (%rax,%rdx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x40(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13e3 <relax_gauss+0x2d3>
mov    -0x70(%rbp),%rcx
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rdx
movslq (%rcx,%rdx,4),%rdx
movsd  (%rax,%rdx,8),%xmm0
subsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x48(%rbp),%edx
add    -0x3c(%rbp),%edx
movslq %edx,%rdx
divsd  (%rax,%rdx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3c(%rbp)
jmp    13b6 <relax_gauss+0x2a6>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<relax_gauss>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %ecx,-0x34(%rbp)
mov    %rdi,-0x30(%rbp)
mov    %esi,%edi
mov    %rsp,%r13
lea    0xf(,%rdi,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
test   %esi,%esi
jle    1689 <relax_gauss+0x579>
mov    %r8,%r15
cmp    $0x8,%esi
mov    %rdi,-0x58(%rbp)
jae    115d <relax_gauss+0x4d>
xor    %eax,%eax
jmp    12c0 <relax_gauss+0x1b0>
mov    %edi,%eax
and    $0xfffffff8,%eax
lea    -0x8(%rax),%rdi
mov    %rdi,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %ecx,%ebx
and    $0x3,%ebx
cmp    $0x18,%rdi
jae    118b <relax_gauss+0x7b>
movdqa 0xe7c(%rip),%xmm0
xor    %edi,%edi
jmp    1265 <relax_gauss+0x155>
and    $0xfffffffffffffffc,%rcx
movdqa 0xe69(%rip),%xmm0
xor    %edi,%edi
movdqa 0xe6e(%rip),%xmm8
movdqa 0xe75(%rip),%xmm9
movdqa 0xe7c(%rip),%xmm10
movdqa 0xe84(%rip),%xmm4
movdqa 0xe8c(%rip),%xmm5
movdqa 0xe94(%rip),%xmm6
movdqa 0xe9c(%rip),%xmm7
movdqa 0xea4(%rip),%xmm1
nopl   0x0(%rax)
movdqa %xmm0,%xmm2
paddd  %xmm8,%xmm2
movdqa %xmm0,0x0(%r13,%rdi,4)
movdqa %xmm2,0x10(%r13,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm9,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm10,%xmm3
movdqa %xmm2,0x20(%r13,%rdi,4)
movdqa %xmm3,0x30(%r13,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm4,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm5,%xmm3
movdqa %xmm2,0x40(%r13,%rdi,4)
movdqa %xmm3,0x50(%r13,%rdi,4)
movdqa %xmm0,%xmm2
paddd  %xmm6,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm7,%xmm3
movdqa %xmm2,0x60(%r13,%rdi,4)
movdqa %xmm3,0x70(%r13,%rdi,4)
add    $0x20,%rdi
paddd  %xmm1,%xmm0
add    $0xfffffffffffffffc,%rcx
jne    11e0 <relax_gauss+0xd0>
test   %rbx,%rbx
je     12b0 <relax_gauss+0x1a0>
lea    0x10(,%rdi,4),%rcx
add    %r13,%rcx
shl    $0x5,%rbx
xor    %edi,%edi
movdqa 0xd8d(%rip),%xmm1
movdqa 0xd95(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm3
paddd  %xmm1,%xmm3
movdqa %xmm0,-0x10(%rcx,%rdi,1)
movdqa %xmm3,(%rcx,%rdi,1)
paddd  %xmm2,%xmm0
add    $0x20,%rdi
cmp    %rdi,%rbx
jne    1290 <relax_gauss+0x180>
mov    -0x58(%rbp),%rdi
cmp    %rdi,%rax
je     12ce <relax_gauss+0x1be>
nopl   0x0(%rax)
mov    %eax,0x0(%r13,%rax,4)
add    $0x1,%rax
cmp    %rax,%rdi
jne    12c0 <relax_gauss+0x1b0>
test   %esi,%esi
jle    1689 <relax_gauss+0x579>
mov    %esi,-0x74(%rbp)
movslq %edx,%rax
mov    %rax,-0xa0(%rbp)
mov    %eax,%r14d
mov    %r14,%rax
neg    %rax
mov    %rax,-0xd8(%rbp)
mov    -0x30(%rbp),%rax
lea    0x10(%rax),%rcx
mov    %rcx,-0x60(%rbp)
add    $0x8,%rax
mov    %rax,-0x98(%rbp)
mov    $0x1,%edx
xor    %eax,%eax
mov    %r14,-0x80(%rbp)
mov    %r13,-0x68(%rbp)
jmp    1345 <relax_gauss+0x235>
nopl   0x0(%rax,%rax,1)
mov    -0x88(%rbp),%rdx
add    $0x1,%rdx
addq   $0xffffffffffffffff,-0x80(%rbp)
addq   $0x8,-0x60(%rbp)
mov    -0x90(%rbp),%rax
cmp    %rdi,%rax
je     169a <relax_gauss+0x58a>
mov    %rax,%rbx
mov    0x0(%r13,%rax,4),%eax
mov    %eax,-0x50(%rbp)
imul   -0x34(%rbp),%eax
add    %ebx,%eax
cltq
mov    -0x30(%rbp),%rcx
movsd  (%rcx,%rax,8),%xmm1
lea    0x1(%rbx),%rax
mov    %rax,-0x90(%rbp)
cmp    %rdi,%rax
mov    %rbx,-0x48(%rbp)
mov    %rdx,-0x88(%rbp)
jae    13f0 <relax_gauss+0x2e0>
mov    %rdx,%r13
mov    %ebx,%r12d
jmp    13a6 <relax_gauss+0x296>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmovg  %r13d,%r12d
add    $0x1,%r13
movapd %xmm0,%xmm1
cmp    %r13,-0x58(%rbp)
mov    -0x48(%rbp),%rbx
je     13f7 <relax_gauss+0x2e7>
movsd  %xmm1,-0x40(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax,%r13,4),%eax
imul   -0x34(%rbp),%eax
add    %ebx,%eax
cltq
mov    -0x30(%rbp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
call   1030 <fabs@plt>
mov    %eax,%ebx
movsd  -0x40(%rbp),%xmm0
call   1030 <fabs@plt>
movsd  -0x70(%rbp),%xmm0
cmp    %eax,%ebx
jg     1390 <relax_gauss+0x280>
movsd  -0x40(%rbp),%xmm0
jmp    1390 <relax_gauss+0x280>
nopw   0x0(%rax,%rax,1)
movapd %xmm1,%xmm0
mov    %ebx,%r12d
movsd  %xmm0,-0x70(%rbp)
call   1030 <fabs@plt>
test   %eax,%eax
jle    1690 <relax_gauss+0x580>
movslq %r12d,%rax
mov    -0x68(%rbp),%r13
mov    0x0(%r13,%rax,4),%ecx
mov    %ecx,0x0(%r13,%rbx,4)
mov    -0x50(%rbp),%ecx
mov    %ecx,0x0(%r13,%rax,4)
movslq -0x34(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x58(%rbp),%rdi
cmp    %rdi,-0x90(%rbp)
movapd 0xc53(%rip),%xmm6
movsd  -0x70(%rbp),%xmm7
jae    1320 <relax_gauss+0x210>
mov    %r14,%rsi
sub    %rbx,%rsi
mov    -0x80(%rbp),%rdx
and    $0xfffffffffffffffc,%rdx
mov    -0x30(%rbp),%r9
lea    (%r9,%rsi,8),%r8
movslq 0x0(%r13,%rbx,4),%r12
mov    %r12d,%ecx
imul   -0x34(%rbp),%ecx
movslq %ecx,%rcx
lea    (%rbx,%rcx,1),%r10
lea    (%r9,%r10,8),%rax
mov    %rax,-0xb8(%rbp)
mov    %r8,-0xc0(%rbp)
lea    (%r8,%r10,8),%rax
mov    %rax,-0xd0(%rbp)
mov    %rsi,-0x50(%rbp)
and    $0xfffffffffffffffc,%rsi
mov    %rsi,-0xb0(%rbp)
lea    (%rbx,%rsi,1),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x60(%rbp),%rax
lea    (%rax,%rcx,8),%r11
mov    -0x98(%rbp),%rax
mov    %rcx,-0xc8(%rbp)
lea    (%rax,%rcx,8),%r8
mov    -0x88(%rbp),%r9
jmp    14f3 <relax_gauss+0x3e3>
nopl   0x0(%rax,%rax,1)
mulsd  (%r15,%r12,8),%xmm0
addsd  (%r15,%rsi,8),%xmm0
movsd  %xmm0,(%r15,%rsi,8)
add    $0x1,%r9
cmp    %rdi,%r9
mov    -0x48(%rbp),%rbx
je     1320 <relax_gauss+0x210>
movslq 0x0(%r13,%r9,4),%rsi
mov    %rsi,%r10
imul   -0x40(%rbp),%r10
lea    (%r10,%rbx,1),%ecx
movslq %ecx,%rcx
mov    -0x30(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
xorpd  %xmm6,%xmm0
divsd  %xmm7,%xmm0
cmp    -0xa0(%rbp),%rbx
jge    14d0 <relax_gauss+0x3c0>
mov    -0x48(%rbp),%rcx
cmpq   $0x4,-0x50(%rbp)
jb     15e0 <relax_gauss+0x4d0>
mov    -0x48(%rbp),%rax
lea    (%rax,%r10,1),%rcx
mov    -0x30(%rbp),%rax
lea    (%rax,%rcx,8),%rbx
cmp    -0xd0(%rbp),%rbx
jae    1561 <relax_gauss+0x451>
mov    -0xc0(%rbp),%rax
lea    (%rax,%rcx,8),%rbx
mov    -0x48(%rbp),%rcx
cmp    %rbx,-0xb8(%rbp)
jb     15e0 <relax_gauss+0x4d0>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
mov    -0x60(%rbp),%rax
lea    (%rax,%r10,8),%rcx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd -0x10(%r11,%rbx,8),%xmm2
movupd (%r11,%rbx,8),%xmm3
movupd -0x10(%rcx,%rbx,8),%xmm4
movupd (%rcx,%rbx,8),%xmm5
mulpd  %xmm1,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,-0x10(%rcx,%rbx,8)
movupd %xmm3,(%rcx,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%rdx
jne    1580 <relax_gauss+0x470>
mov    -0xa8(%rbp),%rcx
mov    -0xb0(%rbp),%rax
cmp    %rax,-0x50(%rbp)
je     14d0 <relax_gauss+0x3c0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%r13
mov    %r14d,%r15d
sub    %ecx,%r15d
mov    %rcx,%rbx
test   $0x1,%r15b
je     1620 <relax_gauss+0x510>
mov    -0xc8(%rbp),%rax
lea    (%rcx,%rax,1),%rbx
lea    (%rcx,%r10,1),%rax
mov    -0x30(%rbp),%rdi
movsd  (%rdi,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rdi,%rax,8),%xmm1
movsd  %xmm1,(%rdi,%rax,8)
mov    -0x58(%rbp),%rdi
lea    0x1(%rcx),%rbx
not    %rcx
cmp    -0xd8(%rbp),%rcx
mov    %r13,%r15
mov    -0x68(%rbp),%r13
je     14d0 <relax_gauss+0x3c0>
mov    -0x98(%rbp),%rax
lea    (%rax,%r10,8),%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x8(%r8,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  -0x8(%rcx,%rbx,8),%xmm1
movsd  %xmm1,-0x8(%rcx,%rbx,8)
movsd  (%r8,%rbx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rcx,%rbx,8),%xmm1
movsd  %xmm1,(%rcx,%rbx,8)
add    $0x2,%rbx
cmp    %rbx,%r14
jne    1650 <relax_gauss+0x540>
jmp    14d0 <relax_gauss+0x3c0>
xor    %eax,%eax
jmp    172f <relax_gauss+0x61f>
mov    $0xffffffff,%eax
jmp    172f <relax_gauss+0x61f>
xor    %eax,%eax
cmpl   $0x0,-0x74(%rbp)
jle    172f <relax_gauss+0x61f>
mov    -0xa0(%rbp),%rsi
jmp    16d8 <relax_gauss+0x5c8>
nop
movsd  (%r15,%r10,8),%xmm1
subsd  %xmm0,%xmm1
add    %r8d,%edi
movslq %edi,%rcx
mov    -0x30(%rbp),%rdx
divsd  (%rdx,%rcx,8),%xmm1
movsd  %xmm1,(%r15,%r10,8)
cmp    $0x1,%r9
mov    %r8,%rdi
jle    172f <relax_gauss+0x61f>
lea    -0x1(%rdi),%r8
mov    %r8d,%ecx
movslq 0x0(%r13,%rcx,4),%r10
mov    %rdi,%rcx
mov    %r10,%rdi
imul   -0x40(%rbp),%rdi
pxor   %xmm0,%xmm0
mov    %rcx,%r9
cmp    %rsi,%rcx
jge    16b0 <relax_gauss+0x5a0>
mov    -0x30(%rbp),%rcx
lea    (%rcx,%rdi,8),%rcx
pxor   %xmm0,%xmm0
mov    %r9,%rbx
nopw   0x0(%rax,%rax,1)
movsd  (%rcx,%rbx,8),%xmm1
movslq 0x0(%r13,%rbx,4),%rdx
mulsd  (%r15,%rdx,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rbx
cmp    %rsi,%rbx
jl     1710 <relax_gauss+0x600>
jmp    16b0 <relax_gauss+0x5a0>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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