#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 */
struct timeval {
  double tv_sec;
  double tv_usec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void *calloc(int, int);
int /*<<< orphan*/ cfeast_hcsrev(char *, int *, float *, int *, int *, int *,
                                 float *, int *, float *, float *, int *,
                                 float *, float *, int *, float *, int *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feastinit(int *);
int /*<<< orphan*/ *fopen(char *, char *);
int fscanf(int /*<<< orphan*/ *, char *, int *, int *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int feastparam[64];
  float epsout;
  int loop;
  char UPLO = 'F';
  FILE *fp;
  char name[] = "../../system2";
  int N, nnz;
  float *sa;
  int *isa, *jsa;
  struct timeval t1, t2;
  int i, k, err;
  int M0, M, info;
  float Emin, Emax, trace;
  float *X;
  float *E, *res;
  fp = fopen(name, "r");
  err = fscanf(fp, "%d%d\n", &N, &nnz);
  sa = calloc(2 * nnz, sizeof(float));
  isa = calloc(N + 1, sizeof(int));
  jsa = calloc(nnz, sizeof(int));
  for (i = 0; i <= N; i++) {
    *(isa + i) = 0;
  };
  *(isa) = 1;
  for (k = 0; k <= nnz - 1; k++) {
    err = fscanf(fp, "%d%d%f%f\n", &i, jsa + k, sa + 2 * k, sa + 2 * k + 1);
    *(isa + i) = *(isa + i) + 1;
  };
  fclose(fp);
  for (i = 1; i <= N; i++) {
    *(isa + i) = *(isa + i) + *(isa + i - 1);
  };
  printf("sparse matrix -system2- size %.d\n", N);
  printf("nnz %d \n", nnz);
  gettimeofday(&t1, NULL);
  Emin = (float)-0.35;
  Emax = (float)0.23;
  M0 = 40;
  E = calloc(M0, sizeof(float));
  res = calloc(M0, sizeof(float));
  X = calloc(2 * N * M0, sizeof(float));
  feastinit(feastparam);
  feastparam[0] = 1;
  cfeast_hcsrev(&UPLO, &N, sa, isa, jsa, feastparam, &epsout, &loop, &Emin,
                &Emax, &M0, E, X, &M, res, &info);
  gettimeofday(&t2, NULL);
  printf("FEAST OUTPUT INFO %d\n", info);
  if (info == 0) {
    printf("*************************************************\n");
    printf("************** REPORT ***************************\n");
    printf("*************************************************\n");
    printf("SIMULATION TIME %f\n", (t2.tv_sec - t1.tv_sec) * 1.0 +
                                       (t2.tv_usec - t1.tv_usec) * 0.000001);
    printf("# Search interval [Emin,Emax] %f %f\n", Emin, Emax);
    printf("# mode found/subspace %d %d \n", M, M0);
    printf("# iterations %d \n", loop);
    trace = (float)0.0;
    for (i = 0; i <= M - 1; i = i + 1) {
      trace = trace + *(E + i);
    }
    printf("TRACE %f\n", trace);
    printf("Relative error on the Trace %f\n", epsout);
    printf("Eigenvalues/Residuals\n");
    for (i = 0; i <= M - 1; i = i + 1) {
      printf("   %d %f %f\n", i, *(E + i), *(res + i));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
movl   $0x0,-0x2c(%rbp)
movb   $0x46,-0x139(%rbp)
mov    0xe67(%rip),%rax
mov    %rax,-0x156(%rbp)
mov    0xe62(%rip),%eax
mov    %eax,-0x14e(%rbp)
mov    0xe59(%rip),%ax
mov    %ax,-0x14a(%rbp)
lea    -0x156(%rbp),%rdi
lea    0xe46(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x148(%rbp)
mov    -0x148(%rbp),%rdi
lea    0xe2e(%rip),%rsi
lea    -0x15c(%rbp),%rdx
lea    -0x160(%rbp),%rcx
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    %eax,-0x1a4(%rbp)
mov    -0x160(%rbp),%edi
shl    $0x1,%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x168(%rbp)
mov    -0x15c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x170(%rbp)
mov    -0x160(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x178(%rbp)
movl   $0x0,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
cmp    -0x15c(%rbp),%eax
jg     129d <main+0x11d>
mov    -0x170(%rbp),%rax
movslq -0x19c(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    1262 <main+0xe2>
mov    -0x170(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x0,-0x1a0(%rbp)
mov    -0x1a0(%rbp),%eax
mov    -0x160(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1371 <main+0x1f1>
mov    -0x148(%rbp),%rdi
mov    -0x178(%rbp),%rcx
movslq -0x1a0(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x168(%rbp),%r8
mov    -0x1a0(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%r8
mov    -0x168(%rbp),%r9
mov    -0x1a0(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%r9
add    $0x4,%r9
lea    0xd02(%rip),%rsi
lea    -0x19c(%rbp),%rdx
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    %eax,-0x1a4(%rbp)
mov    -0x170(%rbp),%rax
movslq -0x19c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    -0x170(%rbp),%rax
movslq -0x19c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a0(%rbp)
jmp    12b4 <main+0x134>
mov    -0x148(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
cmp    -0x15c(%rbp),%eax
jg     13e1 <main+0x261>
mov    -0x170(%rbp),%rax
movslq -0x19c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x170(%rbp),%rax
movslq -0x19c(%rbp),%rcx
add    -0x4(%rax,%rcx,4),%edx
mov    -0x170(%rbp),%rax
movslq -0x19c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    1387 <main+0x207>
mov    -0x15c(%rbp),%esi
lea    0xc42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x160(%rbp),%esi
lea    0xc50(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x188(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <gettimeofday@plt>
movss  0xbe3(%rip),%xmm0
movss  %xmm0,-0x1b4(%rbp)
ff
movss  0xbcf(%rip),%xmm0
movss  %xmm0,-0x1b8(%rbp)
ff
movl   $0x28,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d0(%rbp)
mov    -0x1a8(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d8(%rbp)
mov    -0x15c(%rbp),%edi
shl    $0x1,%edi
imul   -0x1a8(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1c8(%rbp)
lea    -0x130(%rbp),%rdi
call   1060 <feastinit@plt>
movl   $0x1,-0x130(%rbp)
mov    -0x168(%rbp),%rdx
mov    -0x170(%rbp),%rcx
mov    -0x178(%rbp),%r8
lea    -0x130(%rbp),%r9
mov    -0x1d0(%rbp),%r14
mov    -0x1c8(%rbp),%rbx
mov    -0x1d8(%rbp),%r10
lea    -0x139(%rbp),%rdi
lea    -0x15c(%rbp),%rsi
lea    -0x134(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
lea    -0x138(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
lea    -0x1b4(%rbp),%r13
lea    -0x1b8(%rbp),%r12
lea    -0x1a8(%rbp),%r15
lea    -0x1ac(%rbp),%r11
lea    -0x1b0(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x1f0(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x1e8(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x1e0(%rbp),%rax
mov    %r13,0x10(%rsp)
mov    %r12,0x18(%rsp)
mov    %r15,0x20(%rsp)
mov    %r14,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   1030 <cfeast_hcsrev@plt>
lea    -0x198(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <gettimeofday@plt>
mov    -0x1b0(%rbp),%esi
lea    0xac6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1b0(%rbp)
jne    1786 <main+0x606>
lea    0xac1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xae6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xaa5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  -0x198(%rbp),%xmm0
ff
subsd  -0x188(%rbp),%xmm0
ff
movsd  -0x190(%rbp),%xmm1
ff
subsd  -0x180(%rbp),%xmm1
ff
movsd  0xa0d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
lea    0xacd(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x1b4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x1b8(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
lea    0xabb(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x1ac(%rbp),%esi
mov    -0x1a8(%rbp),%edx
lea    0xac6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x138(%rbp),%esi
lea    0xad0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1bc(%rbp)
ff
movl   $0x0,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
mov    -0x1ac(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     16c8 <main+0x548>
movss  -0x1bc(%rbp),%xmm0
ff
mov    -0x1d0(%rbp),%rax
movslq -0x19c(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x1bc(%rbp)
ff
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    167a <main+0x4fa>
movss  -0x1bc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa65(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x134(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa55(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xa67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
mov    -0x1ac(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1781 <main+0x601>
mov    -0x19c(%rbp),%esi
mov    -0x1d0(%rbp),%rax
movslq -0x19c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x1d8(%rbp),%rax
movslq -0x19c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xa1b(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    1714 <main+0x594>
jmp    1786 <main+0x606>
xor    %eax,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x178,%rsp
movb   $0x46,0xb(%rsp)
movabs $0x326d6574737973,%rax
mov    %rax,0x46(%rsp)
movabs $0x79732f2e2e2f2e2e,%rax
2f 73 79
mov    %rax,0x40(%rsp)
lea    0xe3b(%rip),%rsi
lea    0x40(%rsp),%rdi
call   10c0 <fopen@plt>
mov    %rax,%r14
lea    0xe29(%rip),%rsi
xor    %r15d,%r15d
lea    0x10(%rsp),%rdx
lea    0x14(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    0x14(%rsp),%r12d
lea    (%r12,%r12,1),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,0x38(%rsp)
mov    0x10(%rsp),%ebp
lea    0x1(%rbp),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbx
mov    %r12d,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,0x30(%rsp)
test   %ebp,%ebp
js     125e <main+0xbe>
lea    0x4(,%rbp,4),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <memset@plt>
lea    0x1(%rbp),%r15d
mov    %r15d,0x4(%rsp)
movl   $0x1,(%rbx)
test   %r12d,%r12d
jle    12bd <main+0x11d>
lea    0x4(%rsp),%rbp
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%r13
xor    %r12d,%r12d
lea    0x4(%r15),%r9
mov    %r14,%rdi
lea    0xd90(%rip),%rsi
mov    %rbp,%rdx
mov    %r13,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   10a0 <fscanf@plt>
movslq 0x4(%rsp),%rax
addl   $0x1,(%rbx,%rax,4)
add    $0x1,%r12
movslq 0x14(%rsp),%rax
add    $0x4,%r13
add    $0x8,%r15
cmp    %rax,%r12
jl     1280 <main+0xe0>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    0x10(%rsp),%esi
test   %esi,%esi
jle    1341 <main+0x1a1>
mov    (%rbx),%eax
lea    -0x1(%rsi),%rdi
mov    %esi,%ecx
and    $0x3,%ecx
mov    $0x1,%edx
cmp    $0x3,%rdi
jb     131d <main+0x17d>
mov    %esi,%edi
and    $0xfffffffc,%edi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
add    0x4(%rbx,%rdx,4),%eax
mov    %eax,0x4(%rbx,%rdx,4)
add    0x8(%rbx,%rdx,4),%eax
mov    %eax,0x8(%rbx,%rdx,4)
add    0xc(%rbx,%rdx,4),%eax
mov    %eax,0xc(%rbx,%rdx,4)
add    0x10(%rbx,%rdx,4),%eax
mov    %eax,0x10(%rbx,%rdx,4)
add    $0x4,%rdx
cmp    %rdx,%rdi
jne    12f0 <main+0x150>
add    $0x1,%rdx
lea    0x1(%rsi),%edi
test   %rcx,%rcx
je     1346 <main+0x1a6>
lea    (%rbx,%rdx,4),%rdx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
add    (%rdx,%rbp,4),%eax
mov    %eax,(%rdx,%rbp,4)
add    $0x1,%rbp
cmp    %rbp,%rcx
jne    1330 <main+0x190>
jmp    1346 <main+0x1a6>
mov    $0x1,%edi
mov    %edi,0x4(%rsp)
lea    0xcd7(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xce7(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x60(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
movl   $0xbeb33333,0x1c(%rsp)
be
movl   $0x3e6b851f,0x18(%rsp)
3e
movl   $0x28,0x24(%rsp)
mov    $0x28,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r12
mov    $0x28,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r14
mov    0x10(%rsp),%eax
shl    $0x4,%eax
lea    (%rax,%rax,4),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbp
lea    0x70(%rsp),%r15
mov    %r15,%rdi
call   1070 <feastinit@plt>
movl   $0x1,0x70(%rsp)
lea    0x20(%rsp),%rax
lea    0xc(%rsp),%r10
lea    0x24(%rsp),%r11
lea    0x18(%rsp),%r13
lea    0xb(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    0x38(%rsp),%rdx
mov    %rbx,%rcx
mov    0x30(%rsp),%r8
mov    %r15,%r9
push   %rax
push   %r14
push   %r10
push   %rbp
push   %r12
push   %r11
push   %r13
lea    0x54(%rsp),%rax
push   %rax
lea    0x68(%rsp),%rax
push   %rax
lea    0x74(%rsp),%rax
push   %rax
call   1030 <cfeast_hcsrev@plt>
add    $0x50,%rsp
lea    0x50(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
mov    0x20(%rsp),%esi
lea    0xc09(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,0x20(%rsp)
jne    1612 <main+0x472>
lea    0xcd8(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xc97(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
movapd 0x50(%rsp),%xmm1
subpd  0x60(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  0xb65(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xbc3(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x18(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xbb5(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x24(%rsp),%edx
lea    0xbc4(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%rsp),%esi
lea    0xbd0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    1515 <main+0x375>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x7,%ecx
cmp    $0x7,%rdx
jae    151c <main+0x37c>
xorps  %xmm0,%xmm0
xor    %edx,%edx
jmp    1570 <main+0x3d0>
xorps  %xmm0,%xmm0
xor    %eax,%eax
jmp    1592 <main+0x3f2>
mov    %eax,%esi
and    $0xfffffff8,%esi
xorps  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
addss  (%r12,%rdx,4),%xmm0
addss  0x4(%r12,%rdx,4),%xmm0
addss  0x8(%r12,%rdx,4),%xmm0
addss  0xc(%r12,%rdx,4),%xmm0
addss  0x10(%r12,%rdx,4),%xmm0
addss  0x14(%r12,%rdx,4),%xmm0
addss  0x18(%r12,%rdx,4),%xmm0
addss  0x1c(%r12,%rdx,4),%xmm0
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    1530 <main+0x390>
test   %rcx,%rcx
je     158e <main+0x3ee>
lea    (%r12,%rdx,4),%rdx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
addss  (%rdx,%rsi,4),%xmm0
add    $0x1,%rsi
cmp    %rsi,%rcx
jne    1580 <main+0x3e0>
cvtss2sd %xmm0,%xmm0
mov    %eax,0x4(%rsp)
lea    0xb35(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb27(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xbaa(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,0x4(%rsp)
cmpl   $0x0,0xc(%rsp)
jle    1612 <main+0x472>
xor    %eax,%eax
lea    0xb1c(%rip),%rbx
movslq %eax,%rsi
movss  (%r12,%rsi,4),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%r14,%rsi,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x4(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x4(%rsp)
cmp    0xc(%rsp),%eax
jl     15e0 <main+0x440>
xor    %eax,%eax
add    $0x178,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
@__const.main.name = [14 x i8] c"../../system2\00"
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"%d%d\0A\00"
@.str.2 = [10 x i8] c"%d%d%f%f\0A\00"
@.str.3 = [34 x i8] c"sparse matrix -system2- size %.d\0A\00"
@.str.4 = [9 x i8] c"nnz %d \0A\00"
@.str.5 = [22 x i8] c"FEAST OUTPUT INFO %d\0A\00"
@.str.6 = [51 x i8] c"*************************************************\0A\00"
@.str.7 = [51 x i8] c"************** REPORT ***************************\0A\00"
@.str.8 = [20 x i8] c"SIMULATION TIME %f\0A\00"
@.str.9 = [37 x i8] c"# Search interval [Emin,Emax] %f %f\0A\00"
@.str.10 = [30 x i8] c"# mode found/subspace %d %d \0A\00"
@.str.11 = [18 x i8] c"# iterations %d \0A\00"
@.str.12 = [10 x i8] c"TRACE %f\0A\00"
@.str.13 = [32 x i8] c"Relative error on the Trace %f\0A\00"
@.str.14 = [23 x i8] c"Eigenvalues/Residuals\0A\00"
@.str.15 = [13 x i8] c" %d %f %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x i32]
%3 = alloca float
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32*
%7 = alloca [14 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca float*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca %struct.timeval
%14 = alloca %struct.timeval
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float*
%25 = alloca float*
%26 = alloca float*
store i32 0, i32* %1
store i8 70, i8* %5
%27 = bitcast [14 x i8]* %7 to i8*
%28 = getelementptr inbounds [14 x i8], [14 x i8]* %7, i64 0, i64 0
%29 = call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %29, i32** %6
%30 = load i32*, i32** %6
%31 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %30, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %8, i32* %9)
store i32 %31, i32* %17
%32 = load i32, i32* %9
%33 = mul nsw i32 2, %32
%34 = call i8* @calloc(i32 %33, i32 4)
%35 = bitcast i8* %34 to float*
store float* %35, float** %10
%36 = load i32, i32* %8
%37 = add nsw i32 %36, 1
%38 = call i8* @calloc(i32 %37, i32 4)
%39 = bitcast i8* %38 to i32*
store i32* %39, i32** %11
%40 = load i32, i32* %9
%41 = call i8* @calloc(i32 %40, i32 4)
%42 = bitcast i8* %41 to i32*
store i32* %42, i32** %12
store i32 0, i32* %15
br label %43
43: ; preds = %52, %0
%44 = load i32, i32* %15
%45 = load i32, i32* %8
%46 = icmp sle i32 %44, %45
br i1 %46, label %47, label %55
47: ; preds = %43
%48 = load i32*, i32** %11
%49 = load i32, i32* %15
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, i32* %48, i64 %50
store i32 0, i32* %51
br label %52
52: ; preds = %47
%53 = load i32, i32* %15
%54 = add nsw i32 %53, 1
store i32 %54, i32* %15
br label %43
55: ; preds = %43
%56 = load i32*, i32** %11
store i32 1, i32* %56
store i32 0, i32* %16
br label %57
57: ; preds = %90, %55
%58 = load i32, i32* %16
%59 = load i32, i32* %9
%60 = sub nsw i32 %59, 1
%61 = icmp sle i32 %58, %60
br i1 %61, label %62, label %93
62: ; preds = %57
%63 = load i32*, i32** %6
%64 = load i32*, i32** %12
%65 = load i32, i32* %16
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, i32* %64, i64 %66
%68 = load float*, float** %10
%69 = load i32, i32* %16
%70 = mul nsw i32 2, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, float* %68, i64 %71
%73 = load float*, float** %10
%74 = load i32, i32* %16
%75 = mul nsw i32 2, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, float* %73, i64 %76
%78 = getelementptr inbounds float, float* %77, i64 1
%79 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %63, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %15, i32* %67, float* %72, float* %78)
store i32 %79, i32* %17
%80 = load i32*, i32** %11
%81 = load i32, i32* %15
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, i32* %80, i64 %82
%84 = load i32, i32* %83
%85 = add nsw i32 %84, 1
%86 = load i32*, i32** %11
%87 = load i32, i32* %15
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, i32* %86, i64 %88
store i32 %85, i32* %89
br label %90
90: ; preds = %62
%91 = load i32, i32* %16
%92 = add nsw i32 %91, 1
store i32 %92, i32* %16
br label %57
93: ; preds = %57
%94 = load i32*, i32** %6
%95 = call i32 @fclose(i32* %94)
store i32 1, i32* %15
br label %96
96: ; preds = %117, %93
%97 = load i32, i32* %15
%98 = load i32, i32* %8
%99 = icmp sle i32 %97, %98
br i1 %99, label %100, label %120
100: ; preds = %96
%101 = load i32*, i32** %11
%102 = load i32, i32* %15
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, i32* %101, i64 %103
%105 = load i32, i32* %104
%106 = load i32*, i32** %11
%107 = load i32, i32* %15
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, i32* %106, i64 %108
%110 = getelementptr inbounds i32, i32* %109, i64 -1
%111 = load i32, i32* %110
%112 = add nsw i32 %105, %111
%113 = load i32*, i32** %11
%114 = load i32, i32* %15
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, i32* %113, i64 %115
store i32 %112, i32* %116
br label %117
117: ; preds = %100
%118 = load i32, i32* %15
%119 = add nsw i32 %118, 1
store i32 %119, i32* %15
br label %96
120: ; preds = %96
%121 = load i32, i32* %8
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %9
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %123)
%125 = call i32 @gettimeofday(%struct.timeval* %13, i32* null)
store float 0xBFD6666660000000, float* %21
store float 0x3FCD70A3E0000000, float* %22
store i32 40, i32* %18
%126 = load i32, i32* %18
%127 = call i8* @calloc(i32 %126, i32 4)
%128 = bitcast i8* %127 to float*
store float* %128, float** %25
%129 = load i32, i32* %18
%130 = call i8* @calloc(i32 %129, i32 4)
%131 = bitcast i8* %130 to float*
store float* %131, float** %26
%132 = load i32, i32* %8
%133 = mul nsw i32 2, %132
%134 = load i32, i32* %18
%135 = mul nsw i32 %133, %134
%136 = call i8* @calloc(i32 %135, i32 4)
%137 = bitcast i8* %136 to float*
store float* %137, float** %24
%138 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%139 = call i32 @feastinit(i32* %138)
%140 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
store i32 1, i32* %140
%141 = load float*, float** %10
%142 = load i32*, i32** %11
%143 = load i32*, i32** %12
%144 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%145 = load float*, float** %25
%146 = load float*, float** %24
%147 = load float*, float** %26
%148 = call i32 @cfeast_hcsrev(i8* %5, i32* %8, float* %141, i32* %142, i32* %143, i32* %144, float* %3, i32* %4, float* %21, float* %22, i32* %18, float* %145, float* %146, i32* %19, float* %147, i32* %20)
%149 = call i32 @gettimeofday(%struct.timeval* %14, i32* null)
%150 = load i32, i32* %20
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %150)
%152 = load i32, i32* %20
%153 = icmp eq i32 %152, 0
br i1 %153, label %154, label %229
154: ; preds = %120
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%158 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 0
%159 = load double, double* %158
%160 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 0
%161 = load double, double* %160
%162 = fsub double %159, %161
%163 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 1
%164 = load double, double* %163
%165 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 1
%166 = load double, double* %165
%167 = fsub double %164, %166
%168 = fmul double %167, 0x3EB0C6F7A0B5ED8D
%169 = call double @llvm.fmuladd.f64(double %162, double 1.000000e+00, double %168)
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %169)
%171 = load float, float* %21
%172 = fpext float %171 to double
%173 = load float, float* %22
%174 = fpext float %173 to double
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), double %172, double %174)
%176 = load i32, i32* %19
%177 = load i32, i32* %18
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %176, i32 %177)
%179 = load i32, i32* %4
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %179)
store float 0.000000e+00, float* %23
store i32 0, i32* %15
br label %181
181: ; preds = %194, %154
%182 = load i32, i32* %15
%183 = load i32, i32* %19
%184 = sub nsw i32 %183, 1
%185 = icmp sle i32 %182, %184
br i1 %185, label %186, label %197
186: ; preds = %181
%187 = load float, float* %23
%188 = load float*, float** %25
%189 = load i32, i32* %15
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds float, float* %188, i64 %190
%192 = load float, float* %191
%193 = fadd float %187, %192
store float %193, float* %23
br label %194
194: ; preds = %186
%195 = load i32, i32* %15
%196 = add nsw i32 %195, 1
store i32 %196, i32* %15
br label %181
197: ; preds = %181
%198 = load float, float* %23
%199 = fpext float %198 to double
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double %199)
%201 = load float, float* %3
%202 = fpext float %201 to double
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), double %202)
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %15
br label %205
205: ; preds = %225, %197
%206 = load i32, i32* %15
%207 = load i32, i32* %19
%208 = sub nsw i32 %207, 1
%209 = icmp sle i32 %206, %208
br i1 %209, label %210, label %228
210: ; preds = %205
%211 = load i32, i32* %15
%212 = load float*, float** %25
%213 = load i32, i32* %15
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds float, float* %212, i64 %214
%216 = load float, float* %215
%217 = fpext float %216 to double
%218 = load float*, float** %26
%219 = load i32, i32* %15
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds float, float* %218, i64 %220
%222 = load float, float* %221
%223 = fpext float %222 to double
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %211, double %217, double %223)
br label %225
225: ; preds = %210
%226 = load i32, i32* %15
%227 = add nsw i32 %226, 1
store i32 %227, i32* %15
br label %205
228: ; preds = %205
br label %229
229: ; preds = %228, %120
ret i32 0
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
@__const.main.name = [14 x i8] c"../../system2\00"
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"%d%d\0A\00"
@.str.2 = [10 x i8] c"%d%d%f%f\0A\00"
@.str.3 = [34 x i8] c"sparse matrix -system2- size %.d\0A\00"
@.str.4 = [9 x i8] c"nnz %d \0A\00"
@.str.5 = [22 x i8] c"FEAST OUTPUT INFO %d\0A\00"
@.str.8 = [20 x i8] c"SIMULATION TIME %f\0A\00"
@.str.9 = [37 x i8] c"# Search interval [Emin,Emax] %f %f\0A\00"
@.str.10 = [30 x i8] c"# mode found/subspace %d %d \0A\00"
@.str.11 = [18 x i8] c"# iterations %d \0A\00"
@.str.12 = [10 x i8] c"TRACE %f\0A\00"
@.str.13 = [32 x i8] c"Relative error on the Trace %f\0A\00"
@.str.15 = [13 x i8] c" %d %f %f\0A\00"
@str.16 = [50 x i8] c"************** REPORT ***************************\00"
@str.17 = [50 x i8] c"*************************************************\00"
@str.18 = [22 x i8] c"Eigenvalues/Residuals\00"
define i32 @main() {
%1 = alloca [64 x i32]
%2 = alloca float
%3 = alloca i32
%4 = alloca i8
%5 = alloca [14 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca <2 x double>
%9 = bitcast <2 x double>* %8 to %struct.timeval*
%10 = alloca <2 x double>
%11 = bitcast <2 x double>* %10 to %struct.timeval*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca float
%17 = alloca float
%18 = bitcast [64 x i32]* %1 to i8*
%19 = bitcast float* %2 to i8*
%20 = bitcast i32* %3 to i8*
store i8 70, i8* %4
%21 = getelementptr inbounds [14 x i8], [14 x i8]* %5, i64 0, i64 0
%22 = bitcast i32* %6 to i8*
%23 = bitcast i32* %7 to i8*
%24 = bitcast <2 x double>* %8 to i8*
%25 = bitcast <2 x double>* %10 to i8*
%26 = bitcast i32* %12 to i8*
%27 = bitcast i32* %13 to i8*
%28 = bitcast i32* %14 to i8*
%29 = bitcast i32* %15 to i8*
%30 = bitcast float* %16 to i8*
%31 = bitcast float* %17 to i8*
%32 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%33 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %6, i32* %7)
%34 = load i32, i32* %7
%35 = shl nsw i32 %34, 1
%36 = call i8* @calloc(i32 %35, i32 4)
%37 = bitcast i8* %36 to float*
%38 = load i32, i32* %6
%39 = add i32 %38, 1
%40 = call i8* @calloc(i32 %39, i32 4)
%41 = bitcast i8* %40 to i32*
%42 = call i8* @calloc(i32 %34, i32 4)
%43 = bitcast i8* %42 to i32*
%44 = icmp slt i32 %38, 0
br i1 %44, label %50, label %45
45: ; preds = %0
%46 = zext i32 %38 to i64
%47 = shl nuw nsw i64 %46, 2
%48 = add nuw nsw i64 %47, 4
%49 = add nuw i32 %38, 1
br label %50
50: ; preds = %45, %0
%51 = phi i32 [ 0, %0 ], [ %49, %45 ]
store i32 %51, i32* %12
store i32 1, i32* %41
%52 = icmp sgt i32 %34, 0
br i1 %52, label %53, label %69
53: ; preds = %50, %53
%54 = phi i64 [ %65, %53 ], [ 0, %50 ]
%55 = getelementptr inbounds i32, i32* %43, i64 %54
%56 = shl nuw nsw i64 %54, 1
%57 = getelementptr inbounds float, float* %37, i64 %56
%58 = getelementptr inbounds float, float* %57, i64 1
%59 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %32, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32* %55, float* %57, float* %58)
%60 = load i32, i32* %12
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %41, i64 %61
%63 = load i32, i32* %62
%64 = add nsw i32 %63, 1
store i32 %64, i32* %62
%65 = add nuw nsw i64 %54, 1
%66 = load i32, i32* %7
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %65, %67
br i1 %68, label %53, label %69
69: ; preds = %53, %50
%70 = call i32 @fclose(i32* %32)
%71 = load i32, i32* %6
%72 = icmp slt i32 %71, 1
br i1 %72, label %119, label %73
73: ; preds = %69
%74 = add nuw i32 %71, 1
%75 = zext i32 %74 to i64
%76 = load i32, i32* %41
%77 = add nsw i64 %75, -1
%78 = add nsw i64 %75, -2
%79 = and i64 %77, 3
%80 = icmp ult i64 %78, 3
br i1 %80, label %105, label %81
81: ; preds = %73
%82 = and i64 %77, -4
br label %83
83: ; preds = %83, %81
%84 = phi i32 [ %76, %81 ], [ %101, %83 ]
%85 = phi i64 [ 1, %81 ], [ %102, %83 ]
%86 = phi i64 [ 0, %81 ], [ %103, %83 ]
%87 = getelementptr inbounds i32, i32* %41, i64 %85
%88 = load i32, i32* %87
%89 = add nsw i32 %84, %88
store i32 %89, i32* %87
%90 = add nuw nsw i64 %85, 1
%91 = getelementptr inbounds i32, i32* %41, i64 %90
%92 = load i32, i32* %91
%93 = add nsw i32 %89, %92
store i32 %93, i32* %91
%94 = add nuw nsw i64 %85, 2
%95 = getelementptr inbounds i32, i32* %41, i64 %94
%96 = load i32, i32* %95
%97 = add nsw i32 %93, %96
store i32 %97, i32* %95
%98 = add nuw nsw i64 %85, 3
%99 = getelementptr inbounds i32, i32* %41, i64 %98
%100 = load i32, i32* %99
%101 = add nsw i32 %97, %100
store i32 %101, i32* %99
%102 = add nuw nsw i64 %85, 4
%103 = add i64 %86, 4
%104 = icmp eq i64 %103, %82
br i1 %104, label %105, label %83
105: ; preds = %83, %73
%106 = phi i32 [ %76, %73 ], [ %101, %83 ]
%107 = phi i64 [ 1, %73 ], [ %102, %83 ]
%108 = icmp eq i64 %79, 0
br i1 %108, label %119, label %109
109: ; preds = %105, %109
%110 = phi i32 [ %115, %109 ], [ %106, %105 ]
%111 = phi i64 [ %116, %109 ], [ %107, %105 ]
%112 = phi i64 [ %117, %109 ], [ 0, %105 ]
%113 = getelementptr inbounds i32, i32* %41, i64 %111
%114 = load i32, i32* %113
%115 = add nsw i32 %110, %114
store i32 %115, i32* %113
%116 = add nuw nsw i64 %111, 1
%117 = add i64 %112, 1
%118 = icmp eq i64 %117, %79
br i1 %118, label %119, label %109
119: ; preds = %105, %109, %69
%120 = phi i32 [ 1, %69 ], [ %74, %109 ], [ %74, %105 ]
store i32 %120, i32* %12
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%122 = load i32, i32* %7
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %122)
%124 = call i32 @gettimeofday(%struct.timeval* %9, i32* null)
store float 0xBFD6666660000000, float* %16
store float 0x3FCD70A3E0000000, float* %17
store i32 40, i32* %13
%125 = call dereferenceable_or_null(160) i8* @calloc(i32 40, i32 4)
%126 = bitcast i8* %125 to float*
%127 = call dereferenceable_or_null(160) i8* @calloc(i32 40, i32 4)
%128 = bitcast i8* %127 to float*
%129 = load i32, i32* %6
%130 = mul nsw i32 %129, 80
%131 = call i8* @calloc(i32 %130, i32 4)
%132 = bitcast i8* %131 to float*
%133 = getelementptr inbounds [64 x i32], [64 x i32]* %1, i64 0, i64 0
%134 = call i32 @feastinit(i32* %133)
store i32 1, i32* %133
%135 = call i32 @cfeast_hcsrev(i8* %4, i32* %6, float* %37, i32* %41, i32* %43, i32* %133, float* %2, i32* %3, float* %16, float* %17, i32* %13, float* %126, float* %132, i32* %14, float* %128, i32* %15)
%136 = call i32 @gettimeofday(%struct.timeval* %11, i32* null)
%137 = load i32, i32* %15
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %137)
%139 = load i32, i32* %15
%140 = icmp eq i32 %139, 0
br i1 %140, label %141, label %252
141: ; preds = %119
%142 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.17, i64 0, i64 0))
%143 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.16, i64 0, i64 0))
%144 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.17, i64 0, i64 0))
%145 = load <2 x double>, <2 x double>* %10
%146 = load <2 x double>, <2 x double>* %8
%147 = fsub <2 x double> %145, %146
%148 = extractelement <2 x double> %147, i64 1
%149 = fmul double %148, 0x3EB0C6F7A0B5ED8D
%150 = extractelement <2 x double> %147, i64 0
%151 = fadd double %150, %149
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %151)
%153 = load float, float* %16
%154 = fpext float %153 to double
%155 = load float, float* %17
%156 = fpext float %155 to double
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), double %154, double %156)
%158 = load i32, i32* %14
%159 = load i32, i32* %13
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %158, i32 %159)
%161 = load i32, i32* %3
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %161)
%163 = load i32, i32* %14
%164 = icmp sgt i32 %163, 0
br i1 %164, label %165, label %228
165: ; preds = %141
%166 = zext i32 %163 to i64
%167 = add nsw i64 %166, -1
%168 = and i64 %166, 7
%169 = icmp ult i64 %167, 7
br i1 %169, label %210, label %170
170: ; preds = %165
%171 = and i64 %166, 4294967288
br label %172
172: ; preds = %172, %170
%173 = phi i64 [ 0, %170 ], [ %207, %172 ]
%174 = phi float [ 0.000000e+00, %170 ], [ %206, %172 ]
%175 = phi i64 [ 0, %170 ], [ %208, %172 ]
%176 = getelementptr inbounds float, float* %126, i64 %173
%177 = load float, float* %176
%178 = fadd float %174, %177
%179 = or i64 %173, 1
%180 = getelementptr inbounds float, float* %126, i64 %179
%181 = load float, float* %180
%182 = fadd float %178, %181
%183 = or i64 %173, 2
%184 = getelementptr inbounds float, float* %126, i64 %183
%185 = load float, float* %184
%186 = fadd float %182, %185
%187 = or i64 %173, 3
%188 = getelementptr inbounds float, float* %126, i64 %187
%189 = load float, float* %188
%190 = fadd float %186, %189
%191 = or i64 %173, 4
%192 = getelementptr inbounds float, float* %126, i64 %191
%193 = load float, float* %192
%194 = fadd float %190, %193
%195 = or i64 %173, 5
%196 = getelementptr inbounds float, float* %126, i64 %195
%197 = load float, float* %196
%198 = fadd float %194, %197
%199 = or i64 %173, 6
%200 = getelementptr inbounds float, float* %126, i64 %199
%201 = load float, float* %200
%202 = fadd float %198, %201
%203 = or i64 %173, 7
%204 = getelementptr inbounds float, float* %126, i64 %203
%205 = load float, float* %204
%206 = fadd float %202, %205
%207 = add nuw nsw i64 %173, 8
%208 = add i64 %175, 8
%209 = icmp eq i64 %208, %171
br i1 %209, label %210, label %172
210: ; preds = %172, %165
%211 = phi float [ undef, %165 ], [ %206, %172 ]
%212 = phi i64 [ 0, %165 ], [ %207, %172 ]
%213 = phi float [ 0.000000e+00, %165 ], [ %206, %172 ]
%214 = icmp eq i64 %168, 0
br i1 %214, label %225, label %215
215: ; preds = %210, %215
%216 = phi i64 [ %222, %215 ], [ %212, %210 ]
%217 = phi float [ %221, %215 ], [ %213, %210 ]
%218 = phi i64 [ %223, %215 ], [ 0, %210 ]
%219 = getelementptr inbounds float, float* %126, i64 %216
%220 = load float, float* %219
%221 = fadd float %217, %220
%222 = add nuw nsw i64 %216, 1
%223 = add i64 %218, 1
%224 = icmp eq i64 %223, %168
br i1 %224, label %225, label %215
225: ; preds = %215, %210
%226 = phi float [ %211, %210 ], [ %221, %215 ]
%227 = fpext float %226 to double
br label %228
228: ; preds = %225, %141
%229 = phi i32 [ 0, %141 ], [ %163, %225 ]
%230 = phi double [ 0.000000e+00, %141 ], [ %227, %225 ]
store i32 %229, i32* %12
%231 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double %230)
%232 = load float, float* %2
%233 = fpext float %232 to double
%234 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), double %233)
%235 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.18, i64 0, i64 0))
store i32 0, i32* %12
%236 = load i32, i32* %14
%237 = icmp sgt i32 %236, 0
br i1 %237, label %238, label %252
238: ; preds = %228, %238
%239 = phi i32 [ %249, %238 ], [ 0, %228 ]
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds float, float* %126, i64 %240
%242 = load float, float* %241
%243 = fpext float %242 to double
%244 = getelementptr inbounds float, float* %128, i64 %240
%245 = load float, float* %244
%246 = fpext float %245 to double
%247 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %239, double %243, double %246)
%248 = load i32, i32* %12
%249 = add nsw i32 %248, 1
store i32 %249, i32* %12
%250 = load i32, i32* %14
%251 = icmp slt i32 %249, %250
br i1 %251, label %238, label %252
252: ; preds = %238, %228, %119
ret i32 0
}