#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 *);
int /*<<< orphan*/ sprstp(float *, unsigned long *, float *, unsigned long *);
float *vector(int, int);
int main(void) {
  unsigned long i, j, *ija, *ijat;
  float **a, **at, *sa, *sat;
  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));
  ijat = lvector(1, (2 * 5 * 5 + 1));
  sa = vector(1, (2 * 5 * 5 + 1));
  sat = vector(1, (2 * 5 * 5 + 1));
  at = 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);
  sprstp(sa, ija, sat, ijat);
  for (i = 1; i <= 5; i++)
    for (j = 1; j <= 5; j++)
      at[i][j] = 0.0;
  for (i = 1; i <= 5; i++) {
    at[i][i] = sat[i];
    for (j = ijat[i]; j <= ijat[i + 1] - 1; j++)
      at[i][ijat[j]] = sat[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("Transpose\n");
  for (i = 1; i <= 5; i++) {
    for (j = 1; j <= 5; j++)
      printf("%5.2f\t", at[i][j]);
    printf("\n");
  }
  free_convert_matrix(a, 1, 5, 1, 5);
  free_matrix(at, 1, 5, 1, 5);
  free_vector(sat, 1, (2 * 5 * 5 + 1));
  free_vector(sa, 1, (2 * 5 * 5 + 1));
  free_lvector(ijat, 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    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x33,%esi
call   10d0 <lvector@plt>
mov    %rax,-0x20(%rbp)
mov    $0x1,%edi
mov    $0x33,%esi
call   10d0 <lvector@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%edi
mov    $0x33,%esi
call   10a0 <vector@plt>
mov    %rax,-0x40(%rbp)
mov    $0x1,%edi
mov    $0x33,%esi
call   10a0 <vector@plt>
mov    %rax,-0x48(%rbp)
mov    $0x1,%edx
mov    $0x5,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1090 <matrix@plt>
mov    %rax,-0x38(%rbp)
lea    0x2e57(%rip),%rdi
mov    $0x1,%ecx
mov    $0x5,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   10c0 <convert_matrix@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    $0x5,%esi
movsd  0xda5(%rip),%xmm0
mov    $0x33,%edx
call   10b0 <sprsin@plt>
mov    -0x40(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x28(%rbp),%rcx
call   1080 <sprstp@plt>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     12df <main+0x12f>
movq   $0x1,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
ja     12c9 <main+0x119>
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    1295 <main+0xe5>
jmp    12ce <main+0x11e>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1282 <main+0xd2>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     1393 <main+0x1e3>
mov    -0x48(%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     137d <main+0x1cd>
mov    -0x48(%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    1324 <main+0x174>
jmp    1382 <main+0x1d2>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12e7 <main+0x137>
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     141e <main+0x26e>
movq   $0x1,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
ja     13ff <main+0x24f>
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    0xc32(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    13bc <main+0x20c>
lea    0xc23(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    13a9 <main+0x1f9>
lea    0xbfb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x1,-0x10(%rbp)
cmpq   $0x5,-0x10(%rbp)
ja     14a9 <main+0x2f9>
movq   $0x1,-0x18(%rbp)
cmpq   $0x5,-0x18(%rbp)
ja     148a <main+0x2da>
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    0xba7(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1447 <main+0x297>
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1434 <main+0x284>
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    -0x48(%rbp),%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1070 <free_vector@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>
mov    -0x20(%rbp),%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1050 <free_lvector@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    $0x1,%edi
mov    $0x33,%esi
call   10f0 <lvector@plt>
mov    %rax,%rbx
mov    $0x1,%edi
mov    $0x33,%esi
call   10f0 <lvector@plt>
mov    %rax,%r12
mov    $0x1,%edi
mov    $0x33,%esi
call   10c0 <vector@plt>
mov    %rax,%rbp
mov    $0x1,%edi
mov    $0x33,%esi
call   10c0 <vector@plt>
mov    %rax,%r15
mov    $0x1,%edi
mov    $0x5,%esi
mov    $0x1,%edx
mov    $0x5,%ecx
call   10b0 <matrix@plt>
mov    %rax,%r13
lea    0x2e47(%rip),%rdi
mov    $0x1,%esi
mov    $0x5,%edx
mov    $0x1,%ecx
mov    $0x5,%r8d
call   10e0 <convert_matrix@plt>
mov    %rax,%r14
movsd  0xd92(%rip),%xmm0
mov    %rax,%rdi
mov    $0x5,%esi
mov    $0x33,%edx
mov    %rbp,%rcx
mov    %rbx,%r8
call   10d0 <sprsin@plt>
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdi
mov    %rbx,0x10(%rsp)
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   10a0 <sprstp@plt>
mov    0x8(%r13),%rbp
xorps  %xmm0,%xmm0
movups %xmm0,0x4(%rbp)
movl   $0x0,0x14(%rbp)
mov    0x10(%r13),%rsi
movups %xmm0,0x4(%rsi)
movl   $0x0,0x14(%rsi)
mov    0x18(%r13),%rdx
movups %xmm0,0x4(%rdx)
movl   $0x0,0x14(%rdx)
mov    0x20(%r13),%r9
movups %xmm0,0x4(%r9)
movl   $0x0,0x14(%r9)
mov    0x28(%r13),%r8
movups %xmm0,0x4(%r8)
movl   $0x0,0x14(%r8)
movss  0x4(%r15),%xmm0
movss  %xmm0,0x4(%rbp)
mov    0x8(%r12),%rbx
mov    0x10(%r12),%rdi
lea    -0x1(%rdi),%rax
cmp    %rax,%rbx
ja     1339 <main+0x169>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%r15,%rbx,4),%xmm0
mov    (%r12,%rbx,8),%rcx
movss  %xmm0,0x0(%rbp,%rcx,4)
add    $0x1,%rbx
cmp    %rax,%rbx
jbe    1320 <main+0x150>
movss  0x8(%r15),%xmm0
movss  %xmm0,0x8(%rsi)
mov    0x18(%r12),%rbp
lea    -0x1(%rbp),%rax
cmp    %rax,%rdi
ja     1378 <main+0x1a8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  (%r15,%rdi,4),%xmm0
mov    (%r12,%rdi,8),%rbx
movss  %xmm0,(%rsi,%rbx,4)
add    $0x1,%rdi
cmp    %rax,%rdi
jbe    1360 <main+0x190>
movss  0xc(%r15),%xmm0
movss  %xmm0,0xc(%rdx)
mov    0x20(%r12),%rsi
lea    -0x1(%rsi),%rax
cmp    %rax,%rbp
ja     13b8 <main+0x1e8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%r15,%rbp,4),%xmm0
mov    (%r12,%rbp,8),%rdi
movss  %xmm0,(%rdx,%rdi,4)
add    $0x1,%rbp
cmp    %rax,%rbp
jbe    13a0 <main+0x1d0>
movss  0x10(%r15),%xmm0
movss  %xmm0,0x10(%r9)
mov    0x28(%r12),%rdx
lea    -0x1(%rdx),%rax
cmp    %rax,%rsi
ja     13f9 <main+0x229>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  (%r15,%rsi,4),%xmm0
mov    (%r12,%rsi,8),%rdi
movss  %xmm0,(%r9,%rdi,4)
add    $0x1,%rsi
cmp    %rax,%rsi
jbe    13e0 <main+0x210>
movss  0x14(%r15),%xmm0
movss  %xmm0,0x14(%r8)
mov    0x30(%r12),%rcx
add    $0xffffffffffffffff,%rcx
cmp    %rcx,%rdx
ja     1439 <main+0x269>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  (%r15,%rdx,4),%xmm0
mov    (%r12,%rdx,8),%rax
movss  %xmm0,(%r8,%rax,4)
add    $0x1,%rdx
cmp    %rcx,%rdx
jbe    1420 <main+0x250>
lea    0xbcf(%rip),%rdi
call   1050 <puts@plt>
mov    0x8(%r14),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rbx
lea    0xbac(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%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    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%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    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%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    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%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    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%rbx),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x958(%rip),%rdi
call   1050 <puts@plt>
mov    0x8(%r13),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r13),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r13),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r13),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x8(%r13),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%r13),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r13),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r13),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r13),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x10(%r13),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%r13),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r13),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r13),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r13),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x18(%r13),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%r13),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r13),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r13),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r13),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x20(%r13),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%r13),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r13),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r13),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r13),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    0x28(%r13),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%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    %r13,%rdi
mov    $0x1,%esi
mov    $0x5,%edx
mov    $0x1,%ecx
mov    $0x5,%r8d
call   1060 <free_matrix@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1090 <free_vector@plt>
mov    0x8(%rsp),%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>
mov    0x10(%rsp),%rdi
mov    $0x1,%esi
mov    $0x33,%edx
call   1070 <free_lvector@plt>
xor    %eax,%eax
add    $0x18,%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 = [17 x i8] c"Original Matrix\0A\00"
@.str.1 = [7 x i8] c"%5.2f\09\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [11 x i8] c"Transpose\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*
%9 = alloca float*
store i32 0, i32* %1
%10 = call i64* @lvector(i32 1, i32 51)
store i64* %10, i64** %4
%11 = call i64* @lvector(i32 1, i32 51)
store i64* %11, i64** %5
%12 = call float* @vector(i32 1, i32 51)
store float* %12, float** %8
%13 = call float* @vector(i32 1, i32 51)
store float* %13, float** %9
%14 = call float** @matrix(i32 1, i32 5, i32 1, i32 5)
store float** %14, float*** %7
%15 = 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** %15, float*** %6
%16 = load float**, float*** %6
%17 = load float*, float** %8
%18 = load i64*, i64** %4
%19 = call i32 @sprsin(float** %16, i32 5, double 5.000000e-01, i32 51, float* %17, i64* %18)
%20 = load float*, float** %8
%21 = load i64*, i64** %4
%22 = load float*, float** %9
%23 = load i64*, i64** %5
%24 = call i32 @sprstp(float* %20, i64* %21, float* %22, i64* %23)
store i64 1, i64* %2
br label %25
25: ; preds = %43, %0
%26 = load i64, i64* %2
%27 = icmp ule i64 %26, 5
br i1 %27, label %28, label %46
28: ; preds = %25
store i64 1, i64* %3
br label %29
29: ; preds = %39, %28
%30 = load i64, i64* %3
%31 = icmp ule i64 %30, 5
br i1 %31, label %32, label %42
32: ; preds = %29
%33 = load float**, float*** %7
%34 = load i64, i64* %2
%35 = getelementptr inbounds float*, float** %33, i64 %34
%36 = load float*, float** %35
%37 = load i64, i64* %3
%38 = getelementptr inbounds float, float* %36, i64 %37
store float 0.000000e+00, float* %38
br label %39
39: ; preds = %32
%40 = load i64, i64* %3
%41 = add i64 %40, 1
store i64 %41, i64* %3
br label %29
42: ; preds = %29
br label %43
43: ; preds = %42
%44 = load i64, i64* %2
%45 = add i64 %44, 1
store i64 %45, i64* %2
br label %25
46: ; preds = %25
store i64 1, i64* %2
br label %47
47: ; preds = %92, %46
%48 = load i64, i64* %2
%49 = icmp ule i64 %48, 5
br i1 %49, label %50, label %95
50: ; preds = %47
%51 = load float*, float** %9
%52 = load i64, i64* %2
%53 = getelementptr inbounds float, float* %51, i64 %52
%54 = load float, float* %53
%55 = load float**, float*** %7
%56 = load i64, i64* %2
%57 = getelementptr inbounds float*, float** %55, i64 %56
%58 = load float*, float** %57
%59 = load i64, i64* %2
%60 = getelementptr inbounds float, float* %58, i64 %59
store float %54, float* %60
%61 = load i64*, i64** %5
%62 = load i64, i64* %2
%63 = getelementptr inbounds i64, i64* %61, i64 %62
%64 = load i64, i64* %63
store i64 %64, i64* %3
br label %65
65: ; preds = %88, %50
%66 = load i64, i64* %3
%67 = load i64*, i64** %5
%68 = load i64, i64* %2
%69 = add i64 %68, 1
%70 = getelementptr inbounds i64, i64* %67, i64 %69
%71 = load i64, i64* %70
%72 = sub i64 %71, 1
%73 = icmp ule i64 %66, %72
br i1 %73, label %74, label %91
74: ; preds = %65
%75 = load float*, float** %9
%76 = load i64, i64* %3
%77 = getelementptr inbounds float, float* %75, i64 %76
%78 = load float, float* %77
%79 = load float**, float*** %7
%80 = load i64, i64* %2
%81 = getelementptr inbounds float*, float** %79, i64 %80
%82 = load float*, float** %81
%83 = load i64*, i64** %5
%84 = load i64, i64* %3
%85 = getelementptr inbounds i64, i64* %83, i64 %84
%86 = load i64, i64* %85
%87 = getelementptr inbounds float, float* %82, i64 %86
store float %78, float* %87
br label %88
88: ; preds = %74
%89 = load i64, i64* %3
%90 = add i64 %89, 1
store i64 %90, i64* %3
br label %65
91: ; preds = %65
br label %92
92: ; preds = %91
%93 = load i64, i64* %2
%94 = add i64 %93, 1
store i64 %94, i64* %2
br label %47
95: ; preds = %47
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
store i64 1, i64* %2
br label %97
97: ; preds = %119, %95
%98 = load i64, i64* %2
%99 = icmp ule i64 %98, 5
br i1 %99, label %100, label %122
100: ; preds = %97
store i64 1, i64* %3
br label %101
101: ; preds = %114, %100
%102 = load i64, i64* %3
%103 = icmp ule i64 %102, 5
br i1 %103, label %104, label %117
104: ; preds = %101
%105 = load float**, float*** %6
%106 = load i64, i64* %2
%107 = getelementptr inbounds float*, float** %105, i64 %106
%108 = load float*, float** %107
%109 = load i64, i64* %3
%110 = getelementptr inbounds float, float* %108, i64 %109
%111 = load float, float* %110
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %112)
br label %114
114: ; preds = %104
%115 = load i64, i64* %3
%116 = add i64 %115, 1
store i64 %116, i64* %3
br label %101
117: ; preds = %101
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %119
119: ; preds = %117
%120 = load i64, i64* %2
%121 = add i64 %120, 1
store i64 %121, i64* %2
br label %97
122: ; preds = %97
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
store i64 1, i64* %2
br label %124
124: ; preds = %146, %122
%125 = load i64, i64* %2
%126 = icmp ule i64 %125, 5
br i1 %126, label %127, label %149
127: ; preds = %124
store i64 1, i64* %3
br label %128
128: ; preds = %141, %127
%129 = load i64, i64* %3
%130 = icmp ule i64 %129, 5
br i1 %130, label %131, label %144
131: ; preds = %128
%132 = load float**, float*** %7
%133 = load i64, i64* %2
%134 = getelementptr inbounds float*, float** %132, i64 %133
%135 = load float*, float** %134
%136 = load i64, i64* %3
%137 = getelementptr inbounds float, float* %135, i64 %136
%138 = load float, float* %137
%139 = fpext float %138 to double
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %139)
br label %141
141: ; preds = %131
%142 = load i64, i64* %3
%143 = add i64 %142, 1
store i64 %143, i64* %3
br label %128
144: ; preds = %128
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %146
146: ; preds = %144
%147 = load i64, i64* %2
%148 = add i64 %147, 1
store i64 %148, i64* %2
br label %124
149: ; preds = %124
%150 = load float**, float*** %6
%151 = call i32 @free_convert_matrix(float** %150, i32 1, i32 5, i32 1, i32 5)
%152 = load float**, float*** %7
%153 = call i32 @free_matrix(float** %152, i32 1, i32 5, i32 1, i32 5)
%154 = load float*, float** %9
%155 = call i32 @free_vector(float* %154, i32 1, i32 51)
%156 = load float*, float** %8
%157 = call i32 @free_vector(float* %156, i32 1, i32 51)
%158 = load i64*, i64** %5
%159 = call i32 @free_lvector(i64* %158, i32 1, i32 51)
%160 = load i64*, i64** %4
%161 = call i32 @free_lvector(i64* %160, 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 = [7 x i8] c"%5.2f\09\00"
@str = [16 x i8] c"Original Matrix\00"
@str.4 = [10 x i8] c"Transpose\00"
define i32 @main() {
%1 = tail call i64* @lvector(i32 1, i32 51)
%2 = tail call i64* @lvector(i32 1, i32 51)
%3 = tail call float* @vector(i32 1, i32 51)
%4 = tail call float* @vector(i32 1, i32 51)
%5 = tail call float** @matrix(i32 1, i32 5, i32 1, i32 5)
%6 = 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)
%7 = tail call i32 @sprsin(float** %6, i32 5, double 5.000000e-01, i32 51, float* %3, i64* %1)
%8 = tail call i32 @sprstp(float* %3, i64* %1, float* %4, i64* %2)
%9 = getelementptr inbounds float*, float** %5, i64 1
%10 = load float*, float** %9
%11 = getelementptr float, float* %10, i64 1
%12 = bitcast float* %11 to i8*
%13 = getelementptr inbounds float*, float** %5, i64 2
%14 = load float*, float** %13
%15 = getelementptr float, float* %14, i64 1
%16 = bitcast float* %15 to i8*
%17 = getelementptr inbounds float*, float** %5, i64 3
%18 = load float*, float** %17
%19 = getelementptr float, float* %18, i64 1
%20 = bitcast float* %19 to i8*
%21 = getelementptr inbounds float*, float** %5, i64 4
%22 = load float*, float** %21
%23 = getelementptr float, float* %22, i64 1
%24 = bitcast float* %23 to i8*
%25 = getelementptr inbounds float*, float** %5, i64 5
%26 = load float*, float** %25
%27 = getelementptr float, float* %26, i64 1
%28 = bitcast float* %27 to i8*
%29 = getelementptr inbounds float, float* %4, i64 1
%30 = load float, float* %29
store float %30, float* %11
%31 = getelementptr inbounds i64, i64* %2, i64 1
%32 = load i64, i64* %31
%33 = getelementptr inbounds i64, i64* %2, i64 2
%34 = load i64, i64* %33
%35 = add i64 %34, -1
%36 = icmp ugt i64 %32, %35
br i1 %36, label %37, label %379
37: ; preds = %379, %0
%38 = getelementptr inbounds float, float* %4, i64 2
%39 = load float, float* %38
%40 = getelementptr inbounds float, float* %14, i64 2
store float %39, float* %40
%41 = getelementptr inbounds i64, i64* %2, i64 3
%42 = load i64, i64* %41
%43 = add i64 %42, -1
%44 = icmp ugt i64 %34, %43
br i1 %44, label %54, label %45
45: ; preds = %37, %45
%46 = phi i64 [ %52, %45 ], [ %34, %37 ]
%47 = getelementptr inbounds float, float* %4, i64 %46
%48 = load float, float* %47
%49 = getelementptr inbounds i64, i64* %2, i64 %46
%50 = load i64, i64* %49
%51 = getelementptr inbounds float, float* %14, i64 %50
store float %48, float* %51
%52 = add i64 %46, 1
%53 = icmp ugt i64 %52, %43
br i1 %53, label %54, label %45
54: ; preds = %45, %37
%55 = getelementptr inbounds float, float* %4, i64 3
%56 = load float, float* %55
%57 = getelementptr inbounds float, float* %18, i64 3
store float %56, float* %57
%58 = getelementptr inbounds i64, i64* %2, i64 4
%59 = load i64, i64* %58
%60 = add i64 %59, -1
%61 = icmp ugt i64 %42, %60
br i1 %61, label %71, label %62
62: ; preds = %54, %62
%63 = phi i64 [ %69, %62 ], [ %42, %54 ]
%64 = getelementptr inbounds float, float* %4, i64 %63
%65 = load float, float* %64
%66 = getelementptr inbounds i64, i64* %2, i64 %63
%67 = load i64, i64* %66
%68 = getelementptr inbounds float, float* %18, i64 %67
store float %65, float* %68
%69 = add i64 %63, 1
%70 = icmp ugt i64 %69, %60
br i1 %70, label %71, label %62
71: ; preds = %62, %54
%72 = getelementptr inbounds float, float* %4, i64 4
%73 = load float, float* %72
%74 = getelementptr inbounds float, float* %22, i64 4
store float %73, float* %74
%75 = getelementptr inbounds i64, i64* %2, i64 5
%76 = load i64, i64* %75
%77 = add i64 %76, -1
%78 = icmp ugt i64 %59, %77
br i1 %78, label %88, label %79
79: ; preds = %71, %79
%80 = phi i64 [ %86, %79 ], [ %59, %71 ]
%81 = getelementptr inbounds float, float* %4, i64 %80
%82 = load float, float* %81
%83 = getelementptr inbounds i64, i64* %2, i64 %80
%84 = load i64, i64* %83
%85 = getelementptr inbounds float, float* %22, i64 %84
store float %82, float* %85
%86 = add i64 %80, 1
%87 = icmp ugt i64 %86, %77
br i1 %87, label %88, label %79
88: ; preds = %79, %71
%89 = getelementptr inbounds float, float* %4, i64 5
%90 = load float, float* %89
%91 = getelementptr inbounds float, float* %26, i64 5
store float %90, float* %91
%92 = getelementptr inbounds i64, i64* %2, i64 6
%93 = load i64, i64* %92
%94 = add i64 %93, -1
%95 = icmp ugt i64 %76, %94
br i1 %95, label %105, label %96
96: ; preds = %88, %96
%97 = phi i64 [ %103, %96 ], [ %76, %88 ]
%98 = getelementptr inbounds float, float* %4, i64 %97
%99 = load float, float* %98
%100 = getelementptr inbounds i64, i64* %2, i64 %97
%101 = load i64, i64* %100
%102 = getelementptr inbounds float, float* %26, i64 %101
store float %99, float* %102
%103 = add i64 %97, 1
%104 = icmp ugt i64 %103, %94
br i1 %104, label %105, label %96
105: ; preds = %96, %88
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%107 = getelementptr inbounds float*, float** %6, i64 1
%108 = load float*, float** %107
%109 = getelementptr inbounds float, float* %108, i64 1
%110 = load float, float* %109
%111 = fpext float %110 to double
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %111)
%113 = load float*, float** %107
%114 = getelementptr inbounds float, float* %113, i64 2
%115 = load float, float* %114
%116 = fpext float %115 to double
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %116)
%118 = load float*, float** %107
%119 = getelementptr inbounds float, float* %118, i64 3
%120 = load float, float* %119
%121 = fpext float %120 to double
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %121)
%123 = load float*, float** %107
%124 = getelementptr inbounds float, float* %123, i64 4
%125 = load float, float* %124
%126 = fpext float %125 to double
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %126)
%128 = load float*, float** %107
%129 = getelementptr inbounds float, float* %128, i64 5
%130 = load float, float* %129
%131 = fpext float %130 to double
%132 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %131)
%133 = tail call i32 @putchar(i32 10)
%134 = getelementptr inbounds float*, float** %6, i64 2
%135 = load float*, float** %134
%136 = getelementptr inbounds float, float* %135, i64 1
%137 = load float, float* %136
%138 = fpext float %137 to double
%139 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %138)
%140 = load float*, float** %134
%141 = getelementptr inbounds float, float* %140, i64 2
%142 = load float, float* %141
%143 = fpext float %142 to double
%144 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %143)
%145 = load float*, float** %134
%146 = getelementptr inbounds float, float* %145, i64 3
%147 = load float, float* %146
%148 = fpext float %147 to double
%149 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %148)
%150 = load float*, float** %134
%151 = getelementptr inbounds float, float* %150, i64 4
%152 = load float, float* %151
%153 = fpext float %152 to double
%154 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %153)
%155 = load float*, float** %134
%156 = getelementptr inbounds float, float* %155, i64 5
%157 = load float, float* %156
%158 = fpext float %157 to double
%159 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %158)
%160 = tail call i32 @putchar(i32 10)
%161 = getelementptr inbounds float*, float** %6, i64 3
%162 = load float*, float** %161
%163 = getelementptr inbounds float, float* %162, i64 1
%164 = load float, float* %163
%165 = fpext float %164 to double
%166 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %165)
%167 = load float*, float** %161
%168 = getelementptr inbounds float, float* %167, i64 2
%169 = load float, float* %168
%170 = fpext float %169 to double
%171 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %170)
%172 = load float*, float** %161
%173 = getelementptr inbounds float, float* %172, i64 3
%174 = load float, float* %173
%175 = fpext float %174 to double
%176 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %175)
%177 = load float*, float** %161
%178 = getelementptr inbounds float, float* %177, i64 4
%179 = load float, float* %178
%180 = fpext float %179 to double
%181 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %180)
%182 = load float*, float** %161
%183 = getelementptr inbounds float, float* %182, i64 5
%184 = load float, float* %183
%185 = fpext float %184 to double
%186 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %185)
%187 = tail call i32 @putchar(i32 10)
%188 = getelementptr inbounds float*, float** %6, i64 4
%189 = load float*, float** %188
%190 = getelementptr inbounds float, float* %189, i64 1
%191 = load float, float* %190
%192 = fpext float %191 to double
%193 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %192)
%194 = load float*, float** %188
%195 = getelementptr inbounds float, float* %194, i64 2
%196 = load float, float* %195
%197 = fpext float %196 to double
%198 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %197)
%199 = load float*, float** %188
%200 = getelementptr inbounds float, float* %199, i64 3
%201 = load float, float* %200
%202 = fpext float %201 to double
%203 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %202)
%204 = load float*, float** %188
%205 = getelementptr inbounds float, float* %204, i64 4
%206 = load float, float* %205
%207 = fpext float %206 to double
%208 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %207)
%209 = load float*, float** %188
%210 = getelementptr inbounds float, float* %209, i64 5
%211 = load float, float* %210
%212 = fpext float %211 to double
%213 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %212)
%214 = tail call i32 @putchar(i32 10)
%215 = getelementptr inbounds float*, float** %6, i64 5
%216 = load float*, float** %215
%217 = getelementptr inbounds float, float* %216, i64 1
%218 = load float, float* %217
%219 = fpext float %218 to double
%220 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %219)
%221 = load float*, float** %215
%222 = getelementptr inbounds float, float* %221, i64 2
%223 = load float, float* %222
%224 = fpext float %223 to double
%225 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %224)
%226 = load float*, float** %215
%227 = getelementptr inbounds float, float* %226, i64 3
%228 = load float, float* %227
%229 = fpext float %228 to double
%230 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %229)
%231 = load float*, float** %215
%232 = getelementptr inbounds float, float* %231, i64 4
%233 = load float, float* %232
%234 = fpext float %233 to double
%235 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %234)
%236 = load float*, float** %215
%237 = getelementptr inbounds float, float* %236, i64 5
%238 = load float, float* %237
%239 = fpext float %238 to double
%240 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %239)
%241 = tail call i32 @putchar(i32 10)
%242 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.4, i64 0, i64 0))
%243 = load float*, float** %9
%244 = getelementptr inbounds float, float* %243, i64 1
%245 = load float, float* %244
%246 = fpext float %245 to double
%247 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %246)
%248 = load float*, float** %9
%249 = getelementptr inbounds float, float* %248, i64 2
%250 = load float, float* %249
%251 = fpext float %250 to double
%252 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %251)
%253 = load float*, float** %9
%254 = getelementptr inbounds float, float* %253, i64 3
%255 = load float, float* %254
%256 = fpext float %255 to double
%257 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %256)
%258 = load float*, float** %9
%259 = getelementptr inbounds float, float* %258, i64 4
%260 = load float, float* %259
%261 = fpext float %260 to double
%262 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %261)
%263 = load float*, float** %9
%264 = getelementptr inbounds float, float* %263, i64 5
%265 = load float, float* %264
%266 = fpext float %265 to double
%267 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %266)
%268 = tail call i32 @putchar(i32 10)
%269 = load float*, float** %13
%270 = getelementptr inbounds float, float* %269, i64 1
%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.1, i64 0, i64 0), double %272)
%274 = load float*, float** %13
%275 = getelementptr inbounds float, float* %274, i64 2
%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.1, i64 0, i64 0), double %277)
%279 = load float*, float** %13
%280 = getelementptr inbounds float, float* %279, i64 3
%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.1, i64 0, i64 0), double %282)
%284 = load float*, float** %13
%285 = getelementptr inbounds float, float* %284, i64 4
%286 = load float, float* %285
%287 = fpext float %286 to double
%288 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %287)
%289 = load float*, float** %13
%290 = getelementptr inbounds float, float* %289, i64 5
%291 = load float, float* %290
%292 = fpext float %291 to double
%293 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %292)
%294 = tail call i32 @putchar(i32 10)
%295 = load float*, float** %17
%296 = getelementptr inbounds float, float* %295, i64 1
%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.1, i64 0, i64 0), double %298)
%300 = load float*, float** %17
%301 = getelementptr inbounds float, float* %300, i64 2
%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.1, i64 0, i64 0), double %303)
%305 = load float*, float** %17
%306 = getelementptr inbounds float, float* %305, i64 3
%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.1, i64 0, i64 0), double %308)
%310 = load float*, float** %17
%311 = getelementptr inbounds float, float* %310, i64 4
%312 = load float, float* %311
%313 = fpext float %312 to double
%314 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %313)
%315 = load float*, float** %17
%316 = getelementptr inbounds float, float* %315, i64 5
%317 = load float, float* %316
%318 = fpext float %317 to double
%319 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %318)
%320 = tail call i32 @putchar(i32 10)
%321 = load float*, float** %21
%322 = getelementptr inbounds float, float* %321, i64 1
%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.1, i64 0, i64 0), double %324)
%326 = load float*, float** %21
%327 = getelementptr inbounds float, float* %326, i64 2
%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.1, i64 0, i64 0), double %329)
%331 = load float*, float** %21
%332 = getelementptr inbounds float, float* %331, i64 3
%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.1, i64 0, i64 0), double %334)
%336 = load float*, float** %21
%337 = getelementptr inbounds float, float* %336, i64 4
%338 = load float, float* %337
%339 = fpext float %338 to double
%340 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %339)
%341 = load float*, float** %21
%342 = getelementptr inbounds float, float* %341, i64 5
%343 = load float, float* %342
%344 = fpext float %343 to double
%345 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %344)
%346 = tail call i32 @putchar(i32 10)
%347 = load float*, float** %25
%348 = getelementptr inbounds float, float* %347, i64 1
%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.1, i64 0, i64 0), double %350)
%352 = load float*, float** %25
%353 = getelementptr inbounds float, float* %352, i64 2
%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.1, i64 0, i64 0), double %355)
%357 = load float*, float** %25
%358 = getelementptr inbounds float, float* %357, i64 3
%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.1, i64 0, i64 0), double %360)
%362 = load float*, float** %25
%363 = getelementptr inbounds float, float* %362, i64 4
%364 = load float, float* %363
%365 = fpext float %364 to double
%366 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %365)
%367 = load float*, float** %25
%368 = getelementptr inbounds float, float* %367, i64 5
%369 = load float, float* %368
%370 = fpext float %369 to double
%371 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %370)
%372 = tail call i32 @putchar(i32 10)
%373 = tail call i32 @free_convert_matrix(float** %6, i32 1, i32 5, i32 1, i32 5)
%374 = tail call i32 @free_matrix(float** %5, i32 1, i32 5, i32 1, i32 5)
%375 = tail call i32 @free_vector(float* %4, i32 1, i32 51)
%376 = tail call i32 @free_vector(float* %3, i32 1, i32 51)
%377 = tail call i32 @free_lvector(i64* %2, i32 1, i32 51)
%378 = tail call i32 @free_lvector(i64* %1, i32 1, i32 51)
ret i32 0
379: ; preds = %0, %379
%380 = phi i64 [ %386, %379 ], [ %32, %0 ]
%381 = getelementptr inbounds float, float* %4, i64 %380
%382 = load float, float* %381
%383 = getelementptr inbounds i64, i64* %2, i64 %380
%384 = load i64, i64* %383
%385 = getelementptr inbounds float, float* %10, i64 %384
store float %382, float* %385
%386 = add i64 %380, 1
%387 = icmp ugt i64 %386, %35
br i1 %387, label %37, label %379
}