#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 */
float **convert_matrix(float *, int, int, int, int);
int /*<<< orphan*/ free_convert_matrix(float **, int, int, int, int);
int /*<<< orphan*/ free_lvector(unsigned long *, int, int);
int /*<<< orphan*/ free_matrix(float **, int, int, int, int);
int /*<<< orphan*/ free_vector(float *, int, int);
unsigned long *lvector(int, int);
float **matrix(int, int, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprsin(float **, int, double, int, float *, unsigned long *);
float *vector(int, int);
int main(void) {
  unsigned long i, j, msize, *ija;
  float **a, **aa, *sa;
  static float ainit[5][5] = {3.0, 0.0, 1.0, 0.0, 0.0, 0.0, 4.0, 0.0, 0.0,
                              0.0, 0.0, 7.0, 5.0, 9.0, 0.0, 0.0, 0.0, 0.0,
                              0.0, 2.0, 0.0, 0.0, 0.0, 6.0, 5.0};
  ija = lvector(1, (2 * 5 * 5 + 1));
  sa = vector(1, (2 * 5 * 5 + 1));
  aa = matrix(1, 5, 1, 5);
  a = convert_matrix(&ainit[0][0], 1, 5, 1, 5);
  sprsin(a, 5, 0.5, (2 * 5 * 5 + 1), sa, ija);
  msize = ija[ija[1] - 1] - 1;
  sa[5 + 1] = 0.0;
  printf("index\tija\t\tsa\n");
  for (i = 1; i <= msize; i++)
    printf("%lu\t%lu\t%12.6f\n", i, ija[i], sa[i]);
  for (i = 1; i <= 5; i++)
    for (j = 1; j <= 5; j++)
      aa[i][j] = 0.0;
  for (i = 1; i <= 5; i++) {
    aa[i][i] = sa[i];
    for (j = ija[i]; j <= ija[i + 1] - 1; j++)
      aa[i][ija[j]] = sa[j];
  }
  printf("Original Matrix\n");
  for (i = 1; i <= 5; i++) {
    for (j = 1; j <= 5; j++)
      printf("%5.2f\t", a[i][j]);
    printf("\n");
  }
  printf("Reconstructed Matrix\n");
  for (i = 1; i <= 5; i++) {
    for (j = 1; j <= 5; j++)
      printf("%5.2f\t", aa[i][j]);
    printf("\n");
  }
  free_convert_matrix(a, 1, 5, 1, 5);
  free_matrix(aa, 1, 5, 1, 5);
  free_vector(sa, 1, (2 * 5 * 5 + 1));
  free_lvector(ija, 1, (2 * 5 * 5 + 1));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x33,%esi
call   10c0 <lvector@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%edi
mov    $0x33,%esi
call   1090 <vector@plt>
mov    %rax,-0x40(%rbp)
mov    $0x1,%edx
mov    $0x5,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1080 <matrix@plt>
mov    %rax,-0x38(%rbp)
lea    0x2e8d(%rip),%rdi
mov    $0x1,%ecx
mov    $0x5,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   10b0 <convert_matrix@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    $0x5,%esi
movsd  0xddb(%rip),%xmm0
mov    $0x33,%edx
call   10a0 <sprsin@plt>
mov    -0x28(%rbp),%rax
mov    -0x28(%rbp),%rcx
mov    0x8(%rcx),%rcx
sub    $0x1,%rcx
mov    (%rax,%rcx,8),%rax
sub    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x40(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rax)
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x20(%rbp),%rax
ja     12bb <main+0x11b>
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x40(%rbp),%rax
mov    -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd74(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    126d <main+0xcd>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     1320 <main+0x180>
movq   $0x1,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
ja     130a <main+0x16a>
mov    -0x38(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    12d6 <main+0x136>
jmp    130f <main+0x16f>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12c3 <main+0x123>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     13d4 <main+0x234>
mov    -0x40(%rbp),%rax
mov    -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x10(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x28(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    0x8(%rcx,%rdx,8),%rcx
sub    $0x1,%rcx
cmp    %rcx,%rax
ja     13be <main+0x21e>
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%rcx
mov    -0x18(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1365 <main+0x1c5>
jmp    13c3 <main+0x223>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1328 <main+0x188>
lea    0xc4c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     145f <main+0x2bf>
movq   $0x1,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
ja     1440 <main+0x2a0>
mov    -0x30(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc10(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    13fd <main+0x25d>
lea    0xbce(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    13ea <main+0x24a>
lea    0xbd9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     14ea <main+0x34a>
movq   $0x1,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
ja     14cb <main+0x32b>
mov    -0x38(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb85(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1488 <main+0x2e8>
lea    0xb43(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1475 <main+0x2d5>
mov    -0x30(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x5,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1030 <free_convert_matrix@plt>
mov    -0x38(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x5,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <free_matrix@plt>
mov    -0x40(%rbp),%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1070 <free_vector@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1050 <free_lvector@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x1,%edi
mov    $0x33,%esi
call   10e0 <lvector@plt>
mov    %rax,%r12
mov    $0x1,%edi
mov    $0x33,%esi
call   10b0 <vector@plt>
mov    %rax,%r14
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x1,%edx
mov    $0x5,%ecx
call   10a0 <matrix@plt>
mov    %rax,%r15
lea    0x2e7e(%rip),%rdi
mov    $0x1,%esi
mov    $0x5,%edx
mov    $0x1,%ecx
mov    $0x5,%r8d
call   10d0 <convert_matrix@plt>
movsd  0xdcc(%rip),%xmm0
mov    %rax,(%rsp)
mov    %rax,%rdi
mov    $0x5,%esi
mov    $0x33,%edx
mov    %r14,%rcx
mov    %r12,%r8
call   10c0 <sprsin@plt>
mov    0x8(%r12),%rax
mov    -0x8(%r12,%rax,8),%rbp
movl   $0x0,0x18(%r14)
lea    0xdb6(%rip),%rdi
call   1050 <puts@plt>
add    $0xffffffffffffffff,%rbp
je     12a4 <main+0xe4>
mov    $0x1,%ebx
lea    0xd88(%rip),%r13
mov    (%r12,%rbx,8),%rdx
movss  (%r14,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1080 <printf@plt>
add    $0x1,%rbx
cmp    %rbp,%rbx
jbe    1280 <main+0xc0>
mov    0x8(%r15),%rbp
xorps  %xmm0,%xmm0
movups %xmm0,0x4(%rbp)
movl   $0x0,0x14(%rbp)
mov    0x10(%r15),%rsi
movups %xmm0,0x4(%rsi)
movl   $0x0,0x14(%rsi)
mov    0x18(%r15),%rdx
movups %xmm0,0x4(%rdx)
movl   $0x0,0x14(%rdx)
mov    0x20(%r15),%r9
movups %xmm0,0x4(%r9)
movl   $0x0,0x14(%r9)
mov    0x28(%r15),%r8
movups %xmm0,0x4(%r8)
movl   $0x0,0x14(%r8)
movss  0x4(%r14),%xmm0
movss  %xmm0,0x4(%rbp)
mov    0x8(%r12),%rbx
mov    0x10(%r12),%rdi
lea    -0x1(%rdi),%rax
cmp    %rax,%rbx
ja     1339 <main+0x179>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  (%r14,%rbx,4),%xmm0
mov    (%r12,%rbx,8),%rcx
movss  %xmm0,0x0(%rbp,%rcx,4)
add    $0x1,%rbx
cmp    %rax,%rbx
jbe    1320 <main+0x160>
movss  0x8(%r14),%xmm0
movss  %xmm0,0x8(%rsi)
mov    0x18(%r12),%rbp
lea    -0x1(%rbp),%rax
cmp    %rax,%rdi
ja     1378 <main+0x1b8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  (%r14,%rdi,4),%xmm0
mov    (%r12,%rdi,8),%rbx
movss  %xmm0,(%rsi,%rbx,4)
add    $0x1,%rdi
cmp    %rax,%rdi
jbe    1360 <main+0x1a0>
movss  0xc(%r14),%xmm0
movss  %xmm0,0xc(%rdx)
mov    0x20(%r12),%rsi
lea    -0x1(%rsi),%rax
cmp    %rax,%rbp
ja     13b8 <main+0x1f8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%r14,%rbp,4),%xmm0
mov    (%r12,%rbp,8),%rdi
movss  %xmm0,(%rdx,%rdi,4)
add    $0x1,%rbp
cmp    %rax,%rbp
jbe    13a0 <main+0x1e0>
movss  0x10(%r14),%xmm0
movss  %xmm0,0x10(%r9)
mov    0x28(%r12),%rdx
lea    -0x1(%rdx),%rax
cmp    %rax,%rsi
ja     13f9 <main+0x239>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  (%r14,%rsi,4),%xmm0
mov    (%r12,%rsi,8),%rdi
movss  %xmm0,(%r9,%rdi,4)
add    $0x1,%rsi
cmp    %rax,%rsi
jbe    13e0 <main+0x220>
movss  0x14(%r14),%xmm0
movss  %xmm0,0x14(%r8)
mov    0x30(%r12),%rcx
add    $0xffffffffffffffff,%rcx
cmp    %rcx,%rdx
ja     1439 <main+0x279>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  (%r14,%rdx,4),%xmm0
mov    (%r12,%rdx,8),%rax
movss  %xmm0,(%r8,%rax,4)
add    $0x1,%rdx
cmp    %rcx,%rdx
jbe    1420 <main+0x260>
lea    0xbed(%rip),%rdi
call   1050 <puts@plt>
mov    (%rsp),%rbx
mov    0x8(%rbx),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbbb(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rbx),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rbx),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rbx),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%rbx),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x975(%rip),%rdi
call   1050 <puts@plt>
mov    0x8(%r15),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r15),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r15),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r15),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r15),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%r15),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r15),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r15),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r15),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r15),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%r15),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r15),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r15),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r15),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r15),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%r15),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r15),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r15),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r15),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r15),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%r15),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r15),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r15),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r15),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r15),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x5,%edx
mov    $0x1,%ecx
mov    $0x5,%r8d
call   1040 <free_convert_matrix@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x5,%edx
mov    $0x1,%ecx
mov    $0x5,%r8d
call   1060 <free_matrix@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1090 <free_vector@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1070 <free_lvector@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@main.ainit = internal global [5 x [5 x float]] [[5 x float] [float 3.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00], [5 x float] [float 0.000000e+00, float 4.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00], [5 x float] [float 0.000000e+00, float 7.000000e+00, float 5.000000e+00, float 9.000000e+00, float 0.000000e+00], [5 x float] [float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 2.000000e+00], [5 x float] [float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 6.000000e+00, float 5.000000e+00]]
@.str = [15 x i8] c"index\09ija\09\09sa\0A\00"
@.str.1 = [16 x i8] c"%lu\09%lu\09%12.6f\0A\00"
@.str.2 = [17 x i8] c"Original Matrix\0A\00"
@.str.3 = [7 x i8] c"%5.2f\09\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [22 x i8] c"Reconstructed Matrix\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64*
%6 = alloca float**
%7 = alloca float**
%8 = alloca float*
store i32 0, i32* %1
%9 = call i64* @lvector(i32 1, i32 51)
store i64* %9, i64** %5
%10 = call float* @vector(i32 1, i32 51)
store float* %10, float** %8
%11 = call float** @matrix(i32 1, i32 5, i32 1, i32 5)
store float** %11, float*** %7
%12 = call float** @convert_matrix(float* getelementptr inbounds ([5 x [5 x float]], [5 x [5 x float]]* @main.ainit, i64 0, i64 0, i64 0), i32 1, i32 5, i32 1, i32 5)
store float** %12, float*** %6
%13 = load float**, float*** %6
%14 = load float*, float** %8
%15 = load i64*, i64** %5
%16 = call i32 @sprsin(float** %13, i32 5, double 5.000000e-01, i32 51, float* %14, i64* %15)
%17 = load i64*, i64** %5
%18 = load i64*, i64** %5
%19 = getelementptr inbounds i64, i64* %18, i64 1
%20 = load i64, i64* %19
%21 = sub i64 %20, 1
%22 = getelementptr inbounds i64, i64* %17, i64 %21
%23 = load i64, i64* %22
%24 = sub i64 %23, 1
store i64 %24, i64* %4
%25 = load float*, float** %8
%26 = getelementptr inbounds float, float* %25, i64 6
store float 0.000000e+00, float* %26
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
store i64 1, i64* %2
br label %28
28: ; preds = %44, %0
%29 = load i64, i64* %2
%30 = load i64, i64* %4
%31 = icmp ule i64 %29, %30
br i1 %31, label %32, label %47
32: ; preds = %28
%33 = load i64, i64* %2
%34 = load i64*, i64** %5
%35 = load i64, i64* %2
%36 = getelementptr inbounds i64, i64* %34, i64 %35
%37 = load i64, i64* %36
%38 = load float*, float** %8
%39 = load i64, i64* %2
%40 = getelementptr inbounds float, float* %38, i64 %39
%41 = load float, float* %40
%42 = fpext float %41 to double
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i64 %33, i64 %37, double %42)
br label %44
44: ; preds = %32
%45 = load i64, i64* %2
%46 = add i64 %45, 1
store i64 %46, i64* %2
br label %28
47: ; preds = %28
store i64 1, i64* %2
br label %48
48: ; preds = %66, %47
%49 = load i64, i64* %2
%50 = icmp ule i64 %49, 5
br i1 %50, label %51, label %69
51: ; preds = %48
store i64 1, i64* %3
br label %52
52: ; preds = %62, %51
%53 = load i64, i64* %3
%54 = icmp ule i64 %53, 5
br i1 %54, label %55, label %65
55: ; preds = %52
%56 = load float**, float*** %7
%57 = load i64, i64* %2
%58 = getelementptr inbounds float*, float** %56, i64 %57
%59 = load float*, float** %58
%60 = load i64, i64* %3
%61 = getelementptr inbounds float, float* %59, i64 %60
store float 0.000000e+00, float* %61
br label %62
62: ; preds = %55
%63 = load i64, i64* %3
%64 = add i64 %63, 1
store i64 %64, i64* %3
br label %52
65: ; preds = %52
br label %66
66: ; preds = %65
%67 = load i64, i64* %2
%68 = add i64 %67, 1
store i64 %68, i64* %2
br label %48
69: ; preds = %48
store i64 1, i64* %2
br label %70
70: ; preds = %115, %69
%71 = load i64, i64* %2
%72 = icmp ule i64 %71, 5
br i1 %72, label %73, label %118
73: ; preds = %70
%74 = load float*, float** %8
%75 = load i64, i64* %2
%76 = getelementptr inbounds float, float* %74, i64 %75
%77 = load float, float* %76
%78 = load float**, float*** %7
%79 = load i64, i64* %2
%80 = getelementptr inbounds float*, float** %78, i64 %79
%81 = load float*, float** %80
%82 = load i64, i64* %2
%83 = getelementptr inbounds float, float* %81, i64 %82
store float %77, float* %83
%84 = load i64*, i64** %5
%85 = load i64, i64* %2
%86 = getelementptr inbounds i64, i64* %84, i64 %85
%87 = load i64, i64* %86
store i64 %87, i64* %3
br label %88
88: ; preds = %111, %73
%89 = load i64, i64* %3
%90 = load i64*, i64** %5
%91 = load i64, i64* %2
%92 = add i64 %91, 1
%93 = getelementptr inbounds i64, i64* %90, i64 %92
%94 = load i64, i64* %93
%95 = sub i64 %94, 1
%96 = icmp ule i64 %89, %95
br i1 %96, label %97, label %114
97: ; preds = %88
%98 = load float*, float** %8
%99 = load i64, i64* %3
%100 = getelementptr inbounds float, float* %98, i64 %99
%101 = load float, float* %100
%102 = load float**, float*** %7
%103 = load i64, i64* %2
%104 = getelementptr inbounds float*, float** %102, i64 %103
%105 = load float*, float** %104
%106 = load i64*, i64** %5
%107 = load i64, i64* %3
%108 = getelementptr inbounds i64, i64* %106, i64 %107
%109 = load i64, i64* %108
%110 = getelementptr inbounds float, float* %105, i64 %109
store float %101, float* %110
br label %111
111: ; preds = %97
%112 = load i64, i64* %3
%113 = add i64 %112, 1
store i64 %113, i64* %3
br label %88
114: ; preds = %88
br label %115
115: ; preds = %114
%116 = load i64, i64* %2
%117 = add i64 %116, 1
store i64 %117, i64* %2
br label %70
118: ; preds = %70
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
store i64 1, i64* %2
br label %120
120: ; preds = %142, %118
%121 = load i64, i64* %2
%122 = icmp ule i64 %121, 5
br i1 %122, label %123, label %145
123: ; preds = %120
store i64 1, i64* %3
br label %124
124: ; preds = %137, %123
%125 = load i64, i64* %3
%126 = icmp ule i64 %125, 5
br i1 %126, label %127, label %140
127: ; preds = %124
%128 = load float**, float*** %6
%129 = load i64, i64* %2
%130 = getelementptr inbounds float*, float** %128, i64 %129
%131 = load float*, float** %130
%132 = load i64, i64* %3
%133 = getelementptr inbounds float, float* %131, i64 %132
%134 = load float, float* %133
%135 = fpext float %134 to double
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %135)
br label %137
137: ; preds = %127
%138 = load i64, i64* %3
%139 = add i64 %138, 1
store i64 %139, i64* %3
br label %124
140: ; preds = %124
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %142
142: ; preds = %140
%143 = load i64, i64* %2
%144 = add i64 %143, 1
store i64 %144, i64* %2
br label %120
145: ; preds = %120
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
store i64 1, i64* %2
br label %147
147: ; preds = %169, %145
%148 = load i64, i64* %2
%149 = icmp ule i64 %148, 5
br i1 %149, label %150, label %172
150: ; preds = %147
store i64 1, i64* %3
br label %151
151: ; preds = %164, %150
%152 = load i64, i64* %3
%153 = icmp ule i64 %152, 5
br i1 %153, label %154, label %167
154: ; preds = %151
%155 = load float**, float*** %7
%156 = load i64, i64* %2
%157 = getelementptr inbounds float*, float** %155, i64 %156
%158 = load float*, float** %157
%159 = load i64, i64* %3
%160 = getelementptr inbounds float, float* %158, i64 %159
%161 = load float, float* %160
%162 = fpext float %161 to double
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %162)
br label %164
164: ; preds = %154
%165 = load i64, i64* %3
%166 = add i64 %165, 1
store i64 %166, i64* %3
br label %151
167: ; preds = %151
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %169
169: ; preds = %167
%170 = load i64, i64* %2
%171 = add i64 %170, 1
store i64 %171, i64* %2
br label %147
172: ; preds = %147
%173 = load float**, float*** %6
%174 = call i32 @free_convert_matrix(float** %173, i32 1, i32 5, i32 1, i32 5)
%175 = load float**, float*** %7
%176 = call i32 @free_matrix(float** %175, i32 1, i32 5, i32 1, i32 5)
%177 = load float*, float** %8
%178 = call i32 @free_vector(float* %177, i32 1, i32 51)
%179 = load i64*, i64** %5
%180 = call i32 @free_lvector(i64* %179, i32 1, i32 51)
ret i32 0
}

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