#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 */
int abs(int);
float *calloc(int, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feastinit(int *);
int /*<<< orphan*/ *fopen(char *, char *);
int fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sfeast_sbgv(char *, int *, int *, float *, int *, int *,
                               float *, int *, int *, float *, int *, float *,
                               float *, int *, float *, float *, int *, float *,
                               int *);
int main() {
  int feastparam[64];
  float epsout;
  int loop, LDA, LDB;
  char UPLO = 'F';
  FILE *fp;
  char name[] = "../../system1";
  int N, nnz, kl, ku;
  float *A, *B;
  struct timeval t1, t2;
  int i, j, k, n2, err;
  int M0, M, info;
  float Emin, Emax, trace, dum;
  float *X;
  float *E, *res;
  kl = 0;
  fp = fopen(name, "r");
  err = fscanf(fp, "%d%d\n", &N, &nnz);
  for (k = 0; k <= nnz - 1; k++) {
    err = fscanf(fp, "%d%d%f%f\n", &i, &j, &dum, &dum);
    if (abs(i - j) > kl) {
      kl = abs(i - j);
    }
  }
  fclose(fp);
  ku = kl;
  LDA = (kl + ku + 1);
  LDB = LDA;
  n2 = N * (kl + ku + 1);
  A = calloc(n2, sizeof(float));
  B = calloc(n2, sizeof(float));
  for (i = 0; i <= n2 - 1; i++) {
    *(A + i) = (float)0.0;
    *(B + i) = (float)0.0;
  };
  fp = fopen(name, "r");
  err = fscanf(fp, "%d%d\n", &N, &nnz);
  for (k = 0; k <= nnz - 1; k++) {
    err = fscanf(fp, "%d%d", &i, &j);
    err = fscanf(fp, "%f%f\n", A + (j - 1) * LDA + ku + (i - j),
                 B + (j - 1) * LDB + ku + (i - j));
  };
  fclose(fp);
  printf("dense matrix -system1- size %.d\n", N);
  printf("bandwidth %d \n", kl + ku + 1);
  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_sbgv(&UPLO, &N, &kl, A, &LDA, &kl, B, &LDB, 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,-0x141(%rbp)
mov    0xe57(%rip),%rax
mov    %rax,-0x15e(%rbp)
mov    0xe52(%rip),%eax
mov    %eax,-0x156(%rbp)
mov    0xe49(%rip),%ax
mov    %ax,-0x152(%rbp)
movl   $0x0,-0x16c(%rbp)
lea    -0x15e(%rbp),%rdi
lea    0xe2c(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x150(%rbp)
mov    -0x150(%rbp),%rdi
lea    0xe14(%rip),%rsi
lea    -0x164(%rbp),%rdx
lea    -0x168(%rbp),%rcx
mov    $0x0,%al
call   1090 <fscanf@plt>
mov    %eax,-0x1b4(%rbp)
movl   $0x0,-0x1ac(%rbp)
mov    -0x1ac(%rbp),%eax
mov    -0x168(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     12c8 <main+0x138>
mov    -0x150(%rbp),%rdi
lea    0xdd0(%rip),%rsi
lea    -0x1a4(%rbp),%rdx
lea    -0x1a8(%rbp),%rcx
lea    -0x1d0(%rbp),%r9
mov    %r9,%r8
mov    $0x0,%al
call   1090 <fscanf@plt>
mov    %eax,-0x1b4(%rbp)
mov    -0x1a4(%rbp),%edi
sub    -0x1a8(%rbp),%edi
call   1040 <abs@plt>
cmp    -0x16c(%rbp),%eax
jle    12af <main+0x11f>
mov    -0x1a4(%rbp),%edi
sub    -0x1a8(%rbp),%edi
call   1040 <abs@plt>
mov    %eax,-0x16c(%rbp)
jmp    12b4 <main+0x124>
mov    -0x1ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ac(%rbp)
jmp    1231 <main+0xa1>
mov    -0x150(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x16c(%rbp),%eax
mov    %eax,-0x170(%rbp)
mov    -0x16c(%rbp),%eax
add    -0x170(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
mov    -0x13c(%rbp),%eax
mov    %eax,-0x140(%rbp)
mov    -0x164(%rbp),%eax
mov    -0x16c(%rbp),%ecx
add    -0x170(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
mov    %eax,-0x1b0(%rbp)
mov    -0x1b0(%rbp),%edi
mov    $0x4,%esi
call   10a0 <calloc@plt>
mov    %rax,-0x178(%rbp)
mov    -0x1b0(%rbp),%edi
mov    $0x4,%esi
call   10a0 <calloc@plt>
mov    %rax,-0x180(%rbp)
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    -0x1b0(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13ae <main+0x21e>
mov    -0x178(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x180(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1357 <main+0x1c7>
lea    -0x15e(%rbp),%rdi
lea    0xc62(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x150(%rbp)
mov    -0x150(%rbp),%rdi
lea    0xc4a(%rip),%rsi
lea    -0x164(%rbp),%rdx
lea    -0x168(%rbp),%rcx
mov    $0x0,%al
call   1090 <fscanf@plt>
mov    %eax,-0x1b4(%rbp)
movl   $0x0,-0x1ac(%rbp)
mov    -0x1ac(%rbp),%eax
mov    -0x168(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     14f0 <main+0x360>
mov    -0x150(%rbp),%rdi
lea    0xc10(%rip),%rsi
lea    -0x1a4(%rbp),%rdx
lea    -0x1a8(%rbp),%rcx
mov    $0x0,%al
call   1090 <fscanf@plt>
mov    %eax,-0x1b4(%rbp)
mov    -0x150(%rbp),%rdi
mov    -0x178(%rbp),%rdx
mov    -0x1a8(%rbp),%eax
sub    $0x1,%eax
imul   -0x13c(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rdx
movslq -0x170(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x1a4(%rbp),%eax
sub    -0x1a8(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x180(%rbp),%rcx
mov    -0x1a8(%rbp),%eax
sub    $0x1,%eax
imul   -0x140(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rcx
movslq -0x170(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x1a4(%rbp),%eax
sub    -0x1a8(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rcx
lea    0xb5b(%rip),%rsi
mov    $0x0,%al
call   1090 <fscanf@plt>
mov    %eax,-0x1b4(%rbp)
mov    -0x1ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ac(%rbp)
jmp    13fb <main+0x26b>
mov    -0x150(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x164(%rbp),%esi
lea    0xb2c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x16c(%rbp),%esi
add    -0x170(%rbp),%esi
add    $0x1,%esi
lea    0xb30(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x190(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1080 <gettimeofday@plt>
movss  0xabf(%rip),%xmm0
movss  %xmm0,-0x1c4(%rbp)
ff
movss  0xaab(%rip),%xmm0
movss  %xmm0,-0x1c8(%rbp)
ff
movl   $0x19,-0x1b8(%rbp)
mov    -0x1b8(%rbp),%edi
mov    $0x4,%esi
call   10a0 <calloc@plt>
mov    %rax,-0x1e0(%rbp)
mov    -0x1b8(%rbp),%edi
mov    $0x4,%esi
call   10a0 <calloc@plt>
mov    %rax,-0x1e8(%rbp)
mov    -0x164(%rbp),%edi
imul   -0x1b8(%rbp),%edi
mov    $0x4,%esi
call   10a0 <calloc@plt>
mov    %rax,-0x1d8(%rbp)
lea    -0x130(%rbp),%rdi
call   1070 <feastinit@plt>
movl   $0x1,-0x130(%rbp)
mov    -0x178(%rbp),%rcx
mov    -0x180(%rbp),%rax
lea    -0x130(%rbp),%rdx
mov    %rdx,-0x208(%rbp)
mov    -0x1e0(%rbp),%r14
mov    -0x1d8(%rbp),%rbx
mov    -0x1e8(%rbp),%r10
lea    -0x141(%rbp),%rdi
lea    -0x164(%rbp),%rsi
lea    -0x16c(%rbp),%r9
lea    -0x13c(%rbp),%r8
lea    -0x140(%rbp),%rdx
mov    %rdx,-0x210(%rbp)
lea    -0x134(%rbp),%rdx
mov    %rdx,-0x200(%rbp)
lea    -0x138(%rbp),%rdx
mov    %rdx,-0x1f8(%rbp)
lea    -0x1c4(%rbp),%r13
lea    -0x1c8(%rbp),%r12
lea    -0x1b8(%rbp),%r15
lea    -0x1bc(%rbp),%r11
lea    -0x1c0(%rbp),%rdx
mov    %rdx,-0x1f0(%rbp)
mov    %r9,%rdx
mov    %rax,(%rsp)
mov    -0x210(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x208(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x200(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x1f8(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x1f0(%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   1030 <sfeast_sbgv@plt>
lea    -0x1a0(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1080 <gettimeofday@plt>
mov    -0x1c0(%rbp),%esi
lea    0x973(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x1c0(%rbp)
jne    18e3 <main+0x753>
lea    0x96e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x993(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x952(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  -0x1a0(%rbp),%xmm0
ff
subsd  -0x190(%rbp),%xmm0
ff
movsd  -0x198(%rbp),%xmm1
ff
subsd  -0x188(%rbp),%xmm1
ff
movsd  0x8b0(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
lea    0x97a(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x1c4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x1c8(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
lea    0x968(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    -0x1bc(%rbp),%esi
mov    -0x1b8(%rbp),%edx
lea    0x973(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x138(%rbp),%esi
lea    0x97d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1cc(%rbp)
ff
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    -0x1bc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1825 <main+0x695>
movss  -0x1cc(%rbp),%xmm0
ff
mov    -0x1e0(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x1cc(%rbp)
ff
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    17d7 <main+0x647>
movss  -0x1cc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x912(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x134(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x902(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0x914(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    -0x1bc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     18de <main+0x74e>
mov    -0x1a4(%rbp),%esi
mov    -0x1e0(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x1e8(%rbp),%rax
movslq -0x1a4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0x8c8(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1871 <main+0x6e1>
jmp    18e3 <main+0x753>
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    $0x198,%rsp
movb   $0x46,0xb(%rsp)
movabs $0x316d6574737973,%rax
mov    %rax,0x5e(%rsp)
movabs $0x79732f2e2e2f2e2e,%rax
2f 73 79
mov    %rax,0x58(%rsp)
movl   $0x0,0x2c(%rsp)
lea    0xe33(%rip),%rsi
lea    0x58(%rsp),%rdi
call   10c0 <fopen@plt>
mov    %rax,%r13
lea    0xe21(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   10a0 <fscanf@plt>
cmpl   $0x0,0xc(%rsp)
mov    $0x0,%ebp
jle    1273 <main+0xd3>
lea    0x4(%rsp),%r15
lea    0x18(%rsp),%r12
lea    0x6c(%rsp),%rbx
xor    %ebp,%ebp
xor    %r14d,%r14d
jmp    123b <main+0x9b>
nopl   (%rax)
add    $0x1,%r14d
cmp    0xc(%rsp),%r14d
jge    1273 <main+0xd3>
mov    %r13,%rdi
lea    0xdd9(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %rbx,%r8
mov    %rbx,%r9
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    0x4(%rsp),%ecx
sub    0x18(%rsp),%ecx
mov    %ecx,%eax
neg    %eax
cmovs  %ecx,%eax
cmp    %ebp,%eax
jle    1230 <main+0x90>
mov    %eax,0x2c(%rsp)
mov    %eax,%ebp
jmp    1230 <main+0x90>
mov    %r13,%rdi
call   1050 <fclose@plt>
mov    %rbp,0x40(%rsp)
movslq %ebp,%rax
lea    (%rax,%rax,1),%r14
add    $0x1,%r14
mov    %r14d,0x34(%rsp)
mov    %r14d,0x30(%rsp)
mov    0x10(%rsp),%ebx
imul   %r14d,%ebx
mov    %ebx,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r12
mov    %ebx,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r15
test   %ebx,%ebx
mov    $0x0,%eax
jle    12e6 <main+0x146>
mov    %ebx,%ebp
shl    $0x2,%rbp
mov    %r12,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1090 <memset@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1090 <memset@plt>
mov    %ebx,%eax
mov    %r12,0x48(%rsp)
mov    %r15,0x50(%rsp)
mov    %eax,0x4(%rsp)
lea    0xd1b(%rip),%rsi
lea    0x58(%rsp),%rdi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xd09(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   10a0 <fscanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    13b6 <main+0x216>
mov    0x40(%rsp),%eax
mov    0x48(%rsp),%rcx
lea    (%rcx,%rax,4),%r13
mov    0x50(%rsp),%rcx
lea    (%rcx,%rax,4),%rbp
lea    0xcd7(%rip),%r15
xor    %r12d,%r12d
xchg   %ax,%ax
mov    %rbx,%rdi
lea    0xcce(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x18(%rsp),%rcx
xor    %eax,%eax
call   10a0 <fscanf@plt>
movslq 0x18(%rsp),%rax
lea    -0x1(%rax),%rcx
imul   %r14,%rcx
lea    0x0(,%rcx,4),%rdx
add    %r13,%rdx
movslq 0x4(%rsp),%rsi
sub    %rax,%rsi
lea    (%rdx,%rsi,4),%rdx
lea    0x0(,%rcx,4),%rax
add    %rbp,%rax
lea    (%rax,%rsi,4),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10a0 <fscanf@plt>
add    $0x1,%r12d
cmp    0xc(%rsp),%r12d
jl     1350 <main+0x1b0>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    0x10(%rsp),%esi
lea    0xc64(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x40(%rsp),%rax
lea    (%rax,%rax,1),%esi
add    $0x1,%esi
lea    0xc6c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x80(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
movl   $0x3e3851ec,0x20(%rsp)
3e
movl   $0x3f800000,0x1c(%rsp)
3f
movl   $0x19,0x28(%rsp)
mov    $0x19,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbx
mov    $0x19,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r14
mov    0x10(%rsp),%eax
lea    (%rax,%rax,4),%eax
lea    (%rax,%rax,4),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbp
lea    0x90(%rsp),%r13
mov    %r13,%rdi
call   1070 <feastinit@plt>
movl   $0x1,0x90(%rsp)
sub    $0x8,%rsp
lea    0x2c(%rsp),%rax
lea    0x1c(%rsp),%r11
lea    0x30(%rsp),%r15
lea    0x24(%rsp),%r12
lea    0x28(%rsp),%r10
lea    0x13(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x3c(%rsp),%r8
lea    0x34(%rsp),%rdx
mov    0x50(%rsp),%rcx
mov    %rdx,%r9
push   %rax
push   %r14
push   %r11
push   %rbp
push   %rbx
push   %r15
push   %r12
push   %r10
lea    0x80(%rsp),%rax
push   %rax
lea    0x8c(%rsp),%rax
push   %rax
push   %r13
lea    0x90(%rsp),%rax
push   %rax
push   0xb8(%rsp)
call   1030 <sfeast_sbgv@plt>
add    $0x70,%rsp
lea    0x70(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
mov    0x24(%rsp),%esi
lea    0xb6d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,0x24(%rsp)
jne    16b1 <main+0x511>
lea    0xc3c(%rip),%rbp
mov    %rbp,%rdi
call   1040 <puts@plt>
lea    0xbfb(%rip),%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
movapd 0x70(%rsp),%xmm1
subpd  0x80(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  0xabc(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xb24(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x1c(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xb16(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x14(%rsp),%esi
mov    0x28(%rsp),%edx
lea    0xb25(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x38(%rsp),%esi
lea    0xb31(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%rsp),%eax
test   %eax,%eax
jle    15be <main+0x41e>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x7,%ecx
cmp    $0x7,%rdx
jae    15c5 <main+0x425>
xorps  %xmm0,%xmm0
xor    %edx,%edx
jmp    1608 <main+0x468>
xorps  %xmm0,%xmm0
xor    %eax,%eax
jmp    1632 <main+0x492>
mov    %eax,%esi
and    $0xfffffff8,%esi
xorps  %xmm0,%xmm0
xor    %edx,%edx
nop
addss  (%rbx,%rdx,4),%xmm0
addss  0x4(%rbx,%rdx,4),%xmm0
addss  0x8(%rbx,%rdx,4),%xmm0
addss  0xc(%rbx,%rdx,4),%xmm0
addss  0x10(%rbx,%rdx,4),%xmm0
addss  0x14(%rbx,%rdx,4),%xmm0
addss  0x18(%rbx,%rdx,4),%xmm0
addss  0x1c(%rbx,%rdx,4),%xmm0
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    15d0 <main+0x430>
test   %rcx,%rcx
je     162e <main+0x48e>
lea    (%rbx,%rdx,4),%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
addss  (%rdx,%rsi,4),%xmm0
add    $0x1,%rsi
cmp    %rsi,%rcx
jne    1620 <main+0x480>
cvtss2sd %xmm0,%xmm0
mov    %eax,0x4(%rsp)
lea    0xa9f(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x3c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa91(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xb14(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,0x4(%rsp)
cmpl   $0x0,0x14(%rsp)
jle    16b1 <main+0x511>
xor    %eax,%eax
lea    0xa86(%rip),%rbp
movslq %eax,%rsi
movss  (%rbx,%rsi,4),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%r14,%rsi,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbp,%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x4(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x4(%rsp)
cmp    0x14(%rsp),%eax
jl     1680 <main+0x4e0>
xor    %eax,%eax
add    $0x198,%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 = [5 x i8] c"%d%d\00"
@.str.4 = [6 x i8] c"%f%f\0A\00"
@.str.5 = [33 x i8] c"dense matrix -system1- size %.d\0A\00"
@.str.6 = [15 x i8] c"bandwidth %d \0A\00"
@.str.7 = [22 x i8] c"FEAST OUTPUT INFO %d\0A\00"
@.str.8 = [51 x i8] c"*************************************************\0A\00"
@.str.9 = [51 x i8] c"************** REPORT ***************************\0A\00"
@.str.10 = [20 x i8] c"SIMULATION TIME %f\0A\00"
@.str.11 = [37 x i8] c"# Search interval [Emin,Emax] %f %f\0A\00"
@.str.12 = [30 x i8] c"# mode found/subspace %d %d \0A\00"
@.str.13 = [18 x i8] c"# iterations %d \0A\00"
@.str.14 = [10 x i8] c"TRACE %f\0A\00"
@.str.15 = [32 x i8] c"Relative error on the Trace %f\0A\00"
@.str.16 = [23 x i8] c"Eigenvalues/Residuals\0A\00"
@.str.17 = [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 i32
%6 = alloca i32
%7 = alloca i8
%8 = alloca i32*
%9 = alloca [14 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca float*
%15 = alloca float*
%16 = alloca %struct.timeval
%17 = alloca %struct.timeval
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca float*
%31 = alloca float*
%32 = alloca float*
store i32 0, i32* %1
store i8 70, i8* %7
%33 = bitcast [14 x i8]* %9 to i8*
store i32 0, i32* %12
%34 = getelementptr inbounds [14 x i8], [14 x i8]* %9, i64 0, i64 0
%35 = call i32* @fopen(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %35, i32** %8
%36 = load i32*, i32** %8
%37 = call i32 (i32*, i8*, ...) @fscanf(i32* %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %10, i32* %11)
store i32 %37, i32* %22
store i32 0, i32* %20
br label %38
38: ; preds = %58, %0
%39 = load i32, i32* %20
%40 = load i32, i32* %11
%41 = sub nsw i32 %40, 1
%42 = icmp sle i32 %39, %41
br i1 %42, label %43, label %61
43: ; preds = %38
%44 = load i32*, i32** %8
%45 = call i32 (i32*, i8*, ...) @fscanf(i32* %44, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %18, i32* %19, float* %29, float* %29)
store i32 %45, i32* %22
%46 = load i32, i32* %18
%47 = load i32, i32* %19
%48 = sub nsw i32 %46, %47
%49 = call i32 @abs(i32 %48)
%50 = load i32, i32* %12
%51 = icmp sgt i32 %49, %50
br i1 %51, label %52, label %57
52: ; preds = %43
%53 = load i32, i32* %18
%54 = load i32, i32* %19
%55 = sub nsw i32 %53, %54
%56 = call i32 @abs(i32 %55)
store i32 %56, i32* %12
br label %57
57: ; preds = %52, %43
br label %58
58: ; preds = %57
%59 = load i32, i32* %20
%60 = add nsw i32 %59, 1
store i32 %60, i32* %20
br label %38
61: ; preds = %38
%62 = load i32*, i32** %8
%63 = call i32 @fclose(i32* %62)
%64 = load i32, i32* %12
store i32 %64, i32* %13
%65 = load i32, i32* %12
%66 = load i32, i32* %13
%67 = add nsw i32 %65, %66
%68 = add nsw i32 %67, 1
store i32 %68, i32* %5
%69 = load i32, i32* %5
store i32 %69, i32* %6
%70 = load i32, i32* %10
%71 = load i32, i32* %12
%72 = load i32, i32* %13
%73 = add nsw i32 %71, %72
%74 = add nsw i32 %73, 1
%75 = mul nsw i32 %70, %74
store i32 %75, i32* %21
%76 = load i32, i32* %21
%77 = call float* @calloc(i32 %76, i32 4)
store float* %77, float** %14
%78 = load i32, i32* %21
%79 = call float* @calloc(i32 %78, i32 4)
store float* %79, float** %15
store i32 0, i32* %18
br label %80
80: ; preds = %94, %61
%81 = load i32, i32* %18
%82 = load i32, i32* %21
%83 = sub nsw i32 %82, 1
%84 = icmp sle i32 %81, %83
br i1 %84, label %85, label %97
85: ; preds = %80
%86 = load float*, float** %14
%87 = load i32, i32* %18
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds float, float* %86, i64 %88
store float 0.000000e+00, float* %89
%90 = load float*, float** %15
%91 = load i32, i32* %18
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, float* %90, i64 %92
store float 0.000000e+00, float* %93
br label %94
94: ; preds = %85
%95 = load i32, i32* %18
%96 = add nsw i32 %95, 1
store i32 %96, i32* %18
br label %80
97: ; preds = %80
%98 = getelementptr inbounds [14 x i8], [14 x i8]* %9, i64 0, i64 0
%99 = call i32* @fopen(i8* %98, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %99, i32** %8
%100 = load i32*, i32** %8
%101 = call i32 (i32*, i8*, ...) @fscanf(i32* %100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %10, i32* %11)
store i32 %101, i32* %22
store i32 0, i32* %20
br label %102
102: ; preds = %142, %97
%103 = load i32, i32* %20
%104 = load i32, i32* %11
%105 = sub nsw i32 %104, 1
%106 = icmp sle i32 %103, %105
br i1 %106, label %107, label %145
107: ; preds = %102
%108 = load i32*, i32** %8
%109 = call i32 (i32*, i8*, ...) @fscanf(i32* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %18, i32* %19)
store i32 %109, i32* %22
%110 = load i32*, i32** %8
%111 = load float*, float** %14
%112 = load i32, i32* %19
%113 = sub nsw i32 %112, 1
%114 = load i32, i32* %5
%115 = mul nsw i32 %113, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds float, float* %111, i64 %116
%118 = load i32, i32* %13
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds float, float* %117, i64 %119
%121 = load i32, i32* %18
%122 = load i32, i32* %19
%123 = sub nsw i32 %121, %122
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds float, float* %120, i64 %124
%126 = load float*, float** %15
%127 = load i32, i32* %19
%128 = sub nsw i32 %127, 1
%129 = load i32, i32* %6
%130 = mul nsw i32 %128, %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds float, float* %126, i64 %131
%133 = load i32, i32* %13
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds float, float* %132, i64 %134
%136 = load i32, i32* %18
%137 = load i32, i32* %19
%138 = sub nsw i32 %136, %137
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds float, float* %135, i64 %139
%141 = call i32 (i32*, i8*, ...) @fscanf(i32* %110, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), float* %125, float* %140)
store i32 %141, i32* %22
br label %142
142: ; preds = %107
%143 = load i32, i32* %20
%144 = add nsw i32 %143, 1
store i32 %144, i32* %20
br label %102
145: ; preds = %102
%146 = load i32*, i32** %8
%147 = call i32 @fclose(i32* %146)
%148 = load i32, i32* %10
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %148)
%150 = load i32, i32* %12
%151 = load i32, i32* %13
%152 = add nsw i32 %150, %151
%153 = add nsw i32 %152, 1
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %153)
%155 = call i32 @gettimeofday(%struct.timeval* %16, i32* null)
store float 0x3FC70A3D80000000, float* %26
store float 1.000000e+00, float* %27
store i32 25, i32* %23
%156 = load i32, i32* %23
%157 = call float* @calloc(i32 %156, i32 4)
store float* %157, float** %31
%158 = load i32, i32* %23
%159 = call float* @calloc(i32 %158, i32 4)
store float* %159, float** %32
%160 = load i32, i32* %10
%161 = load i32, i32* %23
%162 = mul nsw i32 %160, %161
%163 = call float* @calloc(i32 %162, i32 4)
store float* %163, float** %30
%164 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%165 = call i32 @feastinit(i32* %164)
%166 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
store i32 1, i32* %166
%167 = load float*, float** %14
%168 = load float*, float** %15
%169 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%170 = load float*, float** %31
%171 = load float*, float** %30
%172 = load float*, float** %32
%173 = call i32 @sfeast_sbgv(i8* %7, i32* %10, i32* %12, float* %167, i32* %5, i32* %12, float* %168, i32* %6, i32* %169, float* %3, i32* %4, float* %26, float* %27, i32* %23, float* %170, float* %171, i32* %24, float* %172, i32* %25)
%174 = call i32 @gettimeofday(%struct.timeval* %17, i32* null)
%175 = load i32, i32* %25
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %175)
%177 = load i32, i32* %25
%178 = icmp eq i32 %177, 0
br i1 %178, label %179, label %254
179: ; preds = %145
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%183 = getelementptr inbounds %struct.timeval, %struct.timeval* %17, i32 0, i32 0
%184 = load double, double* %183
%185 = getelementptr inbounds %struct.timeval, %struct.timeval* %16, i32 0, i32 0
%186 = load double, double* %185
%187 = fsub double %184, %186
%188 = getelementptr inbounds %struct.timeval, %struct.timeval* %17, i32 0, i32 1
%189 = load double, double* %188
%190 = getelementptr inbounds %struct.timeval, %struct.timeval* %16, i32 0, i32 1
%191 = load double, double* %190
%192 = fsub double %189, %191
%193 = fmul double %192, 0x3EB0C6F7A0B5ED8D
%194 = call double @llvm.fmuladd.f64(double %187, double 1.000000e+00, double %193)
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), double %194)
%196 = load float, float* %26
%197 = fpext float %196 to double
%198 = load float, float* %27
%199 = fpext float %198 to double
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), double %197, double %199)
%201 = load i32, i32* %24
%202 = load i32, i32* %23
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 %201, i32 %202)
%204 = load i32, i32* %4
%205 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %204)
store float 0.000000e+00, float* %28
store i32 0, i32* %18
br label %206
206: ; preds = %219, %179
%207 = load i32, i32* %18
%208 = load i32, i32* %24
%209 = sub nsw i32 %208, 1
%210 = icmp sle i32 %207, %209
br i1 %210, label %211, label %222
211: ; preds = %206
%212 = load float, float* %28
%213 = load float*, float** %31
%214 = load i32, i32* %18
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds float, float* %213, i64 %215
%217 = load float, float* %216
%218 = fadd float %212, %217
store float %218, float* %28
br label %219
219: ; preds = %211
%220 = load i32, i32* %18
%221 = add nsw i32 %220, 1
store i32 %221, i32* %18
br label %206
222: ; preds = %206
%223 = load float, float* %28
%224 = fpext float %223 to double
%225 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), double %224)
%226 = load float, float* %3
%227 = fpext float %226 to double
%228 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0), double %227)
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %18
br label %230
230: ; preds = %250, %222
%231 = load i32, i32* %18
%232 = load i32, i32* %24
%233 = sub nsw i32 %232, 1
%234 = icmp sle i32 %231, %233
br i1 %234, label %235, label %253
235: ; preds = %230
%236 = load i32, i32* %18
%237 = load float*, float** %31
%238 = load i32, i32* %18
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds float, float* %237, i64 %239
%241 = load float, float* %240
%242 = fpext float %241 to double
%243 = load float*, float** %32
%244 = load i32, i32* %18
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds float, float* %243, i64 %245
%247 = load float, float* %246
%248 = fpext float %247 to double
%249 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %236, double %242, double %248)
br label %250
250: ; preds = %235
%251 = load i32, i32* %18
%252 = add nsw i32 %251, 1
store i32 %252, i32* %18
br label %230
253: ; preds = %230
br label %254
254: ; preds = %253, %145
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 = [5 x i8] c"%d%d\00"
@.str.4 = [6 x i8] c"%f%f\0A\00"
@.str.5 = [33 x i8] c"dense matrix -system1- size %.d\0A\00"
@.str.6 = [15 x i8] c"bandwidth %d \0A\00"
@.str.7 = [22 x i8] c"FEAST OUTPUT INFO %d\0A\00"
@.str.10 = [20 x i8] c"SIMULATION TIME %f\0A\00"
@.str.11 = [37 x i8] c"# Search interval [Emin,Emax] %f %f\0A\00"
@.str.12 = [30 x i8] c"# mode found/subspace %d %d \0A\00"
@.str.13 = [18 x i8] c"# iterations %d \0A\00"
@.str.14 = [10 x i8] c"TRACE %f\0A\00"
@.str.15 = [32 x i8] c"Relative error on the Trace %f\0A\00"
@.str.17 = [13 x i8] c" %d %f %f\0A\00"
@str.18 = [50 x i8] c"************** REPORT ***************************\00"
@str.19 = [50 x i8] c"*************************************************\00"
@str.20 = [22 x i8] c"Eigenvalues/Residuals\00"
define i32 @main() {
%1 = alloca [64 x i32]
%2 = alloca float
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
%7 = alloca [14 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca <2 x double>
%12 = bitcast <2 x double>* %11 to %struct.timeval*
%13 = alloca <2 x double>
%14 = bitcast <2 x double>* %13 to %struct.timeval*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = bitcast [64 x i32]* %1 to i8*
%24 = bitcast float* %2 to i8*
%25 = bitcast i32* %3 to i8*
%26 = bitcast i32* %4 to i8*
%27 = bitcast i32* %5 to i8*
store i8 70, i8* %6
%28 = getelementptr inbounds [14 x i8], [14 x i8]* %7, i64 0, i64 0
%29 = bitcast i32* %8 to i8*
%30 = bitcast i32* %9 to i8*
%31 = bitcast i32* %10 to i8*
%32 = bitcast <2 x double>* %11 to i8*
%33 = bitcast <2 x double>* %13 to i8*
%34 = bitcast i32* %15 to i8*
%35 = bitcast i32* %16 to i8*
%36 = bitcast i32* %17 to i8*
%37 = bitcast i32* %18 to i8*
%38 = bitcast i32* %19 to i8*
%39 = bitcast float* %20 to i8*
%40 = bitcast float* %21 to i8*
%41 = bitcast float* %22 to i8*
store i32 0, i32* %10
%42 = call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = call i32 (i32*, i8*, ...) @fscanf(i32* %42, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %8, i32* %9)
%44 = load i32, i32* %9
%45 = icmp sgt i32 %44, 0
br i1 %45, label %46, label %61
46: ; preds = %0, %56
%47 = phi i32 [ %57, %56 ], [ 0, %0 ]
%48 = phi i32 [ %58, %56 ], [ 0, %0 ]
%49 = call i32 (i32*, i8*, ...) @fscanf(i32* %42, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32* %15, i32* %16, float* %22, float* %22)
%50 = load i32, i32* %15
%51 = load i32, i32* %16
%52 = sub nsw i32 %50, %51
%53 = call i32 @llvm.abs.i32(i32 %52, i1 true)
%54 = icmp sgt i32 %53, %47
br i1 %54, label %55, label %56
55: ; preds = %46
store i32 %53, i32* %10
br label %56
56: ; preds = %46, %55
%57 = phi i32 [ %47, %46 ], [ %53, %55 ]
%58 = add nuw nsw i32 %48, 1
%59 = load i32, i32* %9
%60 = icmp slt i32 %58, %59
br i1 %60, label %46, label %61
61: ; preds = %56, %0
%62 = phi i32 [ 0, %0 ], [ %57, %56 ]
%63 = call i32 @fclose(i32* %42)
%64 = shl nsw i32 %62, 1
%65 = or i32 %64, 1
store i32 %65, i32* %4
store i32 %65, i32* %5
%66 = load i32, i32* %8
%67 = mul nsw i32 %66, %65
%68 = call float* @calloc(i32 %67, i32 4)
%69 = call float* @calloc(i32 %67, i32 4)
%70 = icmp sgt i32 %67, 0
br i1 %70, label %71, label %76
71: ; preds = %61
%72 = bitcast float* %69 to i8*
%73 = bitcast float* %68 to i8*
%74 = zext i32 %67 to i64
%75 = shl nuw nsw i64 %74, 2
br label %76
76: ; preds = %71, %61
%77 = phi i32 [ 0, %61 ], [ %67, %71 ]
store i32 %77, i32* %15
%78 = call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%79 = call i32 (i32*, i8*, ...) @fscanf(i32* %78, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %8, i32* %9)
%80 = load i32, i32* %9
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %104
82: ; preds = %76
%83 = zext i32 %62 to i64
%84 = getelementptr inbounds float, float* %68, i64 %83
%85 = getelementptr inbounds float, float* %69, i64 %83
br label %86
86: ; preds = %82, %86
%87 = phi i32 [ 0, %82 ], [ %101, %86 ]
%88 = call i32 (i32*, i8*, ...) @fscanf(i32* %78, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %15, i32* %16)
%89 = load i32, i32* %16
%90 = add nsw i32 %89, -1
%91 = mul nsw i32 %90, %65
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, float* %84, i64 %92
%94 = load i32, i32* %15
%95 = sub nsw i32 %94, %89
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds float, float* %93, i64 %96
%98 = getelementptr inbounds float, float* %85, i64 %92
%99 = getelementptr inbounds float, float* %98, i64 %96
%100 = call i32 (i32*, i8*, ...) @fscanf(i32* %78, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), float* %97, float* %99)
%101 = add nuw nsw i32 %87, 1
%102 = load i32, i32* %9
%103 = icmp slt i32 %101, %102
br i1 %103, label %86, label %104
104: ; preds = %86, %76
%105 = call i32 @fclose(i32* %78)
%106 = load i32, i32* %8
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %106)
%108 = shl i32 %62, 1
%109 = or i32 %108, 1
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %109)
%111 = call i32 @gettimeofday(%struct.timeval* %12, i32* null)
store float 0x3FC70A3D80000000, float* %20
store float 1.000000e+00, float* %21
store i32 25, i32* %17
%112 = call float* @calloc(i32 25, i32 4)
%113 = call float* @calloc(i32 25, i32 4)
%114 = load i32, i32* %8
%115 = mul nsw i32 %114, 25
%116 = call float* @calloc(i32 %115, i32 4)
%117 = getelementptr inbounds [64 x i32], [64 x i32]* %1, i64 0, i64 0
%118 = call i32 @feastinit(i32* %117)
store i32 1, i32* %117
%119 = call i32 @sfeast_sbgv(i8* %6, i32* %8, i32* %10, float* %68, i32* %4, i32* %10, float* %69, i32* %5, i32* %117, float* %2, i32* %3, float* %20, float* %21, i32* %17, float* %112, float* %116, i32* %18, float* %113, i32* %19)
%120 = call i32 @gettimeofday(%struct.timeval* %14, i32* null)
%121 = load i32, i32* %19
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %19
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %236
125: ; preds = %104
%126 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%127 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.18, i64 0, i64 0))
%128 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%129 = load <2 x double>, <2 x double>* %13
%130 = load <2 x double>, <2 x double>* %11
%131 = fsub <2 x double> %129, %130
%132 = extractelement <2 x double> %131, i64 1
%133 = fmul double %132, 0x3EB0C6F7A0B5ED8D
%134 = extractelement <2 x double> %131, i64 0
%135 = fadd double %134, %133
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), double %135)
%137 = load float, float* %20
%138 = fpext float %137 to double
%139 = load float, float* %21
%140 = fpext float %139 to double
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), double %138, double %140)
%142 = load i32, i32* %18
%143 = load i32, i32* %17
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0), i32 %142, i32 %143)
%145 = load i32, i32* %3
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %145)
%147 = load i32, i32* %18
%148 = icmp sgt i32 %147, 0
br i1 %148, label %149, label %212
149: ; preds = %125
%150 = zext i32 %147 to i64
%151 = add nsw i64 %150, -1
%152 = and i64 %150, 7
%153 = icmp ult i64 %151, 7
br i1 %153, label %194, label %154
154: ; preds = %149
%155 = and i64 %150, 4294967288
br label %156
156: ; preds = %156, %154
%157 = phi i64 [ 0, %154 ], [ %191, %156 ]
%158 = phi float [ 0.000000e+00, %154 ], [ %190, %156 ]
%159 = phi i64 [ 0, %154 ], [ %192, %156 ]
%160 = getelementptr inbounds float, float* %112, i64 %157
%161 = load float, float* %160
%162 = fadd float %158, %161
%163 = or i64 %157, 1
%164 = getelementptr inbounds float, float* %112, i64 %163
%165 = load float, float* %164
%166 = fadd float %162, %165
%167 = or i64 %157, 2
%168 = getelementptr inbounds float, float* %112, i64 %167
%169 = load float, float* %168
%170 = fadd float %166, %169
%171 = or i64 %157, 3
%172 = getelementptr inbounds float, float* %112, i64 %171
%173 = load float, float* %172
%174 = fadd float %170, %173
%175 = or i64 %157, 4
%176 = getelementptr inbounds float, float* %112, i64 %175
%177 = load float, float* %176
%178 = fadd float %174, %177
%179 = or i64 %157, 5
%180 = getelementptr inbounds float, float* %112, i64 %179
%181 = load float, float* %180
%182 = fadd float %178, %181
%183 = or i64 %157, 6
%184 = getelementptr inbounds float, float* %112, i64 %183
%185 = load float, float* %184
%186 = fadd float %182, %185
%187 = or i64 %157, 7
%188 = getelementptr inbounds float, float* %112, i64 %187
%189 = load float, float* %188
%190 = fadd float %186, %189
%191 = add nuw nsw i64 %157, 8
%192 = add i64 %159, 8
%193 = icmp eq i64 %192, %155
br i1 %193, label %194, label %156
194: ; preds = %156, %149
%195 = phi float [ undef, %149 ], [ %190, %156 ]
%196 = phi i64 [ 0, %149 ], [ %191, %156 ]
%197 = phi float [ 0.000000e+00, %149 ], [ %190, %156 ]
%198 = icmp eq i64 %152, 0
br i1 %198, label %209, label %199
199: ; preds = %194, %199
%200 = phi i64 [ %206, %199 ], [ %196, %194 ]
%201 = phi float [ %205, %199 ], [ %197, %194 ]
%202 = phi i64 [ %207, %199 ], [ 0, %194 ]
%203 = getelementptr inbounds float, float* %112, i64 %200
%204 = load float, float* %203
%205 = fadd float %201, %204
%206 = add nuw nsw i64 %200, 1
%207 = add i64 %202, 1
%208 = icmp eq i64 %207, %152
br i1 %208, label %209, label %199
209: ; preds = %199, %194
%210 = phi float [ %195, %194 ], [ %205, %199 ]
%211 = fpext float %210 to double
br label %212
212: ; preds = %209, %125
%213 = phi i32 [ 0, %125 ], [ %147, %209 ]
%214 = phi double [ 0.000000e+00, %125 ], [ %211, %209 ]
store i32 %213, i32* %15
%215 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), double %214)
%216 = load float, float* %2
%217 = fpext float %216 to double
%218 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0), double %217)
%219 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.20, i64 0, i64 0))
store i32 0, i32* %15
%220 = load i32, i32* %18
%221 = icmp sgt i32 %220, 0
br i1 %221, label %222, label %236
222: ; preds = %212, %222
%223 = phi i32 [ %233, %222 ], [ 0, %212 ]
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds float, float* %112, i64 %224
%226 = load float, float* %225
%227 = fpext float %226 to double
%228 = getelementptr inbounds float, float* %113, i64 %224
%229 = load float, float* %228
%230 = fpext float %229 to double
%231 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %223, double %227, double %230)
%232 = load i32, i32* %15
%233 = add nsw i32 %232, 1
store i32 %233, i32* %15
%234 = load i32, i32* %18
%235 = icmp slt i32 %233, %234
br i1 %235, label %222, label %236
236: ; preds = %222, %212, %104
ret i32 0
}