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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ exit(int);
double fabs(double);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void solvele(double **mat, double *vec, unsigned int n) {
  double vswap, *mswap, *hvec, max, h, pivot, q;
  int i, j, k, maxi;
  for (i = 0; i < n - 1; i++) {
    max = fabs(mat[i][i]);
    maxi = i;
    for (j = i + 1; j < n; j++)
      if ((h = fabs(mat[j][i])) > max) {
        max = h;
        maxi = j;
      }
    if (maxi != i) {
      mswap = mat[i];
      mat[i] = mat[maxi];
      mat[maxi] = mswap;
      vswap = vec[i];
      vec[i] = vec[maxi];
      vec[maxi] = vswap;
    }
    hvec = mat[i];
    pivot = hvec[i];
    if (fabs(pivot) == 0.0) {
      fprintf(stderr, "Singular matrix! Exiting!\n");
      exit(19);
    }
    for (j = i + 1; j < n; j++) {
      q = -mat[j][i] / pivot;
      mat[j][i] = 0.0;
      for (k = i + 1; k < n; k++)
        mat[j][k] += q * hvec[k];
      vec[j] += q * vec[i];
    }
  }
  vec[n - 1] /= mat[n - 1][n - 1];
  for (i = n - 2; i >= 0; i--) {
    hvec = mat[i];
    for (j = n - 1; j > i; j--)
      vec[i] -= hvec[j] * vec[j];
    vec[i] /= hvec[i];
  }
}


x86 assembly (clang, -O0):
<solvele>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jae    13cb <solvele+0x2ab>
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe99(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    11de <solvele+0xbe>
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe59(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
ucomisd -0x38(%rbp),%xmm0
jbe    11cb <solvele+0xab>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x60(%rbp)
jmp    11d0 <solvele+0xb0>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    117f <solvele+0x5f>
mov    -0x60(%rbp),%eax
cmp    -0x54(%rbp),%eax
je     1260 <solvele+0x140>
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x60(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x28(%rbp),%rdx
mov    -0x8(%rbp),%rax
movslq -0x60(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movaps 0xd72(%rip),%xmm1
pand   %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12c4 <solvele+0x1a4>
jp     12c4 <solvele+0x1a4>
mov    0x2d34(%rip),%rax
mov    (%rax),%edi
lea    0xd5b(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x13,%edi
call   1040 <exit@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    13b8 <solvele+0x298>
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    137e <solvele+0x25e>
movsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1330 <solvele+0x210>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12cd <solvele+0x1ad>
jmp    13bd <solvele+0x29d>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    113a <solvele+0x1a>
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jl     14c4 <solvele+0x3a4>
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jle    1493 <solvele+0x373>
mov    -0x30(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
movslq -0x54(%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    -0x58(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x58(%rbp)
jmp    142e <solvele+0x30e>
mov    -0x30(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x54(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x54(%rbp)
jmp    140b <solvele+0x2eb>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solvele>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %edx,%ecx
add    $0xffffffff,%ecx
je     14d5 <solvele+0x3b5>
mov    %edx,0x14(%rsp)
mov    %edx,%r11d
mov    %ecx,0x10(%rsp)
mov    %ecx,%eax
mov    %rax,0x20(%rsp)
mov    %r11,%r8
neg    %r8
lea    -0x5(%r11),%rax
mov    %rax,0x18(%rsp)
mov    $0x1,%r13d
mov    $0x7,%eax
mov    %rax,0x8(%rsp)
xor    %r14d,%r14d
movapd 0xe8a(%rip),%xmm10
xorpd  %xmm8,%xmm8
movapd 0xe8c(%rip),%xmm9
jmp    11b3 <solvele+0x93>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r13
addq   $0x1,0x8(%rsp)
addq   $0xffffffffffffffff,0x18(%rsp)
mov    0x20(%rsp),%rbp
mov    0x28(%rsp),%r14
cmp    %rbp,%r14
je     14cb <solvele+0x3ab>
mov    (%rdi,%r14,8),%rcx
movsd  (%rcx,%r14,8),%xmm3
lea    0x1(%r14),%rax
cmp    %r11,%rax
jae    1210 <solvele+0xf0>
movapd %xmm3,%xmm4
andpd  %xmm10,%xmm4
mov    %r13,%rbp
mov    %r14d,%edx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rdi,%rbp,8),%rbx
movsd  (%rbx,%r14,8),%xmm5
andpd  %xmm10,%xmm5
ucomisd %xmm4,%xmm5
cmova  %ebp,%edx
maxsd  %xmm4,%xmm5
add    $0x1,%rbp
movapd %xmm5,%xmm4
cmp    %rbp,%r11
jne    11e0 <solvele+0xc0>
jmp    1213 <solvele+0xf3>
nopl   0x0(%rax)
mov    %r14d,%edx
mov    %edx,%ebp
cmp    %rbp,%r14
je     1249 <solvele+0x129>
movslq %edx,%rdx
mov    (%rdi,%rdx,8),%rbp
mov    %rbp,(%rdi,%r14,8)
mov    %rcx,(%rdi,%rdx,8)
movsd  (%rsi,%r14,8),%xmm3
movsd  (%rsi,%rdx,8),%xmm4
movsd  %xmm4,(%rsi,%r14,8)
movsd  %xmm3,(%rsi,%rdx,8)
mov    (%rdi,%r14,8),%rcx
movsd  (%rcx,%r14,8),%xmm3
ucomisd %xmm8,%xmm3
jne    1256 <solvele+0x136>
jnp    155d <solvele+0x43d>
mov    %rax,0x28(%rsp)
cmp    %r11,%rax
jae    1190 <solvele+0x70>
mov    0x18(%rsp),%rax
shr    $0x2,%rax
add    $0x1,%rax
mov    %r14,%r10
not    %r10
lea    (%r10,%r11,1),%rdx
add    $0xfffffffffffffffc,%rdx
mov    %rdx,0x58(%rsp)
shr    $0x2,%rdx
and    $0xfffffffffffffffe,%rax
mov    %rax,0x30(%rsp)
add    %r11,%r10
add    $0x1,%rdx
mov    %rdx,0x50(%rsp)
lea    (%rcx,%r13,8),%rax
mov    %rax,0x60(%rsp)
lea    (%rcx,%r11,8),%rbx
mov    %r10,%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,0x40(%rsp)
add    %r13,%rax
mov    %rax,0x38(%rsp)
mov    0x8(%rsp),%rax
lea    (%rcx,%rax,8),%r9
mov    %r13,%r12
mov    %r10,0x48(%rsp)
jmp    12ff <solvele+0x1df>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mulsd  (%rsi,%r14,8),%xmm4
addsd  (%rsi,%r12,8),%xmm4
movsd  %xmm4,(%rsi,%r12,8)
add    $0x1,%r12
cmp    %r11,%r12
je     1190 <solvele+0x70>
mov    (%rdi,%r12,8),%r15
movsd  (%r15,%r14,8),%xmm4
xorpd  %xmm9,%xmm4
divsd  %xmm3,%xmm4
movq   $0x0,(%r15,%r14,8)
mov    %r13,%rbp
cmp    $0x4,%r10
jb     1450 <solvele+0x330>
lea    (%r15,%r13,8),%rdx
cmp    %rbx,%rdx
jae    1342 <solvele+0x222>
lea    (%r15,%r11,8),%rdx
mov    %r13,%rbp
cmp    %rdx,0x60(%rsp)
jb     1450 <solvele+0x330>
mov    %r8,%rax
movapd %xmm4,%xmm5
unpcklpd %xmm4,%xmm5
cmpq   $0x4,0x58(%rsp)
jae    135d <solvele+0x23d>
xor    %r10d,%r10d
jmp    13eb <solvele+0x2cb>
mov    0x8(%rsp),%rdx
lea    (%r15,%rdx,8),%r8
mov    0x30(%rsp),%rdx
xor    %r10d,%r10d
xchg   %ax,%ax
movupd -0x30(%r9,%r10,8),%xmm6
movupd -0x20(%r9,%r10,8),%xmm7
mulpd  %xmm5,%xmm6
movupd -0x30(%r8,%r10,8),%xmm1
addpd  %xmm6,%xmm1
movupd -0x20(%r8,%r10,8),%xmm6
movupd -0x10(%r8,%r10,8),%xmm2
movupd (%r8,%r10,8),%xmm0
mulpd  %xmm5,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm1,-0x30(%r8,%r10,8)
movupd %xmm7,-0x20(%r8,%r10,8)
movupd -0x10(%r9,%r10,8),%xmm1
movupd (%r9,%r10,8),%xmm6
mulpd  %xmm5,%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm5,%xmm6
addpd  %xmm0,%xmm6
movupd %xmm1,-0x10(%r8,%r10,8)
movupd %xmm6,(%r8,%r10,8)
add    $0x8,%r10
add    $0xfffffffffffffffe,%rdx
jne    1370 <solvele+0x250>
testb  $0x1,0x50(%rsp)
mov    %rax,%r8
je     142f <solvele+0x30f>
add    %r13,%r10
movupd (%rcx,%r10,8),%xmm0
movupd 0x10(%rcx,%r10,8),%xmm1
movupd (%r15,%r10,8),%xmm2
movupd 0x10(%r15,%r10,8),%xmm6
mulpd  %xmm5,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm5,%xmm1
addpd  %xmm6,%xmm1
movupd %xmm0,(%r15,%r10,8)
movupd %xmm1,0x10(%r15,%r10,8)
mov    0x38(%rsp),%rbp
mov    0x48(%rsp),%r10
cmp    0x40(%rsp),%r10
je     12e0 <solvele+0x1c0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r11d,%eax
sub    %ebp,%eax
mov    %rbp,%rdx
test   $0x1,%al
je     1475 <solvele+0x355>
movsd  (%rcx,%rbp,8),%xmm0
mulsd  %xmm4,%xmm0
addsd  (%r15,%rbp,8),%xmm0
movsd  %xmm0,(%r15,%rbp,8)
lea    0x1(%rbp),%rdx
not    %rbp
cmp    %r8,%rbp
je     12e0 <solvele+0x1c0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rcx,%rdx,8),%xmm0
mulsd  %xmm4,%xmm0
addsd  (%r15,%rdx,8),%xmm0
movsd  %xmm0,(%r15,%rdx,8)
movsd  0x8(%rcx,%rdx,8),%xmm0
mulsd  %xmm4,%xmm0
addsd  0x8(%r15,%rdx,8),%xmm0
movsd  %xmm0,0x8(%r15,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%r11
jne    1490 <solvele+0x370>
jmp    12e0 <solvele+0x1c0>
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%ecx
jmp    14d7 <solvele+0x3b7>
xor    %ebp,%ebp
mov    (%rdi,%rbp,8),%rax
movsd  (%rsi,%rbp,8),%xmm0
divsd  (%rax,%rbp,8),%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
add    $0xfffffffe,%edx
js     154e <solvele+0x42e>
movslq %ecx,%rbp
mov    %edx,%ecx
jmp    1516 <solvele+0x3f6>
cs nopw 0x0(%rax,%rax,1)
divsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,(%rsi,%rcx,8)
lea    -0x1(%rcx),%rax
test   %rcx,%rcx
mov    %rax,%rcx
jle    154e <solvele+0x42e>
mov    (%rdi,%rcx,8),%rdx
movsd  (%rsi,%rcx,8),%xmm0
cmp    %rbp,%rcx
jge    1500 <solvele+0x3e0>
mov    %rbp,%rax
nopw   0x0(%rax,%rax,1)
movsd  (%rdx,%rax,8),%xmm1
mulsd  (%rsi,%rax,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsi,%rcx,8)
add    $0xffffffffffffffff,%rax
cmp    %rcx,%rax
jg     1530 <solvele+0x410>
jmp    1500 <solvele+0x3e0>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2a7c(%rip),%rax
mov    (%rax),%edi
lea    0xab3(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x13,%edi
call   1040 <exit@plt>

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

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