#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*/ 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 /*<<< orphan*/ sfeast_scsrgv(char *, int *, float *, int *, int *, float *,
                                 int *, int *, int *, float *, int *, float *,
                                 float *, int *, float *, float *, int *,
                                 float *, int *);
int main() {
  int feastparam[64];
  float epsout;
  int loop;
  char UPLO = 'F';
  FILE *fp;
  char name[] = "../../system1";
  int N, nnz;
  float *sa, *sb;
  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(nnz, sizeof(float));
  sb = calloc(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 + k, sb + k);
    *(isa + i) = *(isa + i) + 1;
  };
  fclose(fp);
  for (i = 1; i <= N; i++) {
    *(isa + i) = *(isa + i) + *(isa + i - 1);
  };
  printf("sparse matrix -system1- size %.d\n", N);
  printf("nnz %d \n", nnz);
  gettimeofday(&t1, NULL);
  Emin = (float)0.18;
  Emax = (float)1.0;
  M0 = 25;
  E = calloc(M0, sizeof(float));
  res = calloc(M0, sizeof(float));
  X = calloc(N * M0, sizeof(float));
  feastinit(feastparam);
  feastparam[0] = 1;
  sfeast_scsrgv(&UPLO, &N, sa, isa, jsa, sb, 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    $0x258,%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   1070 <fscanf@plt>
mov    %eax,-0x1ac(%rbp)
mov    -0x160(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x168(%rbp)
mov    -0x160(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x170(%rbp)
mov    -0x15c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x178(%rbp)
mov    -0x160(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x180(%rbp)
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
cmp    -0x15c(%rbp),%eax
jg     12b1 <main+0x131>
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1276 <main+0xf6>
mov    -0x178(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x0,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%eax
mov    -0x160(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1379 <main+0x1f9>
mov    -0x148(%rbp),%rdi
mov    -0x180(%rbp),%rcx
movslq -0x1a8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x168(%rbp),%r8
movslq -0x1a8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%r8
mov    -0x170(%rbp),%r9
movslq -0x1a8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%r9
lea    0xcfa(%rip),%rsi
lea    -0x1a4(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    %eax,-0x1ac(%rbp)
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    12c8 <main+0x148>
mov    -0x148(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x1,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
cmp    -0x15c(%rbp),%eax
jg     13e9 <main+0x269>
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
add    -0x4(%rax,%rcx,4),%edx
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    138f <main+0x20f>
mov    -0x15c(%rbp),%esi
lea    0xc3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x160(%rbp),%esi
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x190(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1060 <gettimeofday@plt>
movss  0xbdb(%rip),%xmm0
movss  %xmm0,-0x1bc(%rbp)
ff
movss  0xbc7(%rip),%xmm0
movss  %xmm0,-0x1c0(%rbp)
ff
movl   $0x19,-0x1b0(%rbp)
mov    -0x1b0(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d8(%rbp)
mov    -0x1b0(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1e0(%rbp)
mov    -0x15c(%rbp),%edi
imul   -0x1b0(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d0(%rbp)
lea    -0x130(%rbp),%rdi
call   1050 <feastinit@plt>
movl   $0x1,-0x130(%rbp)
mov    -0x168(%rbp),%rdx
mov    -0x178(%rbp),%rcx
mov    -0x180(%rbp),%r8
mov    -0x170(%rbp),%r9
mov    -0x178(%rbp),%rax
mov    %rax,-0x210(%rbp)
mov    -0x180(%rbp),%rax
mov    %rax,-0x208(%rbp)
lea    -0x130(%rbp),%rax
mov    %rax,-0x200(%rbp)
mov    -0x1d8(%rbp),%r14
mov    -0x1d0(%rbp),%rbx
mov    -0x1e0(%rbp),%r10
lea    -0x139(%rbp),%rdi
lea    -0x15c(%rbp),%rsi
lea    -0x134(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
lea    -0x138(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
lea    -0x1bc(%rbp),%r13
lea    -0x1c0(%rbp),%r12
lea    -0x1b0(%rbp),%r15
lea    -0x1b4(%rbp),%r11
lea    -0x1b8(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x210(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x208(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x200(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x1f8(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x1f0(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x1e8(%rbp),%rax
mov    %r13,0x28(%rsp)
mov    %r12,0x30(%rsp)
mov    %r15,0x38(%rsp)
mov    %r14,0x40(%rsp)
mov    %rbx,0x48(%rsp)
mov    %r11,0x50(%rsp)
mov    %r10,0x58(%rsp)
mov    %rax,0x60(%rsp)
call   1080 <sfeast_scsrgv@plt>
lea    -0x1a0(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1060 <gettimeofday@plt>
mov    -0x1b8(%rbp),%esi
lea    0xa73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x1b8(%rbp)
jne    17d9 <main+0x659>
lea    0xa6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xa93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xa52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x1a0(%rbp),%xmm0
ff
subsd  -0x190(%rbp),%xmm0
ff
movsd  -0x198(%rbp),%xmm1
ff
subsd  -0x188(%rbp),%xmm1
ff
movsd  0x9ba(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
lea    0xa7a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x1bc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x1c0(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
lea    0xa68(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x1b4(%rbp),%esi
mov    -0x1b0(%rbp),%edx
lea    0xa73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x138(%rbp),%esi
lea    0xa7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c4(%rbp)
ff
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    -0x1b4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     171b <main+0x59b>
movss  -0x1c4(%rbp),%xmm0
ff
mov    -0x1d8(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x1c4(%rbp)
ff
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    16cd <main+0x54d>
movss  -0x1c4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa12(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x134(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa02(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xa14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    -0x1b4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     17d4 <main+0x654>
mov    -0x1a4(%rbp),%esi
mov    -0x1d8(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x1e0(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0x9c8(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1767 <main+0x5e7>
jmp    17d9 <main+0x659>
xor    %eax,%eax
add    $0x258,%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    $0x188,%rsp
movb   $0x46,0x13(%rsp)
movabs $0x316d6574737973,%rax
mov    %rax,0x56(%rsp)
movabs $0x79732f2e2e2f2e2e,%rax
2f 73 79
mov    %rax,0x50(%rsp)
lea    0xe3b(%rip),%rsi
lea    0x50(%rsp),%rdi
call   10c0 <fopen@plt>
lea    0xe2c(%rip),%rsi
xor    %r15d,%r15d
lea    0x18(%rsp),%rdx
lea    0x1c(%rsp),%rcx
mov    %rax,%r12
mov    %rax,%rdi
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x1c(%rsp),%r14d
mov    %r14d,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,0x40(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,0x38(%rsp)
mov    0x18(%rsp),%ebp
lea    0x1(%rbp),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbx
mov    %r14d,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,0x48(%rsp)
test   %ebp,%ebp
js     126f <main+0xcf>
lea    0x4(,%rbp,4),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1080 <memset@plt>
lea    0x1(%rbp),%r15d
mov    %r15d,0xc(%rsp)
movl   $0x1,(%rbx)
test   %r14d,%r14d
mov    %r12,%rbp
jle    12e2 <main+0x142>
mov    0x48(%rsp),%r12
mov    0x40(%rsp),%r13
mov    0x38(%rsp),%r14
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
lea    0xd74(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1090 <fscanf@plt>
movslq 0xc(%rsp),%rax
addl   $0x1,(%rbx,%rax,4)
add    $0x1,%r15
movslq 0x1c(%rsp),%rax
add    $0x4,%r14
add    $0x4,%r13
add    $0x4,%r12
cmp    %rax,%r15
jl     12a0 <main+0x100>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    0x18(%rsp),%esi
test   %esi,%esi
jle    1361 <main+0x1c1>
mov    (%rbx),%eax
lea    -0x1(%rsi),%rdi
mov    %esi,%ecx
and    $0x3,%ecx
mov    $0x1,%edx
cmp    $0x3,%rdi
jb     133d <main+0x19d>
mov    %esi,%edi
and    $0xfffffffc,%edi
xor    %edx,%edx
nop
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    1310 <main+0x170>
add    $0x1,%rdx
lea    0x1(%rsi),%edi
test   %rcx,%rcx
je     1366 <main+0x1c6>
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    1350 <main+0x1b0>
jmp    1366 <main+0x1c6>
mov    $0x1,%edi
mov    %edi,0xc(%rsp)
lea    0xcb7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
lea    0xcc7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x70(%rsp),%rdi
xor    %esi,%esi
call   1070 <gettimeofday@plt>
movl   $0x3e3851ec,0x24(%rsp)
3e
movl   $0x3f800000,0x20(%rsp)
3f
movl   $0x19,0x2c(%rsp)
mov    $0x19,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r15
mov    $0x19,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r14
mov    0x18(%rsp),%eax
lea    (%rax,%rax,4),%eax
lea    (%rax,%rax,4),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbp
lea    0x80(%rsp),%r12
mov    %r12,%rdi
call   1060 <feastinit@plt>
movl   $0x1,0x80(%rsp)
sub    $0x8,%rsp
lea    0x30(%rsp),%rax
lea    0x1c(%rsp),%r10
lea    0x34(%rsp),%r11
lea    0x28(%rsp),%r13
lea    0x1b(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    0x48(%rsp),%rdx
mov    %rbx,%rcx
mov    0x50(%rsp),%r8
mov    0x40(%rsp),%r9
push   %rax
push   %r14
push   %r10
push   %rbp
push   %r15
push   %r11
push   %r13
lea    0x64(%rsp),%rax
push   %rax
lea    0x78(%rsp),%rax
push   %rax
lea    0x84(%rsp),%rax
push   %rax
push   %r12
push   %r8
push   %rbx
call   10a0 <sfeast_scsrgv@plt>
add    $0x70,%rsp
lea    0x60(%rsp),%rdi
xor    %esi,%esi
call   1070 <gettimeofday@plt>
mov    0x28(%rsp),%esi
lea    0xbd5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x28(%rsp)
jne    1642 <main+0x4a2>
lea    0xca4(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xc63(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movapd 0x60(%rsp),%xmm1
subpd  0x70(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  0xb31(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xb8f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x20(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xb81(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    0x2c(%rsp),%edx
lea    0xb90(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
lea    0xb9c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%eax
test   %eax,%eax
jle    1549 <main+0x3a9>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x7,%ecx
cmp    $0x7,%rdx
jae    1550 <main+0x3b0>
xorps  %xmm0,%xmm0
xor    %edx,%edx
jmp    15a0 <main+0x400>
xorps  %xmm0,%xmm0
xor    %eax,%eax
jmp    15c2 <main+0x422>
mov    %eax,%esi
and    $0xfffffff8,%esi
xorps  %xmm0,%xmm0
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
addss  (%r15,%rdx,4),%xmm0
addss  0x4(%r15,%rdx,4),%xmm0
addss  0x8(%r15,%rdx,4),%xmm0
addss  0xc(%r15,%rdx,4),%xmm0
addss  0x10(%r15,%rdx,4),%xmm0
addss  0x14(%r15,%rdx,4),%xmm0
addss  0x18(%r15,%rdx,4),%xmm0
addss  0x1c(%r15,%rdx,4),%xmm0
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    1560 <main+0x3c0>
test   %rcx,%rcx
je     15be <main+0x41e>
lea    (%r15,%rdx,4),%rdx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
addss  (%rdx,%rsi,4),%xmm0
add    $0x1,%rsi
cmp    %rsi,%rcx
jne    15b0 <main+0x410>
cvtss2sd %xmm0,%xmm0
mov    %eax,0xc(%rsp)
lea    0xb05(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xaf7(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xb7a(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,0xc(%rsp)
cmpl   $0x0,0x14(%rsp)
jle    1642 <main+0x4a2>
xor    %eax,%eax
lea    0xaec(%rip),%rbx
movslq %eax,%rsi
movss  (%r15,%rsi,4),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%r14,%rsi,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    0x14(%rsp),%eax
jl     1610 <main+0x470>
xor    %eax,%eax
add    $0x188,%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"../../system1\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 -system1- 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 float*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca %struct.timeval
%15 = alloca %struct.timeval
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca float*
%26 = alloca float*
%27 = alloca float*
store i32 0, i32* %1
store i8 70, i8* %5
%28 = bitcast [14 x i8]* %7 to i8*
%29 = getelementptr inbounds [14 x i8], [14 x i8]* %7, i64 0, i64 0
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %30, i32** %6
%31 = load i32*, i32** %6
%32 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %8, i32* %9)
store i32 %32, i32* %18
%33 = load i32, i32* %9
%34 = call i8* @calloc(i32 %33, i32 4)
%35 = bitcast i8* %34 to float*
store float* %35, float** %10
%36 = load i32, i32* %9
%37 = call i8* @calloc(i32 %36, i32 4)
%38 = bitcast i8* %37 to float*
store float* %38, float** %11
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
%41 = call i8* @calloc(i32 %40, i32 4)
%42 = bitcast i8* %41 to i32*
store i32* %42, i32** %12
%43 = load i32, i32* %9
%44 = call i8* @calloc(i32 %43, i32 4)
%45 = bitcast i8* %44 to i32*
store i32* %45, i32** %13
store i32 0, i32* %16
br label %46
46: ; preds = %55, %0
%47 = load i32, i32* %16
%48 = load i32, i32* %8
%49 = icmp sle i32 %47, %48
br i1 %49, label %50, label %58
50: ; preds = %46
%51 = load i32*, i32** %12
%52 = load i32, i32* %16
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, i32* %51, i64 %53
store i32 0, i32* %54
br label %55
55: ; preds = %50
%56 = load i32, i32* %16
%57 = add nsw i32 %56, 1
store i32 %57, i32* %16
br label %46
58: ; preds = %46
%59 = load i32*, i32** %12
store i32 1, i32* %59
store i32 0, i32* %17
br label %60
60: ; preds = %90, %58
%61 = load i32, i32* %17
%62 = load i32, i32* %9
%63 = sub nsw i32 %62, 1
%64 = icmp sle i32 %61, %63
br i1 %64, label %65, label %93
65: ; preds = %60
%66 = load i32*, i32** %6
%67 = load i32*, i32** %13
%68 = load i32, i32* %17
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, i32* %67, i64 %69
%71 = load float*, float** %10
%72 = load i32, i32* %17
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds float, float* %71, i64 %73
%75 = load float*, float** %11
%76 = load i32, i32* %17
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, float* %75, i64 %77
%79 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %16, i32* %70, float* %74, float* %78)
store i32 %79, i32* %18
%80 = load i32*, i32** %12
%81 = load i32, i32* %16
%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** %12
%87 = load i32, i32* %16
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, i32* %86, i64 %88
store i32 %85, i32* %89
br label %90
90: ; preds = %65
%91 = load i32, i32* %17
%92 = add nsw i32 %91, 1
store i32 %92, i32* %17
br label %60
93: ; preds = %60
%94 = load i32*, i32** %6
%95 = call i32 @fclose(i32* %94)
store i32 1, i32* %16
br label %96
96: ; preds = %117, %93
%97 = load i32, i32* %16
%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** %12
%102 = load i32, i32* %16
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, i32* %101, i64 %103
%105 = load i32, i32* %104
%106 = load i32*, i32** %12
%107 = load i32, i32* %16
%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** %12
%114 = load i32, i32* %16
%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* %16
%119 = add nsw i32 %118, 1
store i32 %119, i32* %16
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* %14, i32* null)
store float 0x3FC70A3D80000000, float* %22
store float 1.000000e+00, float* %23
store i32 25, i32* %19
%126 = load i32, i32* %19
%127 = call i8* @calloc(i32 %126, i32 4)
%128 = bitcast i8* %127 to float*
store float* %128, float** %26
%129 = load i32, i32* %19
%130 = call i8* @calloc(i32 %129, i32 4)
%131 = bitcast i8* %130 to float*
store float* %131, float** %27
%132 = load i32, i32* %8
%133 = load i32, i32* %19
%134 = mul nsw i32 %132, %133
%135 = call i8* @calloc(i32 %134, i32 4)
%136 = bitcast i8* %135 to float*
store float* %136, float** %25
%137 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%138 = call i32 @feastinit(i32* %137)
%139 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
store i32 1, i32* %139
%140 = load float*, float** %10
%141 = load i32*, i32** %12
%142 = load i32*, i32** %13
%143 = load float*, float** %11
%144 = load i32*, i32** %12
%145 = load i32*, i32** %13
%146 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%147 = load float*, float** %26
%148 = load float*, float** %25
%149 = load float*, float** %27
%150 = call i32 @sfeast_scsrgv(i8* %5, i32* %8, float* %140, i32* %141, i32* %142, float* %143, i32* %144, i32* %145, i32* %146, float* %3, i32* %4, float* %22, float* %23, i32* %19, float* %147, float* %148, i32* %20, float* %149, i32* %21)
%151 = call i32 @gettimeofday(%struct.timeval* %15, i32* null)
%152 = load i32, i32* %21
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %152)
%154 = load i32, i32* %21
%155 = icmp eq i32 %154, 0
br i1 %155, label %156, label %231
156: ; preds = %120
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%160 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 0
%161 = load double, double* %160
%162 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 0
%163 = load double, double* %162
%164 = fsub double %161, %163
%165 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 1
%166 = load double, double* %165
%167 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 1
%168 = load double, double* %167
%169 = fsub double %166, %168
%170 = fmul double %169, 0x3EB0C6F7A0B5ED8D
%171 = call double @llvm.fmuladd.f64(double %164, double 1.000000e+00, double %170)
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %171)
%173 = load float, float* %22
%174 = fpext float %173 to double
%175 = load float, float* %23
%176 = fpext float %175 to double
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), double %174, double %176)
%178 = load i32, i32* %20
%179 = load i32, i32* %19
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %178, i32 %179)
%181 = load i32, i32* %4
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %181)
store float 0.000000e+00, float* %24
store i32 0, i32* %16
br label %183
183: ; preds = %196, %156
%184 = load i32, i32* %16
%185 = load i32, i32* %20
%186 = sub nsw i32 %185, 1
%187 = icmp sle i32 %184, %186
br i1 %187, label %188, label %199
188: ; preds = %183
%189 = load float, float* %24
%190 = load float*, float** %26
%191 = load i32, i32* %16
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds float, float* %190, i64 %192
%194 = load float, float* %193
%195 = fadd float %189, %194
store float %195, float* %24
br label %196
196: ; preds = %188
%197 = load i32, i32* %16
%198 = add nsw i32 %197, 1
store i32 %198, i32* %16
br label %183
199: ; preds = %183
%200 = load float, float* %24
%201 = fpext float %200 to double
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double %201)
%203 = load float, float* %3
%204 = fpext float %203 to double
%205 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), double %204)
%206 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %16
br label %207
207: ; preds = %227, %199
%208 = load i32, i32* %16
%209 = load i32, i32* %20
%210 = sub nsw i32 %209, 1
%211 = icmp sle i32 %208, %210
br i1 %211, label %212, label %230
212: ; preds = %207
%213 = load i32, i32* %16
%214 = load float*, float** %26
%215 = load i32, i32* %16
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds float, float* %214, i64 %216
%218 = load float, float* %217
%219 = fpext float %218 to double
%220 = load float*, float** %27
%221 = load i32, i32* %16
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds float, float* %220, i64 %222
%224 = load float, float* %223
%225 = fpext float %224 to double
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %213, double %219, double %225)
br label %227
227: ; preds = %212
%228 = load i32, i32* %16
%229 = add nsw i32 %228, 1
store i32 %229, i32* %16
br label %207
230: ; preds = %207
br label %231
231: ; preds = %230, %120
ret i32 0
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
@__const.main.name = [14 x i8] c"../../system1\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 -system1- 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 = call i8* @calloc(i32 %34, i32 4)
%36 = bitcast i8* %35 to float*
%37 = call i8* @calloc(i32 %34, i32 4)
%38 = bitcast i8* %37 to float*
%39 = load i32, i32* %6
%40 = add i32 %39, 1
%41 = call i8* @calloc(i32 %40, i32 4)
%42 = bitcast i8* %41 to i32*
%43 = call i8* @calloc(i32 %34, i32 4)
%44 = bitcast i8* %43 to i32*
%45 = icmp slt i32 %39, 0
br i1 %45, label %51, label %46
46: ; preds = %0
%47 = zext i32 %39 to i64
%48 = shl nuw nsw i64 %47, 2
%49 = add nuw nsw i64 %48, 4
%50 = add nuw i32 %39, 1
br label %51
51: ; preds = %46, %0
%52 = phi i32 [ 0, %0 ], [ %50, %46 ]
store i32 %52, i32* %12
store i32 1, i32* %42
%53 = icmp sgt i32 %34, 0
br i1 %53, label %54, label %69
54: ; preds = %51, %54
%55 = phi i64 [ %65, %54 ], [ 0, %51 ]
%56 = getelementptr inbounds i32, i32* %44, i64 %55
%57 = getelementptr inbounds float, float* %36, i64 %55
%58 = getelementptr inbounds float, float* %38, i64 %55
%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* %56, float* %57, float* %58)
%60 = load i32, i32* %12
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %42, i64 %61
%63 = load i32, i32* %62
%64 = add nsw i32 %63, 1
store i32 %64, i32* %62
%65 = add nuw nsw i64 %55, 1
%66 = load i32, i32* %7
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %65, %67
br i1 %68, label %54, label %69
69: ; preds = %54, %51
%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* %42
%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* %42, 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* %42, 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* %42, 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* %42, 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* %42, 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 0x3FC70A3D80000000, float* %16
store float 1.000000e+00, float* %17
store i32 25, i32* %13
%125 = call dereferenceable_or_null(100) i8* @calloc(i32 25, i32 4)
%126 = bitcast i8* %125 to float*
%127 = call dereferenceable_or_null(100) i8* @calloc(i32 25, i32 4)
%128 = bitcast i8* %127 to float*
%129 = load i32, i32* %6
%130 = mul nsw i32 %129, 25
%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 @sfeast_scsrgv(i8* %4, i32* %6, float* %36, i32* %42, i32* %44, float* %38, i32* %42, i32* %44, 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
}