#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*/ zfeast_hcsrev(char *, int *, double *, int *, int *, int *,
                                 double *, int *, double *, double *, int *,
                                 double *, double *, int *, double *, int *);
int main() {
  int feastparam[64];
  double epsout;
  int loop;
  char UPLO = 'F';
  FILE *fp;
  char name[] = "../../system2";
  int N, nnz;
  double *sa;
  int *isa, *jsa;
  struct timeval t1, t2;
  int i, k, err;
  int M0, M, info;
  double Emin, Emax, trace;
  double *X;
  double *E, *res;
  fp = fopen(name, "r");
  err = fscanf(fp, "%d%d\n", &N, &nnz);
  sa = calloc(2 * nnz, sizeof(double));
  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%lf%lf\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 = (double)-0.35;
  Emax = (double)0.23;
  M0 = 40;
  E = calloc(M0, sizeof(double));
  res = calloc(M0, sizeof(double));
  X = calloc(2 * N * M0, sizeof(double));
  feastinit(feastparam);
  feastparam[0] = 1;
  zfeast_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] %.15e %.15e\n", Emin, Emax);
    printf("# mode found/subspace %d %d \n", M, M0);
    printf("# iterations %d \n", loop);
    trace = (double)0.0;
    for (i = 0; i <= M - 1; i = i + 1) {
      trace = trace + *(E + i);
    }
    printf("TRACE %.15e\n", trace);
    printf("Relative error on the Trace %.15e\n", epsout);
    printf("Eigenvalues/Residuals\n");
    for (i = 0; i <= M - 1; i = i + 1) {
      printf("   %d %.15e %.15e\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    $0x228,%rsp
movl   $0x0,-0x2c(%rbp)
movb   $0x46,-0x13d(%rbp)
mov    0xe6f(%rip),%rax
mov    %rax,-0x156(%rbp)
mov    0xe6a(%rip),%eax
mov    %eax,-0x14e(%rbp)
mov    0xe61(%rip),%ax
mov    %ax,-0x14a(%rbp)
lea    -0x156(%rbp),%rdi
lea    0xe4e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x148(%rbp)
mov    -0x148(%rbp),%rdi
lea    0xe36(%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    $0x8,%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    $0x3,%rax
add    %rax,%r8
mov    -0x168(%rbp),%r9
mov    -0x1a0(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x3,%rax
add    %rax,%r9
add    $0x8,%r9
lea    0xd0a(%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    0xc4c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x160(%rbp),%esi
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x188(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <gettimeofday@plt>
movsd  0xbe7(%rip),%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  0xbcf(%rip),%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
movl   $0x28,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%edi
mov    $0x8,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d8(%rbp)
mov    -0x1a8(%rbp),%edi
mov    $0x8,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1e0(%rbp)
mov    -0x15c(%rbp),%edi
shl    $0x1,%edi
imul   -0x1a8(%rbp),%edi
mov    $0x8,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d0(%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    -0x1d8(%rbp),%r14
mov    -0x1d0(%rbp),%rbx
mov    -0x1e0(%rbp),%r10
lea    -0x13d(%rbp),%rdi
lea    -0x15c(%rbp),%rsi
lea    -0x138(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
lea    -0x13c(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
lea    -0x1b8(%rbp),%r13
lea    -0x1c0(%rbp),%r12
lea    -0x1a8(%rbp),%r15
lea    -0x1ac(%rbp),%r11
lea    -0x1b0(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x1f8(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x1f0(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x1e8(%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 <zfeast_hcsrev@plt>
lea    -0x198(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <gettimeofday@plt>
mov    -0x1b0(%rbp),%esi
lea    0xad0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1b0(%rbp)
jne    176e <main+0x5ee>
lea    0xacb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xaf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xaaf(%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  0xa15(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
lea    0xad7(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x1b8(%rbp),%xmm0
ff
movsd  -0x1c0(%rbp),%xmm1
ff
lea    0xacd(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x1ac(%rbp),%esi
mov    -0x1a8(%rbp),%edx
lea    0xade(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x13c(%rbp),%esi
lea    0xae8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1c8(%rbp)
ff
movl   $0x0,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
mov    -0x1ac(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     16c0 <main+0x540>
movsd  -0x1c8(%rbp),%xmm0
ff
mov    -0x1d8(%rbp),%rax
movslq -0x19c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1c8(%rbp)
ff
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    1672 <main+0x4f2>
movsd  -0x1c8(%rbp),%xmm0
ff
lea    0xa81(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x138(%rbp),%xmm0
ff
lea    0xa78(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xa8d(%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     1769 <main+0x5e9>
mov    -0x19c(%rbp),%esi
mov    -0x1d8(%rbp),%rax
movslq -0x19c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x1e0(%rbp),%rax
movslq -0x19c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    0xa49(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    1704 <main+0x584>
jmp    176e <main+0x5ee>
xor    %eax,%eax
add    $0x228,%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,0xf(%rsp)
movabs $0x326d6574737973,%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    0x14(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %rax,%r14
mov    %rax,%rdi
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    0x18(%rsp),%r12d
lea    (%r12,%r12,1),%edi
mov    $0x8,%esi
call   10b0 <calloc@plt>
mov    %rax,0x30(%rsp)
mov    0x14(%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,0x28(%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,0x8(%rsp)
movl   $0x1,(%rbx)
test   %r12d,%r12d
mov    %r14,%r12
jle    12cd <main+0x12d>
lea    0x8(%rsp),%rbp
mov    0x30(%rsp),%r15
mov    0x28(%rsp),%r13
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x8(%r15),%r9
mov    %r12,%rdi
lea    0xd80(%rip),%rsi
mov    %rbp,%rdx
mov    %r13,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   10a0 <fscanf@plt>
movslq 0x8(%rsp),%rax
addl   $0x1,(%rbx,%rax,4)
add    $0x1,%r14
movslq 0x18(%rsp),%rax
add    $0x4,%r13
add    $0x10,%r15
cmp    %rax,%r14
jl     1290 <main+0xf0>
mov    %r12,%rdi
call   1050 <fclose@plt>
mov    0x14(%rsp),%esi
test   %esi,%esi
jle    1351 <main+0x1b1>
mov    (%rbx),%eax
lea    -0x1(%rsi),%rdi
mov    %esi,%ecx
and    $0x3,%ecx
mov    $0x1,%edx
cmp    $0x3,%rdi
jb     132d <main+0x18d>
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    1300 <main+0x160>
add    $0x1,%rdx
lea    0x1(%rsi),%edi
test   %rcx,%rcx
je     1356 <main+0x1b6>
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    1340 <main+0x1a0>
jmp    1356 <main+0x1b6>
mov    $0x1,%edi
mov    %edi,0x8(%rsp)
lea    0xcc9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rsp),%esi
lea    0xcd9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x70(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
movabs $0xbfd6666666666666,%rax
66 d6 bf
mov    %rax,0x40(%rsp)
movabs $0x3fcd70a3d70a3d71,%rax
70 cd 3f
mov    %rax,0x38(%rsp)
movl   $0x28,0x20(%rsp)
mov    $0x28,%edi
mov    $0x8,%esi
call   10b0 <calloc@plt>
mov    %rax,%r12
mov    $0x28,%edi
mov    $0x8,%esi
call   10b0 <calloc@plt>
mov    %rax,%r14
mov    0x14(%rsp),%eax
shl    $0x4,%eax
lea    (%rax,%rax,4),%edi
mov    $0x8,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbp
lea    0x80(%rsp),%r15
mov    %r15,%rdi
call   1070 <feastinit@plt>
movl   $0x1,0x80(%rsp)
lea    0x1c(%rsp),%rax
lea    0x10(%rsp),%r10
lea    0x20(%rsp),%r11
lea    0x38(%rsp),%r13
lea    0xf(%rsp),%rdi
lea    0x14(%rsp),%rsi
mov    0x30(%rsp),%rdx
mov    %rbx,%rcx
mov    0x28(%rsp),%r8
mov    %r15,%r9
push   %rax
push   %r14
push   %r10
push   %rbp
push   %r12
push   %r11
push   %r13
lea    0x78(%rsp),%rax
push   %rax
lea    0x64(%rsp),%rax
push   %rax
lea    0x90(%rsp),%rax
push   %rax
call   1030 <zfeast_hcsrev@plt>
add    $0x50,%rsp
lea    0x60(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
mov    0x1c(%rsp),%esi
lea    0xbe4(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,0x1c(%rsp)
jne    162a <main+0x48a>
lea    0xcc5(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xc84(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
movapd 0x60(%rsp),%xmm1
subpd  0x70(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  0xb3e(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xb9e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%rsp),%xmm0
movsd  0x38(%rsp),%xmm1
lea    0xb98(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x10(%rsp),%esi
mov    0x20(%rsp),%edx
lea    0xbad(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%rsp),%esi
lea    0xbb9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rsp),%eax
test   %eax,%eax
jle    1535 <main+0x395>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x7,%ecx
cmp    $0x7,%rdx
jae    153d <main+0x39d>
xorpd  %xmm0,%xmm0
xor    %edx,%edx
jmp    1590 <main+0x3f0>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
jmp    15ae <main+0x40e>
mov    %eax,%esi
and    $0xfffffff8,%esi
xorpd  %xmm0,%xmm0
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
addsd  (%r12,%rdx,8),%xmm0
addsd  0x8(%r12,%rdx,8),%xmm0
addsd  0x10(%r12,%rdx,8),%xmm0
addsd  0x18(%r12,%rdx,8),%xmm0
addsd  0x20(%r12,%rdx,8),%xmm0
addsd  0x28(%r12,%rdx,8),%xmm0
addsd  0x30(%r12,%rdx,8),%xmm0
addsd  0x38(%r12,%rdx,8),%xmm0
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    1550 <main+0x3b0>
test   %rcx,%rcx
je     15ae <main+0x40e>
lea    (%r12,%rdx,8),%rdx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
addsd  (%rdx,%rsi,8),%xmm0
add    $0x1,%rsi
cmp    %rsi,%rcx
jne    15a0 <main+0x400>
mov    %eax,0x8(%rsp)
lea    0xb21(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x48(%rsp),%xmm0
lea    0xb1a(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xba6(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,0x8(%rsp)
cmpl   $0x0,0x10(%rsp)
jle    162a <main+0x48a>
xor    %eax,%eax
lea    0xb12(%rip),%rbx
nopl   0x0(%rax,%rax,1)
movslq %eax,%rsi
movsd  (%r12,%rsi,8),%xmm0
movsd  (%r14,%rsi,8),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x8(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x8(%rsp)
cmp    0x10(%rsp),%eax
jl     1600 <main+0x460>
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"../../system2\00"
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"%d%d\0A\00"
@.str.2 = [12 x i8] c"%d%d%lf%lf\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 = [43 x i8] c"# Search interval [Emin,Emax] %.15e %.15e\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 = [13 x i8] c"TRACE %.15e\0A\00"
@.str.13 = [35 x i8] c"Relative error on the Trace %.15e\0A\00"
@.str.14 = [23 x i8] c"Eigenvalues/Residuals\0A\00"
@.str.15 = [19 x i8] c" %d %.15e %.15e\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x i32]
%3 = alloca double
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32*
%7 = alloca [14 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca double*
%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 double
%22 = alloca double
%23 = alloca double
%24 = alloca double*
%25 = alloca double*
%26 = alloca double*
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 8)
%35 = bitcast i8* %34 to double*
store double* %35, double** %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 double*, double** %10
%69 = load i32, i32* %16
%70 = mul nsw i32 2, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %68, i64 %71
%73 = load double*, double** %10
%74 = load i32, i32* %16
%75 = mul nsw i32 2, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %73, i64 %76
%78 = getelementptr inbounds double, double* %77, i64 1
%79 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %63, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32* %15, i32* %67, double* %72, double* %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 double -3.500000e-01, double* %21
store double 2.300000e-01, double* %22
store i32 40, i32* %18
%126 = load i32, i32* %18
%127 = call i8* @calloc(i32 %126, i32 8)
%128 = bitcast i8* %127 to double*
store double* %128, double** %25
%129 = load i32, i32* %18
%130 = call i8* @calloc(i32 %129, i32 8)
%131 = bitcast i8* %130 to double*
store double* %131, double** %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 8)
%137 = bitcast i8* %136 to double*
store double* %137, double** %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 double*, double** %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 double*, double** %25
%146 = load double*, double** %24
%147 = load double*, double** %26
%148 = call i32 @zfeast_hcsrev(i8* %5, i32* %8, double* %141, i32* %142, i32* %143, i32* %144, double* %3, i32* %4, double* %21, double* %22, i32* %18, double* %145, double* %146, i32* %19, double* %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 %223
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 double, double* %21
%172 = load double, double* %22
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), double %171, double %172)
%174 = load i32, i32* %19
%175 = load i32, i32* %18
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %174, i32 %175)
%177 = load i32, i32* %4
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %177)
store double 0.000000e+00, double* %23
store i32 0, i32* %15
br label %179
179: ; preds = %192, %154
%180 = load i32, i32* %15
%181 = load i32, i32* %19
%182 = sub nsw i32 %181, 1
%183 = icmp sle i32 %180, %182
br i1 %183, label %184, label %195
184: ; preds = %179
%185 = load double, double* %23
%186 = load double*, double** %25
%187 = load i32, i32* %15
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %186, i64 %188
%190 = load double, double* %189
%191 = fadd double %185, %190
store double %191, double* %23
br label %192
192: ; preds = %184
%193 = load i32, i32* %15
%194 = add nsw i32 %193, 1
store i32 %194, i32* %15
br label %179
195: ; preds = %179
%196 = load double, double* %23
%197 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), double %196)
%198 = load double, double* %3
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), double %198)
%200 = 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 %201
201: ; preds = %219, %195
%202 = load i32, i32* %15
%203 = load i32, i32* %19
%204 = sub nsw i32 %203, 1
%205 = icmp sle i32 %202, %204
br i1 %205, label %206, label %222
206: ; preds = %201
%207 = load i32, i32* %15
%208 = load double*, double** %25
%209 = load i32, i32* %15
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, double* %208, i64 %210
%212 = load double, double* %211
%213 = load double*, double** %26
%214 = load i32, i32* %15
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, double* %213, i64 %215
%217 = load double, double* %216
%218 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i32 %207, double %212, double %217)
br label %219
219: ; preds = %206
%220 = load i32, i32* %15
%221 = add nsw i32 %220, 1
store i32 %221, i32* %15
br label %201
222: ; preds = %201
br label %223
223: ; preds = %222, %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 = [12 x i8] c"%d%d%lf%lf\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 = [43 x i8] c"# Search interval [Emin,Emax] %.15e %.15e\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 = [13 x i8] c"TRACE %.15e\0A\00"
@.str.13 = [35 x i8] c"Relative error on the Trace %.15e\0A\00"
@.str.15 = [19 x i8] c" %d %.15e %.15e\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 double
%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 double
%17 = alloca double
%18 = bitcast [64 x i32]* %1 to i8*
%19 = bitcast double* %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 double* %16 to i8*
%31 = bitcast double* %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 8)
%37 = bitcast i8* %36 to double*
%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 double, double* %37, i64 %56
%58 = getelementptr inbounds double, double* %57, i64 1
%59 = call i32 (i32*, i8*, i32*, i32*, ...) @fscanf(i32* %32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32* %55, double* %57, double* %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 double -3.500000e-01, double* %16
store double 2.300000e-01, double* %17
store i32 40, i32* %13
%125 = call dereferenceable_or_null(320) i8* @calloc(i32 40, i32 8)
%126 = bitcast i8* %125 to double*
%127 = call dereferenceable_or_null(320) i8* @calloc(i32 40, i32 8)
%128 = bitcast i8* %127 to double*
%129 = load i32, i32* %6
%130 = mul nsw i32 %129, 80
%131 = call i8* @calloc(i32 %130, i32 8)
%132 = bitcast i8* %131 to double*
%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 @zfeast_hcsrev(i8* %4, i32* %6, double* %37, i32* %41, i32* %43, i32* %133, double* %2, i32* %3, double* %16, double* %17, i32* %13, double* %126, double* %132, i32* %14, double* %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 %244
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 double, double* %16
%154 = load double, double* %17
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), double %153, double %154)
%156 = load i32, i32* %14
%157 = load i32, i32* %13
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %156, i32 %157)
%159 = load i32, i32* %3
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %159)
%161 = load i32, i32* %14
%162 = icmp sgt i32 %161, 0
br i1 %162, label %163, label %223
163: ; preds = %141
%164 = zext i32 %161 to i64
%165 = add nsw i64 %164, -1
%166 = and i64 %164, 7
%167 = icmp ult i64 %165, 7
br i1 %167, label %208, label %168
168: ; preds = %163
%169 = and i64 %164, 4294967288
br label %170
170: ; preds = %170, %168
%171 = phi i64 [ 0, %168 ], [ %205, %170 ]
%172 = phi double [ 0.000000e+00, %168 ], [ %204, %170 ]
%173 = phi i64 [ 0, %168 ], [ %206, %170 ]
%174 = getelementptr inbounds double, double* %126, i64 %171
%175 = load double, double* %174
%176 = fadd double %172, %175
%177 = or i64 %171, 1
%178 = getelementptr inbounds double, double* %126, i64 %177
%179 = load double, double* %178
%180 = fadd double %176, %179
%181 = or i64 %171, 2
%182 = getelementptr inbounds double, double* %126, i64 %181
%183 = load double, double* %182
%184 = fadd double %180, %183
%185 = or i64 %171, 3
%186 = getelementptr inbounds double, double* %126, i64 %185
%187 = load double, double* %186
%188 = fadd double %184, %187
%189 = or i64 %171, 4
%190 = getelementptr inbounds double, double* %126, i64 %189
%191 = load double, double* %190
%192 = fadd double %188, %191
%193 = or i64 %171, 5
%194 = getelementptr inbounds double, double* %126, i64 %193
%195 = load double, double* %194
%196 = fadd double %192, %195
%197 = or i64 %171, 6
%198 = getelementptr inbounds double, double* %126, i64 %197
%199 = load double, double* %198
%200 = fadd double %196, %199
%201 = or i64 %171, 7
%202 = getelementptr inbounds double, double* %126, i64 %201
%203 = load double, double* %202
%204 = fadd double %200, %203
%205 = add nuw nsw i64 %171, 8
%206 = add i64 %173, 8
%207 = icmp eq i64 %206, %169
br i1 %207, label %208, label %170
208: ; preds = %170, %163
%209 = phi double [ undef, %163 ], [ %204, %170 ]
%210 = phi i64 [ 0, %163 ], [ %205, %170 ]
%211 = phi double [ 0.000000e+00, %163 ], [ %204, %170 ]
%212 = icmp eq i64 %166, 0
br i1 %212, label %223, label %213
213: ; preds = %208, %213
%214 = phi i64 [ %220, %213 ], [ %210, %208 ]
%215 = phi double [ %219, %213 ], [ %211, %208 ]
%216 = phi i64 [ %221, %213 ], [ 0, %208 ]
%217 = getelementptr inbounds double, double* %126, i64 %214
%218 = load double, double* %217
%219 = fadd double %215, %218
%220 = add nuw nsw i64 %214, 1
%221 = add i64 %216, 1
%222 = icmp eq i64 %221, %166
br i1 %222, label %223, label %213
223: ; preds = %208, %213, %141
%224 = phi i32 [ 0, %141 ], [ %161, %213 ], [ %161, %208 ]
%225 = phi double [ 0.000000e+00, %141 ], [ %209, %208 ], [ %219, %213 ]
store i32 %224, i32* %12
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), double %225)
%227 = load double, double* %2
%228 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), double %227)
%229 = 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
%230 = load i32, i32* %14
%231 = icmp sgt i32 %230, 0
br i1 %231, label %232, label %244
232: ; preds = %223, %232
%233 = phi i32 [ %241, %232 ], [ 0, %223 ]
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double, double* %126, i64 %234
%236 = load double, double* %235
%237 = getelementptr inbounds double, double* %128, i64 %234
%238 = load double, double* %237
%239 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i32 %233, double %236, double %238)
%240 = load i32, i32* %12
%241 = add nsw i32 %240, 1
store i32 %241, i32* %12
%242 = load i32, i32* %14
%243 = icmp slt i32 %241, %242
br i1 %243, label %232, label %244
244: ; preds = %232, %223, %119
ret i32 0
}