#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 */
double DBL_MAX;
double fabs(double);
int solve_gauss(double **A, double *b, int n, double *res) {
  int i = 0, j = 0, k = 0, p = 0;
  double div = 0.0;
  double *tmp1 = NULL;
  double tmp2 = 0.0;
  double sum = 0.0;
  double max = (0.0 - DBL_MAX);
  for (k = 0; k < n; k++) {
    max = (0.0 - DBL_MAX);
    p = 0;
    for (i = k; i < n; i++) {
      sum = 0.0;
      for (j = k; j < n; j++)
        sum += fabs(A[i][j]);
      if (sum == 0.0)
        return -20;
      if ((tmp2 = fabs(A[i][k]) / sum) > max) {
        max = tmp2;
        p = i;
      }
    }
    tmp1 = A[k];
    A[k] = A[p];
    A[p] = tmp1;
    tmp2 = b[k];
    b[k] = b[p];
    b[p] = tmp2;
    if ((div = A[k][k]) == 0)
      return -20;
    for (i = k; i < n; i++)
      A[k][i] /= div;
    b[k] /= div;
    for (i = k + 1; i < n; i++) {
      div = A[i][k];
      for (j = k; j < n; j++)
        A[i][j] = A[i][j] - A[k][j] * div;
      b[i] = b[i] - b[k] * div;
    }
  }
  for (i = 0; i < n; ++i)
    res[i] = 0;
  for (i = n - 1; i >= 0; i--) {
    res[i] += b[i];
    for (k = i + 1; k < n; k++)
      res[i] -= A[i][k] * res[k];
  }
  return 0;
}


x86 assembly (clang, -O0):
<solve_gauss>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
mov    0x2e87(%rip),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    149a <solve_gauss+0x39a>
xorps  %xmm0,%xmm0
mov    0x2e61(%rip),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    126f <solve_gauss+0x16f>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11f3 <solve_gauss+0xf3>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe29(%rip),%xmm1
pand   %xmm1,%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11af <solve_gauss+0xaf>
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1217 <solve_gauss+0x117>
jp     1217 <solve_gauss+0x117>
movl   $0xffffffec,-0x4(%rbp)
jmp    158d <solve_gauss+0x48d>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xdcd(%rip),%xmm1
pand   %xmm1,%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
ucomisd -0x60(%rbp),%xmm0
jbe    125c <solve_gauss+0x15c>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    1261 <solve_gauss+0x161>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1195 <solve_gauss+0x95>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x48(%rbp),%rdx
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    131e <solve_gauss+0x21e>
jp     131e <solve_gauss+0x21e>
movl   $0xffffffec,-0x4(%rbp)
jmp    158d <solve_gauss+0x48d>
mov    -0x34(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1361 <solve_gauss+0x261>
movsd  -0x40(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1324 <solve_gauss+0x224>
movsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1487 <solve_gauss+0x387>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    142e <solve_gauss+0x32e>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x40(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13b1 <solve_gauss+0x2b1>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x40(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1385 <solve_gauss+0x285>
jmp    148c <solve_gauss+0x38c>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1169 <solve_gauss+0x69>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    14cb <solve_gauss+0x3cb>
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    14a1 <solve_gauss+0x3a1>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jl     1586 <solve_gauss+0x486>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1573 <solve_gauss+0x473>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0x2c(%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    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1506 <solve_gauss+0x406>
jmp    1578 <solve_gauss+0x478>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
jmp    14d4 <solve_gauss+0x3d4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<solve_gauss>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
test   %edx,%edx
jle    1579 <solve_gauss+0x469>
mov    %rsi,%r15
mov    %rdi,%r12
mov    %rcx,0x28(%rsp)
mov    %edx,0x24(%rsp)
mov    %edx,%r14d
mov    %r14,%rax
neg    %rax
mov    %rax,0x60(%rsp)
lea    -0x3(%r14),%r8
lea    -0x1(%r14),%rbp
mov    $0x1,%eax
mov    %rax,0x18(%rsp)
mov    $0x3,%eax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
mov    0x2e78(%rip),%rcx
xorpd  %xmm0,%xmm0
movapd 0xe8c(%rip),%xmm1
mov    %r14,%rbx
mov    %rax,%r10
mov    %rbp,0x48(%rsp)
and    $0xfffffffffffffffc,%rbp
mov    %r8,%rdx
shr    %rdx
add    $0x1,%rdx
and    $0xfffffffffffffffe,%rdx
not    %rax
lea    (%rax,%r14,1),%r9
add    $0xfffffffffffffffe,%r9
add    %r14,%rax
mov    %rax,0x8(%rsp)
mov    %r9,%r11
shr    %r11
add    $0x1,%r11
xorpd  %xmm2,%xmm2
subsd  (%rcx),%xmm2
mov    %r10,%rdi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
lea    0x0(,%r10,8),%rax
add    (%r12,%rdi,8),%rax
xorpd  %xmm3,%xmm3
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rax,%rsi,8),%xmm4
andpd  %xmm1,%xmm4
addsd  %xmm4,%xmm3
add    $0x1,%rsi
cmp    %rsi,%rbx
jne    11e0 <solve_gauss+0xd0>
mov    $0xffffffec,%eax
ucomisd %xmm0,%xmm3
jne    1207 <solve_gauss+0xf7>
jnp    157b <solve_gauss+0x46b>
mov    (%r12,%rdi,8),%rsi
movsd  (%rsi,%r10,8),%xmm4
andpd  %xmm1,%xmm4
divsd  %xmm3,%xmm4
ucomisd %xmm2,%xmm4
cmova  %edi,%ecx
maxsd  %xmm2,%xmm4
add    $0x1,%rdi
movapd %xmm4,%xmm2
cmp    %r14,%rdi
jne    11c0 <solve_gauss+0xb0>
mov    %r8,0x30(%rsp)
mov    (%r12,%r10,8),%rsi
movslq %ecx,%rcx
mov    (%r12,%rcx,8),%rdi
mov    %rdi,(%r12,%r10,8)
mov    %rsi,(%r12,%rcx,8)
movsd  (%r15,%r10,8),%xmm2
movsd  (%r15,%rcx,8),%xmm3
movsd  %xmm3,(%r15,%r10,8)
movsd  %xmm2,(%r15,%rcx,8)
mov    (%r12,%r10,8),%r8
movsd  (%r8,%r10,8),%xmm2
ucomisd %xmm0,%xmm2
jne    1277 <solve_gauss+0x167>
jnp    157b <solve_gauss+0x46b>
movapd %xmm2,%xmm3
divsd  %xmm2,%xmm3
movsd  %xmm3,(%r8,%r10,8)
lea    0x1(%r10),%rax
cmp    %r14,%rax
je     1339 <solve_gauss+0x229>
cmpq   $0x2,0x8(%rsp)
jb     1320 <solve_gauss+0x210>
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
cmp    $0x2,%r9
jae    12b0 <solve_gauss+0x1a0>
xor    %ecx,%ecx
jmp    12e8 <solve_gauss+0x1d8>
mov    0x10(%rsp),%rcx
lea    (%r8,%rcx,8),%rdi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd -0x10(%rdi,%rcx,8),%xmm4
movupd (%rdi,%rcx,8),%xmm5
divpd  %xmm3,%xmm4
movupd %xmm4,-0x10(%rdi,%rcx,8)
divpd  %xmm3,%xmm5
movupd %xmm5,(%rdi,%rcx,8)
add    $0x4,%rcx
add    $0xfffffffffffffffe,%rdx
jne    12c0 <solve_gauss+0x1b0>
mov    0x8(%rsp),%rdx
and    $0xfffffffffffffffe,%rdx
test   $0x1,%r11b
je     130a <solve_gauss+0x1fa>
add    %rax,%rcx
movupd (%r8,%rcx,8),%xmm4
divpd  %xmm3,%xmm4
movupd %xmm4,(%r8,%rcx,8)
cmp    %rdx,0x8(%rsp)
je     1339 <solve_gauss+0x229>
add    %rdx,%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r8,%rax,8),%xmm3
divsd  %xmm2,%xmm3
movsd  %xmm3,(%r8,%rax,8)
add    $0x1,%rax
cmp    %rax,%r14
jne    1320 <solve_gauss+0x210>
movsd  (%r15,%r10,8),%xmm3
divsd  %xmm2,%xmm3
movsd  %xmm3,(%r15,%r10,8)
lea    0x1(%r10),%rax
cmp    %r14,%rax
jae    1520 <solve_gauss+0x410>
mov    0x18(%rsp),%rsi
lea    (%r8,%rsi,8),%rcx
mov    %rcx,0x50(%rsp)
lea    (%r8,%r14,8),%rcx
mov    %rcx,0x58(%rsp)
lea    0x1(%r10),%r9
mov    0x8(%rsp),%rcx
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x40(%rsp)
add    %r10,%rcx
add    $0x1,%rcx
mov    %rcx,0x38(%rsp)
mov    0x10(%rsp),%rcx
lea    (%r8,%rcx,8),%r11
jmp    13c3 <solve_gauss+0x2b3>
cs nopw 0x0(%rax,%rax,1)
movsd  (%r15,%rsi,8),%xmm3
mulsd  (%r15,%r10,8),%xmm2
subsd  %xmm2,%xmm3
movsd  %xmm3,(%r15,%rsi,8)
add    $0x1,%rsi
cmp    %r14,%rsi
je     1520 <solve_gauss+0x410>
mov    (%r12,%rsi,8),%rdx
movsd  (%rdx,%r10,8),%xmm2
movsd  (%r8,%r10,8),%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm2,%xmm4
subsd  %xmm3,%xmm4
movsd  %xmm4,(%rdx,%r10,8)
cmp    %r14,%r9
je     13a0 <solve_gauss+0x290>
mov    %r9,%rdi
cmpq   $0x4,0x8(%rsp)
jb     1490 <solve_gauss+0x380>
mov    0x18(%rsp),%rcx
lea    (%rdx,%rcx,8),%rcx
cmp    0x58(%rsp),%rcx
jae    1417 <solve_gauss+0x307>
lea    (%rdx,%r14,8),%rcx
mov    %r9,%rdi
cmp    %rcx,0x50(%rsp)
jb     1490 <solve_gauss+0x380>
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
mov    0x10(%rsp),%rcx
lea    (%rdx,%rcx,8),%rcx
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movupd -0x10(%rcx,%rdi,8),%xmm4
movupd (%rcx,%rdi,8),%xmm5
movupd -0x10(%r11,%rdi,8),%xmm6
movupd (%r11,%rdi,8),%xmm7
mulpd  %xmm3,%xmm6
subpd  %xmm6,%xmm4
mulpd  %xmm3,%xmm7
subpd  %xmm7,%xmm5
movupd %xmm4,-0x10(%rcx,%rdi,8)
movupd %xmm5,(%rcx,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%rbp
jne    1430 <solve_gauss+0x320>
mov    0x38(%rsp),%rdi
mov    0x40(%rsp),%rcx
cmp    %rcx,0x8(%rsp)
je     13a0 <solve_gauss+0x290>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14d,%r13d
sub    %edi,%r13d
mov    %rdi,%rcx
test   $0x1,%r13b
je     14bb <solve_gauss+0x3ab>
movsd  (%rdx,%rdi,8),%xmm3
movsd  (%r8,%rdi,8),%xmm4
mulsd  %xmm2,%xmm4
subsd  %xmm4,%xmm3
movsd  %xmm3,(%rdx,%rdi,8)
lea    0x1(%rdi),%rcx
not    %rdi
cmp    0x60(%rsp),%rdi
je     13a0 <solve_gauss+0x290>
nopl   0x0(%rax)
movsd  (%r8,%rcx,8),%xmm3
mulsd  %xmm2,%xmm3
movsd  (%rdx,%rcx,8),%xmm4
subsd  %xmm3,%xmm4
movsd  0x8(%rdx,%rcx,8),%xmm3
movsd  %xmm4,(%rdx,%rcx,8)
movsd  0x8(%r8,%rcx,8),%xmm4
mulsd  %xmm2,%xmm4
subsd  %xmm4,%xmm3
movsd  %xmm3,0x8(%rdx,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r14
jne    14d0 <solve_gauss+0x3c0>
jmp    13a0 <solve_gauss+0x290>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
addq   $0x1,0x18(%rsp)
add    $0xffffffffffffffff,%rbx
addq   $0x1,0x10(%rsp)
mov    0x30(%rsp),%r8
add    $0xffffffffffffffff,%r8
mov    0x48(%rsp),%rbp
add    $0xffffffffffffffff,%rbp
cmp    %r14,%rax
mov    0x2a94(%rip),%rcx
jne    1177 <solve_gauss+0x67>
cmpl   $0x0,0x24(%rsp)
jle    1579 <solve_gauss+0x469>
lea    0x0(,%r14,8),%rdx
xor    %ebx,%ebx
mov    0x28(%rsp),%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    %r14,%rcx
mov    0x28(%rsp),%rbp
jmp    159b <solve_gauss+0x48b>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
xor    %eax,%eax
cmp    $0x2,%rdx
jl     157b <solve_gauss+0x46b>
mov    %rcx,%rdx
add    $0xffffffffffffffff,%rcx
mov    %ecx,%eax
movsd  (%r15,%rax,8),%xmm0
addsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
cmp    %r14,%rdx
jge    1590 <solve_gauss+0x480>
mov    (%r12,%rax,8),%rsi
test   $0x1,%bl
jne    15ce <solve_gauss+0x4be>
mov    %rdx,%rdi
cmp    $0x1,%ebx
jne    15f0 <solve_gauss+0x4e0>
jmp    1590 <solve_gauss+0x480>
movsd  (%rsi,%rdx,8),%xmm1
mulsd  0x0(%rbp,%rdx,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
lea    0x1(%rdx),%rdi
cmp    $0x1,%ebx
je     1590 <solve_gauss+0x480>
nopl   0x0(%rax)
movsd  (%rsi,%rdi,8),%xmm1
mulsd  0x0(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  0x8(%rsi,%rdi,8),%xmm1
mulsd  0x8(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x2,%rdi
cmp    %edi,%r14d
jne    15f0 <solve_gauss+0x4e0>
jmp    1590 <solve_gauss+0x480>

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

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