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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printMatrix(int, int, double **);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, ...);
int main() {
  double matrix[100][101];
  int n;
  if (scanf("%d", &n) == EOF) {
    printf("Expected N (number of equations)\n");
    exit(1);
  }
  int i;
  for (i = 0; i < n; i++) {
    int j;
    for (j = 0; j < n + 1; j++) {
      if (scanf("%lf", &matrix[i][j]) != 1) {
        printf("Element a[%d][%d] is missing\n", i, j);
        exit(1);
      }
    }
  }
  printf("initial matrix\n");
  printMatrix(n, n + 1, matrix);
  int k;
  for (k = 0; k < n; k++) {
    if (matrix[k][k] < 1E-6 && matrix[k][k] > (1E-6 * -1)) {
      printf("Error: Current pivot is practically zero\n");
      exit(1);
    }
    printf("row %d /= %f\n", k, matrix[k][k]);
    double k_div;
    k_div = matrix[k][k];
    int k2;
    for (k2 = 0; k2 < n + 1; k2++) {
      matrix[k][k2] = matrix[k][k2] / k_div;
      if (matrix[k][k2] == -0.0) {
        matrix[k][k2] = 0.0;
      }
    }
    printMatrix(n, n + 1, matrix);
    int l;
    for (l = 0; l < n; l++) {
      if (l != k) {
        printf("row %d -= %f row %d\n", l, matrix[l][k], k);
        double l_mul;
        l_mul = matrix[l][k];
        int l2;
        for (l2 = 0; l2 < n + 1; l2++) {
          matrix[l][l2] = matrix[l][l2] - (l_mul * matrix[k][l2]);
        }
        printMatrix(n, n + 1, matrix);
      }
    }
  }
  printf("SOLUTION:\n");
  for (i = 0; i < n; i++) {
    printf("%f ", matrix[i][n]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x13be0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebf(%rip),%rdi
lea    -0x13bb4(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cltq
mov    0x2e78(%rip),%rcx
cmp    (%rcx),%rax
jne    1191 <main+0x51>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
movl   $0x0,-0x13bb8(%rbp)
mov    -0x13bb8(%rbp),%eax
cmp    -0x13bb4(%rbp),%eax
jge    1261 <main+0x121>
movl   $0x0,-0x13bbc(%rbp)
mov    -0x13bbc(%rbp),%eax
mov    -0x13bb4(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1248 <main+0x108>
movslq -0x13bb8(%rbp),%rax
lea    -0x13bb0(%rbp),%rsi
imul   $0x328,%rax,%rax
add    %rax,%rsi
movslq -0x13bbc(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
cmp    $0x1,%eax
je     122f <main+0xef>
mov    -0x13bb8(%rbp),%esi
mov    -0x13bbc(%rbp),%edx
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    1234 <main+0xf4>
mov    -0x13bbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bbc(%rbp)
jmp    11b7 <main+0x77>
jmp    124d <main+0x10d>
mov    -0x13bb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bb8(%rbp)
jmp    119b <main+0x5b>
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x13bb4(%rbp),%edi
mov    -0x13bb4(%rbp),%esi
add    $0x1,%esi
lea    -0x13bb0(%rbp),%rdx
call   1040 <printMatrix@plt>
movl   $0x0,-0x13bc0(%rbp)
mov    -0x13bc0(%rbp),%eax
cmp    -0x13bb4(%rbp),%eax
jge    163f <main+0x4ff>
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bc0(%rbp),%rcx
movsd  0xd33(%rip),%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jbe    1326 <main+0x1e6>
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bc0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd04(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1326 <main+0x1e6>
lea    0xd5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x13bc0(%rbp),%esi
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bc0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd42(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bc0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x13bc8(%rbp)
ff
movl   $0x0,-0x13bcc(%rbp)
mov    -0x13bcc(%rbp),%eax
mov    -0x13bb4(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1477 <main+0x337>
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bcc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x13bc8(%rbp),%xmm0
ff
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bcc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bcc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xbe9(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    145e <main+0x31e>
jp     145e <main+0x31e>
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bcc(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1463 <main+0x323>
mov    -0x13bcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bcc(%rbp)
jmp    1394 <main+0x254>
mov    -0x13bb4(%rbp),%edi
mov    -0x13bb4(%rbp),%esi
add    $0x1,%esi
lea    -0x13bb0(%rbp),%rdx
call   1040 <printMatrix@plt>
movl   $0x0,-0x13bd0(%rbp)
mov    -0x13bd0(%rbp),%eax
cmp    -0x13bb4(%rbp),%eax
jge    1626 <main+0x4e6>
mov    -0x13bd0(%rbp),%eax
cmp    -0x13bc0(%rbp),%eax
je     160d <main+0x4cd>
mov    -0x13bd0(%rbp),%esi
movslq -0x13bd0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bc0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x13bc0(%rbp),%edx
lea    0xbb0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movslq -0x13bd0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bc0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x13bd8(%rbp)
ff
movl   $0x0,-0x13bdc(%rbp)
mov    -0x13bdc(%rbp),%eax
mov    -0x13bb4(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    15f2 <main+0x4b2>
movslq -0x13bd0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bdc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x13bd8(%rbp),%xmm0
ff
movslq -0x13bc0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bdc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x13bd0(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bdc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x13bdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bdc(%rbp)
jmp    1534 <main+0x3f4>
mov    -0x13bb4(%rbp),%edi
mov    -0x13bb4(%rbp),%esi
add    $0x1,%esi
lea    -0x13bb0(%rbp),%rdx
call   1040 <printMatrix@plt>
jmp    1612 <main+0x4d2>
mov    -0x13bd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bd0(%rbp)
jmp    149c <main+0x35c>
jmp    162b <main+0x4eb>
mov    -0x13bc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bc0(%rbp)
jmp    1294 <main+0x154>
lea    0xa76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x13bb8(%rbp)
mov    -0x13bb8(%rbp),%eax
cmp    -0x13bb4(%rbp),%eax
jge    16af <main+0x56f>
movslq -0x13bb8(%rbp),%rcx
lea    -0x13bb0(%rbp),%rax
imul   $0x328,%rcx,%rcx
add    %rcx,%rax
movslq -0x13bb4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xa33(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x13bb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13bb8(%rbp)
jmp    1657 <main+0x517>
lea    0x985(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x13be0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x13bc8,%rsp
lea    0xea8(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
cltq
mov    0x2e5b(%rip),%rcx
cmp    %rax,(%rcx)
je     16f7 <main+0x597>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    11fd <main+0x9d>
lea    0x20(%rsp),%r12
lea    0xe79(%rip),%r15
xor    %r14d,%r14d
jmp    11c3 <main+0x63>
nop
movslq %eax,%rcx
add    $0x1,%r14
add    $0x328,%r12
cmp    %rcx,%r14
jge    11fd <main+0x9d>
test   %eax,%eax
js     11b0 <main+0x50>
mov    %r12,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
cmp    $0x1,%eax
jne    16c4 <main+0x564>
lea    0x1(%rbx),%rcx
movslq 0x4(%rsp),%rax
add    $0x8,%rbp
cmp    %rax,%rbx
mov    %rcx,%rbx
jl     11d0 <main+0x70>
jmp    11b0 <main+0x50>
lea    0xe68(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%edi
lea    0x1(%rdi),%esi
lea    0x20(%rsp),%rdx
call   1060 <printMatrix@plt>
cmpl   $0x0,0x4(%rsp)
jle    1653 <main+0x4f3>
lea    0x30(%rsp),%rbx
lea    0x20(%rsp),%r14
xor    %edx,%edx
jmp    1265 <main+0x105>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%rdx
add    $0x1,%rdx
mov    0x18(%rsp),%rbx
add    $0x328,%rbx
add    $0x328,%r14
cmp    %rax,%rdx
jge    1653 <main+0x4f3>
imul   $0x328,%rdx,%rax
add    %rsp,%rax
add    $0x20,%rax
mov    %rax,0x10(%rsp)
movsd  (%rax,%rdx,8),%xmm0
movsd  0xd7b(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1299 <main+0x139>
ucomisd 0xd75(%rip),%xmm0
ja     16e1 <main+0x581>
lea    0xda5(%rip),%rdi
mov    %rdx,0x8(%rsp)
mov    %edx,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x4(%rsp),%edi
lea    0x1(%rdi),%esi
test   %edi,%edi
xorpd  %xmm5,%xmm5
js     13c6 <main+0x266>
mov    0x8(%rsp),%rax
mov    0x10(%rsp),%r9
lea    (%r9,%rax,8),%rax
movsd  (%rax),%xmm0
mov    %esi,%eax
cmp    $0x2,%esi
jae    12f0 <main+0x190>
xor    %ecx,%ecx
jmp    13a0 <main+0x240>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,%ecx
and    $0xfffffffe,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x2(%rcx),%rdx
mov    %rdx,%r8
shr    %r8
add    $0x1,%r8
test   %rdx,%rdx
je     163e <main+0x4de>
mov    %r8,%rdx
and    $0xfffffffffffffffe,%rdx
xor    %ebp,%ebp
xorpd  %xmm6,%xmm6
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd -0x10(%rbx,%rbp,8),%xmm2
movupd (%rbx,%rbp,8),%xmm3
divpd  %xmm1,%xmm2
movapd %xmm2,%xmm4
cmpneqpd %xmm6,%xmm4
andpd  %xmm2,%xmm4
movupd %xmm4,-0x10(%rbx,%rbp,8)
divpd  %xmm1,%xmm3
movapd %xmm3,%xmm2
cmpneqpd %xmm6,%xmm2
andpd  %xmm3,%xmm2
movupd %xmm2,(%rbx,%rbp,8)
add    $0x4,%rbp
add    $0xfffffffffffffffe,%rdx
jne    1330 <main+0x1d0>
test   $0x1,%r8b
je     1395 <main+0x235>
movupd (%r9,%rbp,8),%xmm2
divpd  %xmm1,%xmm2
movapd %xmm2,%xmm1
cmpneqpd %xmm6,%xmm1
andpd  %xmm2,%xmm1
movupd %xmm1,(%r9,%rbp,8)
cmp    %rax,%rcx
je     13c6 <main+0x266>
nopw   0x0(%rax,%rax,1)
movsd  (%r14,%rcx,8),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
cmpeqsd %xmm5,%xmm2
andnpd %xmm1,%xmm2
movlpd %xmm2,(%r14,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13a0 <main+0x240>
mov    %rbx,0x18(%rsp)
lea    0x20(%rsp),%rdx
call   1060 <printMatrix@plt>
movslq 0x4(%rsp),%rax
test   %rax,%rax
jle    1240 <main+0xe0>
lea    0x28(%rsp),%r15
lea    0x50(%rsp),%r13
mov    %eax,%ecx
xor    %ebp,%ebp
mov    0x8(%rsp),%rdx
jmp    142c <main+0x2cc>
lea    0x1(%rdi),%esi
lea    0x20(%rsp),%rdx
call   1060 <printMatrix@plt>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%rdx
add    $0x1,%rbp
movslq %ecx,%rax
add    $0x328,%r13
add    $0x328,%r15
cmp    %rax,%rbp
jge    1245 <main+0xe5>
cmp    %rdx,%rbp
je     140e <main+0x2ae>
imul   $0x328,%rbp,%rax
lea    (%rsp,%rax,1),%r12
add    $0x20,%r12
movsd  (%r12,%rdx,8),%xmm0
lea    0xc06(%rip),%rdi
mov    %ebp,%esi
mov    $0x1,%al
mov    %rdx,%rbx
call   1050 <printf@plt>
mov    0x4(%rsp),%edi
test   %edi,%edi
js     13f8 <main+0x298>
lea    (%r12,%rbx,8),%rax
movsd  (%rax),%xmm0
xorpd  0xb9f(%rip),%xmm0
lea    0x1(%rdi),%rsi
cmp    $0x3,%edi
jae    1486 <main+0x326>
xor    %eax,%eax
mov    0x10(%rsp),%rbx
jmp    15b0 <main+0x450>
mov    0x10(%rsp),%rbx
lea    (%rbx,%rsi,8),%rax
cmp    %rax,%r12
jae    14a4 <main+0x344>
lea    (%r12,%rsi,8),%rax
cmp    %rax,%rbx
jae    14a4 <main+0x344>
xor    %eax,%eax
jmp    15b0 <main+0x450>
mov    %esi,%eax
and    $0xfffffffc,%eax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rax),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     162d <main+0x4cd>
mov    %r8,%rdx
and    $0xfffffffffffffffe,%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd (%r14,%rcx,8),%xmm2
movupd 0x10(%r14,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
movupd -0x30(%r13,%rcx,8),%xmm4
addpd  %xmm2,%xmm4
movupd -0x20(%r13,%rcx,8),%xmm2
movupd -0x10(%r13,%rcx,8),%xmm5
movupd 0x0(%r13,%rcx,8),%xmm6
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm4,-0x30(%r13,%rcx,8)
movupd %xmm3,-0x20(%r13,%rcx,8)
movupd 0x20(%r14,%rcx,8),%xmm2
movupd 0x30(%r14,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  %xmm5,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm6,%xmm3
movupd %xmm2,-0x10(%r13,%rcx,8)
movupd %xmm3,0x0(%r13,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rdx
jne    14e0 <main+0x380>
test   $0x1,%r8b
je     1598 <main+0x438>
movupd (%r12,%rcx,8),%xmm2
movupd 0x10(%r12,%rcx,8),%xmm3
movupd (%rbx,%rcx,8),%xmm4
movupd 0x10(%rbx,%rcx,8),%xmm5
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm4
mulpd  %xmm1,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,(%r12,%rcx,8)
movupd %xmm5,0x10(%r12,%rcx,8)
cmp    %rsi,%rax
je     13fb <main+0x29b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rax,%rcx
test   $0x1,%sil
je     15d5 <main+0x475>
movsd  (%rbx,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r12,%rax,8),%xmm1
movsd  %xmm1,(%r12,%rax,8)
mov    %rax,%rcx
or     $0x1,%rcx
not    %rax
add    %rsi,%rax
je     13fb <main+0x29b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r14,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  -0x8(%r15,%rcx,8),%xmm1
movsd  %xmm1,-0x8(%r15,%rcx,8)
movsd  0x8(%r14,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r15,%rcx,8),%xmm1
movsd  %xmm1,(%r15,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rsi
jne    15f0 <main+0x490>
jmp    13fb <main+0x29b>
xor    %ecx,%ecx
test   $0x1,%r8b
jne    1563 <main+0x403>
jmp    1598 <main+0x438>
xor    %ebp,%ebp
xorpd  %xmm6,%xmm6
test   $0x1,%r8b
jne    1378 <main+0x218>
jmp    1395 <main+0x235>
lea    0xa21(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
lea    0x20(%rsp),%rbx
jle    16a6 <main+0x546>
xor    %ebp,%ebp
lea    0x9f3(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
cltq
movsd  (%rbx,%rax,8),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
add    $0x328,%rbx
cmp    %rax,%rbp
jl     1680 <main+0x520>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x13bc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x95c(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
lea    0x99d(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
lea    0x9b0(%rip),%rdi
jmp    16e8 <main+0x588>

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

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