#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__ calloc(size_t, int);
double *gaussSLESolve(size_t size, double *A) {
  int extSize = size + 1;
  for (int row = 0; row < size; row++) {
    int col = row;
    int lastRowToSwap = size - 1;
    while (A[row * extSize + col] == 0 && lastRowToSwap > row) {
      for (int i = 0; i < extSize; i++) {
        double tmp = A[row * extSize + i];
        A[row * extSize + i] = A[lastRowToSwap * extSize + i];
        A[lastRowToSwap * extSize + i] = tmp;
      }
      lastRowToSwap--;
    }
    double coeff = A[row * extSize + col];
    for (int j = 0; j < extSize; j++)
      A[row * extSize + j] /= coeff;
    if (lastRowToSwap > row) {
      for (int i = row + 1; i < size; i++) {
        double rowCoeff = -A[i * extSize + col];
        for (int j = col; j < extSize; j++)
          A[i * extSize + j] += A[row * extSize + j] * rowCoeff;
      }
    }
  }
  double *solution = (double *)calloc(size, sizeof(double));
  for (int i = size - 1; i >= 0; i--) {
    solution[i] = A[i * extSize + size];
    for (int j = size - 1; j > i; j--) {
      solution[i] -= solution[j] * A[i * extSize + j];
    }
  }
  return solution;
}


x86 assembly (clang, -O0):
<gaussSLESolve>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movslq -0x18(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    136a <gaussSLESolve+0x25a>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
sub    $0x1,%rax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x61(%rbp)
jne    118b <gaussSLESolve+0x7b>
jp     118b <gaussSLESolve+0x7b>
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
setg   %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    119b <gaussSLESolve+0x8b>
jmp    122c <gaussSLESolve+0x11c>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    121e <gaussSLESolve+0x10e>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a2 <gaussSLESolve+0x92>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    1151 <gaussSLESolve+0x41>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    128c <gaussSLESolve+0x17c>
movsd  -0x38(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    124e <gaussSLESolve+0x13e>
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    1357 <gaussSLESolve+0x247>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
movslq -0x40(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    1352 <gaussSLESolve+0x242>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    133f <gaussSLESolve+0x22f>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x4c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x4c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12e7 <gaussSLESolve+0x1d7>
jmp    1344 <gaussSLESolve+0x234>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12a1 <gaussSLESolve+0x191>
jmp    1357 <gaussSLESolve+0x247>
jmp    135c <gaussSLESolve+0x24c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1132 <gaussSLESolve+0x22>
mov    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%rax
sub    $0x1,%rax
mov    %eax,-0x5c(%rbp)
cmpl   $0x0,-0x5c(%rbp)
jl     1441 <gaussSLESolve+0x331>
mov    -0x10(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
add    -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
sub    $0x1,%rax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jle    142e <gaussSLESolve+0x31e>
mov    -0x58(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x60(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x58(%rbp),%rax
movslq -0x5c(%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    -0x60(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x60(%rbp)
jmp    13c0 <gaussSLESolve+0x2b0>
jmp    1433 <gaussSLESolve+0x323>
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x5c(%rbp)
jmp    1387 <gaussSLESolve+0x277>
mov    -0x58(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gaussSLESolve>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %rdi,%r15
test   %rdi,%rdi
je     19d6 <gaussSLESolve+0x8c6>
lea    0x1(%r15),%eax
cmp    $0x2,%eax
mov    $0x1,%r13d
cmovge %eax,%r13d
lea    -0x1(%r15),%ecx
mov    %ecx,0x44(%rsp)
movslq %ecx,%rcx
cltq
mov    %eax,%edx
mov    %rcx,0xb8(%rsp)
mov    %rcx,%rdi
imul   %rax,%rdi
mov    %r13d,%ecx
and    $0x7ffffffc,%ecx
mov    %rcx,0xe0(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0xd8(%rsp)
mov    %rcx,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %r13d,%ecx
and    $0x7ffffffe,%ecx
mov    %rcx,0x98(%rsp)
add    $0xfffffffffffffffe,%rcx
mov    %rcx,0x90(%rsp)
mov    %rcx,%rbx
shr    %rbx
add    $0x1,%rbx
mov    %rbp,%rcx
mov    %rbp,0xd0(%rsp)
and    $0xfffffffffffffffe,%rbp
mov    %rbp,0xc0(%rsp)
mov    %r13,%rcx
neg    %rcx
mov    %rcx,0x128(%rsp)
mov    %rbx,%rcx
mov    %rbx,0x88(%rsp)
and    $0xfffffffffffffffe,%rbx
mov    %rbx,0x80(%rsp)
mov    %rdx,%rcx
neg    %rcx
mov    %rcx,0x120(%rsp)
lea    0x0(,%rax,8),%rcx
mov    %rcx,0x78(%rsp)
neg    %rcx
mov    %rcx,0x70(%rsp)
mov    %rdx,%rcx
xorpd  %xmm0,%xmm0
movapd 0xde7(%rip),%xmm1
lea    0x8(,%rax,8),%rdx
mov    %rdx,0x68(%rsp)
lea    (%rax,%rcx,1),%rdx
mov    %rdx,0xb0(%rsp)
lea    (%rdi,%r13,1),%rdx
mov    %rdx,0x110(%rsp)
lea    0x30(%rsi),%rbp
lea    0x30(%rsi,%rdi,8),%rdx
mov    %rdx,0xa8(%rsp)
mov    %rdi,0xf8(%rsp)
lea    0x8(%rsi,%rdi,8),%rdx
mov    %rdx,0xa0(%rsp)
lea    0x10(%rsi),%r12
lea    0x10(%rsi,%rax,8),%rdx
mov    %rdx,0x60(%rsp)
lea    0x8(%rsi,%rax,8),%rdx
mov    %rdx,0x58(%rsp)
mov    $0x1,%edx
mov    %rdx,0x50(%rsp)
xor    %edi,%edi
mov    %rcx,0x48(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rsi,%rbx
mov    %rax,%rsi
mov    %rax,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %r15,0x130(%rsp)
jmp    12ed <gaussSLESolve+0x1dd>
nopl   0x0(%rax)
addq   $0x1,0x50(%rsp)
mov    0x78(%rsp),%rax
add    %rax,%rbp
add    %rax,%rbx
addq   $0xffffffffffffffff,0x48(%rsp)
mov    0x68(%rsp),%rdx
add    %rdx,%r12
add    %rdx,0x60(%rsp)
add    %rax,0x58(%rsp)
mov    0xc8(%rsp),%rax
mov    %rax,%rdi
cmp    %r15,%rax
je     18f2 <gaussSLESolve+0x7e2>
mov    %rdi,%rax
imul   %rsi,%rax
mov    %rax,0x20(%rsp)
mov    %esi,%eax
imul   %edi,%eax
movslq %eax,%r14
add    %rdi,%r14
mov    0x18(%rsp),%r9
movsd  (%r9,%r14,8),%xmm2
mov    0xb8(%rsp),%rsi
cmp    %rsi,%rdi
setl   %dl
ucomisd %xmm0,%xmm2
mov    %rdi,0x28(%rsp)
jne    15b0 <gaussSLESolve+0x4a0>
jp     15b0 <gaussSLESolve+0x4a0>
cmp    %rsi,%rdi
jge    15b0 <gaussSLESolve+0x4a0>
mov    0x20(%rsp),%rax
lea    (%r9,%rax,8),%rdx
mov    %rdx,0x30(%rsp)
add    %r13,%rax
lea    (%r9,%rax,8),%rax
mov    %rax,0x38(%rsp)
mov    0xa0(%rsp),%r11
mov    0xa8(%rsp),%r10
xor    %r8d,%r8d
nopl   0x0(%rax,%rax,1)
cmp    $0x7ffffffe,%r15d
ja     155b <gaussSLESolve+0x44b>
mov    %rsi,%rdx
mov    0x10(%rsp),%rcx
imul   %rcx,%rdx
cmp    $0x4,%r13d
jb     13ca <gaussSLESolve+0x2ba>
mov    %r8,%rax
imul   %rcx,%rax
mov    0x110(%rsp),%rdi
sub    %rax,%rdi
lea    (%r9,%rdi,8),%rdi
cmp    %rdi,0x30(%rsp)
jae    145e <gaussSLESolve+0x34e>
mov    0xf8(%rsp),%rdi
sub    %rax,%rdi
lea    (%r9,%rdi,8),%rax
cmp    0x38(%rsp),%rax
jae    145e <gaussSLESolve+0x34e>
xor    %eax,%eax
mov    0x8(%rsp),%rcx
mov    %rax,%rdi
test   $0x1,%r13b
je     1404 <gaussSLESolve+0x2f4>
mov    0x20(%rsp),%rdi
add    %rax,%rdi
movsd  (%r9,%rdi,8),%xmm2
add    %rax,%rdx
movsd  (%r9,%rdx,8),%xmm3
movsd  %xmm3,(%r9,%rdi,8)
movsd  %xmm2,(%r9,%rdx,8)
mov    %rax,%rdi
or     $0x1,%rdi
not    %rax
cmp    0x128(%rsp),%rax
je     1550 <gaussSLESolve+0x440>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rbx,%rdi,8),%xmm2
movsd  -0x8(%r11,%rdi,8),%xmm3
movsd  %xmm3,(%rbx,%rdi,8)
movsd  %xmm2,-0x8(%r11,%rdi,8)
movsd  0x8(%rbx,%rdi,8),%xmm2
movsd  (%r11,%rdi,8),%xmm3
movsd  %xmm3,0x8(%rbx,%rdi,8)
movsd  %xmm2,(%r11,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r13
jne    1420 <gaussSLESolve+0x310>
jmp    1550 <gaussSLESolve+0x440>
cmpq   $0x0,0xd8(%rsp)
mov    0x8(%rsp),%rcx
je     158f <gaussSLESolve+0x47f>
mov    0xc0(%rsp),%rax
xor    %edi,%edi
nopl   0x0(%rax)
movups -0x30(%rbp,%rdi,8),%xmm2
movups -0x20(%rbp,%rdi,8),%xmm3
movups -0x30(%r10,%rdi,8),%xmm4
movups -0x20(%r10,%rdi,8),%xmm5
movups %xmm4,-0x30(%rbp,%rdi,8)
movups %xmm5,-0x20(%rbp,%rdi,8)
movups %xmm2,-0x30(%r10,%rdi,8)
movups %xmm3,-0x20(%r10,%rdi,8)
movupd -0x10(%rbp,%rdi,8),%xmm2
movupd 0x0(%rbp,%rdi,8),%xmm3
movupd -0x10(%r10,%rdi,8),%xmm4
movupd (%r10,%rdi,8),%xmm5
movupd %xmm4,-0x10(%rbp,%rdi,8)
movupd %xmm5,0x0(%rbp,%rdi,8)
movupd %xmm2,-0x10(%r10,%rdi,8)
movupd %xmm3,(%r10,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rax
jne    1480 <gaussSLESolve+0x370>
testb  $0x1,0xd0(%rsp)
01
je     1531 <gaussSLESolve+0x421>
mov    0x20(%rsp),%rax
add    %rdi,%rax
movupd (%r9,%rax,8),%xmm2
movupd 0x10(%r9,%rax,8),%xmm3
add    %rdx,%rdi
movupd (%r9,%rdi,8),%xmm4
movupd 0x10(%r9,%rdi,8),%xmm5
movupd %xmm4,(%r9,%rax,8)
movupd %xmm5,0x10(%r9,%rax,8)
movupd %xmm2,(%r9,%rdi,8)
movupd %xmm3,0x10(%r9,%rdi,8)
mov    0xe0(%rsp),%rdi
mov    %rdi,%rax
cmp    %r13,%rdi
jne    13d1 <gaussSLESolve+0x2c1>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r9,%r14,8),%xmm2
mov    0x28(%rsp),%rdi
add    $0xffffffffffffffff,%rsi
movslq %esi,%rax
cmp    %rdi,%rax
setg   %dl
ucomisd %xmm0,%xmm2
jne    15b0 <gaussSLESolve+0x4a0>
jp     15b0 <gaussSLESolve+0x4a0>
add    $0x1,%r8
mov    0x70(%rsp),%rcx
add    %rcx,%r10
add    %rcx,%r11
mov    0x8(%rsp),%rcx
cmp    %rdi,%rax
jg     1370 <gaussSLESolve+0x260>
jmp    15b0 <gaussSLESolve+0x4a0>
xor    %edi,%edi
testb  $0x1,0xd0(%rsp)
01
jne    14f2 <gaussSLESolve+0x3e2>
jmp    1531 <gaussSLESolve+0x421>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0x7ffffffe,%r15d
mov    0x10(%rsp),%rsi
ja     1677 <gaussSLESolve+0x567>
cmp    $0x2,%r13d
jae    15d0 <gaussSLESolve+0x4c0>
xor    %eax,%eax
jmp    1660 <gaussSLESolve+0x550>
nop
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
cmpq   $0x0,0x90(%rsp)
je     18dd <gaussSLESolve+0x7cd>
mov    0x80(%rsp),%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd (%rbx,%rsi,8),%xmm4
movupd 0x10(%rbx,%rsi,8),%xmm5
divpd  %xmm3,%xmm4
movupd %xmm4,(%rbx,%rsi,8)
divpd  %xmm3,%xmm5
movupd %xmm5,0x10(%rbx,%rsi,8)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rax
jne    1600 <gaussSLESolve+0x4f0>
testb  $0x1,0x88(%rsp)
01
je     1647 <gaussSLESolve+0x537>
add    0x20(%rsp),%rsi
movupd (%r9,%rsi,8),%xmm4
divpd  %xmm3,%xmm4
movupd %xmm4,(%r9,%rsi,8)
mov    0x98(%rsp),%rsi
mov    %rsi,%rax
cmp    %r13,%rsi
mov    0x10(%rsp),%rsi
je     1677 <gaussSLESolve+0x567>
nopl   0x0(%rax)
movsd  (%rbx,%rax,8),%xmm3
divsd  %xmm2,%xmm3
movsd  %xmm3,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    1660 <gaussSLESolve+0x550>
lea    0x1(%rdi),%rax
mov    %rax,0xc8(%rsp)
cmp    %r15,%rax
setb   %al
and    %al,%dl
cmp    $0x1,%dl
jne    12b0 <gaussSLESolve+0x1a0>
mov    0x68(%rsp),%rax
mov    0x28(%rsp),%r10
imul   %r10,%rax
mov    0x20(%rsp),%r9
lea    (%r9,%rcx,1),%r8
mov    0x48(%rsp),%rdi
and    $0xfffffffffffffffc,%rdi
mov    %rcx,%rdx
sub    %r10,%rdx
mov    0xb0(%rsp),%rcx
add    %r9,%rcx
mov    %rcx,0x108(%rsp)
mov    0x18(%rsp),%rcx
mov    %rax,0x38(%rsp)
add    %rcx,%rax
mov    %rax,0x100(%rsp)
lea    (%rcx,%r8,8),%rax
mov    %rax,0x118(%rsp)
mov    0x8(%rsp),%rcx
mov    %rdx,0x30(%rsp)
and    $0xfffffffffffffffc,%rdx
mov    %rdx,0xf0(%rsp)
lea    (%r10,%rdx,1),%rax
mov    %rax,0xe8(%rsp)
mov    0x58(%rsp),%r8
mov    0x60(%rsp),%r11
xor    %r10d,%r10d
mov    0x50(%rsp),%r14
jmp    1757 <gaussSLESolve+0x647>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r14
mov    %r14d,%eax
add    $0x1,%r10
mov    0x78(%rsp),%rdx
add    %rdx,%r11
add    %rdx,%r8
mov    0x130(%rsp),%r15
cmp    %r15,%rax
jae    12b0 <gaussSLESolve+0x1a0>
cmp    %rsi,0x28(%rsp)
jge    1730 <gaussSLESolve+0x620>
mov    %r14,%rdx
imul   %rsi,%rdx
mov    0x28(%rsp),%r15
lea    (%rdx,%r15,1),%rax
mov    0x18(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm2
mov    0x8(%rsp),%rcx
xorpd  %xmm1,%xmm2
cmpq   $0x4,0x30(%rsp)
jb     1850 <gaussSLESolve+0x740>
mov    %r10,%rax
imul   %rsi,%rax
mov    0x10(%rsp),%rcx
lea    (%rax,%rcx,1),%rsi
mov    0x18(%rsp),%rcx
lea    (%rcx,%rsi,8),%rsi
mov    0x8(%rsp),%rcx
add    0x38(%rsp),%rsi
cmp    0x118(%rsp),%rsi
mov    0x10(%rsp),%rsi
jae    17e4 <gaussSLESolve+0x6d4>
add    0x108(%rsp),%rax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    0x8(%rsp),%rcx
mov    0x28(%rsp),%r15
cmp    %rax,0x100(%rsp)
jb     1850 <gaussSLESolve+0x740>
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
xor    %eax,%eax
xchg   %ax,%ax
movupd -0x10(%r12,%rax,8),%xmm4
movupd (%r12,%rax,8),%xmm5
movupd -0x10(%r11,%rax,8),%xmm6
movupd (%r11,%rax,8),%xmm7
mulpd  %xmm3,%xmm4
addpd  %xmm6,%xmm4
mulpd  %xmm3,%xmm5
addpd  %xmm7,%xmm5
movupd %xmm4,-0x10(%r11,%rax,8)
movupd %xmm5,(%r11,%rax,8)
add    $0x4,%rax
cmp    %rax,%rdi
jne    17f0 <gaussSLESolve+0x6e0>
mov    0xe8(%rsp),%r15
mov    0xf0(%rsp),%rax
cmp    %rax,0x30(%rsp)
je     1730 <gaussSLESolve+0x620>
nopl   0x0(%rax,%rax,1)
mov    %ecx,%eax
sub    %r15d,%eax
mov    %r15,%r9
test   $0x1,%al
je     1888 <gaussSLESolve+0x778>
mov    0x20(%rsp),%rax
add    %r15,%rax
add    %r15,%rdx
mov    0x18(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  (%rcx,%rdx,8),%xmm3
movsd  %xmm3,(%rcx,%rdx,8)
mov    0x8(%rsp),%rcx
lea    0x1(%r15),%r9
not    %r15
cmp    0x120(%rsp),%r15
je     1730 <gaussSLESolve+0x620>
nopl   0x0(%rax)
movsd  (%rbx,%r9,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  -0x8(%r8,%r9,8),%xmm3
movsd  %xmm3,-0x8(%r8,%r9,8)
movsd  0x8(%rbx,%r9,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  (%r8,%r9,8),%xmm3
movsd  %xmm3,(%r8,%r9,8)
add    $0x2,%r9
cmp    %r9,%rcx
jne    18a0 <gaussSLESolve+0x790>
jmp    1730 <gaussSLESolve+0x620>
xor    %esi,%esi
testb  $0x1,0x88(%rsp)
01
jne    1632 <gaussSLESolve+0x522>
jmp    1647 <gaussSLESolve+0x537>
mov    %r15,%rdi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    0x44(%rsp),%ecx
test   %ecx,%ecx
js     19e3 <gaussSLESolve+0x8d3>
mov    %ecx,%ebx
lea    -0x1(%rbx),%r8
mov    0x10(%rsp),%rcx
imul   %rbx,%rcx
mov    0x18(%rsp),%r9
lea    (%r9,%rcx,8),%rsi
xor    %edi,%edi
mov    %rbx,%rcx
jmp    1949 <gaussSLESolve+0x839>
nopw   0x0(%rax,%rax,1)
lea    -0x1(%rcx),%rdx
add    $0x1,%rdi
add    0x70(%rsp),%rsi
test   %rcx,%rcx
mov    %rdx,%rcx
jle    19e3 <gaussSLESolve+0x8d3>
mov    %rcx,%rbp
imul   0x10(%rsp),%rbp
lea    (%r15,%rbp,1),%rdx
movsd  (%r9,%rdx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
cmp    %rbx,%rcx
jge    1930 <gaussSLESolve+0x820>
test   $0x1,%dil
jne    1980 <gaussSLESolve+0x870>
mov    %rbx,%rbp
cmp    $0x1,%rdi
jne    19a0 <gaussSLESolve+0x890>
jmp    1930 <gaussSLESolve+0x820>
nopw   0x0(%rax,%rax,1)
movsd  (%rax,%rbx,8),%xmm1
add    %rbx,%rbp
mulsd  (%r9,%rbp,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    %r8,%rbp
cmp    $0x1,%rdi
je     1930 <gaussSLESolve+0x820>
movsd  (%rax,%rbp,8),%xmm1
mulsd  (%rsi,%rbp,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x8(%rax,%rbp,8),%xmm1
mulsd  -0x8(%rsi,%rbp,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
add    $0xfffffffffffffffe,%rbp
cmp    %rcx,%rbp
jg     19a0 <gaussSLESolve+0x890>
jmp    1930 <gaussSLESolve+0x820>
mov    %r15,%rdi
mov    $0x8,%esi
call   1030 <calloc@plt>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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