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

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free_ivector(int *, int, int);
int /*<<< orphan*/ free_matrix(float **, int, int, int, int);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ getchar();
int *ivector(int, int);
int /*<<< orphan*/ ludcmp(float **, int, int *, float *);
float **matrix(int, int, int, int);
int /*<<< orphan*/ nrerror(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int j, k, l, m, n, dum, *indx, *jndx;
  float d, **a, **xl, **xu, **x;
  char dummy[80];
  FILE *fp;
  indx = ivector(1, 20);
  jndx = ivector(1, 20);
  a = matrix(1, 20, 1, 20);
  xl = matrix(1, 20, 1, 20);
  xu = matrix(1, 20, 1, 20);
  x = matrix(1, 20, 1, 20);
  if ((fp = fopen("matrx1.dat", "r")) == NULL)
    nrerror("Data file matrx1.dat not found\n");
  while (!feof(fp)) {
    fgets(dummy, 80, fp);
    fgets(dummy, 80, fp);
    fscanf(fp, "%d %d ", &n, &m);
    fgets(dummy, 80, fp);
    for (k = 1; k <= n; k++)
      for (l = 1; l <= n; l++)
        fscanf(fp, "%f ", &a[k][l]);
    fgets(dummy, 80, fp);
    for (l = 1; l <= m; l++)
      for (k = 1; k <= n; k++)
        fscanf(fp, "%f ", &x[k][l]);
    printf("original matrix:\n");
    for (k = 1; k <= n; k++) {
      for (l = 1; l <= n; l++)
        printf("%12.6f", a[k][l]);
      printf("\n");
    }
    ludcmp(a, n, indx, &d);
    for (k = 1; k <= n; k++) {
      for (l = 1; l <= n; l++) {
        if (l > k) {
          xu[k][l] = a[k][l];
          xl[k][l] = 0.0;
        } else if (l < k) {
          xu[k][l] = 0.0;
          xl[k][l] = a[k][l];
        } else {
          xu[k][l] = a[k][l];
          xl[k][l] = 1.0;
        }
      }
    }
    for (k = 1; k <= n; k++) {
      jndx[k] = k;
      for (l = 1; l <= n; l++) {
        x[k][l] = 0.0;
        for (j = 1; j <= n; j++)
          x[k][l] += (xl[k][j] * xu[j][l]);
      }
    }
    printf("\n%s%s\n", "product of lower and upper ",
           "matrices (rows unscrambled):");
    for (k = 1; k <= n; k++) {
      dum = jndx[indx[k]];
      jndx[indx[k]] = jndx[k];
      jndx[k] = dum;
    }
    for (k = 1; k <= n; k++)
      for (j = 1; j <= n; j++)
        if (jndx[j] == k) {
          for (l = 1; l <= n; l++)
            printf("%12.6f", x[j][l]);
          printf("\n");
        }
    printf("\nlower matrix of the decomposition:\n");
    for (k = 1; k <= n; k++) {
      for (l = 1; l <= n; l++)
        printf("%12.6f", xl[k][l]);
      printf("\n");
    }
    printf("\nupper matrix of the decomposition:\n");
    for (k = 1; k <= n; k++) {
      for (l = 1; l <= n; l++)
        printf("%12.6f", xu[k][l]);
      printf("\n");
    }
    printf("\n***********************************\n");
    printf("press return for next problem:\n");
    (void)getchar();
  }
  fclose(fp);
  free_matrix(x, 1, 20, 1, 20);
  free_matrix(xu, 1, 20, 1, 20);
  free_matrix(xl, 1, 20, 1, 20);
  free_matrix(a, 1, 20, 1, 20);
  free_ivector(jndx, 1, 20);
  free_ivector(indx, 1, 20);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x14,%esi
call   10e0 <ivector@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%edi
mov    $0x14,%esi
call   10e0 <ivector@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edx
mov    $0x14,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   10c0 <matrix@plt>
mov    %rax,-0x40(%rbp)
mov    $0x1,%edx
mov    $0x14,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   10c0 <matrix@plt>
mov    %rax,-0x48(%rbp)
mov    $0x1,%edx
mov    $0x14,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   10c0 <matrix@plt>
mov    %rax,-0x50(%rbp)
mov    $0x1,%edx
mov    $0x14,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   10c0 <matrix@plt>
mov    %rax,-0x58(%rbp)
lea    0xd99(%rip),%rdi
lea    0xd9d(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xb8(%rbp)
cmp    $0x0,%rax
jne    1294 <main+0xc4>
lea    0xd82(%rip),%rdi
call   1050 <nrerror@plt>
jmp    1299 <main+0xc9>
mov    -0xb8(%rbp),%rdi
call   10b0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12ba <main+0xea>
jmp    193a <main+0x76a>
lea    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rdx
mov    $0x50,%esi
call   1090 <fgets@plt>
lea    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rdx
mov    $0x50,%esi
call   1090 <fgets@plt>
mov    -0xb8(%rbp),%rdi
lea    0xd39(%rip),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x14(%rbp),%rcx
mov    $0x0,%al
call   1080 <fscanf@plt>
lea    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rdx
mov    $0x50,%esi
call   1090 <fgets@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1392 <main+0x1c2>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     137f <main+0x1af>
mov    -0xb8(%rbp),%rdi
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xcce(%rip),%rsi
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1339 <main+0x169>
jmp    1384 <main+0x1b4>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1326 <main+0x156>
lea    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rdx
mov    $0x50,%esi
call   1090 <fgets@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     141d <main+0x24d>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     140a <main+0x23a>
mov    -0xb8(%rbp),%rdi
mov    -0x58(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xc43(%rip),%rsi
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13c4 <main+0x1f4>
jmp    140f <main+0x23f>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    13b1 <main+0x1e1>
lea    0xc18(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     14a2 <main+0x2d2>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1486 <main+0x2b6>
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbdd(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1445 <main+0x275>
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1432 <main+0x262>
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x28(%rbp),%rdx
lea    -0x34(%rbp),%rcx
call   1030 <ludcmp@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     15f4 <main+0x424>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     15e1 <main+0x411>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    152f <main+0x35f>
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    15ce <main+0x3fe>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1582 <main+0x3b2>
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    15c9 <main+0x3f9>
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  0xa3c(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    15ce <main+0x3fe>
jmp    15d3 <main+0x403>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    14d0 <main+0x300>
jmp    15e6 <main+0x416>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14bd <main+0x2ed>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     16d3 <main+0x503>
mov    -0xc(%rbp),%edx
mov    -0x30(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     16c0 <main+0x4f0>
mov    -0x58(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     16ad <main+0x4dd>
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
mov    -0x58(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1647 <main+0x477>
jmp    16b2 <main+0x4e2>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    161c <main+0x44c>
jmp    16c5 <main+0x4f5>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    15fb <main+0x42b>
lea    0x97b(%rip),%rdi
lea    0x97b(%rip),%rsi
lea    0x990(%rip),%rdx
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1752 <main+0x582>
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
movslq -0xc(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x30(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
movslq -0xc(%rbp),%rsi
movslq (%rcx,%rsi,4),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%edx
mov    -0x30(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    16f6 <main+0x526>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1808 <main+0x638>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     17f5 <main+0x625>
mov    -0x30(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0xc(%rbp),%eax
jne    17e2 <main+0x612>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     17d4 <main+0x604>
mov    -0x58(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x88f(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1793 <main+0x5c3>
lea    0x928(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    17e7 <main+0x617>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    176c <main+0x59c>
jmp    17fa <main+0x62a>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1759 <main+0x589>
lea    0x886(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     188d <main+0x6bd>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1871 <main+0x6a1>
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x7f2(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1830 <main+0x660>
lea    0x88b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    181d <main+0x64d>
lea    0x826(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1912 <main+0x742>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     18f6 <main+0x726>
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x76d(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    18b5 <main+0x6e5>
lea    0x806(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    18a2 <main+0x6d2>
lea    0x7c6(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0x7de(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <getchar@plt>
jmp    1299 <main+0xc9>
mov    -0xb8(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x58(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x14,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <free_matrix@plt>
mov    -0x50(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x14,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <free_matrix@plt>
mov    -0x48(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x14,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <free_matrix@plt>
mov    -0x40(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x14,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <free_matrix@plt>
mov    -0x30(%rbp),%rdi
mov    $0x1,%esi
mov    $0x14,%edx
call   10d0 <free_ivector@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
mov    $0x14,%edx
call   10d0 <free_ivector@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    $0x1,%edi
mov    $0x14,%esi
call   1100 <ivector@plt>
mov    %rax,0x10(%rsp)
mov    $0x1,%edi
mov    $0x14,%esi
call   1100 <ivector@plt>
mov    %rax,0x8(%rsp)
mov    $0x1,%edi
mov    $0x14,%esi
mov    $0x1,%edx
mov    $0x14,%ecx
call   10e0 <matrix@plt>
mov    %rax,%r14
mov    $0x1,%edi
mov    $0x14,%esi
mov    $0x1,%edx
mov    $0x14,%ecx
call   10e0 <matrix@plt>
mov    %rax,0x28(%rsp)
mov    $0x1,%edi
mov    $0x14,%esi
mov    $0x1,%edx
mov    $0x14,%ecx
call   10e0 <matrix@plt>
mov    %rax,%r15
mov    $0x1,%edi
mov    $0x14,%esi
mov    $0x1,%edx
mov    $0x14,%ecx
call   10e0 <matrix@plt>
mov    %rax,%r13
lea    0xd62(%rip),%rdi
lea    0xd66(%rip),%rsi
call   1110 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12c2 <main+0xd2>
lea    0xd54(%rip),%rdi
call   1070 <nrerror@plt>
mov    %rbx,%rdi
call   10d0 <feof@plt>
test   %eax,%eax
je     138c <main+0x19c>
mov    %rbx,%rdi
call   1080 <fclose@plt>
mov    %r13,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x1,%ecx
mov    $0x14,%r8d
call   1060 <free_matrix@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x1,%ecx
mov    $0x14,%r8d
call   1060 <free_matrix@plt>
mov    0x28(%rsp),%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x1,%ecx
mov    $0x14,%r8d
call   1060 <free_matrix@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    $0x1,%ecx
mov    $0x14,%r8d
call   1060 <free_matrix@plt>
mov    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    $0x14,%edx
call   10f0 <free_ivector@plt>
mov    0x10(%rsp),%rdi
mov    $0x1,%esi
mov    $0x14,%edx
call   10f0 <free_ivector@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xca5(%rip),%r12
mov    %r14,0x20(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r13,0x30(%rsp)
jmp    13eb <main+0x1fb>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xd25(%rip),%rdi
call   1050 <puts@plt>
lea    0xd3e(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10c0 <getchar@plt>
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
call   10d0 <feof@plt>
test   %eax,%eax
lea    0xc53(%rip),%r12
jne    12d2 <main+0xe2>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10b0 <fgets@plt>
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10b0 <fgets@plt>
mov    %rbx,%rdi
lea    0xc17(%rip),%rsi
mov    %rsp,%rdx
lea    0x4(%rsp),%rcx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10b0 <fgets@plt>
mov    (%rsp),%eax
test   %eax,%eax
jle    14c0 <main+0x2d0>
mov    $0x1,%r14d
jmp    145f <main+0x26f>
nopl   0x0(%rax)
movslq %eax,%rcx
lea    0x1(%r14),%rdx
cmp    %rcx,%r14
mov    %rdx,%r14
jge    14c0 <main+0x2d0>
test   %eax,%eax
jle    1450 <main+0x260>
mov    $0x4,%ebp
xor    %ebx,%ebx
mov    0x20(%rsp),%r12
mov    0x18(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r12,%r14,8),%rdx
add    %rbp,%rdx
mov    %r13,%rdi
lea    0xba7(%rip),%rsi
xor    %eax,%eax
call   10a0 <fscanf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
add    $0x4,%rbp
cmp    %rax,%rbx
jl     1480 <main+0x290>
mov    0x30(%rsp),%r13
lea    0xb83(%rip),%r12
jmp    1450 <main+0x260>
nopw   0x0(%rax,%rax,1)
lea    0x40(%rsp),%rdi
mov    $0x50,%esi
mov    0x18(%rsp),%r14
mov    %r14,%rdx
call   10b0 <fgets@plt>
mov    0x4(%rsp),%ecx
test   %ecx,%ecx
jle    1540 <main+0x350>
mov    $0x1,%ebp
mov    (%rsp),%eax
jmp    14ff <main+0x30f>
nopl   0x0(%rax)
lea    0x1(%rbp),%rdx
movslq %ecx,%rsi
cmp    %rsi,%rbp
mov    %rdx,%rbp
jge    1540 <main+0x350>
test   %eax,%eax
jle    14f0 <main+0x300>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x0(,%rbp,4),%rdx
add    0x8(%r13,%rbx,8),%rdx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10a0 <fscanf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1510 <main+0x320>
mov    0x4(%rsp),%ecx
jmp    14f0 <main+0x300>
nopl   (%rax)
lea    0xb3c(%rip),%rdi
call   1050 <puts@plt>
mov    (%rsp),%esi
test   %esi,%esi
mov    0x20(%rsp),%r14
jle    15c0 <main+0x3d0>
mov    $0x1,%ebp
jmp    157a <main+0x38a>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbp),%rax
movslq (%rsp),%rsi
cmp    %rsi,%rbp
mov    %rax,%rbp
jge    15c0 <main+0x3d0>
test   %esi,%esi
lea    0xab9(%rip),%r12
jle    1560 <main+0x370>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    (%r14,%rbp,8),%rax
movss  0x4(%rax,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1590 <main+0x3a0>
jmp    1560 <main+0x370>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    0x10(%rsp),%rdx
lea    0x3c(%rsp),%rcx
call   1040 <ludcmp@plt>
mov    (%rsp),%eax
test   %eax,%eax
mov    0x8(%rsp),%r10
mov    0x28(%rsp),%r11
jle    1780 <main+0x590>
lea    0x1(%rax),%rcx
mov    $0x1,%edx
movss  0xa08(%rip),%xmm1
jmp    160d <main+0x41d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rdx
cmp    %rcx,%rdx
je     1690 <main+0x4a0>
mov    (%r11,%rdx,8),%rsi
mov    $0x1,%edi
jmp    1645 <main+0x455>
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rdx,8),%rbp
movss  0x0(%rbp,%rdi,4),%xmm0
mov    (%r15,%rdx,8),%rbp
movss  %xmm0,0x0(%rbp,%rdi,4)
xorps  %xmm0,%xmm0
movss  %xmm0,(%rsi,%rdi,4)
add    $0x1,%rdi
cmp    %rdi,%rcx
je     1600 <main+0x410>
cmp    %rdx,%rdi
ja     1620 <main+0x430>
jae    1670 <main+0x480>
mov    (%r15,%rdx,8),%rbp
movl   $0x0,0x0(%rbp,%rdi,4)
mov    (%r14,%rdx,8),%rbp
movss  0x0(%rbp,%rdi,4),%xmm0
jmp    1637 <main+0x447>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r14,%rdx,8),%rbp
movss  0x0(%rbp,%rdi,4),%xmm0
mov    (%r15,%rdx,8),%rbp
movss  %xmm0,0x0(%rbp,%rdi,4)
movaps %xmm1,%xmm0
jmp    1637 <main+0x447>
nopl   0x0(%rax)
test   %eax,%eax
jle    1780 <main+0x590>
mov    $0x1,%r8d
jmp    16b3 <main+0x4c3>
lea    0x1(%r8),%rax
movslq %r9d,%rcx
cmp    %rcx,%r8
mov    %rax,%r8
jge    1780 <main+0x590>
mov    %r8d,(%r10,%r8,4)
mov    (%rsp),%r9d
test   %r9d,%r9d
jle    16a0 <main+0x4b0>
mov    0x0(%r13,%r8,8),%rdx
lea    0x1(%r9),%rsi
mov    (%r11,%r8,8),%rdi
mov    %r9d,%ecx
and    $0xfffffffe,%ecx
neg    %rcx
mov    $0x1,%eax
jmp    16e9 <main+0x4f9>
nopl   (%rax)
add    $0x1,%rax
cmp    %rsi,%rax
je     16a0 <main+0x4b0>
movl   $0x0,(%rdx,%rax,4)
xorps  %xmm0,%xmm0
mov    $0x1,%ebp
cmp    $0x2,%esi
je     1752 <main+0x562>
mov    $0x1,%ebp
xorps  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movss  (%rdi,%rbp,4),%xmm1
mov    (%r15,%rbp,8),%rbx
mulss  (%rbx,%rax,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%rdx,%rax,4)
movss  0x4(%rdi,%rbp,4),%xmm0
mov    0x8(%r15,%rbp,8),%rbx
mulss  (%rbx,%rax,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%rdx,%rax,4)
lea    (%rcx,%rbp,1),%rbx
add    $0x2,%rbx
add    $0x2,%rbp
cmp    $0x1,%rbx
jne    1710 <main+0x520>
test   $0x1,%r9b
je     16e0 <main+0x4f0>
movss  (%rdi,%rbp,4),%xmm1
mov    (%r15,%rbp,8),%rbp
mulss  0x0(%rbp,%rax,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%rdx,%rax,4)
jmp    16e0 <main+0x4f0>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x8bc(%rip),%rdi
lea    0x8bc(%rip),%rsi
lea    0x8d1(%rip),%rdx
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x8(%rsp),%rbp
cmpl   $0x0,(%rsp)
jle    1890 <main+0x6a0>
xor    %ecx,%ecx
mov    0x10(%rsp),%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq 0x4(%rdi,%rcx,4),%rax
mov    0x0(%rbp,%rax,4),%edx
mov    0x4(%rbp,%rcx,4),%esi
mov    %esi,0x0(%rbp,%rax,4)
mov    %edx,0x4(%rbp,%rcx,4)
movslq (%rsp),%rax
add    $0x1,%rcx
cmp    %rax,%rcx
jl     17c0 <main+0x5d0>
test   %eax,%eax
jle    1890 <main+0x6a0>
mov    $0x1,%r12d
jmp    1811 <main+0x621>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x1(%r12),%ecx
cmp    %eax,%r12d
mov    %ecx,%r12d
jge    1890 <main+0x6a0>
test   %eax,%eax
jle    1800 <main+0x610>
mov    $0x1,%r14d
jmp    1841 <main+0x651>
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
mov    0x8(%rsp),%rbp
lea    0x1(%r14),%rcx
movslq %eax,%rdx
cmp    %rdx,%r14
mov    %rcx,%r14
jge    1800 <main+0x610>
cmp    %r12d,0x0(%rbp,%r14,4)
jne    1832 <main+0x642>
test   %eax,%eax
lea    0x7eb(%rip),%rbp
jle    1820 <main+0x630>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%r13,%r14,8),%rax
movss  0x4(%rax,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1860 <main+0x670>
jmp    1820 <main+0x630>
nopl   0x0(%rax,%rax,1)
lea    0x7fd(%rip),%rdi
call   1050 <puts@plt>
mov    (%rsp),%eax
test   %eax,%eax
jle    1910 <main+0x720>
mov    $0x1,%ebp
jmp    18ca <main+0x6da>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbp),%rcx
movslq (%rsp),%rax
cmp    %rax,%rbp
mov    %rcx,%rbp
jge    1910 <main+0x720>
test   %eax,%eax
lea    0x769(%rip),%r12
mov    0x28(%rsp),%r14
jle    18b0 <main+0x6c0>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r14,%rbp,8),%rax
movss  0x4(%rax,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     18e0 <main+0x6f0>
jmp    18b0 <main+0x6c0>
nopw   0x0(%rax,%rax,1)
lea    0x7a1(%rip),%rdi
call   1050 <puts@plt>
mov    (%rsp),%eax
test   %eax,%eax
mov    0x20(%rsp),%r14
jle    13b0 <main+0x1c0>
mov    $0x1,%ebp
jmp    195e <main+0x76e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbp),%rcx
movslq (%rsp),%rax
cmp    %rax,%rbp
mov    %rcx,%rbp
jge    13b0 <main+0x1c0>
test   %eax,%eax
lea    0x6d5(%rip),%r12
jle    1940 <main+0x750>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbp,8),%rax
movss  0x4(%rax,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1090 <printf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1970 <main+0x780>
jmp    1940 <main+0x750>

LLVM IR (-O0):
@.str = [11 x i8] c"matrx1.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"Data file matrx1.dat not found\0A\00"
@.str.3 = [7 x i8] c"%d %d \00"
@.str.4 = [4 x i8] c"%f \00"
@.str.5 = [18 x i8] c"original matrix:\0A\00"
@.str.6 = [7 x i8] c"%12.6f\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [7 x i8] c"\0A%s%s\0A\00"
@.str.9 = [28 x i8] c"product of lower and upper \00"
@.str.10 = [29 x i8] c"matrices (rows unscrambled):\00"
@.str.11 = [37 x i8] c"\0Alower matrix of the decomposition:\0A\00"
@.str.12 = [37 x i8] c"\0Aupper matrix of the decomposition:\0A\00"
@.str.13 = [38 x i8] c"\0A***********************************\0A\00"
@.str.14 = [32 x i8] c"press return for next problem:\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca float
%11 = alloca float**
%12 = alloca float**
%13 = alloca float**
%14 = alloca float**
%15 = alloca [80 x i8]
%16 = alloca i32*
store i32 0, i32* %1
%17 = call i32* @ivector(i32 1, i32 20)
store i32* %17, i32** %8
%18 = call i32* @ivector(i32 1, i32 20)
store i32* %18, i32** %9
%19 = call float** @matrix(i32 1, i32 20, i32 1, i32 20)
store float** %19, float*** %11
%20 = call float** @matrix(i32 1, i32 20, i32 1, i32 20)
store float** %20, float*** %12
%21 = call float** @matrix(i32 1, i32 20, i32 1, i32 20)
store float** %21, float*** %13
%22 = call float** @matrix(i32 1, i32 20, i32 1, i32 20)
store float** %22, float*** %14
%23 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %16
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %27
25: ; preds = %0
%26 = call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %25, %0
br label %28
28: ; preds = %458, %27
%29 = load i32*, i32** %16
%30 = call i32 @feof(i32* %29)
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
br i1 %32, label %33, label %462
33: ; preds = %28
%34 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 0
%35 = load i32*, i32** %16
%36 = call i32 @fgets(i8* %34, i32 80, i32* %35)
%37 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 0
%38 = load i32*, i32** %16
%39 = call i32 @fgets(i8* %37, i32 80, i32* %38)
%40 = load i32*, i32** %16
%41 = call i32 (i32*, i8*, ...) @fscanf(i32* %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32* %6, i32* %5)
%42 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 0
%43 = load i32*, i32** %16
%44 = call i32 @fgets(i8* %42, i32 80, i32* %43)
store i32 1, i32* %3
br label %45
45: ; preds = %69, %33
%46 = load i32, i32* %3
%47 = load i32, i32* %6
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %72
49: ; preds = %45
store i32 1, i32* %4
br label %50
50: ; preds = %65, %49
%51 = load i32, i32* %4
%52 = load i32, i32* %6
%53 = icmp sle i32 %51, %52
br i1 %53, label %54, label %68
54: ; preds = %50
%55 = load i32*, i32** %16
%56 = load float**, float*** %11
%57 = load i32, i32* %3
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds float*, float** %56, i64 %58
%60 = load float*, float** %59
%61 = load i32, i32* %4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, float* %60, i64 %62
%64 = call i32 (i32*, i8*, ...) @fscanf(i32* %55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), float* %63)
br label %65
65: ; preds = %54
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %50
68: ; preds = %50
br label %69
69: ; preds = %68
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 1
store i32 %71, i32* %3
br label %45
72: ; preds = %45
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 0
%74 = load i32*, i32** %16
%75 = call i32 @fgets(i8* %73, i32 80, i32* %74)
store i32 1, i32* %4
br label %76
76: ; preds = %100, %72
%77 = load i32, i32* %4
%78 = load i32, i32* %5
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %103
80: ; preds = %76
store i32 1, i32* %3
br label %81
81: ; preds = %96, %80
%82 = load i32, i32* %3
%83 = load i32, i32* %6
%84 = icmp sle i32 %82, %83
br i1 %84, label %85, label %99
85: ; preds = %81
%86 = load i32*, i32** %16
%87 = load float**, float*** %14
%88 = load i32, i32* %3
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float*, float** %87, i64 %89
%91 = load float*, float** %90
%92 = load i32, i32* %4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds float, float* %91, i64 %93
%95 = call i32 (i32*, i8*, ...) @fscanf(i32* %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), float* %94)
br label %96
96: ; preds = %85
%97 = load i32, i32* %3
%98 = add nsw i32 %97, 1
store i32 %98, i32* %3
br label %81
99: ; preds = %81
br label %100
100: ; preds = %99
%101 = load i32, i32* %4
%102 = add nsw i32 %101, 1
store i32 %102, i32* %4
br label %76
103: ; preds = %76
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %105
105: ; preds = %131, %103
%106 = load i32, i32* %3
%107 = load i32, i32* %6
%108 = icmp sle i32 %106, %107
br i1 %108, label %109, label %134
109: ; preds = %105
store i32 1, i32* %4
br label %110
110: ; preds = %126, %109
%111 = load i32, i32* %4
%112 = load i32, i32* %6
%113 = icmp sle i32 %111, %112
br i1 %113, label %114, label %129
114: ; preds = %110
%115 = load float**, float*** %11
%116 = load i32, i32* %3
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds float*, float** %115, i64 %117
%119 = load float*, float** %118
%120 = load i32, i32* %4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, float* %119, i64 %121
%123 = load float, float* %122
%124 = fpext float %123 to double
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %124)
br label %126
126: ; preds = %114
%127 = load i32, i32* %4
%128 = add nsw i32 %127, 1
store i32 %128, i32* %4
br label %110
129: ; preds = %110
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %131
131: ; preds = %129
%132 = load i32, i32* %3
%133 = add nsw i32 %132, 1
store i32 %133, i32* %3
br label %105
134: ; preds = %105
%135 = load float**, float*** %11
%136 = load i32, i32* %6
%137 = load i32*, i32** %8
%138 = call i32 @ludcmp(float** %135, i32 %136, i32* %137, float* %10)
store i32 1, i32* %3
br label %139
139: ; preds = %240, %134
%140 = load i32, i32* %3
%141 = load i32, i32* %6
%142 = icmp sle i32 %140, %141
br i1 %142, label %143, label %243
143: ; preds = %139
store i32 1, i32* %4
br label %144
144: ; preds = %236, %143
%145 = load i32, i32* %4
%146 = load i32, i32* %6
%147 = icmp sle i32 %145, %146
br i1 %147, label %148, label %239
148: ; preds = %144
%149 = load i32, i32* %4
%150 = load i32, i32* %3
%151 = icmp sgt i32 %149, %150
br i1 %151, label %152, label %178
152: ; preds = %148
%153 = load float**, float*** %11
%154 = load i32, i32* %3
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds float*, float** %153, i64 %155
%157 = load float*, float** %156
%158 = load i32, i32* %4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds float, float* %157, i64 %159
%161 = load float, float* %160
%162 = load float**, float*** %13
%163 = load i32, i32* %3
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds float*, float** %162, i64 %164
%166 = load float*, float** %165
%167 = load i32, i32* %4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds float, float* %166, i64 %168
store float %161, float* %169
%170 = load float**, float*** %12
%171 = load i32, i32* %3
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds float*, float** %170, i64 %172
%174 = load float*, float** %173
%175 = load i32, i32* %4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds float, float* %174, i64 %176
store float 0.000000e+00, float* %177
br label %235
178: ; preds = %148
%179 = load i32, i32* %4
%180 = load i32, i32* %3
%181 = icmp slt i32 %179, %180
br i1 %181, label %182, label %208
182: ; preds = %178
%183 = load float**, float*** %13
%184 = load i32, i32* %3
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds float*, float** %183, i64 %185
%187 = load float*, float** %186
%188 = load i32, i32* %4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds float, float* %187, i64 %189
store float 0.000000e+00, float* %190
%191 = load float**, float*** %11
%192 = load i32, i32* %3
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds float*, float** %191, i64 %193
%195 = load float*, float** %194
%196 = load i32, i32* %4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds float, float* %195, i64 %197
%199 = load float, float* %198
%200 = load float**, float*** %12
%201 = load i32, i32* %3
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds float*, float** %200, i64 %202
%204 = load float*, float** %203
%205 = load i32, i32* %4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds float, float* %204, i64 %206
store float %199, float* %207
br label %234
208: ; preds = %178
%209 = load float**, float*** %11
%210 = load i32, i32* %3
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds float*, float** %209, i64 %211
%213 = load float*, float** %212
%214 = load i32, i32* %4
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds float, float* %213, i64 %215
%217 = load float, float* %216
%218 = load float**, float*** %13
%219 = load i32, i32* %3
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds float*, float** %218, i64 %220
%222 = load float*, float** %221
%223 = load i32, i32* %4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds float, float* %222, i64 %224
store float %217, float* %225
%226 = load float**, float*** %12
%227 = load i32, i32* %3
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds float*, float** %226, i64 %228
%230 = load float*, float** %229
%231 = load i32, i32* %4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds float, float* %230, i64 %232
store float 1.000000e+00, float* %233
br label %234
234: ; preds = %208, %182
br label %235
235: ; preds = %234, %152
br label %236
236: ; preds = %235
%237 = load i32, i32* %4
%238 = add nsw i32 %237, 1
store i32 %238, i32* %4
br label %144
239: ; preds = %144
br label %240
240: ; preds = %239
%241 = load i32, i32* %3
%242 = add nsw i32 %241, 1
store i32 %242, i32* %3
br label %139
243: ; preds = %139
store i32 1, i32* %3
br label %244
244: ; preds = %308, %243
%245 = load i32, i32* %3
%246 = load i32, i32* %6
%247 = icmp sle i32 %245, %246
br i1 %247, label %248, label %311
248: ; preds = %244
%249 = load i32, i32* %3
%250 = load i32*, i32** %9
%251 = load i32, i32* %3
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds i32, i32* %250, i64 %252
store i32 %249, i32* %253
store i32 1, i32* %4
br label %254
254: ; preds = %304, %248
%255 = load i32, i32* %4
%256 = load i32, i32* %6
%257 = icmp sle i32 %255, %256
br i1 %257, label %258, label %307
258: ; preds = %254
%259 = load float**, float*** %14
%260 = load i32, i32* %3
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds float*, float** %259, i64 %261
%263 = load float*, float** %262
%264 = load i32, i32* %4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds float, float* %263, i64 %265
store float 0.000000e+00, float* %266
store i32 1, i32* %2
br label %267
267: ; preds = %300, %258
%268 = load i32, i32* %2
%269 = load i32, i32* %6
%270 = icmp sle i32 %268, %269
br i1 %270, label %271, label %303
271: ; preds = %267
%272 = load float**, float*** %12
%273 = load i32, i32* %3
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds float*, float** %272, i64 %274
%276 = load float*, float** %275
%277 = load i32, i32* %2
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds float, float* %276, i64 %278
%280 = load float, float* %279
%281 = load float**, float*** %13
%282 = load i32, i32* %2
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds float*, float** %281, i64 %283
%285 = load float*, float** %284
%286 = load i32, i32* %4
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds float, float* %285, i64 %287
%289 = load float, float* %288
%290 = load float**, float*** %14
%291 = load i32, i32* %3
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds float*, float** %290, i64 %292
%294 = load float*, float** %293
%295 = load i32, i32* %4
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds float, float* %294, i64 %296
%298 = load float, float* %297
%299 = call float @llvm.fmuladd.f32(float %280, float %289, float %298)
store float %299, float* %297
br label %300
300: ; preds = %271
%301 = load i32, i32* %2
%302 = add nsw i32 %301, 1
store i32 %302, i32* %2
br label %267
303: ; preds = %267
br label %304
304: ; preds = %303
%305 = load i32, i32* %4
%306 = add nsw i32 %305, 1
store i32 %306, i32* %4
br label %254
307: ; preds = %254
br label %308
308: ; preds = %307
%309 = load i32, i32* %3
%310 = add nsw i32 %309, 1
store i32 %310, i32* %3
br label %244
311: ; preds = %244
%312 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
store i32 1, i32* %3
br label %313
313: ; preds = %345, %311
%314 = load i32, i32* %3
%315 = load i32, i32* %6
%316 = icmp sle i32 %314, %315
br i1 %316, label %317, label %348
317: ; preds = %313
%318 = load i32*, i32** %9
%319 = load i32*, i32** %8
%320 = load i32, i32* %3
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds i32, i32* %319, i64 %321
%323 = load i32, i32* %322
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds i32, i32* %318, i64 %324
%326 = load i32, i32* %325
store i32 %326, i32* %7
%327 = load i32*, i32** %9
%328 = load i32, i32* %3
%329 = sext i32 %328 to i64
%330 = getelementptr inbounds i32, i32* %327, i64 %329
%331 = load i32, i32* %330
%332 = load i32*, i32** %9
%333 = load i32*, i32** %8
%334 = load i32, i32* %3
%335 = sext i32 %334 to i64
%336 = getelementptr inbounds i32, i32* %333, i64 %335
%337 = load i32, i32* %336
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds i32, i32* %332, i64 %338
store i32 %331, i32* %339
%340 = load i32, i32* %7
%341 = load i32*, i32** %9
%342 = load i32, i32* %3
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds i32, i32* %341, i64 %343
store i32 %340, i32* %344
br label %345
345: ; preds = %317
%346 = load i32, i32* %3
%347 = add nsw i32 %346, 1
store i32 %347, i32* %3
br label %313
348: ; preds = %313
store i32 1, i32* %3
br label %349
349: ; preds = %393, %348
%350 = load i32, i32* %3
%351 = load i32, i32* %6
%352 = icmp sle i32 %350, %351
br i1 %352, label %353, label %396
353: ; preds = %349
store i32 1, i32* %2
br label %354
354: ; preds = %389, %353
%355 = load i32, i32* %2
%356 = load i32, i32* %6
%357 = icmp sle i32 %355, %356
br i1 %357, label %358, label %392
358: ; preds = %354
%359 = load i32*, i32** %9
%360 = load i32, i32* %2
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds i32, i32* %359, i64 %361
%363 = load i32, i32* %362
%364 = load i32, i32* %3
%365 = icmp eq i32 %363, %364
br i1 %365, label %366, label %388
366: ; preds = %358
store i32 1, i32* %4
br label %367
367: ; preds = %383, %366
%368 = load i32, i32* %4
%369 = load i32, i32* %6
%370 = icmp sle i32 %368, %369
br i1 %370, label %371, label %386
371: ; preds = %367
%372 = load float**, float*** %14
%373 = load i32, i32* %2
%374 = sext i32 %373 to i64
%375 = getelementptr inbounds float*, float** %372, i64 %374
%376 = load float*, float** %375
%377 = load i32, i32* %4
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds float, float* %376, i64 %378
%380 = load float, float* %379
%381 = fpext float %380 to double
%382 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %381)
br label %383
383: ; preds = %371
%384 = load i32, i32* %4
%385 = add nsw i32 %384, 1
store i32 %385, i32* %4
br label %367
386: ; preds = %367
%387 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %388
388: ; preds = %386, %358
br label %389
389: ; preds = %388
%390 = load i32, i32* %2
%391 = add nsw i32 %390, 1
store i32 %391, i32* %2
br label %354
392: ; preds = %354
br label %393
393: ; preds = %392
%394 = load i32, i32* %3
%395 = add nsw i32 %394, 1
store i32 %395, i32* %3
br label %349
396: ; preds = %349
%397 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
store i32 1, i32* %3
br label %398
398: ; preds = %424, %396
%399 = load i32, i32* %3
%400 = load i32, i32* %6
%401 = icmp sle i32 %399, %400
br i1 %401, label %402, label %427
402: ; preds = %398
store i32 1, i32* %4
br label %403
403: ; preds = %419, %402
%404 = load i32, i32* %4
%405 = load i32, i32* %6
%406 = icmp sle i32 %404, %405
br i1 %406, label %407, label %422
407: ; preds = %403
%408 = load float**, float*** %12
%409 = load i32, i32* %3
%410 = sext i32 %409 to i64
%411 = getelementptr inbounds float*, float** %408, i64 %410
%412 = load float*, float** %411
%413 = load i32, i32* %4
%414 = sext i32 %413 to i64
%415 = getelementptr inbounds float, float* %412, i64 %414
%416 = load float, float* %415
%417 = fpext float %416 to double
%418 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %417)
br label %419
419: ; preds = %407
%420 = load i32, i32* %4
%421 = add nsw i32 %420, 1
store i32 %421, i32* %4
br label %403
422: ; preds = %403
%423 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %424
424: ; preds = %422
%425 = load i32, i32* %3
%426 = add nsw i32 %425, 1
store i32 %426, i32* %3
br label %398
427: ; preds = %398
%428 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
store i32 1, i32* %3
br label %429
429: ; preds = %455, %427
%430 = load i32, i32* %3
%431 = load i32, i32* %6
%432 = icmp sle i32 %430, %431
br i1 %432, label %433, label %458
433: ; preds = %429
store i32 1, i32* %4
br label %434
434: ; preds = %450, %433
%435 = load i32, i32* %4
%436 = load i32, i32* %6
%437 = icmp sle i32 %435, %436
br i1 %437, label %438, label %453
438: ; preds = %434
%439 = load float**, float*** %13
%440 = load i32, i32* %3
%441 = sext i32 %440 to i64
%442 = getelementptr inbounds float*, float** %439, i64 %441
%443 = load float*, float** %442
%444 = load i32, i32* %4
%445 = sext i32 %444 to i64
%446 = getelementptr inbounds float, float* %443, i64 %445
%447 = load float, float* %446
%448 = fpext float %447 to double
%449 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %448)
br label %450
450: ; preds = %438
%451 = load i32, i32* %4
%452 = add nsw i32 %451, 1
store i32 %452, i32* %4
br label %434
453: ; preds = %434
%454 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %455
455: ; preds = %453
%456 = load i32, i32* %3
%457 = add nsw i32 %456, 1
store i32 %457, i32* %3
br label %429
458: ; preds = %429
%459 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%460 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
%461 = call i32 (...) @getchar()
br label %28
462: ; preds = %28
%463 = load i32*, i32** %16
%464 = call i32 @fclose(i32* %463)
%465 = load float**, float*** %14
%466 = call i32 @free_matrix(float** %465, i32 1, i32 20, i32 1, i32 20)
%467 = load float**, float*** %13
%468 = call i32 @free_matrix(float** %467, i32 1, i32 20, i32 1, i32 20)
%469 = load float**, float*** %12
%470 = call i32 @free_matrix(float** %469, i32 1, i32 20, i32 1, i32 20)
%471 = load float**, float*** %11
%472 = call i32 @free_matrix(float** %471, i32 1, i32 20, i32 1, i32 20)
%473 = load i32*, i32** %9
%474 = call i32 @free_ivector(i32* %473, i32 1, i32 20)
%475 = load i32*, i32** %8
%476 = call i32 @free_ivector(i32* %475, i32 1, i32 20)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"matrx1.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"Data file matrx1.dat not found\0A\00"
@.str.3 = [7 x i8] c"%d %d \00"
@.str.4 = [4 x i8] c"%f \00"
@.str.6 = [7 x i8] c"%12.6f\00"
@.str.8 = [7 x i8] c"\0A%s%s\0A\00"
@.str.9 = [28 x i8] c"product of lower and upper \00"
@.str.10 = [29 x i8] c"matrices (rows unscrambled):\00"
@str = [17 x i8] c"original matrix:\00"
@str.15 = [36 x i8] c"\0Alower matrix of the decomposition:\00"
@str.16 = [36 x i8] c"\0Aupper matrix of the decomposition:\00"
@str.17 = [37 x i8] c"\0A***********************************\00"
@str.18 = [31 x i8] c"press return for next problem:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca [80 x i8]
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast float* %3 to i8*
%8 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%9 = tail call i32* @ivector(i32 1, i32 20)
%10 = tail call i32* @ivector(i32 1, i32 20)
%11 = tail call float** @matrix(i32 1, i32 20, i32 1, i32 20)
%12 = tail call float** @matrix(i32 1, i32 20, i32 1, i32 20)
%13 = tail call float** @matrix(i32 1, i32 20, i32 1, i32 20)
%14 = tail call float** @matrix(i32 1, i32 20, i32 1, i32 20)
%15 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = tail call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %0
%20 = call i32 @feof(i32* %15)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %330
22: ; preds = %19, %324
%23 = call i32 @fgets(i8* %8, i32 80, i32* %15)
%24 = call i32 @fgets(i8* %8, i32 80, i32* %15)
%25 = call i32 (i32*, i8*, ...) @fscanf(i32* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32* %2, i32* %1)
%26 = call i32 @fgets(i8* %8, i32 80, i32* %15)
%27 = load i32, i32* %2
%28 = icmp slt i32 %27, 1
br i1 %28, label %49, label %29
29: ; preds = %22, %44
%30 = phi i32 [ %45, %44 ], [ %27, %22 ]
%31 = phi i64 [ %47, %44 ], [ 1, %22 ]
%32 = icmp slt i32 %30, 1
br i1 %32, label %44, label %33
33: ; preds = %29
%34 = getelementptr inbounds float*, float** %11, i64 %31
br label %35
35: ; preds = %33, %35
%36 = phi i64 [ 1, %33 ], [ %40, %35 ]
%37 = load float*, float** %34
%38 = getelementptr inbounds float, float* %37, i64 %36
%39 = call i32 (i32*, i8*, ...) @fscanf(i32* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), float* %38)
%40 = add nuw nsw i64 %36, 1
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %36, %42
br i1 %43, label %35, label %44
44: ; preds = %35, %29
%45 = phi i32 [ %30, %29 ], [ %41, %35 ]
%46 = sext i32 %45 to i64
%47 = add nuw nsw i64 %31, 1
%48 = icmp slt i64 %31, %46
br i1 %48, label %29, label %49
49: ; preds = %44, %22
%50 = call i32 @fgets(i8* %8, i32 80, i32* %15)
%51 = load i32, i32* %1
%52 = icmp slt i32 %51, 1
br i1 %52, label %78, label %53
53: ; preds = %49
%54 = load i32, i32* %2
br label %55
55: ; preds = %53, %72
%56 = phi i32 [ %51, %53 ], [ %73, %72 ]
%57 = phi i32 [ %54, %53 ], [ %74, %72 ]
%58 = phi i64 [ 1, %53 ], [ %75, %72 ]
%59 = icmp slt i32 %57, 1
br i1 %59, label %72, label %60
60: ; preds = %55, %60
%61 = phi i64 [ %66, %60 ], [ 1, %55 ]
%62 = getelementptr inbounds float*, float** %14, i64 %61
%63 = load float*, float** %62
%64 = getelementptr inbounds float, float* %63, i64 %58
%65 = call i32 (i32*, i8*, ...) @fscanf(i32* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), float* %64)
%66 = add nuw nsw i64 %61, 1
%67 = load i32, i32* %2
%68 = sext i32 %67 to i64
%69 = icmp slt i64 %61, %68
br i1 %69, label %60, label %70
70: ; preds = %60
%71 = load i32, i32* %1
br label %72
72: ; preds = %70, %55
%73 = phi i32 [ %71, %70 ], [ %56, %55 ]
%74 = phi i32 [ %67, %70 ], [ %57, %55 ]
%75 = add nuw nsw i64 %58, 1
%76 = sext i32 %73 to i64
%77 = icmp slt i64 %58, %76
br i1 %77, label %55, label %78
78: ; preds = %72, %49
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%80 = load i32, i32* %2
%81 = icmp slt i32 %80, 1
br i1 %81, label %105, label %82
82: ; preds = %78, %99
%83 = phi i32 [ %102, %99 ], [ %80, %78 ]
%84 = phi i64 [ %101, %99 ], [ 1, %78 ]
%85 = icmp slt i32 %83, 1
br i1 %85, label %99, label %86
86: ; preds = %82
%87 = getelementptr inbounds float*, float** %11, i64 %84
br label %88
88: ; preds = %86, %88
%89 = phi i64 [ 1, %86 ], [ %95, %88 ]
%90 = load float*, float** %87
%91 = getelementptr inbounds float, float* %90, i64 %89
%92 = load float, float* %91
%93 = fpext float %92 to double
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %93)
%95 = add nuw nsw i64 %89, 1
%96 = load i32, i32* %2
%97 = sext i32 %96 to i64
%98 = icmp slt i64 %89, %97
br i1 %98, label %88, label %99
99: ; preds = %88, %82
%100 = call i32 @putchar(i32 10)
%101 = add nuw nsw i64 %84, 1
%102 = load i32, i32* %2
%103 = sext i32 %102 to i64
%104 = icmp slt i64 %84, %103
br i1 %104, label %82, label %105
105: ; preds = %99, %78
%106 = phi i32 [ %80, %78 ], [ %102, %99 ]
%107 = call i32 @ludcmp(float** %11, i32 %106, i32* %9, float* %3)
%108 = load i32, i32* %2
%109 = icmp slt i32 %108, 1
br i1 %109, label %212, label %110
110: ; preds = %105
%111 = add nuw i32 %108, 1
%112 = zext i32 %111 to i64
br label %114
113: ; preds = %148
br i1 %109, label %212, label %151
114: ; preds = %148, %110
%115 = phi i64 [ 1, %110 ], [ %149, %148 ]
%116 = getelementptr inbounds float*, float** %11, i64 %115
%117 = getelementptr inbounds float*, float** %13, i64 %115
%118 = getelementptr inbounds float*, float** %12, i64 %115
%119 = load float*, float** %118
br label %120
120: ; preds = %114, %143
%121 = phi i64 [ 1, %114 ], [ %146, %143 ]
%122 = icmp ugt i64 %121, %115
br i1 %122, label %123, label %129
123: ; preds = %120
%124 = load float*, float** %116
%125 = getelementptr inbounds float, float* %124, i64 %121
%126 = load float, float* %125
%127 = load float*, float** %117
%128 = getelementptr inbounds float, float* %127, i64 %121
store float %126, float* %128
br label %143
129: ; preds = %120
%130 = icmp ult i64 %121, %115
br i1 %130, label %131, label %137
131: ; preds = %129
%132 = load float*, float** %117
%133 = getelementptr inbounds float, float* %132, i64 %121
store float 0.000000e+00, float* %133
%134 = load float*, float** %116
%135 = getelementptr inbounds float, float* %134, i64 %121
%136 = load float, float* %135
br label %143
137: ; preds = %129
%138 = load float*, float** %116
%139 = getelementptr inbounds float, float* %138, i64 %121
%140 = load float, float* %139
%141 = load float*, float** %117
%142 = getelementptr inbounds float, float* %141, i64 %121
store float %140, float* %142
br label %143
143: ; preds = %123, %137, %131
%144 = phi float [ 0.000000e+00, %123 ], [ 1.000000e+00, %137 ], [ %136, %131 ]
%145 = getelementptr inbounds float, float* %119, i64 %121
store float %144, float* %145
%146 = add nuw nsw i64 %121, 1
%147 = icmp eq i64 %146, %112
br i1 %147, label %148, label %120
148: ; preds = %143
%149 = add nuw nsw i64 %115, 1
%150 = icmp eq i64 %149, %112
br i1 %150, label %113, label %114
151: ; preds = %113, %208
%152 = phi i64 [ %209, %208 ], [ 1, %113 ]
%153 = getelementptr inbounds i32, i32* %10, i64 %152
%154 = trunc i64 %152 to i32
store i32 %154, i32* %153
%155 = load i32, i32* %2
%156 = icmp slt i32 %155, 1
br i1 %156, label %208, label %157
157: ; preds = %151
%158 = getelementptr inbounds float*, float** %14, i64 %152
%159 = load float*, float** %158
%160 = getelementptr inbounds float*, float** %12, i64 %152
%161 = add nuw i32 %155, 1
%162 = zext i32 %161 to i64
%163 = load float*, float** %160
%164 = add nsw i64 %162, -1
%165 = and i64 %164, 1
%166 = icmp eq i32 %161, 2
%167 = and i64 %164, -2
%168 = icmp eq i64 %165, 0
br label %169
169: ; preds = %205, %157
%170 = phi i64 [ 1, %157 ], [ %206, %205 ]
%171 = getelementptr inbounds float, float* %159, i64 %170
store float 0.000000e+00, float* %171
br i1 %166, label %194, label %172
172: ; preds = %169, %172
%173 = phi float [ %190, %172 ], [ 0.000000e+00, %169 ]
%174 = phi i64 [ %191, %172 ], [ 1, %169 ]
%175 = phi i64 [ %192, %172 ], [ 0, %169 ]
%176 = getelementptr inbounds float, float* %163, i64 %174
%177 = load float, float* %176
%178 = getelementptr inbounds float*, float** %13, i64 %174
%179 = load float*, float** %178
%180 = getelementptr inbounds float, float* %179, i64 %170
%181 = load float, float* %180
%182 = call float @llvm.fmuladd.f32(float %177, float %181, float %173)
store float %182, float* %171
%183 = add nuw nsw i64 %174, 1
%184 = getelementptr inbounds float, float* %163, i64 %183
%185 = load float, float* %184
%186 = getelementptr inbounds float*, float** %13, i64 %183
%187 = load float*, float** %186
%188 = getelementptr inbounds float, float* %187, i64 %170
%189 = load float, float* %188
%190 = call float @llvm.fmuladd.f32(float %185, float %189, float %182)
store float %190, float* %171
%191 = add nuw nsw i64 %174, 2
%192 = add i64 %175, 2
%193 = icmp eq i64 %192, %167
br i1 %193, label %194, label %172
194: ; preds = %172, %169
%195 = phi float [ 0.000000e+00, %169 ], [ %190, %172 ]
%196 = phi i64 [ 1, %169 ], [ %191, %172 ]
br i1 %168, label %205, label %197
197: ; preds = %194
%198 = getelementptr inbounds float, float* %163, i64 %196
%199 = load float, float* %198
%200 = getelementptr inbounds float*, float** %13, i64 %196
%201 = load float*, float** %200
%202 = getelementptr inbounds float, float* %201, i64 %170
%203 = load float, float* %202
%204 = call float @llvm.fmuladd.f32(float %199, float %203, float %195)
store float %204, float* %171
br label %205
205: ; preds = %194, %197
%206 = add nuw nsw i64 %170, 1
%207 = icmp eq i64 %206, %162
br i1 %207, label %208, label %169
208: ; preds = %205, %151
%209 = add nuw nsw i64 %152, 1
%210 = sext i32 %155 to i64
%211 = icmp slt i64 %152, %210
br i1 %211, label %151, label %212
212: ; preds = %208, %105, %113
%213 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%214 = load i32, i32* %2
%215 = icmp slt i32 %214, 1
br i1 %215, label %270, label %218
216: ; preds = %218
%217 = icmp slt i32 %228, 1
br i1 %217, label %270, label %231
218: ; preds = %212, %218
%219 = phi i64 [ %227, %218 ], [ 1, %212 ]
%220 = getelementptr inbounds i32, i32* %9, i64 %219
%221 = load i32, i32* %220
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds i32, i32* %10, i64 %222
%224 = load i32, i32* %223
%225 = getelementptr inbounds i32, i32* %10, i64 %219
%226 = load i32, i32* %225
store i32 %226, i32* %223
store i32 %224, i32* %225
%227 = add nuw nsw i64 %219, 1
%228 = load i32, i32* %2
%229 = sext i32 %228 to i64
%230 = icmp slt i64 %219, %229
br i1 %230, label %218, label %216
231: ; preds = %216, %266
%232 = phi i32 [ %267, %266 ], [ %228, %216 ]
%233 = phi i32 [ %268, %266 ], [ 1, %216 ]
%234 = icmp slt i32 %232, 1
br i1 %234, label %266, label %235
235: ; preds = %231, %260
%236 = phi i32 [ %261, %260 ], [ %232, %231 ]
%237 = phi i32 [ %262, %260 ], [ %232, %231 ]
%238 = phi i64 [ %263, %260 ], [ 1, %231 ]
%239 = getelementptr inbounds i32, i32* %10, i64 %238
%240 = load i32, i32* %239
%241 = icmp eq i32 %240, %233
br i1 %241, label %242, label %260
242: ; preds = %235
%243 = icmp slt i32 %237, 1
br i1 %243, label %257, label %244
244: ; preds = %242
%245 = getelementptr inbounds float*, float** %14, i64 %238
br label %246
246: ; preds = %244, %246
%247 = phi i64 [ 1, %244 ], [ %253, %246 ]
%248 = load float*, float** %245
%249 = getelementptr inbounds float, float* %248, i64 %247
%250 = load float, float* %249
%251 = fpext float %250 to double
%252 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %251)
%253 = add nuw nsw i64 %247, 1
%254 = load i32, i32* %2
%255 = sext i32 %254 to i64
%256 = icmp slt i64 %247, %255
br i1 %256, label %246, label %257
257: ; preds = %246, %242
%258 = call i32 @putchar(i32 10)
%259 = load i32, i32* %2
br label %260
260: ; preds = %235, %257
%261 = phi i32 [ %236, %235 ], [ %259, %257 ]
%262 = phi i32 [ %237, %235 ], [ %259, %257 ]
%263 = add nuw nsw i64 %238, 1
%264 = sext i32 %262 to i64
%265 = icmp slt i64 %238, %264
br i1 %265, label %235, label %266
266: ; preds = %260, %231
%267 = phi i32 [ %232, %231 ], [ %261, %260 ]
%268 = add nuw nsw i32 %233, 1
%269 = icmp slt i32 %233, %267
br i1 %269, label %231, label %270
270: ; preds = %266, %212, %216
%271 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.15, i64 0, i64 0))
%272 = load i32, i32* %2
%273 = icmp slt i32 %272, 1
br i1 %273, label %297, label %274
274: ; preds = %270, %291
%275 = phi i32 [ %294, %291 ], [ %272, %270 ]
%276 = phi i64 [ %293, %291 ], [ 1, %270 ]
%277 = icmp slt i32 %275, 1
br i1 %277, label %291, label %278
278: ; preds = %274
%279 = getelementptr inbounds float*, float** %12, i64 %276
br label %280
280: ; preds = %278, %280
%281 = phi i64 [ 1, %278 ], [ %287, %280 ]
%282 = load float*, float** %279
%283 = getelementptr inbounds float, float* %282, i64 %281
%284 = load float, float* %283
%285 = fpext float %284 to double
%286 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %285)
%287 = add nuw nsw i64 %281, 1
%288 = load i32, i32* %2
%289 = sext i32 %288 to i64
%290 = icmp slt i64 %281, %289
br i1 %290, label %280, label %291
291: ; preds = %280, %274
%292 = call i32 @putchar(i32 10)
%293 = add nuw nsw i64 %276, 1
%294 = load i32, i32* %2
%295 = sext i32 %294 to i64
%296 = icmp slt i64 %276, %295
br i1 %296, label %274, label %297
297: ; preds = %291, %270
%298 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.16, i64 0, i64 0))
%299 = load i32, i32* %2
%300 = icmp slt i32 %299, 1
br i1 %300, label %324, label %301
301: ; preds = %297, %318
%302 = phi i32 [ %321, %318 ], [ %299, %297 ]
%303 = phi i64 [ %320, %318 ], [ 1, %297 ]
%304 = icmp slt i32 %302, 1
br i1 %304, label %318, label %305
305: ; preds = %301
%306 = getelementptr inbounds float*, float** %13, i64 %303
br label %307
307: ; preds = %305, %307
%308 = phi i64 [ 1, %305 ], [ %314, %307 ]
%309 = load float*, float** %306
%310 = getelementptr inbounds float, float* %309, i64 %308
%311 = load float, float* %310
%312 = fpext float %311 to double
%313 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %312)
%314 = add nuw nsw i64 %308, 1
%315 = load i32, i32* %2
%316 = sext i32 %315 to i64
%317 = icmp slt i64 %308, %316
br i1 %317, label %307, label %318
318: ; preds = %307, %301
%319 = call i32 @putchar(i32 10)
%320 = add nuw nsw i64 %303, 1
%321 = load i32, i32* %2
%322 = sext i32 %321 to i64
%323 = icmp slt i64 %303, %322
br i1 %323, label %301, label %324
324: ; preds = %318, %297
%325 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.17, i64 0, i64 0))
%326 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.18, i64 0, i64 0))
%327 = call i32 (...) @getchar()
%328 = call i32 @feof(i32* %15)
%329 = icmp eq i32 %328, 0
br i1 %329, label %22, label %330
330: ; preds = %324, %19
%331 = call i32 @fclose(i32* %15)
%332 = call i32 @free_matrix(float** %14, i32 1, i32 20, i32 1, i32 20)
%333 = call i32 @free_matrix(float** %13, i32 1, i32 20, i32 1, i32 20)
%334 = call i32 @free_matrix(float** %12, i32 1, i32 20, i32 1, i32 20)
%335 = call i32 @free_matrix(float** %11, i32 1, i32 20, i32 1, i32 20)
%336 = call i32 @free_ivector(i32* %10, i32 1, i32 20)
%337 = call i32 @free_ivector(i32* %9, i32 1, i32 20)
ret i32 0
}