void gauss1(void *b, void *res, int eq) {
  int i, n, k, j;
  double t, temp;
  double *B = b;
  double *a = res;
  n = eq;
  pr_mx(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;
        }
  pr_mx(B, 3, 4);
  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)]);
      printf("%f\n", t);
      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)]);
      pr_mx(B, 3, 4);
    }
  }
  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)]);
  }
  pr_mx(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),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
mov    $0x0,%al
call   1040 <pr_mx@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1293 <gauss1+0x173>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1280 <gauss1+0x160>
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    126d <gauss1+0x14d>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1268 <gauss1+0x148>
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    11d0 <gauss1+0xb0>
jmp    126d <gauss1+0x14d>
jmp    1272 <gauss1+0x152>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1179 <gauss1+0x59>
jmp    1285 <gauss1+0x165>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1164 <gauss1+0x44>
mov    -0x40(%rbp),%rdi
mov    $0x3,%esi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <pr_mx@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13f9 <gauss1+0x2d9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13e6 <gauss1+0x2c6>
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)
movsd  -0x30(%rbp),%xmm0
lea    0xce0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     13c3 <gauss1+0x2a3>
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    132e <gauss1+0x20e>
mov    -0x40(%rbp),%rdi
mov    $0x3,%esi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <pr_mx@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12c9 <gauss1+0x1a9>
jmp    13eb <gauss1+0x2cb>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12af <gauss1+0x18f>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     1510 <gauss1+0x3f0>
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    14cb <gauss1+0x3ab>
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     14b8 <gauss1+0x398>
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    14bd <gauss1+0x39d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    143d <gauss1+0x31d>
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    1402 <gauss1+0x2e2>
mov    -0x48(%rbp),%rdi
mov    $0x1,%esi
mov    $0x3,%edx
mov    $0x0,%al
call   1040 <pr_mx@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    $0xf8,%rsp
mov    %edx,%ebx
mov    %rsi,%rbp
mov    %rdi,%r14
lea    0x1(%rbx),%r12d
mov    %edx,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <pr_mx@plt>
test   %ebx,%ebx
jle    1a2c <gauss1+0x90c>
mov    %rbp,0xc0(%rsp)
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
mov    %rax,0x98(%rsp)
mov    %r12d,%r15d
mov    %rbx,0x60(%rsp)
mov    %ebx,%eax
lea    0x0(,%r15,8),%rcx
mov    %rcx,0x18(%rsp)
mov    %r15,%rcx
shl    $0x4,%rcx
mov    %rcx,0x70(%rsp)
mov    %r15d,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,0x48(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0xa0(%rsp)
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rdx,%rcx
mov    %rdx,0x68(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x78(%rsp)
mov    %r15,%rcx
neg    %rcx
mov    %rcx,0xa8(%rsp)
lea    0x30(%r14),%rsi
lea    (%r14,%r15,8),%rcx
add    $0x30,%rcx
mov    %rcx,0x28(%rsp)
lea    0x8(%r14,%r15,8),%rcx
mov    %rcx,0x38(%rsp)
mov    $0x1,%ecx
mov    %rcx,0x20(%rsp)
xor    %r8d,%r8d
mov    %r14,%rbx
mov    %r14,%rdi
mov    %r14,0x40(%rsp)
mov    %r12d,%r11d
mov    %rax,%r12
mov    %r11d,0x4(%rsp)
mov    %rax,0x30(%rsp)
jmp    124e <gauss1+0x12e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
addq   $0x1,0x20(%rsp)
mov    0x18(%rsp),%rax
add    %rax,%rsi
add    %rax,0x28(%rsp)
add    %rax,0x38(%rsp)
add    %rax,%rbx
mov    0x30(%rsp),%r12
mov    0x8(%rsp),%r8
cmp    %r12,%r8
je     14c1 <gauss1+0x3a1>
lea    0x1(%r8),%rax
mov    %rax,0x8(%rsp)
cmp    %r12,%rax
jae    1220 <gauss1+0x100>
mov    0x18(%rsp),%rax
mov    %rax,%r10
imul   %r8,%r10
lea    (%rdi,%r10,1),%rcx
mov    %rcx,0xb0(%rsp)
add    %r10,%rax
mov    %rax,0x10(%rsp)
add    %rdi,%rax
mov    %rax,0x50(%rsp)
add    0x70(%rsp),%r10
mov    %r8,%rax
imul   %r15,%rax
mov    %rax,0x58(%rsp)
mov    %r11d,%eax
imul   %r8d,%eax
movslq %eax,%r9
add    %r8,%r9
mov    0x38(%rsp),%rbp
mov    0x28(%rsp),%r12
xor    %r13d,%r13d
mov    0x20(%rsp),%rax
jmp    12de <gauss1+0x1be>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rax
add    $0x1,%r13
mov    0x18(%rsp),%rcx
add    %rcx,%r12
add    %rcx,%rbp
cmp    0x30(%rsp),%rax
je     1220 <gauss1+0x100>
mov    %rax,%r14
imul   %r15,%r14
lea    (%r14,%r8,1),%rcx
movsd  (%rdi,%rcx,8),%xmm0
ucomisd (%rdi,%r9,8),%xmm0
jbe    12c0 <gauss1+0x1a0>
cmp    $0x4,%r11d
jb     132d <gauss1+0x20d>
mov    0x18(%rsp),%rcx
imul   %r13,%rcx
lea    (%r10,%rcx,1),%rdx
add    %rdi,%rdx
cmp    %rdx,0xb0(%rsp)
jae    13bc <gauss1+0x29c>
add    0x10(%rsp),%rcx
add    %rdi,%rcx
cmp    0x50(%rsp),%rcx
jae    13bc <gauss1+0x29c>
xor    %edx,%edx
mov    %rdx,%rcx
test   $0x1,%r15b
je     1360 <gauss1+0x240>
mov    0x58(%rsp),%rcx
add    %rdx,%rcx
movsd  (%rdi,%rcx,8),%xmm0
add    %rdx,%r14
movsd  (%rdi,%r14,8),%xmm1
movsd  %xmm1,(%rdi,%rcx,8)
movsd  %xmm0,(%rdi,%r14,8)
mov    %rdx,%rcx
or     $0x1,%rcx
not    %rdx
cmp    0xa8(%rsp),%rdx
je     12c0 <gauss1+0x1a0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rcx,8),%xmm0
movsd  -0x8(%rbp,%rcx,8),%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
movsd  %xmm0,-0x8(%rbp,%rcx,8)
movsd  0x8(%rbx,%rcx,8),%xmm0
movsd  0x0(%rbp,%rcx,8),%xmm1
movsd  %xmm1,0x8(%rbx,%rcx,8)
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r15
jne    1380 <gauss1+0x260>
jmp    12c0 <gauss1+0x1a0>
cmpq   $0x0,0xa0(%rsp)
je     14b5 <gauss1+0x395>
mov    0x78(%rsp),%rcx
xor    %r11d,%r11d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups -0x30(%rsi,%r11,8),%xmm0
movups -0x20(%rsi,%r11,8),%xmm1
movups -0x30(%r12,%r11,8),%xmm2
movups -0x20(%r12,%r11,8),%xmm3
movups %xmm2,-0x30(%rsi,%r11,8)
movups %xmm3,-0x20(%rsi,%r11,8)
movups %xmm0,-0x30(%r12,%r11,8)
movups %xmm1,-0x20(%r12,%r11,8)
movupd -0x10(%rsi,%r11,8),%xmm0
movupd (%rsi,%r11,8),%xmm1
movupd -0x10(%r12,%r11,8),%xmm2
movupd (%r12,%r11,8),%xmm3
movupd %xmm2,-0x10(%rsi,%r11,8)
movupd %xmm3,(%rsi,%r11,8)
movupd %xmm0,-0x10(%r12,%r11,8)
movupd %xmm1,(%r12,%r11,8)
add    $0x8,%r11
add    $0xfffffffffffffffe,%rcx
jne    13e0 <gauss1+0x2c0>
testb  $0x1,0x68(%rsp)
je     1495 <gauss1+0x375>
mov    0x58(%rsp),%rcx
add    %r11,%rcx
mov    0x40(%rsp),%rdx
movupd (%rdx,%rcx,8),%xmm0
movupd 0x10(%rdx,%rcx,8),%xmm1
add    %r14,%r11
movupd (%rdx,%r11,8),%xmm2
movupd 0x10(%rdx,%r11,8),%xmm3
movupd %xmm2,(%rdx,%rcx,8)
movupd %xmm3,0x10(%rdx,%rcx,8)
movupd %xmm0,(%rdx,%r11,8)
movupd %xmm1,0x10(%rdx,%r11,8)
mov    0x48(%rsp),%rcx
mov    %rcx,%rdx
cmp    %r15,%rcx
mov    0x40(%rsp),%rdi
mov    0x4(%rsp),%r11d
je     12c0 <gauss1+0x1a0>
jmp    132f <gauss1+0x20f>
xor    %r11d,%r11d
testb  $0x1,0x68(%rsp)
jne    1455 <gauss1+0x335>
jmp    1495 <gauss1+0x375>
mov    $0x3,%esi
mov    $0x4,%edx
xor    %eax,%eax
mov    %r11d,%ebx
call   1040 <pr_mx@plt>
mov    0x40(%rsp),%rsi
movslq %ebx,%rax
mov    %rax,0x8(%rsp)
cmpl   $0x2,0x60(%rsp)
jl     18fa <gauss1+0x7da>
mov    0x60(%rsp),%rax
add    $0xffffffff,%eax
mov    %rax,0xd0(%rsp)
mov    0x8(%rsp),%rcx
lea    0x0(,%rcx,8),%rax
mov    %rax,0x10(%rsp)
mov    0x18(%rsp),%rax
lea    (%rax,%rcx,8),%rax
mov    %rax,0xc8(%rsp)
mov    %r15d,%eax
and    $0xfffffffc,%eax
mov    %rax,0xe0(%rsp)
mov    0x68(%rsp),%rax
and    %rax,0x98(%rsp)
lea    (%rsi,%rcx,8),%rax
add    $0x30,%rax
mov    %rax,0x90(%rsp)
lea    0x30(%rsi),%r14
lea    0x8(%rsi),%rbp
lea    (%rsi,%rcx,8),%rax
mov    %rax,0x88(%rsp)
mov    $0x1,%eax
mov    %rax,0x80(%rsp)
xor    %eax,%eax
jmp    15aa <gauss1+0x48a>
addq   $0x1,0x80(%rsp)
mov    0x10(%rsp),%rax
add    %rax,0x90(%rsp)
add    %rax,%r14
add    %rax,%rbp
add    %rax,0x88(%rsp)
mov    0xd8(%rsp),%rax
cmp    0xd0(%rsp),%rax
je     18fa <gauss1+0x7da>
mov    %rax,%rcx
mov    %rax,0x28(%rsp)
add    $0x1,%rax
mov    %rax,0xd8(%rsp)
cmp    %r12,%rax
jae    1570 <gauss1+0x450>
mov    0x10(%rsp),%rax
mov    %rax,%rdx
mov    0x28(%rsp),%rcx
imul   %rcx,%rdx
add    %rdx,%rax
mov    %rax,0x70(%rsp)
mov    0xc8(%rsp),%rax
add    %rdx,%rax
mov    %rax,0xf0(%rsp)
lea    (%rsi,%rdx,1),%rax
mov    %rax,0xe8(%rsp)
add    0x18(%rsp),%rdx
add    %rsi,%rdx
mov    %rdx,0x78(%rsp)
mov    %rcx,%rax
imul   0x8(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x4(%rsp),%eax
imul   %ecx,%eax
cltq
add    %rcx,%rax
mov    %rax,0x38(%rsp)
mov    0x88(%rsp),%rbx
mov    0x90(%rsp),%r13
xor    %eax,%eax
mov    %rax,0x48(%rsp)
mov    0x80(%rsp),%rcx
jmp    1689 <gauss1+0x569>
nopl   0x0(%rax,%rax,1)
mov    $0x3,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <pr_mx@plt>
mov    0x40(%rsp),%rsi
mov    0x58(%rsp),%rcx
add    $0x1,%rcx
addq   $0x1,0x48(%rsp)
mov    0x10(%rsp),%rax
add    %rax,%r13
add    %rax,%rbx
cmp    %r12,%rcx
je     1570 <gauss1+0x450>
mov    %rcx,0x58(%rsp)
imul   0x8(%rsp),%rcx
mov    0x28(%rsp),%rax
mov    %rcx,0x50(%rsp)
add    %rcx,%rax
movsd  (%rsi,%rax,8),%xmm0
mov    0x38(%rsp),%rax
divsd  (%rsi,%rax,8),%xmm0
movapd %xmm0,0xb0(%rsp)
lea    0x950(%rip),%rdi
mov    $0x1,%al
mov    %rsi,%r12
call   1030 <printf@plt>
movapd 0xb0(%rsp),%xmm6
xorpd  0x925(%rip),%xmm6
cmpl   $0x4,0x4(%rsp)
jae    1700 <gauss1+0x5e0>
xor    %ecx,%ecx
mov    %r12,%rdi
mov    0x30(%rsp),%r12
jmp    1860 <gauss1+0x740>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp),%rax
imul   0x48(%rsp),%rax
mov    0x70(%rsp),%rcx
add    %rax,%rcx
add    %r12,%rcx
cmp    0x78(%rsp),%rcx
mov    %r12,%rdi
jae    1750 <gauss1+0x630>
add    0xf0(%rsp),%rax
add    %rdi,%rax
cmp    %rax,0xe8(%rsp)
jae    1750 <gauss1+0x630>
xor    %ecx,%ecx
mov    0x30(%rsp),%r12
jmp    1860 <gauss1+0x740>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movapd %xmm6,%xmm0
unpcklpd %xmm6,%xmm0
cmpq   $0x0,0xa0(%rsp)
mov    0x30(%rsp),%r12
je     18e8 <gauss1+0x7c8>
mov    0x98(%rsp),%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movupd -0x30(%r14,%rax,8),%xmm1
movupd -0x20(%r14,%rax,8),%xmm2
mulpd  %xmm0,%xmm1
movupd -0x30(%r13,%rax,8),%xmm3
addpd  %xmm1,%xmm3
movupd -0x20(%r13,%rax,8),%xmm1
movupd -0x10(%r13,%rax,8),%xmm4
movupd 0x0(%r13,%rax,8),%xmm5
mulpd  %xmm0,%xmm2
addpd  %xmm1,%xmm2
movupd %xmm3,-0x30(%r13,%rax,8)
movupd %xmm2,-0x20(%r13,%rax,8)
movupd -0x10(%r14,%rax,8),%xmm1
movupd (%r14,%rax,8),%xmm2
mulpd  %xmm0,%xmm1
addpd  %xmm4,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm5,%xmm2
movupd %xmm1,-0x10(%r13,%rax,8)
movupd %xmm2,0x0(%r13,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1780 <gauss1+0x660>
testb  $0x1,0x68(%rsp)
je     1842 <gauss1+0x722>
mov    0x50(%rsp),%rcx
add    %rax,%rcx
movupd (%rdi,%rcx,8),%xmm1
movupd 0x10(%rdi,%rcx,8),%xmm2
add    0x20(%rsp),%rax
movupd (%rdi,%rax,8),%xmm3
movupd 0x10(%rdi,%rax,8),%xmm4
mulpd  %xmm0,%xmm3
addpd  %xmm1,%xmm3
mulpd  %xmm0,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm3,(%rdi,%rcx,8)
movupd %xmm4,0x10(%rdi,%rcx,8)
mov    0xe0(%rsp),%rax
mov    %rax,%rcx
cmp    %r15,%rax
je     1650 <gauss1+0x530>
cs nopw 0x0(%rax,%rax,1)
mov    %rcx,%rax
test   $0x1,%r15b
je     1893 <gauss1+0x773>
mov    0x50(%rsp),%rdx
add    %rcx,%rdx
mov    0x20(%rsp),%rax
add    %rcx,%rax
movsd  (%rdi,%rax,8),%xmm0
mulsd  %xmm6,%xmm0
addsd  (%rdi,%rdx,8),%xmm0
movsd  %xmm0,(%rdi,%rdx,8)
mov    %rcx,%rax
or     $0x1,%rax
not    %rcx
cmp    0xa8(%rsp),%rcx
je     1650 <gauss1+0x530>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x8(%rbp,%rax,8),%xmm0
mulsd  %xmm6,%xmm0
addsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  0x0(%rbp,%rax,8),%xmm0
mulsd  %xmm6,%xmm0
addsd  0x8(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %rax,%r15
jne    18b0 <gauss1+0x790>
jmp    1650 <gauss1+0x530>
xor    %eax,%eax
testb  $0x1,0x68(%rsp)
jne    1804 <gauss1+0x6e4>
jmp    1842 <gauss1+0x722>
mov    0x60(%rsp),%r14
test   %r14d,%r14d
mov    0xc0(%rsp),%rbp
jle    1a40 <gauss1+0x920>
mov    %r12d,%r11d
and    $0xfffffffe,%r11d
lea    -0x1(%r12),%rcx
mov    0x8(%rsp),%rax
imul   %rax,%rcx
lea    (%rsi,%rcx,8),%rcx
add    $0x8,%rcx
lea    0x0(,%rax,8),%r8
neg    %r8
mov    %r12,%rax
jmp    195e <gauss1+0x83e>
nopl   (%rax)
movslq %edx,%rdx
add    %rax,%rdx
divsd  (%rsi,%rdx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    %r8,%rcx
cmp    $0x1,%r9
jle    1a40 <gauss1+0x920>
mov    %rax,%r9
add    $0xffffffffffffffff,%rax
mov    %rax,%r10
imul   0x8(%rsp),%r10
lea    (%r10,%r12,1),%rdx
movsd  (%rsi,%rdx,8),%xmm0
movsd  %xmm0,-0x8(%rbp,%r9,8)
cmp    $0x1,%r14d
jne    1990 <gauss1+0x870>
xor    %edi,%edi
jmp    19f4 <gauss1+0x8d4>
nopl   0x0(%rax,%rax,1)
lea    -0x1(%r9),%rdx
xor    %ebx,%ebx
jmp    19a9 <gauss1+0x889>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    %r11,%rbx
je     19f0 <gauss1+0x8d0>
mov    %rbx,%rdi
cmp    %rbx,%rdx
je     19c7 <gauss1+0x8a7>
movsd  -0x8(%rcx,%rdi,8),%xmm1
mulsd  0x0(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
lea    0x1(%rdi),%rbx
cmp    %rax,%rbx
je     19a0 <gauss1+0x880>
movsd  (%rcx,%rdi,8),%xmm1
mulsd  0x8(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
jmp    19a0 <gauss1+0x880>
nopw   0x0(%rax,%rax,1)
add    $0x2,%rdi
mov    0x4(%rsp),%edx
imul   %eax,%edx
test   $0x1,%r12b
je     1940 <gauss1+0x820>
cmp    %rax,%rdi
je     1940 <gauss1+0x820>
add    %rdi,%r10
movsd  (%rsi,%r10,8),%xmm1
mulsd  0x0(%rbp,%rdi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
jmp    1940 <gauss1+0x820>
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <pr_mx@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x3,%edx
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <pr_mx@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%f\0A\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 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(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 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %116, i32 3, i32 4)
store i32 0, i32* %7
br label %118
118: ; preds = %201, %115
%119 = load i32, i32* %7
%120 = load i32, i32* %8
%121 = sub nsw i32 %120, 1
%122 = icmp slt i32 %119, %121
br i1 %122, label %123, label %204
123: ; preds = %118
%124 = load i32, i32* %7
%125 = add nsw i32 %124, 1
store i32 %125, i32* %9
br label %126
126: ; preds = %197, %123
%127 = load i32, i32* %9
%128 = load i32, i32* %8
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %200
130: ; preds = %126
%131 = load double*, double** %13
%132 = load i32, i32* %7
%133 = load i32, i32* %9
%134 = load i32, i32* %8
%135 = add nsw i32 %134, 1
%136 = mul nsw i32 %133, %135
%137 = add nsw i32 %132, %136
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %131, i64 %138
%140 = load double, double* %139
%141 = load double*, double** %13
%142 = load i32, i32* %7
%143 = load i32, i32* %7
%144 = load i32, i32* %8
%145 = add nsw i32 %144, 1
%146 = mul nsw i32 %143, %145
%147 = add nsw i32 %142, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %141, i64 %148
%150 = load double, double* %149
%151 = fdiv double %140, %150
store double %151, double* %11
%152 = load double, double* %11
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %152)
store i32 0, i32* %10
br label %154
154: ; preds = %191, %130
%155 = load i32, i32* %10
%156 = load i32, i32* %8
%157 = icmp sle i32 %155, %156
br i1 %157, label %158, label %194
158: ; preds = %154
%159 = load double*, double** %13
%160 = load i32, i32* %10
%161 = load i32, i32* %9
%162 = load i32, i32* %8
%163 = add nsw i32 %162, 1
%164 = mul nsw i32 %161, %163
%165 = add nsw i32 %160, %164
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, double* %159, i64 %166
%168 = load double, double* %167
%169 = load double, double* %11
%170 = load double*, double** %13
%171 = load i32, i32* %10
%172 = load i32, i32* %7
%173 = load i32, i32* %8
%174 = add nsw i32 %173, 1
%175 = mul nsw i32 %172, %174
%176 = add nsw i32 %171, %175
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, double* %170, i64 %177
%179 = load double, double* %178
%180 = fneg double %169
%181 = call double @llvm.fmuladd.f64(double %180, double %179, double %168)
%182 = load double*, double** %13
%183 = load i32, i32* %10
%184 = load i32, i32* %9
%185 = load i32, i32* %8
%186 = add nsw i32 %185, 1
%187 = mul nsw i32 %184, %186
%188 = add nsw i32 %183, %187
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, double* %182, i64 %189
store double %181, double* %190
br label %191
191: ; preds = %158
%192 = load i32, i32* %10
%193 = add nsw i32 %192, 1
store i32 %193, i32* %10
br label %154
194: ; preds = %154
%195 = load double*, double** %13
%196 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %195, i32 3, i32 4)
br label %197
197: ; preds = %194
%198 = load i32, i32* %9
%199 = add nsw i32 %198, 1
store i32 %199, i32* %9
br label %126
200: ; preds = %126
br label %201
201: ; preds = %200
%202 = load i32, i32* %7
%203 = add nsw i32 %202, 1
store i32 %203, i32* %7
br label %118
204: ; preds = %118
%205 = load i32, i32* %8
%206 = sub nsw i32 %205, 1
store i32 %206, i32* %7
br label %207
207: ; preds = %285, %204
%208 = load i32, i32* %7
%209 = icmp sge i32 %208, 0
br i1 %209, label %210, label %288
210: ; preds = %207
%211 = load double*, double** %13
%212 = load i32, i32* %8
%213 = load i32, i32* %7
%214 = load i32, i32* %8
%215 = add nsw i32 %214, 1
%216 = mul nsw i32 %213, %215
%217 = add nsw i32 %212, %216
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds double, double* %211, i64 %218
%220 = load double, double* %219
%221 = load double*, double** %14
%222 = load i32, i32* %7
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double, double* %221, i64 %223
store double %220, double* %224
store i32 0, i32* %10
br label %225
225: ; preds = %261, %210
%226 = load i32, i32* %10
%227 = load i32, i32* %8
%228 = icmp slt i32 %226, %227
br i1 %228, label %229, label %264
229: ; preds = %225
%230 = load i32, i32* %10
%231 = load i32, i32* %7
%232 = icmp ne i32 %230, %231
br i1 %232, label %233, label %260
233: ; preds = %229
%234 = load double*, double** %14
%235 = load i32, i32* %7
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds double, double* %234, i64 %236
%238 = load double, double* %237
%239 = load double*, double** %13
%240 = load i32, i32* %10
%241 = load i32, i32* %7
%242 = load i32, i32* %8
%243 = add nsw i32 %242, 1
%244 = mul nsw i32 %241, %243
%245 = add nsw i32 %240, %244
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds double, double* %239, i64 %246
%248 = load double, double* %247
%249 = load double*, double** %14
%250 = load i32, i32* %10
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, double* %249, i64 %251
%253 = load double, double* %252
%254 = fneg double %248
%255 = call double @llvm.fmuladd.f64(double %254, double %253, double %238)
%256 = load double*, double** %14
%257 = load i32, i32* %7
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, double* %256, i64 %258
store double %255, double* %259
br label %260
260: ; preds = %233, %229
br label %261
261: ; preds = %260
%262 = load i32, i32* %10
%263 = add nsw i32 %262, 1
store i32 %263, i32* %10
br label %225
264: ; preds = %225
%265 = load double*, double** %14
%266 = load i32, i32* %7
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds double, double* %265, i64 %267
%269 = load double, double* %268
%270 = load double*, double** %13
%271 = load i32, i32* %7
%272 = load i32, i32* %7
%273 = load i32, i32* %8
%274 = add nsw i32 %273, 1
%275 = mul nsw i32 %272, %274
%276 = add nsw i32 %271, %275
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds double, double* %270, i64 %277
%279 = load double, double* %278
%280 = fdiv double %269, %279
%281 = load double*, double** %14
%282 = load i32, i32* %7
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double, double* %281, i64 %283
store double %280, double* %284
br label %285
285: ; preds = %264
%286 = load i32, i32* %7
%287 = add nsw i32 %286, -1
store i32 %287, i32* %7
br label %207
288: ; preds = %207
%289 = load double*, double** %14
%290 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %289, i32 1, i32 3)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%f\0A\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 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(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 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %4, i32 3, i32 4)
br label %417
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 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %4, i32 3, i32 4)
%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 = %350, %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 %417
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 %355
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 = %350, %219
%227 = phi i64 [ %354, %350 ], [ 0, %219 ]
%228 = phi i64 [ %352, %350 ], [ %210, %219 ]
%229 = mul i64 %184, %227
%230 = mul nsw i64 %228, %179
%231 = add nsw i64 %230, %209
%232 = getelementptr inbounds double, double* %4, i64 %231
%233 = load double, double* %232
%234 = load double, double* %225
%235 = fdiv double %233, %234
%236 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %235)
%237 = fneg double %235
br i1 %187, label %316, label %238
238: ; preds = %226
%239 = add i64 %213, %229
%240 = getelementptr i8, i8* %0, i64 %239
%241 = add i64 %212, %229
%242 = getelementptr i8, i8* %0, i64 %241
%243 = icmp ult i8* %242, %216
%244 = icmp ult i8* %214, %240
%245 = and i1 %243, %244
br i1 %245, label %316, label %246
246: ; preds = %238
%247 = insertelement <2 x double> poison, double %237, i64 0
%248 = shufflevector <2 x double> %247, <2 x double> poison, <2 x i32> zeroinitializer
%249 = insertelement <2 x double> poison, double %237, i64 0
%250 = shufflevector <2 x double> %249, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %190, label %294, label %251
251: ; preds = %246, %251
%252 = phi i64 [ %291, %251 ], [ 0, %246 ]
%253 = phi i64 [ %292, %251 ], [ 0, %246 ]
%254 = add nsw i64 %252, %230
%255 = getelementptr inbounds double, double* %4, i64 %254
%256 = bitcast double* %255 to <2 x double>*
%257 = load <2 x double>, <2 x double>* %256
%258 = getelementptr inbounds double, double* %255, i64 2
%259 = bitcast double* %258 to <2 x double>*
%260 = load <2 x double>, <2 x double>* %259
%261 = add nsw i64 %252, %221
%262 = getelementptr inbounds double, double* %4, i64 %261
%263 = bitcast double* %262 to <2 x double>*
%264 = load <2 x double>, <2 x double>* %263
%265 = getelementptr inbounds double, double* %262, i64 2
%266 = bitcast double* %265 to <2 x double>*
%267 = load <2 x double>, <2 x double>* %266
%268 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %248, <2 x double> %264, <2 x double> %257)
%269 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %250, <2 x double> %267, <2 x double> %260)
%270 = bitcast double* %255 to <2 x double>*
store <2 x double> %268, <2 x double>* %270
%271 = bitcast double* %258 to <2 x double>*
store <2 x double> %269, <2 x double>* %271
%272 = or i64 %252, 4
%273 = add nsw i64 %272, %230
%274 = getelementptr inbounds double, double* %4, i64 %273
%275 = bitcast double* %274 to <2 x double>*
%276 = load <2 x double>, <2 x double>* %275
%277 = getelementptr inbounds double, double* %274, i64 2
%278 = bitcast double* %277 to <2 x double>*
%279 = load <2 x double>, <2 x double>* %278
%280 = add nsw i64 %272, %221
%281 = getelementptr inbounds double, double* %4, i64 %280
%282 = bitcast double* %281 to <2 x double>*
%283 = load <2 x double>, <2 x double>* %282
%284 = getelementptr inbounds double, double* %281, i64 2
%285 = bitcast double* %284 to <2 x double>*
%286 = load <2 x double>, <2 x double>* %285
%287 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %248, <2 x double> %283, <2 x double> %276)
%288 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %250, <2 x double> %286, <2 x double> %279)
%289 = bitcast double* %274 to <2 x double>*
store <2 x double> %287, <2 x double>* %289
%290 = bitcast double* %277 to <2 x double>*
store <2 x double> %288, <2 x double>* %290
%291 = add nuw i64 %252, 8
%292 = add i64 %253, 2
%293 = icmp eq i64 %292, %191
br i1 %293, label %294, label %251
294: ; preds = %251, %246
%295 = phi i64 [ 0, %246 ], [ %291, %251 ]
br i1 %192, label %315, label %296
296: ; preds = %294
%297 = add nsw i64 %295, %230
%298 = getelementptr inbounds double, double* %4, i64 %297
%299 = bitcast double* %298 to <2 x double>*
%300 = load <2 x double>, <2 x double>* %299
%301 = getelementptr inbounds double, double* %298, i64 2
%302 = bitcast double* %301 to <2 x double>*
%303 = load <2 x double>, <2 x double>* %302
%304 = add nsw i64 %295, %221
%305 = getelementptr inbounds double, double* %4, i64 %304
%306 = bitcast double* %305 to <2 x double>*
%307 = load <2 x double>, <2 x double>* %306
%308 = getelementptr inbounds double, double* %305, i64 2
%309 = bitcast double* %308 to <2 x double>*
%310 = load <2 x double>, <2 x double>* %309
%311 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %248, <2 x double> %307, <2 x double> %300)
%312 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %250, <2 x double> %310, <2 x double> %303)
%313 = bitcast double* %298 to <2 x double>*
store <2 x double> %311, <2 x double>* %313
%314 = bitcast double* %301 to <2 x double>*
store <2 x double> %312, <2 x double>* %314
br label %315
315: ; preds = %294, %296
br i1 %193, label %350, label %316
316: ; preds = %238, %226, %315
%317 = phi i64 [ 0, %238 ], [ 0, %226 ], [ %188, %315 ]
%318 = xor i64 %317, -1
br i1 %195, label %328, label %319
319: ; preds = %316
%320 = add nsw i64 %317, %230
%321 = getelementptr inbounds double, double* %4, i64 %320
%322 = load double, double* %321
%323 = add nsw i64 %317, %221
%324 = getelementptr inbounds double, double* %4, i64 %323
%325 = load double, double* %324
%326 = tail call double @llvm.fmuladd.f64(double %237, double %325, double %322)
store double %326, double* %321
%327 = or i64 %317, 1
br label %328
328: ; preds = %319, %316
%329 = phi i64 [ %317, %316 ], [ %327, %319 ]
%330 = icmp eq i64 %318, %196
br i1 %330, label %350, label %331
331: ; preds = %328, %331
%332 = phi i64 [ %348, %331 ], [ %329, %328 ]
%333 = add nsw i64 %332, %230
%334 = getelementptr inbounds double, double* %4, i64 %333
%335 = load double, double* %334
%336 = add nsw i64 %332, %221
%337 = getelementptr inbounds double, double* %4, i64 %336
%338 = load double, double* %337
%339 = tail call double @llvm.fmuladd.f64(double %237, double %338, double %335)
store double %339, double* %334
%340 = add nuw nsw i64 %332, 1
%341 = add nsw i64 %340, %230
%342 = getelementptr inbounds double, double* %4, i64 %341
%343 = load double, double* %342
%344 = add nsw i64 %340, %221
%345 = getelementptr inbounds double, double* %4, i64 %344
%346 = load double, double* %345
%347 = tail call double @llvm.fmuladd.f64(double %237, double %346, double %343)
store double %347, double* %342
%348 = add nuw nsw i64 %332, 2
%349 = icmp eq i64 %348, %183
br i1 %349, label %350, label %331
350: ; preds = %328, %331, %315
%351 = tail call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %4, i32 3, i32 4)
%352 = add nuw nsw i64 %228, 1
%353 = icmp eq i64 %352, %182
%354 = add i64 %227, 1
br i1 %353, label %197, label %226
355: ; preds = %409, %201
%356 = phi i64 [ %202, %201 ], [ %357, %409 ]
%357 = add nsw i64 %356, -1
%358 = trunc i64 %357 to i32
%359 = mul nsw i64 %357, %203
%360 = mul nsw i32 %6, %358
%361 = add nsw i64 %359, %202
%362 = getelementptr inbounds double, double* %4, i64 %361
%363 = load double, double* %362
%364 = getelementptr inbounds double, double* %5, i64 %357
store double %363, double* %364
br i1 %205, label %395, label %365
365: ; preds = %355, %390
%366 = phi double [ %391, %390 ], [ %363, %355 ]
%367 = phi i64 [ %392, %390 ], [ 0, %355 ]
%368 = phi i64 [ %393, %390 ], [ 0, %355 ]
%369 = icmp eq i64 %367, %357
br i1 %369, label %378, label %370
370: ; preds = %365
%371 = add nsw i64 %367, %359
%372 = getelementptr inbounds double, double* %4, i64 %371
%373 = load double, double* %372
%374 = getelementptr inbounds double, double* %5, i64 %367
%375 = load double, double* %374
%376 = fneg double %373
%377 = tail call double @llvm.fmuladd.f64(double %376, double %375, double %366)
store double %377, double* %364
br label %378
378: ; preds = %365, %370
%379 = phi double [ %366, %365 ], [ %377, %370 ]
%380 = or i64 %367, 1
%381 = icmp eq i64 %380, %357
br i1 %381, label %390, label %382
382: ; preds = %378
%383 = add nsw i64 %380, %359
%384 = getelementptr inbounds double, double* %4, i64 %383
%385 = load double, double* %384
%386 = getelementptr inbounds double, double* %5, i64 %380
%387 = load double, double* %386
%388 = fneg double %385
%389 = tail call double @llvm.fmuladd.f64(double %388, double %387, double %379)
store double %389, double* %364
br label %390
390: ; preds = %382, %378
%391 = phi double [ %379, %378 ], [ %389, %382 ]
%392 = add nuw nsw i64 %367, 2
%393 = add i64 %368, 2
%394 = icmp eq i64 %393, %206
br i1 %394, label %395, label %365
395: ; preds = %390, %355
%396 = phi double [ undef, %355 ], [ %391, %390 ]
%397 = phi double [ %363, %355 ], [ %391, %390 ]
%398 = phi i64 [ 0, %355 ], [ %392, %390 ]
br i1 %207, label %409, label %399
399: ; preds = %395
%400 = icmp eq i64 %398, %357
br i1 %400, label %409, label %401
401: ; preds = %399
%402 = add nsw i64 %398, %359
%403 = getelementptr inbounds double, double* %4, i64 %402
%404 = load double, double* %403
%405 = getelementptr inbounds double, double* %5, i64 %398
%406 = load double, double* %405
%407 = fneg double %404
%408 = tail call double @llvm.fmuladd.f64(double %407, double %406, double %397)
store double %408, double* %364
br label %409
409: ; preds = %399, %401, %395
%410 = phi double [ %396, %395 ], [ %397, %399 ], [ %408, %401 ]
%411 = sext i32 %360 to i64
%412 = add nsw i64 %357, %411
%413 = getelementptr inbounds double, double* %4, i64 %412
%414 = load double, double* %413
%415 = fdiv double %410, %414
store double %415, double* %364
%416 = icmp sgt i64 %356, 1
br i1 %416, label %355, label %417
417: ; preds = %409, %9, %200
%418 = tail call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @pr_mx to i32 (double*, i32, i32, ...)*)(double* %5, i32 1, i32 3)
ret void
}