void gauss1(void *b, void *res, int eq) {
  int i, n, k, j;
  double t, temp;
  double *B = b;
  double *a = res;
  n = eq;
  print_matrix("INPUT", B, n, n + 1);
  for (i = 0; i < n; i++)
    for (k = i + 1; k < n; k++)
      if ((((double *)B)[(i) + (i) * (n + 1)]) <
          (((double *)B)[(i) + (k) * (n + 1)]))
        for (j = 0; j <= n; j++) {
          temp = (((double *)B)[(j) + (i) * (n + 1)]);
          (((double *)B)[(j) + (i) * (n + 1)]) =
              (((double *)B)[(j) + (k) * (n + 1)]);
          (((double *)B)[(j) + (k) * (n + 1)]) = temp;
        }
  print_matrix("", B, n, n + 1);
  for (i = 0; i < n - 1; i++) {
    for (k = i + 1; k < n; k++) {
      t = (((double *)B)[(i) + (k) * (n + 1)]) /
          (((double *)B)[(i) + (i) * (n + 1)]);
      for (j = 0; j <= n; j++)
        (((double *)B)[(j) + (k) * (n + 1)]) =
            (((double *)B)[(j) + (k) * (n + 1)]) -
            t * (((double *)B)[(j) + (i) * (n + 1)]);
    }
  }
  for (i = n - 1; i >= 0; i--) {
    a[i] = (((double *)B)[(n) + (i) * (n + 1)]);
    for (j = 0; j < n; j++)
      if (j != i)
        a[i] = a[i] - (((double *)B)[(j) + (i) * (n + 1)]) * a[j];
    a[i] = a[i] / (((double *)B)[(i) + (i) * (n + 1)]);
  }
  print_matrix("result", a, 1, 3);
}


x86 assembly (clang, -O0):
<gauss1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x40(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <print_matrix@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    128a <gauss1+0x17a>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1277 <gauss1+0x167>
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1264 <gauss1+0x154>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     125f <gauss1+0x14f>
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11c7 <gauss1+0xb7>
jmp    1264 <gauss1+0x154>
jmp    1269 <gauss1+0x159>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1170 <gauss1+0x60>
jmp    127c <gauss1+0x16c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115b <gauss1+0x4b>
mov    -0x40(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1030 <print_matrix@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13d3 <gauss1+0x2c3>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13c0 <gauss1+0x2b0>
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     13ad <gauss1+0x29d>
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1318 <gauss1+0x208>
jmp    13b2 <gauss1+0x2a2>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12c6 <gauss1+0x1b6>
jmp    13c5 <gauss1+0x2b5>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12ac <gauss1+0x19c>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     14ea <gauss1+0x3da>
mov    -0x40(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    14a5 <gauss1+0x395>
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     1492 <gauss1+0x382>
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x24(%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
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1497 <gauss1+0x387>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1417 <gauss1+0x307>
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
imul   %esi,%edx
add    %edx,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    13dc <gauss1+0x2cc>
mov    -0x48(%rbp),%rsi
lea    0xb11(%rip),%rdi
mov    $0x1,%edx
mov    $0x3,%ecx
mov    $0x0,%al
call   1030 <print_matrix@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gauss1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %edx,%ebx
mov    %rsi,%rbp
mov    %rdi,%r15
lea    0x1(%rbx),%r12d
lea    0xedc(%rip),%rdi
mov    %r15,%rsi
mov    %r12d,%ecx
xor    %eax,%eax
call   1030 <print_matrix@plt>
test   %ebx,%ebx
jle    190d <gauss1+0x7fd>
mov    %rbp,0x98(%rsp)
mov    %r12d,%r14d
mov    %rbx,0x48(%rsp)
mov    %ebx,%r11d
lea    0x0(,%r14,8),%rax
mov    %rax,0x18(%rsp)
mov    %r14,%rax
shl    $0x4,%rax
mov    %rax,0x50(%rsp)
mov    %r14d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x58(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x88(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x70(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x38(%rsp)
mov    %r14,%rax
neg    %rax
mov    %rax,0x90(%rsp)
lea    0x30(%r15),%rsi
lea    (%r15,%r14,8),%rax
add    $0x30,%rax
mov    %rax,0x40(%rsp)
lea    0x8(%r15,%r14,8),%rax
mov    %rax,0x28(%rsp)
mov    $0x1,%eax
mov    %rax,0x20(%rsp)
xor    %r8d,%r8d
mov    %r15,%rbp
mov    %r12d,%ecx
mov    %r12d,0x4(%rsp)
mov    %r11,%rax
mov    %r11,0x10(%rsp)
jmp    1229 <gauss1+0x119>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
addq   $0x1,0x20(%rsp)
mov    0x18(%rsp),%rax
add    %rax,%rsi
add    %rax,0x40(%rsp)
add    %rax,0x28(%rsp)
add    %rax,%rbp
mov    0x30(%rsp),%r8
cmp    %r11,%r8
je     148e <gauss1+0x37e>
lea    0x1(%r8),%rax
mov    %rax,0x30(%rsp)
cmp    %r11,%rax
jae    1200 <gauss1+0xf0>
mov    0x18(%rsp),%rax
mov    %rax,%rdx
imul   %r8,%rdx
lea    (%r15,%rdx,1),%rdi
mov    %rdi,0x78(%rsp)
add    %rdx,%rax
mov    %rax,0x68(%rsp)
add    %r15,%rax
mov    %rax,0x60(%rsp)
add    0x50(%rsp),%rdx
mov    %rdx,0x80(%rsp)
mov    %r8,%rax
imul   %r14,%rax
mov    %rax,0x8(%rsp)
mov    %ecx,%eax
imul   %r8d,%eax
movslq %eax,%r10
add    %r8,%r10
mov    0x28(%rsp),%rax
mov    0x40(%rsp),%rdi
xor    %r9d,%r9d
mov    0x20(%rsp),%r12
jmp    12bc <gauss1+0x1ac>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r12
add    $0x1,%r9
mov    0x18(%rsp),%rdx
add    %rdx,%rdi
add    %rdx,%rax
cmp    %r11,%r12
je     1200 <gauss1+0xf0>
mov    %r12,%r13
imul   %r14,%r13
lea    (%r8,%r13,1),%rdx
movsd  (%r15,%rdx,8),%xmm0
ucomisd (%r15,%r10,8),%xmm0
jbe    12a0 <gauss1+0x190>
cmp    $0x4,%ecx
jb     130f <gauss1+0x1ff>
mov    0x18(%rsp),%rdx
imul   %r9,%rdx
mov    0x80(%rsp),%rbx
add    %rdx,%rbx
add    %r15,%rbx
cmp    %rbx,0x78(%rsp)
jae    139c <gauss1+0x28c>
add    0x68(%rsp),%rdx
add    %r15,%rdx
cmp    0x60(%rsp),%rdx
jae    139c <gauss1+0x28c>
xor    %edx,%edx
mov    %rdx,%rbx
test   $0x1,%r14b
je     1344 <gauss1+0x234>
mov    0x8(%rsp),%rbx
add    %rdx,%rbx
movsd  (%r15,%rbx,8),%xmm0
add    %rdx,%r13
movsd  (%r15,%r13,8),%xmm1
movsd  %xmm1,(%r15,%rbx,8)
movsd  %xmm0,(%r15,%r13,8)
mov    %rdx,%rbx
or     $0x1,%rbx
not    %rdx
cmp    0x90(%rsp),%rdx
je     12a0 <gauss1+0x190>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%rbp,%rbx,8),%xmm0
movsd  -0x8(%rax,%rbx,8),%xmm1
movsd  %xmm1,0x0(%rbp,%rbx,8)
movsd  %xmm0,-0x8(%rax,%rbx,8)
movsd  0x8(%rbp,%rbx,8),%xmm0
movsd  (%rax,%rbx,8),%xmm1
movsd  %xmm1,0x8(%rbp,%rbx,8)
movsd  %xmm0,(%rax,%rbx,8)
add    $0x2,%rbx
cmp    %rbx,%r14
jne    1360 <gauss1+0x250>
jmp    12a0 <gauss1+0x190>
cmpq   $0x0,0x88(%rsp)
je     1483 <gauss1+0x373>
mov    0x38(%rsp),%r11
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups -0x30(%rsi,%rbx,8),%xmm0
movups -0x20(%rsi,%rbx,8),%xmm1
movups -0x30(%rdi,%rbx,8),%xmm2
movups -0x20(%rdi,%rbx,8),%xmm3
movups %xmm2,-0x30(%rsi,%rbx,8)
movups %xmm3,-0x20(%rsi,%rbx,8)
movups %xmm0,-0x30(%rdi,%rbx,8)
movups %xmm1,-0x20(%rdi,%rbx,8)
movupd -0x10(%rsi,%rbx,8),%xmm0
movupd (%rsi,%rbx,8),%xmm1
movupd -0x10(%rdi,%rbx,8),%xmm2
movupd (%rdi,%rbx,8),%xmm3
movupd %xmm2,-0x10(%rsi,%rbx,8)
movupd %xmm3,(%rsi,%rbx,8)
movupd %xmm0,-0x10(%rdi,%rbx,8)
movupd %xmm1,(%rdi,%rbx,8)
add    $0x8,%rbx
add    $0xfffffffffffffffe,%r11
jne    13c0 <gauss1+0x2b0>
testb  $0x1,0x70(%rsp)
je     1464 <gauss1+0x354>
mov    0x8(%rsp),%rcx
add    %rbx,%rcx
movupd (%r15,%rcx,8),%xmm0
movupd 0x10(%r15,%rcx,8),%xmm1
add    %r13,%rbx
movupd (%r15,%rbx,8),%xmm2
movupd 0x10(%r15,%rbx,8),%xmm3
movupd %xmm2,(%r15,%rcx,8)
movupd %xmm3,0x10(%r15,%rcx,8)
movupd %xmm0,(%r15,%rbx,8)
movupd %xmm1,0x10(%r15,%rbx,8)
mov    0x58(%rsp),%rcx
mov    %rcx,%rdx
cmp    %r14,%rcx
mov    0x4(%rsp),%ecx
mov    0x10(%rsp),%r11
je     12a0 <gauss1+0x190>
jmp    1311 <gauss1+0x201>
xor    %ebx,%ebx
testb  $0x1,0x70(%rsp)
jne    1425 <gauss1+0x315>
jmp    1464 <gauss1+0x354>
lea    0xb80(%rip),%rdi
mov    %r15,%rsi
mov    0x48(%rsp),%rbx
mov    %ebx,%edx
xor    %eax,%eax
mov    %ecx,%ebp
call   1030 <print_matrix@plt>
movslq %ebp,%rax
mov    %rax,0x8(%rsp)
cmp    $0x2,%ebx
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
mov    %rax,0x30(%rsp)
jl     17dd <gauss1+0x6cd>
mov    0x48(%rsp),%rax
add    $0xffffffff,%eax
mov    %rax,0x50(%rsp)
mov    0x8(%rsp),%rdx
lea    0x0(,%rdx,8),%r12
mov    0x18(%rsp),%rax
lea    (%rax,%rdx,8),%rax
mov    %rax,0xa0(%rsp)
mov    %r14d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x58(%rsp)
mov    0x30(%rsp),%rax
and    0x70(%rsp),%rax
mov    %rax,0x30(%rsp)
lea    (%r15,%rdx,8),%rax
add    $0x30,%rax
mov    %rax,0x28(%rsp)
lea    0x30(%r15),%rcx
lea    0x8(%r15),%rsi
lea    (%r15,%rdx,8),%rax
mov    %rax,0x20(%rsp)
mov    $0x1,%eax
mov    %rax,0x38(%rsp)
xor    %r9d,%r9d
movapd 0xac0(%rip),%xmm0
jmp    1576 <gauss1+0x466>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
addq   $0x1,0x38(%rsp)
add    %r12,0x28(%rsp)
add    %r12,%rcx
add    %r12,%rsi
add    %r12,0x20(%rsp)
mov    0x40(%rsp),%r9
cmp    0x50(%rsp),%r9
je     17dd <gauss1+0x6cd>
lea    0x1(%r9),%rax
mov    %rax,0x40(%rsp)
cmp    0x10(%rsp),%rax
jae    1550 <gauss1+0x440>
mov    %r12,%rdx
imul   %r9,%rdx
lea    (%r12,%rdx,1),%rax
mov    %rax,0x80(%rsp)
mov    0xa0(%rsp),%rax
add    %rdx,%rax
mov    %rax,0x68(%rsp)
lea    (%r15,%rdx,1),%rax
mov    %rax,0x60(%rsp)
add    0x18(%rsp),%rdx
add    %r15,%rdx
mov    %rdx,0x78(%rsp)
mov    %r9,%r13
imul   0x8(%rsp),%r13
mov    0x4(%rsp),%eax
imul   %r9d,%eax
movslq %eax,%r8
add    %r9,%r8
mov    0x20(%rsp),%rdi
mov    0x28(%rsp),%r10
xor    %eax,%eax
mov    0x38(%rsp),%r11
jmp    1609 <gauss1+0x4f9>
nopl   0x0(%rax)
add    $0x1,%r11
add    $0x1,%rax
add    %r12,%r10
add    %r12,%rdi
cmp    0x10(%rsp),%r11
je     1550 <gauss1+0x440>
mov    %r11,%rbp
imul   0x8(%rsp),%rbp
lea    (%r9,%rbp,1),%rdx
movsd  (%r15,%rdx,8),%xmm1
xorpd  %xmm0,%xmm1
divsd  (%r15,%r8,8),%xmm1
cmpl   $0x4,0x4(%rsp)
jb     1660 <gauss1+0x550>
mov    %r12,%rdx
imul   %rax,%rdx
mov    0x80(%rsp),%rbx
add    %rdx,%rbx
add    %r15,%rbx
cmp    0x78(%rsp),%rbx
jae    16e0 <gauss1+0x5d0>
add    0x68(%rsp),%rdx
add    %r15,%rdx
cmp    %rdx,0x60(%rsp)
jae    16e0 <gauss1+0x5d0>
xor    %ebx,%ebx
mov    %rbx,%rdx
test   $0x1,%r14b
je     168f <gauss1+0x57f>
add    %rbx,%rbp
lea    (%rbx,%r13,1),%rdx
movsd  (%r15,%rdx,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  (%r15,%rbp,8),%xmm2
movsd  %xmm2,(%r15,%rbp,8)
mov    %rbx,%rdx
or     $0x1,%rdx
not    %rbx
cmp    0x90(%rsp),%rbx
je     15f0 <gauss1+0x4e0>
movsd  -0x8(%rsi,%rdx,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  (%rdi,%rdx,8),%xmm2
movsd  %xmm2,(%rdi,%rdx,8)
movsd  (%rsi,%rdx,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  0x8(%rdi,%rdx,8),%xmm2
movsd  %xmm2,0x8(%rdi,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%r14
jne    16a0 <gauss1+0x590>
jmp    15f0 <gauss1+0x4e0>
nopw   0x0(%rax,%rax,1)
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
cmpq   $0x0,0x88(%rsp)
je     17d2 <gauss1+0x6c2>
mov    0x30(%rsp),%rdx
xor    %ebx,%ebx
xchg   %ax,%ax
movupd -0x30(%rcx,%rbx,8),%xmm3
movupd -0x20(%rcx,%rbx,8),%xmm4
mulpd  %xmm2,%xmm3
movupd -0x30(%r10,%rbx,8),%xmm5
addpd  %xmm3,%xmm5
movupd -0x20(%r10,%rbx,8),%xmm3
movupd -0x10(%r10,%rbx,8),%xmm6
movupd (%r10,%rbx,8),%xmm7
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
movupd %xmm5,-0x30(%r10,%rbx,8)
movupd %xmm4,-0x20(%r10,%rbx,8)
movupd -0x10(%rcx,%rbx,8),%xmm3
movupd (%rcx,%rbx,8),%xmm4
mulpd  %xmm2,%xmm3
addpd  %xmm6,%xmm3
mulpd  %xmm2,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm3,-0x10(%r10,%rbx,8)
movupd %xmm4,(%r10,%rbx,8)
add    $0x8,%rbx
add    $0xfffffffffffffffe,%rdx
jne    1700 <gauss1+0x5f0>
testb  $0x1,0x70(%rsp)
je     17bc <gauss1+0x6ac>
lea    (%rbx,%rbp,1),%rdx
movupd (%r15,%rdx,8),%xmm3
movupd 0x10(%r15,%rdx,8),%xmm4
add    %r13,%rbx
movupd (%r15,%rbx,8),%xmm5
movupd 0x10(%r15,%rbx,8),%xmm6
mulpd  %xmm2,%xmm5
addpd  %xmm3,%xmm5
mulpd  %xmm2,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm5,(%r15,%rdx,8)
movupd %xmm6,0x10(%r15,%rdx,8)
mov    0x58(%rsp),%rdx
mov    %rdx,%rbx
cmp    %r14,%rdx
je     15f0 <gauss1+0x4e0>
jmp    1662 <gauss1+0x552>
xor    %ebx,%ebx
testb  $0x1,0x70(%rsp)
jne    177e <gauss1+0x66e>
jmp    17bc <gauss1+0x6ac>
mov    0x48(%rsp),%r11
test   %r11d,%r11d
mov    0x98(%rsp),%rbp
jle    1923 <gauss1+0x813>
mov    0x10(%rsp),%rsi
mov    %esi,%eax
and    $0xfffffffe,%eax
lea    -0x1(%rsi),%rcx
mov    0x8(%rsp),%rdx
imul   %rdx,%rcx
lea    (%r15,%rcx,8),%rcx
add    $0x8,%rcx
lea    0x0(,%rdx,8),%r8
neg    %r8
jmp    183f <gauss1+0x72f>
nop
movslq %ebx,%rdx
add    %rsi,%rdx
divsd  (%r15,%rdx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
add    %r8,%rcx
cmp    $0x1,%r9
jle    1923 <gauss1+0x813>
mov    %rsi,%r9
add    $0xffffffffffffffff,%rsi
mov    %rsi,%r10
imul   0x8(%rsp),%r10
mov    0x10(%rsp),%rdx
add    %r10,%rdx
movsd  (%r15,%rdx,8),%xmm0
movsd  %xmm0,-0x8(%rbp,%r9,8)
cmp    $0x1,%r11d
jne    1870 <gauss1+0x760>
xor    %edi,%edi
jmp    18d4 <gauss1+0x7c4>
xchg   %ax,%ax
lea    -0x1(%r9),%rbx
xor    %edx,%edx
jmp    1889 <gauss1+0x779>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rdx
cmp    %rax,%rdx
je     18d0 <gauss1+0x7c0>
mov    %rdx,%rdi
cmp    %rdx,%rbx
je     18a7 <gauss1+0x797>
movsd  -0x8(%rcx,%rdi,8),%xmm1
mulsd  0x0(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
lea    0x1(%rdi),%rdx
cmp    %rsi,%rdx
je     1880 <gauss1+0x770>
movsd  (%rcx,%rdi,8),%xmm1
mulsd  0x8(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
jmp    1880 <gauss1+0x770>
nopw   0x0(%rax,%rax,1)
add    $0x2,%rdi
mov    0x4(%rsp),%ebx
imul   %esi,%ebx
testb  $0x1,0x10(%rsp)
je     1820 <gauss1+0x710>
cmp    %rsi,%rdi
je     1820 <gauss1+0x710>
add    %rdi,%r10
movsd  (%r15,%r10,8),%xmm1
mulsd  0x0(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
jmp    1820 <gauss1+0x710>
lea    0x701(%rip),%rdi
mov    %r15,%rsi
mov    %ebx,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1030 <print_matrix@plt>
lea    0x6ec(%rip),%rdi
mov    %rbp,%rsi
mov    $0x1,%edx
mov    $0x3,%ecx
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <print_matrix@plt>

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

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