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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ free_matrix(float **, int, int, int, int);
int /*<<< orphan*/ free_vector(float *, int, int);
float **matrix(int, int, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ tred2(float **, int, float *, float *);
float *vector(int, int);
int main(void) {
  int i, j, k, l, m;
  float *d, *e, **a, **f;
  static float c[10][10] = {
      5.0,  4.3, 3.0, 2.0,  1.0,  0.0,  -1.0, -2.0, -3.0, -4.0, 4.3,  5.1,
      4.0,  3.0, 2.0, 1.0,  0.0,  -1.0, -2.0, -3.0, 3.0,  4.0,  5.0,  4.0,
      3.0,  2.0, 1.0, 0.0,  -1.0, -2.0, 2.0,  3.0,  4.0,  5.0,  4.0,  3.0,
      2.0,  1.0, 0.0, -1.0, 1.0,  2.0,  3.0,  4.0,  5.0,  4.0,  3.0,  2.0,
      1.0,  0.0, 0.0, 1.0,  2.0,  3.0,  4.0,  5.0,  4.0,  3.0,  2.0,  1.0,
      -1.0, 0.0, 1.0, 2.0,  3.0,  4.0,  5.0,  4.0,  3.0,  2.0,  -2.0, -1.0,
      0.0,  1.0, 2.0, 3.0,  4.0,  5.0,  4.0,  3.0,  -3.0, -2.0, -1.0, 0.0,
      1.0,  2.0, 3.0, 4.0,  5.0,  4.0,  -4.0, -3.0, -2.0, -1.0, 0.0,  1.0,
      2.0,  3.0, 4.0, 5.0};
  d = vector(1, 10);
  e = vector(1, 10);
  a = matrix(1, 10, 1, 10);
  f = matrix(1, 10, 1, 10);
  for (i = 1; i <= 10; i++)
    for (j = 1; j <= 10; j++)
      a[i][j] = c[i - 1][j - 1];
  tred2(a, 10, d, e);
  printf("diagonal elements\n");
  for (i = 1; i <= 10; i++) {
    printf("%12.6f", d[i]);
    if ((i % 5) == 0)
      printf("\n");
  }
  printf("off-diagonal elements\n");
  for (i = 2; i <= 10; i++) {
    printf("%12.6f", e[i]);
    if ((i % 5) == 0)
      printf("\n");
  }
  for (j = 1; j <= 10; j++) {
    for (k = 1; k <= 10; k++) {
      f[j][k] = 0.0;
      for (l = 1; l <= 10; l++) {
        for (m = 1; m <= 10; m++)
          f[j][k] += a[l][j] * c[l - 1][m - 1] * a[m][k];
      }
    }
  }
  printf("tridiagonal matrix\n");
  for (i = 1; i <= 10; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", f[i][j]);
    printf("\n");
  }
  free_matrix(f, 1, 10, 1, 10);
  free_matrix(a, 1, 10, 1, 10);
  free_vector(e, 1, 10);
  free_vector(d, 1, 10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0xa,%esi
call   1070 <vector@plt>
mov    %rax,-0x20(%rbp)
mov    $0x1,%edi
mov    $0xa,%esi
call   1070 <vector@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%edx
mov    $0xa,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1060 <matrix@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edx
mov    $0xa,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1060 <matrix@plt>
mov    %rax,-0x38(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1240 <main+0xe0>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     122d <main+0xcd>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0x2e6b(%rip),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11db <main+0x7b>
jmp    1232 <main+0xd2>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11ca <main+0x6a>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    $0xa,%esi
call   1080 <tred2@plt>
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     12c9 <main+0x169>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd73(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x156>
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12bb <main+0x15b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    126b <main+0x10b>
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     133c <main+0x1dc>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd00(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1329 <main+0x1c9>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    132e <main+0x1ce>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12de <main+0x17e>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     1450 <main+0x2f0>
movl   $0x1,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jg     143d <main+0x2dd>
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
movl   $0x1,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jg     142a <main+0x2ca>
movl   $0x1,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
jg     1417 <main+0x2b7>
mov    -0x30(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0x2ca3(%rip),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    138e <main+0x22e>
jmp    141c <main+0x2bc>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    137d <main+0x21d>
jmp    142f <main+0x2cf>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1354 <main+0x1f4>
jmp    1442 <main+0x2e2>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1343 <main+0x1e3>
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     14d1 <main+0x371>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     14b5 <main+0x355>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb92(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1476 <main+0x316>
lea    0xb60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1465 <main+0x305>
mov    -0x38(%rbp),%rdi
mov    $0x1,%ecx
mov    $0xa,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1030 <free_matrix@plt>
mov    -0x30(%rbp),%rdi
mov    $0x1,%ecx
mov    $0xa,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1030 <free_matrix@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   1050 <free_vector@plt>
mov    -0x20(%rbp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   1050 <free_vector@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
sub    $0x68,%rsp
mov    $0x1,%edi
mov    $0xa,%esi
call   1090 <vector@plt>
mov    %rax,%rbx
mov    $0x1,%edi
mov    $0xa,%esi
call   1090 <vector@plt>
mov    %rax,%r14
mov    $0x1,%edi
mov    $0xa,%esi
mov    $0x1,%edx
mov    $0xa,%ecx
call   1080 <matrix@plt>
mov    %rax,%rbp
mov    $0x1,%edi
mov    $0xa,%esi
mov    $0x1,%edx
mov    $0xa,%ecx
call   1080 <matrix@plt>
mov    %rax,%r15
mov    0x8(%rbp),%rax
movaps 0xe0b(%rip),%xmm0
movups %xmm0,0x4(%rax)
movaps 0xe10(%rip),%xmm0
movups %xmm0,0x14(%rax)
mov    0xe15(%rip),%rcx
mov    %rcx,0x24(%rax)
mov    0x10(%rbp),%rax
mov    0xe2e(%rip),%rcx
mov    %rcx,0x24(%rax)
movups 0xe03(%rip),%xmm0
movups %xmm0,0x4(%rax)
movups 0xe08(%rip),%xmm0
movups %xmm0,0x14(%rax)
mov    0x18(%rbp),%rax
movaps 0xe11(%rip),%xmm0
movups %xmm0,0x4(%rax)
movaps 0xe16(%rip),%xmm0
movups %xmm0,0x14(%rax)
mov    0xe1b(%rip),%rcx
mov    %rcx,0x24(%rax)
mov    0x20(%rbp),%rax
movups 0xe14(%rip),%xmm0
movups %xmm0,0x4(%rax)
movups 0xe19(%rip),%xmm0
movups %xmm0,0x14(%rax)
mov    0xe1e(%rip),%rcx
mov    %rcx,0x24(%rax)
mov    0x28(%rbp),%rax
movaps 0xe17(%rip),%xmm0
movups %xmm0,0x4(%rax)
movaps 0xe1c(%rip),%xmm0
movups %xmm0,0x14(%rax)
mov    0xe21(%rip),%rcx
mov    %rcx,0x24(%rax)
mov    0x30(%rbp),%rax
mov    0xe3a(%rip),%rcx
mov    %rcx,0x24(%rax)
movups 0xe1f(%rip),%xmm0
movups %xmm0,0x14(%rax)
movups 0xe04(%rip),%xmm0
movups %xmm0,0x4(%rax)
mov    0x38(%rbp),%rax
mov    0xe3d(%rip),%rcx
mov    %rcx,0x24(%rax)
movaps 0xe22(%rip),%xmm0
movups %xmm0,0x14(%rax)
movaps 0xe07(%rip),%xmm0
movups %xmm0,0x4(%rax)
mov    0x40(%rbp),%rax
movups 0xe30(%rip),%xmm0
movups %xmm0,0x14(%rax)
mov    0xe35(%rip),%rcx
mov    %rcx,0x24(%rax)
movups 0xe0a(%rip),%xmm0
movups %xmm0,0x4(%rax)
mov    0x48(%rbp),%rax
mov    0xe43(%rip),%rcx
mov    %rcx,0x24(%rax)
movaps 0xe28(%rip),%xmm0
movups %xmm0,0x14(%rax)
movaps 0xe0d(%rip),%xmm0
movups %xmm0,0x4(%rax)
mov    0x50(%rbp),%rax
mov    0xe46(%rip),%rcx
mov    %rcx,0x24(%rax)
movups 0xe2b(%rip),%xmm0
movups %xmm0,0x14(%rax)
movups 0xe10(%rip),%xmm0
movups %xmm0,0x4(%rax)
mov    %rbp,%rdi
mov    $0xa,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
call   10a0 <tred2@plt>
lea    0xe2b(%rip),%rdi
call   1040 <puts@plt>
movss  0x4(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe05(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x8(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xc(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x10(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x14(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x18(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x1c(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x20(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x24(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,0x10(%rsp)
movss  0x28(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd3d(%rip),%rdi
call   1040 <puts@plt>
movss  0x8(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xc(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x10(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x14(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x18(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x1c(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x20(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x24(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,0x8(%rsp)
movss  0x28(%r14),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rbp),%rax
mov    %rax,0x60(%rsp)
mov    0x10(%rbp),%rax
mov    %rax,0x58(%rsp)
mov    0x18(%rbp),%rax
mov    %rax,0x50(%rsp)
mov    0x20(%rbp),%rax
mov    %rax,0x48(%rsp)
mov    0x28(%rbp),%rax
mov    %rax,0x40(%rsp)
mov    0x30(%rbp),%rax
mov    %rax,0x38(%rsp)
mov    0x38(%rbp),%rax
mov    %rax,0x30(%rsp)
mov    0x40(%rbp),%rax
mov    %rax,0x28(%rsp)
mov    0x48(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    0x50(%rbp),%rbx
mov    $0x1,%esi
mov    %r15,0x18(%rsp)
mov    %rbp,(%rsp)
mov    0x50(%rsp),%r9
mov    0x48(%rsp),%r10
mov    0x40(%rsp),%rax
mov    0x38(%rsp),%rcx
mov    0x30(%rsp),%rdx
mov    0x28(%rsp),%r11
mov    0x20(%rsp),%rdi
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rsi,8),%r15
mov    $0x1,%r12d
nopw   0x0(%rax,%rax,1)
movl   $0x0,(%r15,%r12,4)
mov    $0x1,%r13d
xorps  %xmm0,%xmm0
lea    0xa3c(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%rsp),%rbp
mov    0x0(%rbp,%r13,8),%r8
movss  (%r8,%rsi,4),%xmm1
mulss  -0x24(%r14),%xmm1
mov    0x60(%rsp),%rbp
mulss  0x0(%rbp,%r12,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm0
mulss  -0x20(%r14),%xmm0
mov    0x58(%rsp),%rbp
mulss  0x0(%rbp,%r12,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm1
mulss  -0x1c(%r14),%xmm1
mulss  (%r9,%r12,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm0
mulss  -0x18(%r14),%xmm0
mulss  (%r10,%r12,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm1
mulss  -0x14(%r14),%xmm1
mulss  (%rax,%r12,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm0
mulss  -0x10(%r14),%xmm0
mulss  (%rcx,%r12,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm1
mulss  -0xc(%r14),%xmm1
mulss  (%rdx,%r12,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm0
mulss  -0x8(%r14),%xmm0
mulss  (%r11,%r12,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm1
mulss  -0x4(%r14),%xmm1
mulss  (%rdi,%r12,4),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%r15,%r12,4)
movss  (%r8,%rsi,4),%xmm0
mulss  (%r14),%xmm0
mulss  (%rbx,%r12,4),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%r15,%r12,4)
add    $0x1,%r13
add    $0x28,%r14
cmp    $0xb,%r13
jne    15f0 <main+0x470>
add    $0x1,%r12
cmp    $0xb,%r12
jne    15d0 <main+0x450>
add    $0x1,%rsi
cmp    $0xb,%rsi
mov    0x18(%rsp),%r15
jne    15c0 <main+0x440>
lea    0xa5d(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebx
lea    0xa30(%rip),%r13
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x18(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x1c(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x20(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x24(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    (%r15,%rbx,8),%rax
movss  0x28(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0xb,%rbx
jne    1770 <main+0x5f0>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x1,%ecx
mov    $0xa,%r8d
call   1050 <free_matrix@plt>
mov    (%rsp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x1,%ecx
mov    $0xa,%r8d
call   1050 <free_matrix@plt>
mov    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   1070 <free_vector@plt>
mov    0x10(%rsp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   1070 <free_vector@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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