#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ burg(double *, int, int, double *, double *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, double *);
int /*<<< orphan*/ hr(double *, int, int, int, double *, double *, double *);
scalar_t__ malloc(int);
double mean(double *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ yw(double *, int, int, double *, double *);
int main(void) {
  int i, N;
  double *inp;
  int p, q;
  double var, wmean;
  double *phi, *theta;
  FILE *ifp;
  double temp[1200];
  printf("OK");
  ifp = fopen("seriesA.txt", "r");
  i = 0;
  if (!ifp) {
    printf("Cannot Open File");
    exit(100);
  }
  while (!feof(ifp)) {
    fscanf(ifp, "%lf \n", &temp[i]);
    i++;
  }
  N = i;
  inp = (double *)malloc(sizeof(double) * N);
  wmean = mean(temp, N);
  for (i = 0; i < N; ++i) {
    inp[i] = temp[i];
  }
  fclose(ifp);
  p = 7;
  phi = (double *)malloc(sizeof(double) * p);
  printf("AR Coefficients Using Yule Walker Algorithm \n");
  yw(inp, N, p, phi, &var);
  printf("\n");
  printf("PHI : ");
  for (i = 0; i < p; ++i) {
    printf("%g ", phi[i]);
  }
  printf("\n");
  printf("VAR %g \n", var);
  printf("\n");
  printf("AR Coefficients Using Burg Algorithm \n");
  burg(inp, N, p, phi, &var);
  printf("\n");
  printf("PHI : ");
  for (i = 0; i < p; ++i) {
    printf("%g ", phi[i]);
  }
  printf("\n");
  printf("VAR %g \n", var);
  free(phi);
  p = 1;
  q = 1;
  phi = (double *)malloc(sizeof(double) * p);
  theta = (double *)malloc(sizeof(double) * q);
  printf("\n");
  printf("ARMA Coefficients Using Hannan Rissanen Algorithm \n");
  hr(inp, N, p, q, phi, theta, &var);
  printf("\n");
  printf("PHI : ");
  for (i = 0; i < p; ++i) {
    printf("%g ", phi[i]);
  }
  printf("\n");
  printf("THETA : ");
  for (i = 0; i < q; ++i) {
    printf("%g ", theta[i]);
  }
  printf("\n");
  printf("VAR %g \n", var);
  free(inp);
  free(phi);
  free(theta);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x25e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe1c(%rip),%rdi
lea    0xe21(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x8(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1221 <main+0x61>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x64,%edi
call   10e0 <exit@plt>
jmp    1226 <main+0x66>
mov    -0x48(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1244 <main+0x84>
jmp    1274 <main+0xb4>
mov    -0x48(%rbp),%rdi
movslq -0x8(%rbp),%rax
lea    -0x25d0(%rbp),%rdx
shl    $0x3,%rax
add    %rax,%rdx
lea    0xdc1(%rip),%rsi
call   1070 <fscanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1226 <main+0x66>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x18(%rbp)
lea    -0x25d0(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   10d0 <mean@plt>
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12dc <main+0x11c>
movslq -0x8(%rbp),%rax
movsd  -0x25d0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12a8 <main+0xe8>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x7,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x38(%rbp)
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x38(%rbp),%rcx
lea    -0x28(%rbp),%r8
call   1090 <yw@plt>
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    137c <main+0x1bc>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xcf6(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1347 <main+0x187>
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xccb(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x38(%rbp),%rcx
lea    -0x28(%rbp),%r8
call   1050 <burg@plt>
lea    0xc4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc71(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1428 <main+0x268>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc4a(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13f3 <main+0x233>
lea    0xbf7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xc1f(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x40(%rbp)
lea    0xb99(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
lea    -0x28(%rbp),%rax
mov    %rax,(%rsp)
call   1080 <hr@plt>
lea    0xb5b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xb7d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    151c <main+0x35c>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xb56(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14e7 <main+0x327>
lea    0xb03(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xb94(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1574 <main+0x3b4>
mov    -0x40(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xafe(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    153f <main+0x37f>
lea    0xaab(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xad3(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x25e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2598,%rsp
lea    0xe08(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xdfb(%rip),%rdi
lea    0xe00(%rip),%rsi
call   10e0 <fopen@plt>
test   %rax,%rax
je     168f <main+0x4af>
mov    %rax,%r15
mov    %rax,%rdi
call   10c0 <feof@plt>
test   %eax,%eax
jne    1261 <main+0x81>
lea    0x10(%rsp),%rbp
xor    %ebx,%ebx
lea    0xde8(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
call   10c0 <feof@plt>
add    $0x8,%rbp
add    $0x1,%ebx
test   %eax,%eax
je     1240 <main+0x60>
lea    0x0(,%rbx,8),%edi
call   10d0 <malloc@plt>
mov    %rax,%r14
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    %ebx,%esi
call   10f0 <mean@plt>
test   %ebx,%ebx
je     13f4 <main+0x214>
mov    %ebx,%eax
cmp    $0x4,%ebx
jb     12a9 <main+0xc9>
lea    (%r14,%rax,8),%rcx
lea    (%rsp,%rax,8),%rdx
add    $0x10,%rdx
cmp    %rcx,%rbp
setb   %cl
cmp    %rdx,%r14
jae    1321 <main+0x141>
test   %cl,%cl
je     1321 <main+0x141>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     12d6 <main+0xf6>
nopl   (%rax)
movsd  0x10(%rsp,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    12c0 <main+0xe0>
cmp    $0x3,%rdx
jb     13f4 <main+0x214>
movsd  0x10(%rsp,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
movsd  0x18(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r14,%rcx,8)
movsd  0x20(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r14,%rcx,8)
movsd  0x28(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r14,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    12e0 <main+0x100>
jmp    13f4 <main+0x214>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0xc,%rdi
jae    1344 <main+0x164>
xor    %edi,%edi
jmp    13b4 <main+0x1d4>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movaps 0x10(%rsp,%rdi,8),%xmm0
movaps 0x20(%rsp,%rdi,8),%xmm1
movups %xmm0,(%r14,%rdi,8)
movups %xmm1,0x10(%r14,%rdi,8)
movaps 0x30(%rsp,%rdi,8),%xmm0
movaps 0x40(%rsp,%rdi,8),%xmm1
movups %xmm0,0x20(%r14,%rdi,8)
movups %xmm1,0x30(%r14,%rdi,8)
movaps 0x50(%rsp,%rdi,8),%xmm0
movaps 0x60(%rsp,%rdi,8),%xmm1
movups %xmm0,0x40(%r14,%rdi,8)
movups %xmm1,0x50(%r14,%rdi,8)
movaps 0x70(%rsp,%rdi,8),%xmm0
movaps 0x80(%rsp,%rdi,8),%xmm1
movups %xmm0,0x60(%r14,%rdi,8)
movups %xmm1,0x70(%r14,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1350 <main+0x170>
test   %rdx,%rdx
je     13eb <main+0x20b>
lea    (%r14,%rdi,8),%rsi
add    $0x10,%rsi
lea    (%rsp,%rdi,8),%rdi
add    $0x20,%rdi
shl    $0x5,%rdx
xor    %ebp,%ebp
nop
movaps -0x10(%rdi,%rbp,1),%xmm0
movaps (%rdi,%rbp,1),%xmm1
movups %xmm0,-0x10(%rsi,%rbp,1)
movups %xmm1,(%rsi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdx
jne    13d0 <main+0x1f0>
cmp    %rax,%rcx
jne    12ab <main+0xcb>
mov    %r15,%rdi
call   1060 <fclose@plt>
mov    $0x38,%edi
call   10d0 <malloc@plt>
mov    %rax,%rbp
lea    0xc35(%rip),%rdi
call   1050 <puts@plt>
lea    0x8(%rsp),%r8
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x7,%edx
mov    %rbp,%rcx
call   10b0 <yw@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xbeb(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0x0(%rbp),%xmm0
lea    0xbdc(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x8(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x10(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x18(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x20(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x28(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x30(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
movsd  0x8(%rsp),%xmm0
lea    0xb65(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xb89(%rip),%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x7,%edx
mov    %rbp,%rcx
lea    0x8(%rsp),%r8
call   1070 <burg@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0x0(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x8(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x10(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x18(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x20(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x28(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  0x30(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
movsd  0x8(%rsp),%xmm0
mov    %r13,%rdi
mov    %r13,%r12
mov    $0x1,%al
call   1080 <printf@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    $0x8,%edi
call   10d0 <malloc@plt>
mov    %rax,%rbp
mov    $0x8,%edi
call   10d0 <malloc@plt>
mov    %rax,%r13
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xac6(%rip),%rdi
call   1050 <puts@plt>
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    %rbp,%r8
mov    %r13,%r9
call   10a0 <hr@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xa1d(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0x0(%rbp),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xa0a(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0x0(%r13),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
movsd  0x8(%rsp),%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x2598,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x97b(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x64,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"OK\00"
@.str.1 = [12 x i8] c"seriesA.txt\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [17 x i8] c"Cannot Open File\00"
@.str.4 = [6 x i8] c"%lf \0A\00"
@.str.5 = [46 x i8] c"AR Coefficients Using Yule Walker Algorithm \0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [7 x i8] c"PHI : \00"
@.str.8 = [4 x i8] c"%g \00"
@.str.9 = [9 x i8] c"VAR %g \0A\00"
@.str.10 = [39 x i8] c"AR Coefficients Using Burg Algorithm \0A\00"
@.str.11 = [52 x i8] c"ARMA Coefficients Using Hannan Rissanen Algorithm \0A\00"
@.str.12 = [9 x i8] c"THETA : \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32*
%12 = alloca [1200 x double]
store i32 0, i32* %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %14, i32** %11
store i32 0, i32* %2
%15 = load i32*, i32** %11
%16 = icmp ne i32* %15, null
br i1 %16, label %20, label %17
17: ; preds = %0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%19 = call i32 @exit(i32 100)
unreachable
20: ; preds = %0
br label %21
21: ; preds = %26, %20
%22 = load i32*, i32** %11
%23 = call i32 @feof(i32* %22)
%24 = icmp ne i32 %23, 0
%25 = xor i1 %24, true
br i1 %25, label %26, label %34
26: ; preds = %21
%27 = load i32*, i32** %11
%28 = load i32, i32* %2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1200 x double], [1200 x double]* %12, i64 0, i64 %29
%31 = call i32 @fscanf(i32* %27, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), double* %30)
%32 = load i32, i32* %2
%33 = add nsw i32 %32, 1
store i32 %33, i32* %2
br label %21
34: ; preds = %21
%35 = load i32, i32* %2
store i32 %35, i32* %3
%36 = load i32, i32* %3
%37 = sext i32 %36 to i64
%38 = mul i64 8, %37
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 %39)
%41 = inttoptr i64 %40 to double*
store double* %41, double** %4
%42 = getelementptr inbounds [1200 x double], [1200 x double]* %12, i64 0, i64 0
%43 = load i32, i32* %3
%44 = call double @mean(double* %42, i32 %43)
store double %44, double* %8
store i32 0, i32* %2
br label %45
45: ; preds = %58, %34
%46 = load i32, i32* %2
%47 = load i32, i32* %3
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %61
49: ; preds = %45
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1200 x double], [1200 x double]* %12, i64 0, i64 %51
%53 = load double, double* %52
%54 = load double*, double** %4
%55 = load i32, i32* %2
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
store double %53, double* %57
br label %58
58: ; preds = %49
%59 = load i32, i32* %2
%60 = add nsw i32 %59, 1
store i32 %60, i32* %2
br label %45
61: ; preds = %45
%62 = load i32*, i32** %11
%63 = call i32 @fclose(i32* %62)
store i32 7, i32* %5
%64 = load i32, i32* %5
%65 = sext i32 %64 to i64
%66 = mul i64 8, %65
%67 = trunc i64 %66 to i32
%68 = call i64 @malloc(i32 %67)
%69 = inttoptr i64 %68 to double*
store double* %69, double** %9
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%71 = load double*, double** %4
%72 = load i32, i32* %3
%73 = load i32, i32* %5
%74 = load double*, double** %9
%75 = call i32 @yw(double* %71, i32 %72, i32 %73, double* %74, double* %7)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %78
78: ; preds = %89, %61
%79 = load i32, i32* %2
%80 = load i32, i32* %5
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %92
82: ; preds = %78
%83 = load double*, double** %9
%84 = load i32, i32* %2
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %83, i64 %85
%87 = load double, double* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %87)
br label %89
89: ; preds = %82
%90 = load i32, i32* %2
%91 = add nsw i32 %90, 1
store i32 %91, i32* %2
br label %78
92: ; preds = %78
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%94 = load double, double* %7
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), double %94)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0))
%98 = load double*, double** %4
%99 = load i32, i32* %3
%100 = load i32, i32* %5
%101 = load double*, double** %9
%102 = call i32 @burg(double* %98, i32 %99, i32 %100, double* %101, double* %7)
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %105
105: ; preds = %116, %92
%106 = load i32, i32* %2
%107 = load i32, i32* %5
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %119
109: ; preds = %105
%110 = load double*, double** %9
%111 = load i32, i32* %2
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %110, i64 %112
%114 = load double, double* %113
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %114)
br label %116
116: ; preds = %109
%117 = load i32, i32* %2
%118 = add nsw i32 %117, 1
store i32 %118, i32* %2
br label %105
119: ; preds = %105
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%121 = load double, double* %7
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), double %121)
%123 = load double*, double** %9
%124 = call i32 @free(double* %123)
store i32 1, i32* %5
store i32 1, i32* %6
%125 = load i32, i32* %5
%126 = sext i32 %125 to i64
%127 = mul i64 8, %126
%128 = trunc i64 %127 to i32
%129 = call i64 @malloc(i32 %128)
%130 = inttoptr i64 %129 to double*
store double* %130, double** %9
%131 = load i32, i32* %6
%132 = sext i32 %131 to i64
%133 = mul i64 8, %132
%134 = trunc i64 %133 to i32
%135 = call i64 @malloc(i32 %134)
%136 = inttoptr i64 %135 to double*
store double* %136, double** %10
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.11, i64 0, i64 0))
%139 = load double*, double** %4
%140 = load i32, i32* %3
%141 = load i32, i32* %5
%142 = load i32, i32* %6
%143 = load double*, double** %9
%144 = load double*, double** %10
%145 = call i32 @hr(double* %139, i32 %140, i32 %141, i32 %142, double* %143, double* %144, double* %7)
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %148
148: ; preds = %159, %119
%149 = load i32, i32* %2
%150 = load i32, i32* %5
%151 = icmp slt i32 %149, %150
br i1 %151, label %152, label %162
152: ; preds = %148
%153 = load double*, double** %9
%154 = load i32, i32* %2
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, double* %153, i64 %155
%157 = load double, double* %156
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %157)
br label %159
159: ; preds = %152
%160 = load i32, i32* %2
%161 = add nsw i32 %160, 1
store i32 %161, i32* %2
br label %148
162: ; preds = %148
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %2
br label %165
165: ; preds = %176, %162
%166 = load i32, i32* %2
%167 = load i32, i32* %6
%168 = icmp slt i32 %166, %167
br i1 %168, label %169, label %179
169: ; preds = %165
%170 = load double*, double** %10
%171 = load i32, i32* %2
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %170, i64 %172
%174 = load double, double* %173
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %174)
br label %176
176: ; preds = %169
%177 = load i32, i32* %2
%178 = add nsw i32 %177, 1
store i32 %178, i32* %2
br label %165
179: ; preds = %165
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%181 = load double, double* %7
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), double %181)
%183 = load double*, double** %4
%184 = call i32 @free(double* %183)
%185 = load double*, double** %9
%186 = call i32 @free(double* %185)
%187 = load double*, double** %10
%188 = call i32 @free(double* %187)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"OK\00"
@.str.1 = [12 x i8] c"seriesA.txt\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [17 x i8] c"Cannot Open File\00"
@.str.4 = [6 x i8] c"%lf \0A\00"
@.str.7 = [7 x i8] c"PHI : \00"
@.str.8 = [4 x i8] c"%g \00"
@.str.9 = [9 x i8] c"VAR %g \0A\00"
@.str.12 = [9 x i8] c"THETA : \00"
@str = [45 x i8] c"AR Coefficients Using Yule Walker Algorithm \00"
@str.13 = [38 x i8] c"AR Coefficients Using Burg Algorithm \00"
@str.14 = [51 x i8] c"ARMA Coefficients Using Hannan Rissanen Algorithm \00"
define i32 @main() {
%1 = alloca double
%2 = alloca [1200 x double]
%3 = bitcast double* %1 to i8*
%4 = bitcast [1200 x double]* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = call i32 @feof(i32* %6)
%10 = icmp eq i32 %9, 0
br i1 %10, label %14, label %23
11: ; preds = %0
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 @exit(i32 100)
unreachable
14: ; preds = %8, %14
%15 = phi i64 [ %18, %14 ], [ 0, %8 ]
%16 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %15
%17 = call i32 @fscanf(i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), double* %16)
%18 = add nuw i64 %15, 1
%19 = call i32 @feof(i32* %6)
%20 = icmp eq i32 %19, 0
br i1 %20, label %14, label %21
21: ; preds = %14
%22 = trunc i64 %18 to i32
br label %23
23: ; preds = %21, %8
%24 = phi i32 [ 0, %8 ], [ %22, %21 ]
%25 = shl i32 %24, 3
%26 = call i64 @malloc(i32 %25)
%27 = inttoptr i64 %26 to double*
%28 = inttoptr i64 %26 to i8*
%29 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 0
%30 = call double @mean(double* %29, i32 %24)
%31 = icmp eq i32 %24, 0
br i1 %31, label %159, label %32
32: ; preds = %23
%33 = zext i32 %24 to i64
%34 = icmp ult i32 %24, 4
br i1 %34, label %122, label %35
35: ; preds = %32
%36 = getelementptr double, double* %27, i64 %33
%37 = getelementptr [1200 x double], [1200 x double]* %2, i64 0, i64 %33
%38 = bitcast double* %37 to i8*
%39 = icmp ult i8* %28, %38
%40 = bitcast double* %36 to [1200 x double]*
%41 = icmp ult [1200 x double]* %2, %40
%42 = and i1 %39, %41
br i1 %42, label %122, label %43
43: ; preds = %35
%44 = and i64 %33, 4294967292
%45 = add nsw i64 %44, -4
%46 = lshr exact i64 %45, 2
%47 = add nuw nsw i64 %46, 1
%48 = and i64 %47, 3
%49 = icmp ult i64 %45, 12
br i1 %49, label %101, label %50
50: ; preds = %43
%51 = and i64 %47, 9223372036854775804
br label %52
52: ; preds = %52, %50
%53 = phi i64 [ 0, %50 ], [ %98, %52 ]
%54 = phi i64 [ 0, %50 ], [ %99, %52 ]
%55 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %53
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = getelementptr inbounds double, double* %55, i64 2
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = getelementptr inbounds double, double* %27, i64 %53
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> %57, <2 x double>* %62
%63 = getelementptr inbounds double, double* %61, i64 2
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> %60, <2 x double>* %64
%65 = or i64 %53, 4
%66 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %65
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = getelementptr inbounds double, double* %66, i64 2
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = getelementptr inbounds double, double* %27, i64 %65
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %68, <2 x double>* %73
%74 = getelementptr inbounds double, double* %72, i64 2
%75 = bitcast double* %74 to <2 x double>*
store <2 x double> %71, <2 x double>* %75
%76 = or i64 %53, 8
%77 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %76
%78 = bitcast double* %77 to <2 x double>*
%79 = load <2 x double>, <2 x double>* %78
%80 = getelementptr inbounds double, double* %77, i64 2
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = getelementptr inbounds double, double* %27, i64 %76
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> %79, <2 x double>* %84
%85 = getelementptr inbounds double, double* %83, i64 2
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %82, <2 x double>* %86
%87 = or i64 %53, 12
%88 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %87
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %88, i64 2
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = getelementptr inbounds double, double* %27, i64 %87
%95 = bitcast double* %94 to <2 x double>*
store <2 x double> %90, <2 x double>* %95
%96 = getelementptr inbounds double, double* %94, i64 2
%97 = bitcast double* %96 to <2 x double>*
store <2 x double> %93, <2 x double>* %97
%98 = add nuw i64 %53, 16
%99 = add nuw i64 %54, 4
%100 = icmp eq i64 %99, %51
br i1 %100, label %101, label %52
101: ; preds = %52, %43
%102 = phi i64 [ 0, %43 ], [ %98, %52 ]
%103 = icmp eq i64 %48, 0
br i1 %103, label %120, label %104
104: ; preds = %101, %104
%105 = phi i64 [ %117, %104 ], [ %102, %101 ]
%106 = phi i64 [ %118, %104 ], [ 0, %101 ]
%107 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %105
%108 = bitcast double* %107 to <2 x double>*
%109 = load <2 x double>, <2 x double>* %108
%110 = getelementptr inbounds double, double* %107, i64 2
%111 = bitcast double* %110 to <2 x double>*
%112 = load <2 x double>, <2 x double>* %111
%113 = getelementptr inbounds double, double* %27, i64 %105
%114 = bitcast double* %113 to <2 x double>*
store <2 x double> %109, <2 x double>* %114
%115 = getelementptr inbounds double, double* %113, i64 2
%116 = bitcast double* %115 to <2 x double>*
store <2 x double> %112, <2 x double>* %116
%117 = add nuw i64 %105, 4
%118 = add i64 %106, 1
%119 = icmp eq i64 %118, %48
br i1 %119, label %120, label %104
120: ; preds = %104, %101
%121 = icmp eq i64 %44, %33
br i1 %121, label %159, label %122
122: ; preds = %35, %32, %120
%123 = phi i64 [ 0, %35 ], [ 0, %32 ], [ %44, %120 ]
%124 = xor i64 %123, -1
%125 = add nsw i64 %124, %33
%126 = and i64 %33, 3
%127 = icmp eq i64 %126, 0
br i1 %127, label %137, label %128
128: ; preds = %122, %128
%129 = phi i64 [ %134, %128 ], [ %123, %122 ]
%130 = phi i64 [ %135, %128 ], [ 0, %122 ]
%131 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %129
%132 = load double, double* %131
%133 = getelementptr inbounds double, double* %27, i64 %129
store double %132, double* %133
%134 = add nuw nsw i64 %129, 1
%135 = add i64 %130, 1
%136 = icmp eq i64 %135, %126
br i1 %136, label %137, label %128
137: ; preds = %128, %122
%138 = phi i64 [ %123, %122 ], [ %134, %128 ]
%139 = icmp ult i64 %125, 3
br i1 %139, label %159, label %140
140: ; preds = %137, %140
%141 = phi i64 [ %157, %140 ], [ %138, %137 ]
%142 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %141
%143 = load double, double* %142
%144 = getelementptr inbounds double, double* %27, i64 %141
store double %143, double* %144
%145 = add nuw nsw i64 %141, 1
%146 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %145
%147 = load double, double* %146
%148 = getelementptr inbounds double, double* %27, i64 %145
store double %147, double* %148
%149 = add nuw nsw i64 %141, 2
%150 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %149
%151 = load double, double* %150
%152 = getelementptr inbounds double, double* %27, i64 %149
store double %151, double* %152
%153 = add nuw nsw i64 %141, 3
%154 = getelementptr inbounds [1200 x double], [1200 x double]* %2, i64 0, i64 %153
%155 = load double, double* %154
%156 = getelementptr inbounds double, double* %27, i64 %153
store double %155, double* %156
%157 = add nuw nsw i64 %141, 4
%158 = icmp eq i64 %157, %33
br i1 %158, label %159, label %140
159: ; preds = %137, %140, %120, %23
%160 = call i32 @fclose(i32* %6)
%161 = call i64 @malloc(i32 56)
%162 = inttoptr i64 %161 to double*
%163 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%164 = call i32 @yw(double* %27, i32 %24, i32 7, double* %162, double* %1)
%165 = call i32 @putchar(i32 10)
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%167 = load double, double* %162
%168 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %167)
%169 = getelementptr inbounds double, double* %162, i64 1
%170 = load double, double* %169
%171 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %170)
%172 = getelementptr inbounds double, double* %162, i64 2
%173 = load double, double* %172
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %173)
%175 = getelementptr inbounds double, double* %162, i64 3
%176 = load double, double* %175
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %176)
%178 = getelementptr inbounds double, double* %162, i64 4
%179 = load double, double* %178
%180 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %179)
%181 = getelementptr inbounds double, double* %162, i64 5
%182 = load double, double* %181
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %182)
%184 = getelementptr inbounds double, double* %162, i64 6
%185 = load double, double* %184
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %185)
%187 = call i32 @putchar(i32 10)
%188 = load double, double* %1
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), double %188)
%190 = call i32 @putchar(i32 10)
%191 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.13, i64 0, i64 0))
%192 = call i32 @burg(double* %27, i32 %24, i32 7, double* %162, double* %1)
%193 = call i32 @putchar(i32 10)
%194 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%195 = load double, double* %162
%196 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %195)
%197 = load double, double* %169
%198 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %197)
%199 = load double, double* %172
%200 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %199)
%201 = load double, double* %175
%202 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %201)
%203 = load double, double* %178
%204 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %203)
%205 = load double, double* %181
%206 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %205)
%207 = load double, double* %184
%208 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %207)
%209 = call i32 @putchar(i32 10)
%210 = load double, double* %1
%211 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), double %210)
%212 = call i32 @free(double* %162)
%213 = call i64 @malloc(i32 8)
%214 = inttoptr i64 %213 to double*
%215 = call i64 @malloc(i32 8)
%216 = inttoptr i64 %215 to double*
%217 = call i32 @putchar(i32 10)
%218 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.14, i64 0, i64 0))
%219 = call i32 @hr(double* %27, i32 %24, i32 1, i32 1, double* %214, double* %216, double* %1)
%220 = call i32 @putchar(i32 10)
%221 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%222 = load double, double* %214
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %222)
%224 = call i32 @putchar(i32 10)
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%226 = load double, double* %216
%227 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %226)
%228 = call i32 @putchar(i32 10)
%229 = load double, double* %1
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), double %229)
%231 = call i32 @free(double* %27)
%232 = call i32 @free(double* %214)
%233 = call i32 @free(double* %216)
ret i32 0
}