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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ covsrt(float **, int, int *, int);
int /*<<< orphan*/ free_ivector(int *, int, int);
int /*<<< orphan*/ free_matrix(float **, int, int, int, int);
int /*<<< orphan*/ getchar();
int *ivector(int, int);
float **matrix(int, int, int, int);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int i, j, *ia;
  float **covar;
  ia = ivector(1, 10);
  covar = matrix(1, 10, 1, 10);
  for (i = 1; i <= 10; i++)
    for (j = 1; j <= 10; j++) {
      covar[i][j] = 0.0;
      if ((i <= 5) && (j <= 5))
        covar[i][j] = i + j - 1;
    }
  printf("\noriginal matrix\n");
  for (i = 1; i <= 10; i++) {
    for (j = 1; j <= 10; j++)
      printf("%4.1f", covar[i][j]);
    printf("\n");
  }
  printf("press RETURN to continue...\n");
  (void)getchar();
  printf("\nTest #1 - full fitting\n");
  for (i = 1; i <= 10; i++)
    ia[i] = 1;
  covsrt(covar, 10, ia, 10);
  for (i = 1; i <= 10; i++) {
    for (j = 1; j <= 10; j++)
      printf("%4.1f", covar[i][j]);
    printf("\n");
  }
  printf("press RETURN to continue...\n");
  (void)getchar();
  printf("\nTest #2 - spread\n");
  for (i = 1; i <= 10; i++)
    for (j = 1; j <= 10; j++) {
      covar[i][j] = 0.0;
      if ((i <= 5) && (j <= 5))
        covar[i][j] = i + j - 1;
    }
  for (i = 1; i <= 10; i += 2)
    ia[i] = 0;
  covsrt(covar, 10, ia, 5);
  for (i = 1; i <= 10; i++) {
    for (j = 1; j <= 10; j++)
      printf("%4.1f", covar[i][j]);
    printf("\n");
  }
  free_matrix(covar, 1, 10, 1, 10);
  free_ivector(ia, 1, 10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0xa,%esi
call   1090 <ivector@plt>
mov    %rax,-0x18(%rbp)
mov    $0x1,%edx
mov    $0xa,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1070 <matrix@plt>
mov    %rax,-0x20(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     123f <main+0xcf>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     122c <main+0xbc>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x5,-0x8(%rbp)
jg     1219 <main+0xa9>
cmpl   $0x5,-0xc(%rbp)
jg     1219 <main+0xa9>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    121e <main+0xae>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11c1 <main+0x51>
jmp    1231 <main+0xc1>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b0 <main+0x40>
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     12c0 <main+0x150>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     12a4 <main+0x134>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd83(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1265 <main+0xf5>
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1254 <main+0xe4>
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xd59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1311 <main+0x1a1>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movl   $0x1,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12ea <main+0x17a>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0xa,%ecx
mov    %ecx,%esi
call   1050 <covsrt@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1398 <main+0x228>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     137c <main+0x20c>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcab(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    133d <main+0x1cd>
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    132c <main+0x1bc>
lea    0xc79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xc9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1451 <main+0x2e1>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     143e <main+0x2ce>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x5,-0x8(%rbp)
jg     142b <main+0x2bb>
cmpl   $0x5,-0xc(%rbp)
jg     142b <main+0x2bb>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    1430 <main+0x2c0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13d3 <main+0x263>
jmp    1443 <main+0x2d3>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13c2 <main+0x252>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     147f <main+0x30f>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    1458 <main+0x2e8>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0xa,%esi
mov    $0x5,%ecx
call   1050 <covsrt@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1509 <main+0x399>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     14ed <main+0x37d>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb3a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14ae <main+0x33e>
lea    0xb3f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    149d <main+0x32d>
mov    -0x20(%rbp),%rdi
mov    $0x1,%ecx
mov    $0xa,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1030 <free_matrix@plt>
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   1080 <free_ivector@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x1,%edi
mov    $0xa,%esi
call   10b0 <ivector@plt>
mov    %rax,%r14
mov    $0x1,%edi
mov    $0xa,%esi
mov    $0x1,%edx
mov    $0xa,%ecx
call   1090 <matrix@plt>
mov    %rax,%r12
mov    0x8(%rax),%rax
movaps 0xe2f(%rip),%xmm0
movups %xmm0,0x4(%rax)
movl   $0x40a00000,0x14(%rax)
xorps  %xmm0,%xmm0
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x10(%r12),%rax
movaps 0xe1a(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x40c00000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x18(%r12),%rax
movaps 0xe08(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x40e00000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x20(%r12),%rax
movaps 0xdf6(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x41000000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x28(%r12),%rax
movaps 0xde4(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x41100000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x30(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x38(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x40(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x48(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x50(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
lea    0xd84(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebx
lea    0xd6d(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r12,%rbx,8),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x18(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x1c(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x24(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x28(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0xb,%rbx
jne    1300 <main+0x170>
lea    0xc8a(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
lea    0xc5f(%rip),%rdi
call   1040 <puts@plt>
movaps 0xc2c(%rip),%xmm0
movups %xmm0,0x4(%r14)
movups %xmm0,0x14(%r14)
movabs $0x100000001,%rax
mov    %rax,0x24(%r14)
mov    %r12,%rdi
mov    $0xa,%esi
mov    %r14,%rdx
mov    $0xa,%ecx
call   1070 <covsrt@plt>
mov    $0x1,%ebx
lea    0xc03(%rip),%r15
nopl   (%rax)
mov    (%r12,%rbx,8),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x18(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x1c(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x24(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x28(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0xb,%rbx
jne    1460 <main+0x2d0>
lea    0xb2a(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
lea    0xb33(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%r12),%rax
movaps 0xa77(%rip),%xmm0
movups %xmm0,0x4(%rax)
movl   $0x40a00000,0x14(%rax)
xorps  %xmm0,%xmm0
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x10(%r12),%rax
movaps 0xa62(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x40c00000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x18(%r12),%rax
movaps 0xa50(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x40e00000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x20(%r12),%rax
movaps 0xa3e(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x41000000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x28(%r12),%rax
movaps 0xa2c(%rip),%xmm1
movups %xmm1,0x4(%rax)
movl   $0x41100000,0x14(%rax)
movups %xmm0,0x18(%rax)
movl   $0x0,0x28(%rax)
mov    0x30(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x38(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x40(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x48(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
mov    0x50(%r12),%rax
movups %xmm0,0x4(%rax)
movups %xmm0,0x14(%rax)
movq   $0x0,0x24(%rax)
movl   $0x0,0x4(%r14)
movl   $0x0,0xc(%r14)
movl   $0x0,0x14(%r14)
movl   $0x0,0x1c(%r14)
movl   $0x0,0x24(%r14)
mov    %r12,%rdi
mov    $0xa,%esi
mov    %r14,%rdx
mov    $0x5,%ecx
call   1070 <covsrt@plt>
mov    $0x1,%ebx
lea    0x984(%rip),%r15
nopl   0x0(%rax)
mov    (%r12,%rbx,8),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x18(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x1c(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x24(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r12,%rbx,8),%rax
movss  0x28(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0xb,%rbx
jne    16e0 <main+0x550>
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x1,%ecx
mov    $0xa,%r8d
call   1050 <free_matrix@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   10a0 <free_ivector@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\0Aoriginal matrix\0A\00"
@.str.1 = [6 x i8] c"%4.1f\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [29 x i8] c"press RETURN to continue...\0A\00"
@.str.4 = [25 x i8] c"\0ATest - full fitting\0A\00"
@.str.5 = [19 x i8] c"\0ATest - spread\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca float**
store i32 0, i32* %1
%6 = call i32* @ivector(i32 1, i32 10)
store i32* %6, i32** %4
%7 = call float** @matrix(i32 1, i32 10, i32 1, i32 10)
store float** %7, float*** %5
store i32 1, i32* %2
br label %8
8: ; preds = %48, %0
%9 = load i32, i32* %2
%10 = icmp sle i32 %9, 10
br i1 %10, label %11, label %51
11: ; preds = %8
store i32 1, i32* %3
br label %12
12: ; preds = %44, %11
%13 = load i32, i32* %3
%14 = icmp sle i32 %13, 10
br i1 %14, label %15, label %47
15: ; preds = %12
%16 = load float**, float*** %5
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds float*, float** %16, i64 %18
%20 = load float*, float** %19
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, float* %20, i64 %22
store float 0.000000e+00, float* %23
%24 = load i32, i32* %2
%25 = icmp sle i32 %24, 5
br i1 %25, label %26, label %43
26: ; preds = %15
%27 = load i32, i32* %3
%28 = icmp sle i32 %27, 5
br i1 %28, label %29, label %43
29: ; preds = %26
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = add nsw i32 %30, %31
%33 = sub nsw i32 %32, 1
%34 = sitofp i32 %33 to float
%35 = load float**, float*** %5
%36 = load i32, i32* %2
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds float*, float** %35, i64 %37
%39 = load float*, float** %38
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds float, float* %39, i64 %41
store float %34, float* %42
br label %43
43: ; preds = %29, %26, %15
br label %44
44: ; preds = %43
%45 = load i32, i32* %3
%46 = add nsw i32 %45, 1
store i32 %46, i32* %3
br label %12
47: ; preds = %12
br label %48
48: ; preds = %47
%49 = load i32, i32* %2
%50 = add nsw i32 %49, 1
store i32 %50, i32* %2
br label %8
51: ; preds = %8
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %2
br label %53
53: ; preds = %77, %51
%54 = load i32, i32* %2
%55 = icmp sle i32 %54, 10
br i1 %55, label %56, label %80
56: ; preds = %53
store i32 1, i32* %3
br label %57
57: ; preds = %72, %56
%58 = load i32, i32* %3
%59 = icmp sle i32 %58, 10
br i1 %59, label %60, label %75
60: ; preds = %57
%61 = load float**, float*** %5
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float*, float** %61, i64 %63
%65 = load float*, float** %64
%66 = load i32, i32* %3
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds float, float* %65, i64 %67
%69 = load float, float* %68
%70 = fpext float %69 to double
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %70)
br label %72
72: ; preds = %60
%73 = load i32, i32* %3
%74 = add nsw i32 %73, 1
store i32 %74, i32* %3
br label %57
75: ; preds = %57
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %77
77: ; preds = %75
%78 = load i32, i32* %2
%79 = add nsw i32 %78, 1
store i32 %79, i32* %2
br label %53
80: ; preds = %53
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%82 = call i32 (...) @getchar()
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %2
br label %84
84: ; preds = %92, %80
%85 = load i32, i32* %2
%86 = icmp sle i32 %85, 10
br i1 %86, label %87, label %95
87: ; preds = %84
%88 = load i32*, i32** %4
%89 = load i32, i32* %2
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %88, i64 %90
store i32 1, i32* %91
br label %92
92: ; preds = %87
%93 = load i32, i32* %2
%94 = add nsw i32 %93, 1
store i32 %94, i32* %2
br label %84
95: ; preds = %84
%96 = load float**, float*** %5
%97 = load i32*, i32** %4
%98 = call i32 @covsrt(float** %96, i32 10, i32* %97, i32 10)
store i32 1, i32* %2
br label %99
99: ; preds = %123, %95
%100 = load i32, i32* %2
%101 = icmp sle i32 %100, 10
br i1 %101, label %102, label %126
102: ; preds = %99
store i32 1, i32* %3
br label %103
103: ; preds = %118, %102
%104 = load i32, i32* %3
%105 = icmp sle i32 %104, 10
br i1 %105, label %106, label %121
106: ; preds = %103
%107 = load float**, float*** %5
%108 = load i32, i32* %2
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds float*, float** %107, i64 %109
%111 = load float*, float** %110
%112 = load i32, i32* %3
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds float, float* %111, i64 %113
%115 = load float, float* %114
%116 = fpext float %115 to double
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %116)
br label %118
118: ; preds = %106
%119 = load i32, i32* %3
%120 = add nsw i32 %119, 1
store i32 %120, i32* %3
br label %103
121: ; preds = %103
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %123
123: ; preds = %121
%124 = load i32, i32* %2
%125 = add nsw i32 %124, 1
store i32 %125, i32* %2
br label %99
126: ; preds = %99
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%128 = call i32 (...) @getchar()
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %2
br label %130
130: ; preds = %170, %126
%131 = load i32, i32* %2
%132 = icmp sle i32 %131, 10
br i1 %132, label %133, label %173
133: ; preds = %130
store i32 1, i32* %3
br label %134
134: ; preds = %166, %133
%135 = load i32, i32* %3
%136 = icmp sle i32 %135, 10
br i1 %136, label %137, label %169
137: ; preds = %134
%138 = load float**, float*** %5
%139 = load i32, i32* %2
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds float*, float** %138, i64 %140
%142 = load float*, float** %141
%143 = load i32, i32* %3
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds float, float* %142, i64 %144
store float 0.000000e+00, float* %145
%146 = load i32, i32* %2
%147 = icmp sle i32 %146, 5
br i1 %147, label %148, label %165
148: ; preds = %137
%149 = load i32, i32* %3
%150 = icmp sle i32 %149, 5
br i1 %150, label %151, label %165
151: ; preds = %148
%152 = load i32, i32* %2
%153 = load i32, i32* %3
%154 = add nsw i32 %152, %153
%155 = sub nsw i32 %154, 1
%156 = sitofp i32 %155 to float
%157 = load float**, float*** %5
%158 = load i32, i32* %2
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds float*, float** %157, i64 %159
%161 = load float*, float** %160
%162 = load i32, i32* %3
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds float, float* %161, i64 %163
store float %156, float* %164
br label %165
165: ; preds = %151, %148, %137
br label %166
166: ; preds = %165
%167 = load i32, i32* %3
%168 = add nsw i32 %167, 1
store i32 %168, i32* %3
br label %134
169: ; preds = %134
br label %170
170: ; preds = %169
%171 = load i32, i32* %2
%172 = add nsw i32 %171, 1
store i32 %172, i32* %2
br label %130
173: ; preds = %130
store i32 1, i32* %2
br label %174
174: ; preds = %182, %173
%175 = load i32, i32* %2
%176 = icmp sle i32 %175, 10
br i1 %176, label %177, label %185
177: ; preds = %174
%178 = load i32*, i32** %4
%179 = load i32, i32* %2
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i32, i32* %178, i64 %180
store i32 0, i32* %181
br label %182
182: ; preds = %177
%183 = load i32, i32* %2
%184 = add nsw i32 %183, 2
store i32 %184, i32* %2
br label %174
185: ; preds = %174
%186 = load float**, float*** %5
%187 = load i32*, i32** %4
%188 = call i32 @covsrt(float** %186, i32 10, i32* %187, i32 5)
store i32 1, i32* %2
br label %189
189: ; preds = %213, %185
%190 = load i32, i32* %2
%191 = icmp sle i32 %190, 10
br i1 %191, label %192, label %216
192: ; preds = %189
store i32 1, i32* %3
br label %193
193: ; preds = %208, %192
%194 = load i32, i32* %3
%195 = icmp sle i32 %194, 10
br i1 %195, label %196, label %211
196: ; preds = %193
%197 = load float**, float*** %5
%198 = load i32, i32* %2
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds float*, float** %197, i64 %199
%201 = load float*, float** %200
%202 = load i32, i32* %3
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds float, float* %201, i64 %203
%205 = load float, float* %204
%206 = fpext float %205 to double
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %206)
br label %208
208: ; preds = %196
%209 = load i32, i32* %3
%210 = add nsw i32 %209, 1
store i32 %210, i32* %3
br label %193
211: ; preds = %193
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %213
213: ; preds = %211
%214 = load i32, i32* %2
%215 = add nsw i32 %214, 1
store i32 %215, i32* %2
br label %189
216: ; preds = %189
%217 = load float**, float*** %5
%218 = call i32 @free_matrix(float** %217, i32 1, i32 10, i32 1, i32 10)
%219 = load i32*, i32** %4
%220 = call i32 @free_ivector(i32* %219, i32 1, i32 10)
ret i32 0
}

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