#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 */
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_sygv(char *, int *, float *, int *, float *, 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 *A, *B;
  struct timeval t1, t2;
  int i, j, k, n2, 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);
  n2 = N * N;
  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;
  };
  for (k = 0; k <= nnz - 1; k++) {
    err = fscanf(fp, "%d%d", &i, &j);
    err =
        fscanf(fp, "%f%f\n", A + (j - 1) * N + i - 1, B + (j - 1) * N + i - 1);
  };
  fclose(fp);
  printf("dense matrix -system1- size %.d\n", N);
  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_sygv(&UPLO, &N, A, &N, B, &N, 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    $0x228,%rsp
movl   $0x0,-0x2c(%rbp)
movb   $0x46,-0x139(%rbp)
mov    0xe67(%rip),%rax
mov    %rax,-0x156(%rbp)
mov    0xe62(%rip),%eax
mov    %eax,-0x14e(%rbp)
mov    0xe59(%rip),%ax
mov    %ax,-0x14a(%rbp)
lea    -0x156(%rbp),%rdi
lea    0xe46(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x148(%rbp)
mov    -0x148(%rbp),%rdi
lea    0xe2e(%rip),%rsi
lea    -0x15c(%rbp),%rdx
lea    -0x160(%rbp),%rcx
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    %eax,-0x1a4(%rbp)
mov    -0x15c(%rbp),%eax
imul   -0x15c(%rbp),%eax
mov    %eax,-0x1a0(%rbp)
mov    -0x1a0(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x168(%rbp)
mov    -0x1a0(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x170(%rbp)
movl   $0x0,-0x194(%rbp)
mov    -0x194(%rbp),%eax
mov    -0x1a0(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     12af <main+0x12f>
mov    -0x168(%rbp),%rax
movslq -0x194(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x170(%rbp),%rax
movslq -0x194(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1258 <main+0xd8>
movl   $0x0,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
mov    -0x160(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     138c <main+0x20c>
mov    -0x148(%rbp),%rdi
lea    0xd48(%rip),%rsi
lea    -0x194(%rbp),%rdx
lea    -0x198(%rbp),%rcx
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    %eax,-0x1a4(%rbp)
mov    -0x148(%rbp),%rdi
mov    -0x168(%rbp),%rdx
mov    -0x198(%rbp),%eax
sub    $0x1,%eax
imul   -0x15c(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rdx
movslq -0x194(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
add    $0xfffffffffffffffc,%rdx
mov    -0x170(%rbp),%rcx
mov    -0x198(%rbp),%eax
sub    $0x1,%eax
imul   -0x15c(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rcx
movslq -0x194(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
add    $0xfffffffffffffffc,%rcx
lea    0xcc0(%rip),%rsi
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    %eax,-0x1a4(%rbp)
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    12b9 <main+0x139>
mov    -0x148(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x15c(%rbp),%esi
lea    0xc8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x180(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <gettimeofday@plt>
movss  0xc40(%rip),%xmm0
movss  %xmm0,-0x1b4(%rbp)
ff
movss  0xc2c(%rip),%xmm0
movss  %xmm0,-0x1b8(%rbp)
ff
movl   $0x19,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d0(%rbp)
mov    -0x1a8(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1d8(%rbp)
mov    -0x15c(%rbp),%edi
imul   -0x1a8(%rbp),%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
mov    %rax,-0x1c8(%rbp)
lea    -0x130(%rbp),%rdi
call   1060 <feastinit@plt>
movl   $0x1,-0x130(%rbp)
mov    -0x168(%rbp),%rdx
mov    -0x170(%rbp),%r8
lea    -0x130(%rbp),%rax
mov    -0x1d0(%rbp),%r14
mov    -0x1c8(%rbp),%rbx
mov    -0x1d8(%rbp),%r10
lea    -0x139(%rbp),%rdi
lea    -0x15c(%rbp),%r9
lea    -0x134(%rbp),%rcx
mov    %rcx,-0x1f0(%rbp)
lea    -0x138(%rbp),%rcx
mov    %rcx,-0x1e8(%rbp)
lea    -0x1b4(%rbp),%r13
lea    -0x1b8(%rbp),%r12
lea    -0x1a8(%rbp),%r15
lea    -0x1ac(%rbp),%r11
lea    -0x1b0(%rbp),%rcx
mov    %rcx,-0x1e0(%rbp)
mov    %r9,%rsi
mov    %r9,%rcx
mov    %rax,(%rsp)
mov    -0x1f0(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x1e8(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x1e0(%rbp),%rax
mov    %r13,0x18(%rsp)
mov    %r12,0x20(%rsp)
mov    %r15,0x28(%rsp)
mov    %r14,0x30(%rsp)
mov    %rbx,0x38(%rsp)
mov    %r11,0x40(%rsp)
mov    %r10,0x48(%rsp)
mov    %rax,0x50(%rsp)
call   1030 <sfeast_sygv@plt>
lea    -0x190(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <gettimeofday@plt>
mov    -0x1b0(%rbp),%esi
lea    0xb19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1b0(%rbp)
jne    172a <main+0x5aa>
lea    0xb14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xb39(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xaf8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  -0x190(%rbp),%xmm0
ff
subsd  -0x180(%rbp),%xmm0
ff
movsd  -0x188(%rbp),%xmm1
ff
subsd  -0x178(%rbp),%xmm1
ff
movsd  0xa69(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
lea    0xb20(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x1b4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x1b8(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
lea    0xb0e(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x1ac(%rbp),%esi
mov    -0x1a8(%rbp),%edx
lea    0xb19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x138(%rbp),%esi
lea    0xb23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1bc(%rbp)
ff
movl   $0x0,-0x194(%rbp)
mov    -0x194(%rbp),%eax
mov    -0x1ac(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     166c <main+0x4ec>
movss  -0x1bc(%rbp),%xmm0
ff
mov    -0x1d0(%rbp),%rax
movslq -0x194(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x1bc(%rbp)
ff
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    161e <main+0x49e>
movss  -0x1bc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xab8(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x134(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xaa8(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xaba(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x194(%rbp)
mov    -0x194(%rbp),%eax
mov    -0x1ac(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1725 <main+0x5a5>
mov    -0x194(%rbp),%esi
mov    -0x1d0(%rbp),%rax
movslq -0x194(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x1d8(%rbp),%rax
movslq -0x194(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xa6e(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    16b8 <main+0x538>
jmp    172a <main+0x5aa>
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    $0x178,%rsp
movb   $0x46,0x3(%rsp)
movabs $0x316d6574737973,%rax
mov    %rax,0x46(%rsp)
movabs $0x79732f2e2e2f2e2e,%rax
2f 73 79
mov    %rax,0x40(%rsp)
lea    0xe3b(%rip),%rsi
lea    0x40(%rsp),%rdi
call   10c0 <fopen@plt>
mov    %rax,%rbx
lea    0xe29(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0x20(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    0x8(%rsp),%ebp
imul   %ebp,%ebp
mov    %ebp,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r15
mov    %ebp,%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%r12
test   %ebp,%ebp
je     124d <main+0xad>
mov    %ebp,%r14d
shl    $0x2,%r14
mov    %r15,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1090 <memset@plt>
mov    %r12,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1090 <memset@plt>
mov    %r12,0x30(%rsp)
mov    %r15,0x38(%rsp)
mov    %ebp,0x4(%rsp)
cmpl   $0x0,0x20(%rsp)
jle    12e8 <main+0x148>
mov    0x38(%rsp),%r12
add    $0xfffffffffffffffc,%r12
mov    0x30(%rsp),%r14
add    $0xfffffffffffffffc,%r14
lea    0x24(%rsp),%rbp
lea    0xd9f(%rip),%r15
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
lea    0xd84(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   10a0 <fscanf@plt>
movslq 0x24(%rsp),%rax
add    $0xffffffffffffffff,%rax
movslq 0x8(%rsp),%rcx
imul   %rax,%rcx
movslq 0x4(%rsp),%rax
lea    (%r12,%rcx,4),%rdx
lea    (%rdx,%rax,4),%rdx
lea    (%r14,%rcx,4),%rcx
lea    (%rcx,%rax,4),%rcx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10a0 <fscanf@plt>
add    $0x1,%r13d
cmp    0x20(%rsp),%r13d
jl     1290 <main+0xf0>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    0x8(%rsp),%esi
lea    0xd2e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x60(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
movl   $0x3e3851ec,0x14(%rsp)
3e
movl   $0x3f800000,0x10(%rsp)
3f
movl   $0x19,0x1c(%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    0x8(%rsp),%eax
lea    (%rax,%rax,4),%eax
lea    (%rax,%rax,4),%edi
mov    $0x4,%esi
call   10b0 <calloc@plt>
mov    %rax,%rbp
lea    0x70(%rsp),%r15
mov    %r15,%rdi
call   1070 <feastinit@plt>
movl   $0x1,0x70(%rsp)
sub    $0x8,%rsp
lea    0x20(%rsp),%rax
lea    0x14(%rsp),%r10
lea    0x24(%rsp),%r11
lea    0x18(%rsp),%r12
lea    0x1c(%rsp),%r13
lea    0xb(%rsp),%rdi
lea    0x10(%rsp),%rcx
mov    %rcx,%rsi
mov    0x40(%rsp),%rdx
mov    0x38(%rsp),%r8
mov    %rcx,%r9
push   %rax
push   %r14
push   %r10
push   %rbp
push   %rbx
push   %r11
push   %r12
push   %r13
lea    0x70(%rsp),%rax
push   %rax
lea    0x7c(%rsp),%rax
push   %rax
push   %r15
call   1040 <sfeast_sygv@plt>
add    $0x60,%rsp
lea    0x50(%rsp),%rdi
xor    %esi,%esi
call   1080 <gettimeofday@plt>
mov    0x18(%rsp),%esi
lea    0xc62(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,0x18(%rsp)
jne    15b1 <main+0x411>
lea    0xd31(%rip),%rbp
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0xcf0(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
movapd 0x50(%rsp),%xmm1
subpd  0x60(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  0xbc7(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xc1c(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x10(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc0e(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x1c(%rsp),%edx
lea    0xc1d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%rsp),%esi
lea    0xc29(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    14b3 <main+0x313>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x7,%ecx
cmp    $0x7,%rdx
jae    14ba <main+0x31a>
xorps  %xmm0,%xmm0
xor    %edx,%edx
jmp    1508 <main+0x368>
xorps  %xmm0,%xmm0
xor    %eax,%eax
jmp    1532 <main+0x392>
mov    %eax,%esi
and    $0xfffffff8,%esi
xorps  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
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    14d0 <main+0x330>
test   %rcx,%rcx
je     152e <main+0x38e>
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    1520 <main+0x380>
cvtss2sd %xmm0,%xmm0
mov    %eax,0x4(%rsp)
lea    0xb8c(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb7e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc01(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,0x4(%rsp)
cmpl   $0x0,0xc(%rsp)
jle    15b1 <main+0x411>
xor    %eax,%eax
lea    0xb73(%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    0xc(%rsp),%eax
jl     1580 <main+0x3e0>
xor    %eax,%eax
add    $0x178,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
@__const.main.name = [14 x i8] c"../../system1\00"
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"%d%d\0A\00"
@.str.2 = [5 x i8] c"%d%d\00"
@.str.3 = [6 x i8] c"%f%f\0A\00"
@.str.4 = [33 x i8] c"dense matrix -system1- size %.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 %struct.timeval
%13 = alloca %struct.timeval
%14 = alloca i32
%15 = alloca i32
%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*, ...) @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* %8
%34 = load i32, i32* %8
%35 = mul nsw i32 %33, %34
store i32 %35, i32* %17
%36 = load i32, i32* %17
%37 = call float* @calloc(i32 %36, i32 4)
store float* %37, float** %10
%38 = load i32, i32* %17
%39 = call float* @calloc(i32 %38, i32 4)
store float* %39, float** %11
store i32 0, i32* %14
br label %40
40: ; preds = %54, %0
%41 = load i32, i32* %14
%42 = load i32, i32* %17
%43 = sub nsw i32 %42, 1
%44 = icmp sle i32 %41, %43
br i1 %44, label %45, label %57
45: ; preds = %40
%46 = load float*, float** %10
%47 = load i32, i32* %14
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds float, float* %46, i64 %48
store float 0.000000e+00, float* %49
%50 = load float*, float** %11
%51 = load i32, i32* %14
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, float* %50, i64 %52
store float 0.000000e+00, float* %53
br label %54
54: ; preds = %45
%55 = load i32, i32* %14
%56 = add nsw i32 %55, 1
store i32 %56, i32* %14
br label %40
57: ; preds = %40
store i32 0, i32* %16
br label %58
58: ; preds = %90, %57
%59 = load i32, i32* %16
%60 = load i32, i32* %9
%61 = sub nsw i32 %60, 1
%62 = icmp sle i32 %59, %61
br i1 %62, label %63, label %93
63: ; preds = %58
%64 = load i32*, i32** %6
%65 = call i32 (i32*, i8*, ...) @fscanf(i32* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %14, i32* %15)
store i32 %65, i32* %18
%66 = load i32*, i32** %6
%67 = load float*, float** %10
%68 = load i32, i32* %15
%69 = sub nsw i32 %68, 1
%70 = load i32, i32* %8
%71 = mul nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds float, float* %67, i64 %72
%74 = load i32, i32* %14
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds float, float* %73, i64 %75
%77 = getelementptr inbounds float, float* %76, i64 -1
%78 = load float*, float** %11
%79 = load i32, i32* %15
%80 = sub nsw i32 %79, 1
%81 = load i32, i32* %8
%82 = mul nsw i32 %80, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, float* %78, i64 %83
%85 = load i32, i32* %14
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, float* %84, i64 %86
%88 = getelementptr inbounds float, float* %87, i64 -1
%89 = call i32 (i32*, i8*, ...) @fscanf(i32* %66, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), float* %77, float* %88)
store i32 %89, i32* %18
br label %90
90: ; preds = %63
%91 = load i32, i32* %16
%92 = add nsw i32 %91, 1
store i32 %92, i32* %16
br label %58
93: ; preds = %58
%94 = load i32*, i32** %6
%95 = call i32 @fclose(i32* %94)
%96 = load i32, i32* %8
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %96)
%98 = call i32 @gettimeofday(%struct.timeval* %12, i32* null)
store float 0x3FC70A3D80000000, float* %22
store float 1.000000e+00, float* %23
store i32 25, i32* %19
%99 = load i32, i32* %19
%100 = call float* @calloc(i32 %99, i32 4)
store float* %100, float** %26
%101 = load i32, i32* %19
%102 = call float* @calloc(i32 %101, i32 4)
store float* %102, float** %27
%103 = load i32, i32* %8
%104 = load i32, i32* %19
%105 = mul nsw i32 %103, %104
%106 = call float* @calloc(i32 %105, i32 4)
store float* %106, float** %25
%107 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%108 = call i32 @feastinit(i32* %107)
%109 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
store i32 1, i32* %109
%110 = load float*, float** %10
%111 = load float*, float** %11
%112 = getelementptr inbounds [64 x i32], [64 x i32]* %2, i64 0, i64 0
%113 = load float*, float** %26
%114 = load float*, float** %25
%115 = load float*, float** %27
%116 = call i32 @sfeast_sygv(i8* %5, i32* %8, float* %110, i32* %8, float* %111, i32* %8, i32* %112, float* %3, i32* %4, float* %22, float* %23, i32* %19, float* %113, float* %114, i32* %20, float* %115, i32* %21)
%117 = call i32 @gettimeofday(%struct.timeval* %13, i32* null)
%118 = load i32, i32* %21
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %118)
%120 = load i32, i32* %21
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %197
122: ; preds = %93
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%126 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 0
%127 = load double, double* %126
%128 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 0
%129 = load double, double* %128
%130 = fsub double %127, %129
%131 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 1
%132 = load double, double* %131
%133 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 1
%134 = load double, double* %133
%135 = fsub double %132, %134
%136 = fmul double %135, 0x3EB0C6F7A0B5ED8D
%137 = call double @llvm.fmuladd.f64(double %130, double 1.000000e+00, double %136)
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %137)
%139 = load float, float* %22
%140 = fpext float %139 to double
%141 = load float, float* %23
%142 = fpext float %141 to double
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), double %140, double %142)
%144 = load i32, i32* %20
%145 = load i32, i32* %19
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %144, i32 %145)
%147 = load i32, i32* %4
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %147)
store float 0.000000e+00, float* %24
store i32 0, i32* %14
br label %149
149: ; preds = %162, %122
%150 = load i32, i32* %14
%151 = load i32, i32* %20
%152 = sub nsw i32 %151, 1
%153 = icmp sle i32 %150, %152
br i1 %153, label %154, label %165
154: ; preds = %149
%155 = load float, float* %24
%156 = load float*, float** %26
%157 = load i32, i32* %14
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds float, float* %156, i64 %158
%160 = load float, float* %159
%161 = fadd float %155, %160
store float %161, float* %24
br label %162
162: ; preds = %154
%163 = load i32, i32* %14
%164 = add nsw i32 %163, 1
store i32 %164, i32* %14
br label %149
165: ; preds = %149
%166 = load float, float* %24
%167 = fpext float %166 to double
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double %167)
%169 = load float, float* %3
%170 = fpext float %169 to double
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), double %170)
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %14
br label %173
173: ; preds = %193, %165
%174 = load i32, i32* %14
%175 = load i32, i32* %20
%176 = sub nsw i32 %175, 1
%177 = icmp sle i32 %174, %176
br i1 %177, label %178, label %196
178: ; preds = %173
%179 = load i32, i32* %14
%180 = load float*, float** %26
%181 = load i32, i32* %14
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds float, float* %180, i64 %182
%184 = load float, float* %183
%185 = fpext float %184 to double
%186 = load float*, float** %27
%187 = load i32, i32* %14
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds float, float* %186, i64 %188
%190 = load float, float* %189
%191 = fpext float %190 to double
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %179, double %185, double %191)
br label %193
193: ; preds = %178
%194 = load i32, i32* %14
%195 = add nsw i32 %194, 1
store i32 %195, i32* %14
br label %173
196: ; preds = %173
br label %197
197: ; preds = %196, %93
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 = [5 x i8] c"%d%d\00"
@.str.3 = [6 x i8] c"%f%f\0A\00"
@.str.4 = [33 x i8] c"dense matrix -system1- size %.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 i32
%17 = alloca float
%18 = alloca float
%19 = bitcast [64 x i32]* %1 to i8*
%20 = bitcast float* %2 to i8*
%21 = bitcast i32* %3 to i8*
store i8 70, i8* %4
%22 = getelementptr inbounds [14 x i8], [14 x i8]* %5, i64 0, i64 0
%23 = bitcast i32* %6 to i8*
%24 = bitcast i32* %7 to i8*
%25 = bitcast <2 x double>* %8 to i8*
%26 = bitcast <2 x double>* %10 to i8*
%27 = bitcast i32* %12 to i8*
%28 = bitcast i32* %13 to i8*
%29 = bitcast i32* %14 to i8*
%30 = bitcast i32* %15 to i8*
%31 = bitcast i32* %16 to i8*
%32 = bitcast float* %17 to i8*
%33 = bitcast float* %18 to i8*
%34 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%35 = call i32 (i32*, i8*, ...) @fscanf(i32* %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %6, i32* %7)
%36 = load i32, i32* %6
%37 = mul nsw i32 %36, %36
%38 = call float* @calloc(i32 %37, i32 4)
%39 = call float* @calloc(i32 %37, i32 4)
%40 = icmp eq i32 %37, 0
br i1 %40, label %46, label %41
41: ; preds = %0
%42 = bitcast float* %39 to i8*
%43 = bitcast float* %38 to i8*
%44 = zext i32 %37 to i64
%45 = shl nuw nsw i64 %44, 2
br label %46
46: ; preds = %41, %0
store i32 %37, i32* %12
%47 = load i32, i32* %7
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %70
49: ; preds = %46
%50 = getelementptr inbounds float, float* %38, i64 -1
%51 = getelementptr inbounds float, float* %39, i64 -1
br label %52
52: ; preds = %49, %52
%53 = phi i32 [ %67, %52 ], [ 0, %49 ]
%54 = call i32 (i32*, i8*, ...) @fscanf(i32* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32* %13)
%55 = load i32, i32* %13
%56 = add nsw i32 %55, -1
%57 = load i32, i32* %6
%58 = mul nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = load i32, i32* %12
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds float, float* %50, i64 %59
%63 = getelementptr inbounds float, float* %62, i64 %61
%64 = getelementptr inbounds float, float* %51, i64 %59
%65 = getelementptr inbounds float, float* %64, i64 %61
%66 = call i32 (i32*, i8*, ...) @fscanf(i32* %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), float* %63, float* %65)
%67 = add nuw nsw i32 %53, 1
%68 = load i32, i32* %7
%69 = icmp slt i32 %67, %68
br i1 %69, label %52, label %70
70: ; preds = %52, %46
%71 = call i32 @fclose(i32* %34)
%72 = load i32, i32* %6
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %72)
%74 = call i32 @gettimeofday(%struct.timeval* %9, i32* null)
store float 0x3FC70A3D80000000, float* %17
store float 1.000000e+00, float* %18
store i32 25, i32* %14
%75 = call float* @calloc(i32 25, i32 4)
%76 = call float* @calloc(i32 25, i32 4)
%77 = load i32, i32* %6
%78 = mul nsw i32 %77, 25
%79 = call float* @calloc(i32 %78, i32 4)
%80 = getelementptr inbounds [64 x i32], [64 x i32]* %1, i64 0, i64 0
%81 = call i32 @feastinit(i32* %80)
store i32 1, i32* %80
%82 = call i32 @sfeast_sygv(i8* %4, i32* %6, float* %38, i32* %6, float* %39, i32* %6, i32* %80, float* %2, i32* %3, float* %17, float* %18, i32* %14, float* %75, float* %79, i32* %15, float* %76, i32* %16)
%83 = call i32 @gettimeofday(%struct.timeval* %11, i32* null)
%84 = load i32, i32* %16
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %16
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %199
88: ; preds = %70
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.17, i64 0, i64 0))
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.16, i64 0, i64 0))
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.17, i64 0, i64 0))
%92 = load <2 x double>, <2 x double>* %10
%93 = load <2 x double>, <2 x double>* %8
%94 = fsub <2 x double> %92, %93
%95 = extractelement <2 x double> %94, i64 1
%96 = fmul double %95, 0x3EB0C6F7A0B5ED8D
%97 = extractelement <2 x double> %94, i64 0
%98 = fadd double %97, %96
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), double %98)
%100 = load float, float* %17
%101 = fpext float %100 to double
%102 = load float, float* %18
%103 = fpext float %102 to double
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), double %101, double %103)
%105 = load i32, i32* %15
%106 = load i32, i32* %14
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %105, i32 %106)
%108 = load i32, i32* %3
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %108)
%110 = load i32, i32* %15
%111 = icmp sgt i32 %110, 0
br i1 %111, label %112, label %175
112: ; preds = %88
%113 = zext i32 %110 to i64
%114 = add nsw i64 %113, -1
%115 = and i64 %113, 7
%116 = icmp ult i64 %114, 7
br i1 %116, label %157, label %117
117: ; preds = %112
%118 = and i64 %113, 4294967288
br label %119
119: ; preds = %119, %117
%120 = phi i64 [ 0, %117 ], [ %154, %119 ]
%121 = phi float [ 0.000000e+00, %117 ], [ %153, %119 ]
%122 = phi i64 [ 0, %117 ], [ %155, %119 ]
%123 = getelementptr inbounds float, float* %75, i64 %120
%124 = load float, float* %123
%125 = fadd float %121, %124
%126 = or i64 %120, 1
%127 = getelementptr inbounds float, float* %75, i64 %126
%128 = load float, float* %127
%129 = fadd float %125, %128
%130 = or i64 %120, 2
%131 = getelementptr inbounds float, float* %75, i64 %130
%132 = load float, float* %131
%133 = fadd float %129, %132
%134 = or i64 %120, 3
%135 = getelementptr inbounds float, float* %75, i64 %134
%136 = load float, float* %135
%137 = fadd float %133, %136
%138 = or i64 %120, 4
%139 = getelementptr inbounds float, float* %75, i64 %138
%140 = load float, float* %139
%141 = fadd float %137, %140
%142 = or i64 %120, 5
%143 = getelementptr inbounds float, float* %75, i64 %142
%144 = load float, float* %143
%145 = fadd float %141, %144
%146 = or i64 %120, 6
%147 = getelementptr inbounds float, float* %75, i64 %146
%148 = load float, float* %147
%149 = fadd float %145, %148
%150 = or i64 %120, 7
%151 = getelementptr inbounds float, float* %75, i64 %150
%152 = load float, float* %151
%153 = fadd float %149, %152
%154 = add nuw nsw i64 %120, 8
%155 = add i64 %122, 8
%156 = icmp eq i64 %155, %118
br i1 %156, label %157, label %119
157: ; preds = %119, %112
%158 = phi float [ undef, %112 ], [ %153, %119 ]
%159 = phi i64 [ 0, %112 ], [ %154, %119 ]
%160 = phi float [ 0.000000e+00, %112 ], [ %153, %119 ]
%161 = icmp eq i64 %115, 0
br i1 %161, label %172, label %162
162: ; preds = %157, %162
%163 = phi i64 [ %169, %162 ], [ %159, %157 ]
%164 = phi float [ %168, %162 ], [ %160, %157 ]
%165 = phi i64 [ %170, %162 ], [ 0, %157 ]
%166 = getelementptr inbounds float, float* %75, i64 %163
%167 = load float, float* %166
%168 = fadd float %164, %167
%169 = add nuw nsw i64 %163, 1
%170 = add i64 %165, 1
%171 = icmp eq i64 %170, %115
br i1 %171, label %172, label %162
172: ; preds = %162, %157
%173 = phi float [ %158, %157 ], [ %168, %162 ]
%174 = fpext float %173 to double
br label %175
175: ; preds = %172, %88
%176 = phi i32 [ 0, %88 ], [ %110, %172 ]
%177 = phi double [ 0.000000e+00, %88 ], [ %174, %172 ]
store i32 %176, i32* %12
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double %177)
%179 = load float, float* %2
%180 = fpext float %179 to double
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), double %180)
%182 = 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
%183 = load i32, i32* %15
%184 = icmp sgt i32 %183, 0
br i1 %184, label %185, label %199
185: ; preds = %175, %185
%186 = phi i32 [ %196, %185 ], [ 0, %175 ]
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds float, float* %75, i64 %187
%189 = load float, float* %188
%190 = fpext float %189 to double
%191 = getelementptr inbounds float, float* %76, i64 %187
%192 = load float, float* %191
%193 = fpext float %192 to double
%194 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %186, double %190, double %193)
%195 = load i32, i32* %12
%196 = add nsw i32 %195, 1
store i32 %196, i32* %12
%197 = load i32, i32* %15
%198 = icmp slt i32 %196, %197
br i1 %198, label %185, label %199
199: ; preds = %185, %175, %70
ret i32 0
}