int LinearEquationsSolving(int nDim, double *pfMatr, double *pfVect,
                           double *pfSolution) {
  double fMaxElem;
  double fAcc;
  int i = 0, j = 0, k = 0, m = 0;
  for (k = 0; k < (nDim - 1); k++) {
    m = k;
    for (i = k + 1; i < nDim; i++) {
      {
        fMaxElem = pfMatr[i * nDim + k];
        m = i;
      }
    }
    if (m != k) {
      for (i = k; i < nDim; i++) {
        fAcc = pfMatr[k * nDim + i];
        pfMatr[k * nDim + i] = pfMatr[m * nDim + i];
        pfMatr[m * nDim + i] = fAcc;
      }
      fAcc = pfVect[k];
      pfVect[k] = pfVect[m];
      pfVect[m] = fAcc;
    }
    if (pfMatr[k * nDim + k] == 0.)
      return 1;
    for (j = (k + 1); j < nDim; j++) {
      fAcc = -pfMatr[j * nDim + k] / pfMatr[k * nDim + k];
      for (i = k; i < nDim; i++) {
        pfMatr[j * nDim + i] =
            pfMatr[j * nDim + i] + fAcc * pfMatr[k * nDim + i];
      }
      pfVect[j] = pfVect[j] + fAcc * pfVect[k];
    }
  }
  for (k = (nDim - 1); k >= 0; k--) {
    pfSolution[k] = pfVect[k];
    for (i = (k + 1); i < nDim; i++) {
      pfSolution[k] -= (pfMatr[k * nDim + i] * pfSolution[i]);
    }
    pfSolution[k] = pfSolution[k] / pfMatr[k * nDim + k];
  }
  return 0;
}


x86 assembly (clang, -O0):
<LinearEquationsSolving>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13b3 <LinearEquationsSolving+0x2b3>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1191 <LinearEquationsSolving+0x91>
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1156 <LinearEquationsSolving+0x56>
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
je     125d <LinearEquationsSolving+0x15d>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    121f <LinearEquationsSolving+0x11f>
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a3 <LinearEquationsSolving+0xa3>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1292 <LinearEquationsSolving+0x192>
jp     1292 <LinearEquationsSolving+0x192>
movl   $0x1,-0x4(%rbp)
jmp    149c <LinearEquationsSolving+0x39c>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13a0 <LinearEquationsSolving+0x2a0>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x8(%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
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    135e <LinearEquationsSolving+0x25e>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12f5 <LinearEquationsSolving+0x1f5>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    129b <LinearEquationsSolving+0x19b>
jmp    13a5 <LinearEquationsSolving+0x2a5>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1136 <LinearEquationsSolving+0x36>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jl     1495 <LinearEquationsSolving+0x395>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1457 <LinearEquationsSolving+0x357>
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x20(%rbp),%rax
movslq -0x3c(%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    13e9 <LinearEquationsSolving+0x2e9>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3c(%rbp)
jmp    13bc <LinearEquationsSolving+0x2bc>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<LinearEquationsSolving>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,-0x18(%rsp)
mov    %rdx,-0x70(%rsp)
cmp    $0x2,%edi
jl     1634 <LinearEquationsSolving+0x534>
lea    -0x1(%rdi),%eax
mov    %rax,(%rsp)
mov    %edi,%r9d
lea    0x0(,%r9,8),%rax
mov    %rax,-0x30(%rsp)
lea    0x8(,%r9,8),%r15
lea    (%r9,%r9,1),%rax
mov    %rax,-0x10(%rsp)
mov    %r9,%rax
neg    %rax
mov    %rax,-0x38(%rsp)
lea    -0x4(%r9),%r12
lea    0x30(%rsi),%rbx
lea    0x10(%rsi),%r11
lea    0x8(%rsi),%r10
lea    0x10(%rsi,%r9,8),%rax
mov    %rax,-0x58(%rsp)
lea    (%rsi,%r9,8),%rax
mov    %rax,-0x60(%rsp)
mov    $0x1,%r13d
xor    %ecx,%ecx
xorpd  %xmm0,%xmm0
movapd 0xe75(%rip),%xmm1
mov    %r11,-0x28(%rsp)
mov    %r9,-0x68(%rsp)
mov    %r10,-0x20(%rsp)
mov    %rdi,0x8(%rsp)
mov    %r15,-0x8(%rsp)
jmp    11fe <LinearEquationsSolving+0xfe>
cs nopw 0x0(%rax,%rax,1)
mov    -0x50(%rsp),%r13
add    $0x1,%r13
mov    0x20(%rsp),%r12
add    $0xffffffffffffffff,%r12
mov    -0x8(%rsp),%r15
mov    0x18(%rsp),%rbx
add    %r15,%rbx
mov    -0x30(%rsp),%rax
add    %rax,%r10
addq   $0xffffffffffffffff,-0x68(%rsp)
add    %r15,-0x58(%rsp)
add    %r15,%r11
add    %rax,-0x60(%rsp)
mov    0x10(%rsp),%rcx
cmp    (%rsp),%rcx
mov    0x8(%rsp),%rdi
je     1634 <LinearEquationsSolving+0x534>
cmp    %r13d,%edi
mov    %r13,-0x50(%rsp)
cmovg  %edi,%r13d
add    $0xffffffff,%r13d
mov    %r9,%rax
sub    %rcx,%rax
mov    %rax,-0x80(%rsp)
mov    %r15,%rax
imul   %rcx,%rax
mov    %rax,0x40(%rsp)
add    %rsi,%rax
mov    %rax,-0x48(%rsp)
mov    %rcx,%rax
imul   %r9,%rax
mov    %rax,%rdx
mov    %rax,-0x78(%rsp)
lea    (%rax,%r9,1),%rdx
lea    (%rsi,%rdx,8),%rax
mov    %rax,-0x40(%rsp)
cmp    %r13,%rcx
je     1445 <LinearEquationsSolving+0x345>
cmp    %r9,%rcx
jae    1429 <LinearEquationsSolving+0x329>
mov    %edi,%edx
imul   %r13d,%edx
movslq %edx,%r8
mov    %rcx,%rax
cmpq   $0x4,-0x80(%rsp)
jb     13a0 <LinearEquationsSolving+0x2a0>
lea    (%rcx,%r8,1),%rdx
mov    -0x80(%rsp),%rax
lea    (%rsi,%rax,8),%rax
lea    (%rax,%rdx,8),%rax
cmp    %rax,-0x48(%rsp)
jae    129d <LinearEquationsSolving+0x19d>
lea    (%rsi,%rdx,8),%rbp
mov    %rcx,%rax
cmp    -0x40(%rsp),%rbp
jb     13a0 <LinearEquationsSolving+0x2a0>
mov    -0x80(%rsp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,%r14
shr    $0x2,%r14
add    $0x1,%r14
cmp    $0x4,%rax
jae    12be <LinearEquationsSolving+0x1be>
xor    %ebp,%ebp
jmp    133e <LinearEquationsSolving+0x23e>
mov    %r12,%rax
shr    $0x2,%rax
add    $0x1,%rax
and    $0xfffffffffffffffe,%rax
mov    -0x28(%rsp),%rbp
lea    0x0(,%rdx,8),%rdx
add    %rbp,%rdx
xor    %ebp,%ebp
nop
movups -0x30(%rbx,%rbp,8),%xmm2
movups -0x20(%rbx,%rbp,8),%xmm3
movups -0x10(%rdx,%rbp,8),%xmm4
movups (%rdx,%rbp,8),%xmm5
movups %xmm4,-0x30(%rbx,%rbp,8)
movups %xmm5,-0x20(%rbx,%rbp,8)
movups %xmm2,-0x10(%rdx,%rbp,8)
movups %xmm3,(%rdx,%rbp,8)
movupd -0x10(%rbx,%rbp,8),%xmm2
movupd (%rbx,%rbp,8),%xmm3
movupd 0x10(%rdx,%rbp,8),%xmm4
movupd 0x20(%rdx,%rbp,8),%xmm5
movupd %xmm4,-0x10(%rbx,%rbp,8)
movupd %xmm5,(%rbx,%rbp,8)
movupd %xmm2,0x10(%rdx,%rbp,8)
movupd %xmm3,0x20(%rdx,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%rax
jne    12e0 <LinearEquationsSolving+0x1e0>
mov    -0x80(%rsp),%rax
and    $0xfffffffffffffffc,%rax
test   $0x1,%r14b
je     1387 <LinearEquationsSolving+0x287>
add    %rcx,%rbp
mov    -0x78(%rsp),%rdx
add    %rbp,%rdx
movupd (%rsi,%rdx,8),%xmm2
movupd 0x10(%rsi,%rdx,8),%xmm3
add    %r8,%rbp
movupd (%rsi,%rbp,8),%xmm4
movupd 0x10(%rsi,%rbp,8),%xmm5
movupd %xmm4,(%rsi,%rdx,8)
movupd %xmm5,0x10(%rsi,%rdx,8)
movupd %xmm2,(%rsi,%rbp,8)
movupd %xmm3,0x10(%rsi,%rbp,8)
cmp    %rax,-0x80(%rsp)
je     1429 <LinearEquationsSolving+0x329>
add    %rcx,%rax
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r9d,%ebp
sub    %eax,%ebp
mov    %rax,%rdx
test   $0x1,%bpl
je     13d2 <LinearEquationsSolving+0x2d2>
mov    -0x78(%rsp),%rdx
add    %rax,%rdx
movsd  (%rsi,%rdx,8),%xmm2
lea    (%rax,%r8,1),%rbp
movsd  (%rsi,%rbp,8),%xmm3
movsd  %xmm3,(%rsi,%rdx,8)
movsd  %xmm2,(%rsi,%rbp,8)
lea    0x1(%rax),%rdx
not    %rax
cmp    -0x38(%rsp),%rax
je     1429 <LinearEquationsSolving+0x329>
mov    -0x20(%rsp),%rax
lea    (%rax,%r8,8),%rax
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%r10,%rdx,8),%xmm2
movsd  -0x8(%rax,%rdx,8),%xmm3
movsd  %xmm3,-0x8(%r10,%rdx,8)
movsd  %xmm2,-0x8(%rax,%rdx,8)
movsd  (%r10,%rdx,8),%xmm2
movsd  (%rax,%rdx,8),%xmm3
movsd  %xmm3,(%r10,%rdx,8)
movsd  %xmm2,(%rax,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%r9
jne    13f0 <LinearEquationsSolving+0x2f0>
mov    -0x70(%rsp),%rax
movsd  (%rax,%rcx,8),%xmm2
movslq %r13d,%rdx
movsd  (%rax,%rdx,8),%xmm3
movsd  %xmm3,(%rax,%rcx,8)
movsd  %xmm2,(%rax,%rdx,8)
mov    %ecx,%edx
imul   %edi,%edx
movslq %edx,%rdx
add    %rcx,%rdx
movsd  (%rsi,%rdx,8),%xmm3
ucomisd %xmm0,%xmm3
jne    1461 <LinearEquationsSolving+0x361>
jnp    1739 <LinearEquationsSolving+0x639>
mov    %rbx,0x18(%rsp)
mov    %r12,0x20(%rsp)
lea    0x1(%rcx),%rax
mov    %rax,0x10(%rsp)
cmp    %r9,%rax
jae    11b0 <LinearEquationsSolving+0xb0>
mov    -0x68(%rsp),%rbp
and    $0xfffffffffffffffc,%rbp
mov    -0x10(%rsp),%rax
mov    -0x78(%rsp),%rdi
add    %rdi,%rax
mov    %rax,0x38(%rsp)
mov    -0x80(%rsp),%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,0x30(%rsp)
add    %rcx,%rax
mov    %rax,0x28(%rsp)
mov    -0x60(%rsp),%r12
mov    -0x58(%rsp),%r8
xor    %r15d,%r15d
mov    -0x50(%rsp),%r13
mov    %r13,%r14
imul   %r9,%r14
lea    (%r14,%rcx,1),%rdi
movsd  (%rsi,%rdi,8),%xmm2
xorpd  %xmm1,%xmm2
divsd  %xmm3,%xmm2
mov    %rcx,%rbx
cmpq   $0x4,-0x80(%rsp)
jb     1580 <LinearEquationsSolving+0x480>
mov    %r15,%rdi
imul   %r9,%rdi
lea    (%rdi,%r9,1),%rbx
lea    (%rsi,%rbx,8),%rbx
add    0x40(%rsp),%rbx
cmp    -0x40(%rsp),%rbx
jae    1515 <LinearEquationsSolving+0x415>
add    0x38(%rsp),%rdi
lea    (%rsi,%rdi,8),%rdi
mov    %rcx,%rbx
cmp    %rdi,-0x48(%rsp)
jb     1580 <LinearEquationsSolving+0x480>
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
xor    %edi,%edi
nop
movupd -0x10(%r8,%rdi,8),%xmm4
movupd (%r8,%rdi,8),%xmm5
movupd -0x10(%r11,%rdi,8),%xmm6
movupd (%r11,%rdi,8),%xmm7
mulpd  %xmm3,%xmm6
addpd  %xmm4,%xmm6
mulpd  %xmm3,%xmm7
addpd  %xmm5,%xmm7
movupd %xmm6,-0x10(%r8,%rdi,8)
movupd %xmm7,(%r8,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%rbp
jne    1520 <LinearEquationsSolving+0x420>
mov    0x28(%rsp),%rbx
mov    0x30(%rsp),%rax
cmp    %rax,-0x80(%rsp)
je     15f8 <LinearEquationsSolving+0x4f8>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r9d,%eax
sub    %ebx,%eax
mov    %rbx,%rdi
test   $0x1,%al
je     15b0 <LinearEquationsSolving+0x4b0>
add    %rbx,%r14
mov    -0x78(%rsp),%rax
add    %rbx,%rax
movsd  (%rsi,%rax,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  (%rsi,%r14,8),%xmm3
movsd  %xmm3,(%rsi,%r14,8)
lea    0x1(%rbx),%rdi
not    %rbx
cmp    -0x38(%rsp),%rbx
je     15f8 <LinearEquationsSolving+0x4f8>
nopw   0x0(%rax,%rax,1)
movsd  -0x8(%r10,%rdi,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  (%r12,%rdi,8),%xmm3
movsd  %xmm3,(%r12,%rdi,8)
movsd  (%r10,%rdi,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  0x8(%r12,%rdi,8),%xmm3
movsd  %xmm3,0x8(%r12,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r9
jne    15c0 <LinearEquationsSolving+0x4c0>
mov    -0x70(%rsp),%rax
mulsd  (%rax,%rcx,8),%xmm2
addsd  (%rax,%r13,8),%xmm2
movsd  %xmm2,(%rax,%r13,8)
add    $0x1,%r13
cmp    %r9,%r13
je     11b0 <LinearEquationsSolving+0xb0>
movsd  (%rsi,%rdx,8),%xmm3
add    $0x1,%r15
mov    -0x30(%rsp),%rax
add    %rax,%r8
add    %rax,%r12
jmp    14c0 <LinearEquationsSolving+0x3c0>
test   %edi,%edi
jle    1735 <LinearEquationsSolving+0x635>
mov    %edi,%ebp
lea    -0x1(%rbp),%rax
imul   %rbp,%rax
lea    (%rsi,%rax,8),%rdi
add    $0x8,%rdi
lea    0x0(,%rbp,8),%r8
neg    %r8
xor    %r9d,%r9d
mov    %rbp,%rax
mov    -0x18(%rsp),%rdx
jmp    168f <LinearEquationsSolving+0x58f>
cs nopw 0x0(%rax,%rax,1)
add    %rax,%r11
divsd  (%rsi,%r11,8),%xmm0
movsd  %xmm0,(%rdx,%rax,8)
add    $0x1,%r9d
add    %r8,%rdi
cmp    $0x1,%r10
jle    1735 <LinearEquationsSolving+0x635>
mov    %rax,%r10
add    $0xffffffffffffffff,%rax
mov    -0x70(%rsp),%rcx
movsd  -0x8(%rcx,%r10,8),%xmm0
movsd  %xmm0,-0x8(%rdx,%r10,8)
mov    %rax,%r11
imul   %rbp,%r11
cmp    %rbp,%r10
jge    1670 <LinearEquationsSolving+0x570>
test   $0x1,%r9b
jne    16d0 <LinearEquationsSolving+0x5d0>
mov    %r10,%rbx
cmp    $0x1,%r9d
jne    1700 <LinearEquationsSolving+0x600>
jmp    1670 <LinearEquationsSolving+0x570>
cs nopw 0x0(%rax,%rax,1)
lea    (%r10,%r11,1),%rcx
movsd  (%rsi,%rcx,8),%xmm1
mulsd  (%rdx,%r10,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx,%rax,8)
lea    0x1(%r10),%rbx
cmp    $0x1,%r9d
je     1670 <LinearEquationsSolving+0x570>
cs nopw 0x0(%rax,%rax,1)
movsd  -0x8(%rdi,%rbx,8),%xmm1
mulsd  (%rdx,%rbx,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx,%rax,8)
movsd  (%rdi,%rbx,8),%xmm1
mulsd  0x8(%rdx,%rbx,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx,%rax,8)
add    $0x2,%rbx
cmp    %ebx,%ebp
jne    1700 <LinearEquationsSolving+0x600>
jmp    1670 <LinearEquationsSolving+0x570>
xor    %eax,%eax
jmp    173e <LinearEquationsSolving+0x63e>
mov    $0x1,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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