#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 */

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ free_vector(float *, int, int);
float func(float);
int /*<<< orphan*/ gaucof(int, float *, float *, float, float *, float *);
double log(double);
int /*<<< orphan*/ orthog(int, float *, float *, float *, float *, float *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *);
float *vector(int, int);
int main(void) {
  int i, n;
  float amu0, check, xx, *a, *b, *x, *w, *anu, *alpha, *beta;
  a = vector(1, 64);
  b = vector(1, 64);
  x = vector(1, 64);
  w = vector(1, 64);
  anu = vector(1, 2 * 64);
  alpha = vector(1, 2 * 64 - 1);
  beta = vector(1, 2 * 64 - 1);
  for (;;) {
    printf("Enter N\n");
    if (scanf("%d", &n) == EOF)
      break;
    alpha[1] = 0.5;
    beta[1] = 1.0;
    for (i = 2; i <= 2 * n - 1; i++) {
      alpha[i] = 0.5;
      beta[i] = 1.0 / (4.0 * (4.0 - 1.0 / ((i - 1) * (i - 1))));
    }
    anu[1] = 1.0;
    anu[2] = -0.25;
    for (i = 2; i <= 2 * n - 1; i++)
      anu[i + 1] = -anu[i] * i * (i - 1) / (2.0 * (i + 1) * (2 * i - 1));
    orthog(n, anu, alpha, beta, a, b);
    amu0 = 1.0;
    gaucof(n, a, b, amu0, x, w);
    printf("%3s %10s %14s\n", "#", "x(i)", "w(i)");
    for (i = 1; i <= n; i++)
      printf("%3d %14.6e %14.6e\n", i, x[i], w[i]);
    for (check = 0.0, i = 1; i <= n; i++)
      check += w[i];
    printf("\nCheck value: %15.7e  should be: %15.7e\n", check, amu0);
    for (xx = 0.0, i = 1; i <= n; i++)
      xx += w[i] * func(x[i]);
    printf("\nIntegral from orthog: %12.6f\n", xx);
    printf("Actual value:         %12.6f\n", log(2.0));
  }
  free_vector(beta, 1, 2 * 64 - 1);
  free_vector(alpha, 1, 2 * 64 - 1);
  free_vector(anu, 1, 2 * 64);
  free_vector(w, 1, 64);
  free_vector(x, 1, 64);
  free_vector(b, 1, 64);
  free_vector(a, 1, 64);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x40,%esi
call   1060 <vector@plt>
mov    %rax,-0x20(%rbp)
mov    $0x1,%edi
mov    $0x40,%esi
call   1060 <vector@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%edi
mov    $0x40,%esi
call   1060 <vector@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edi
mov    $0x40,%esi
call   1060 <vector@plt>
mov    %rax,-0x38(%rbp)
mov    $0x1,%edi
mov    $0x80,%esi
call   1060 <vector@plt>
mov    %rax,-0x40(%rbp)
mov    $0x1,%edi
mov    $0x7f,%esi
call   1060 <vector@plt>
mov    %rax,-0x48(%rbp)
mov    $0x1,%edi
mov    $0x7f,%esi
call   1060 <vector@plt>
mov    %rax,-0x50(%rbp)
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe08(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1080 <scanf@plt>
mov    0x2daf(%rip),%rcx
cmp    (%rcx),%rax
jne    1247 <main+0xc7>
jmp    1577 <main+0x3f7>
mov    -0x48(%rbp),%rax
movss  0xdb1(%rip),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x50(%rbp),%rax
movss  0xd9c(%rip),%xmm0
movss  %xmm0,0x4(%rax)
movl   $0x2,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     12fb <main+0x17b>
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  0xd70(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  0xd64(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xd60(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xd54(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xd40(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1270 <main+0xf0>
mov    -0x40(%rbp),%rax
movss  0xcf9(%rip),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x40(%rbp),%rax
movss  0xcf0(%rip),%xmm0
movss  %xmm0,0x8(%rax)
movl   $0x2,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13bc <main+0x23c>
mov    -0x40(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
cvtsi2ssl -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm1
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm2
movsd  0xc91(%rip),%xmm1
mulsd  %xmm2,%xmm1
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x40(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1324 <main+0x1a4>
mov    -0xc(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x50(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
call   10a0 <orthog@plt>
movss  0xc20(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
movss  -0x10(%rbp),%xmm0
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
call   1050 <gaucof@plt>
lea    0xc2b(%rip),%rdi
lea    0xc33(%rip),%rsi
lea    0xc2e(%rip),%rdx
lea    0xc2c(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1479 <main+0x2f9>
mov    -0x8(%rbp),%esi
mov    -0x30(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xbeb(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    142c <main+0x2ac>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     14b9 <main+0x339>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1488 <main+0x308>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xb90(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1540 <main+0x3c0>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1070 <func@plt>
movaps %xmm0,%xmm2
movss  -0x54(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14e8 <main+0x368>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb3b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xab1(%rip),%xmm0
call   1090 <log@plt>
lea    0xb3f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1214 <main+0x94>
mov    -0x50(%rbp),%rdi
mov    $0x1,%esi
mov    $0x7f,%edx
call   1040 <free_vector@plt>
mov    -0x48(%rbp),%rdi
mov    $0x1,%esi
mov    $0x7f,%edx
call   1040 <free_vector@plt>
mov    -0x40(%rbp),%rdi
mov    $0x1,%esi
mov    $0x80,%edx
call   1040 <free_vector@plt>
mov    -0x38(%rbp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1040 <free_vector@plt>
mov    -0x30(%rbp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1040 <free_vector@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1040 <free_vector@plt>
mov    -0x20(%rbp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1040 <free_vector@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0x1,%edi
mov    $0x40,%esi
call   1070 <vector@plt>
mov    %rax,0x18(%rsp)
mov    $0x1,%edi
mov    $0x40,%esi
call   1070 <vector@plt>
mov    %rax,0x10(%rsp)
mov    $0x1,%edi
mov    $0x40,%esi
call   1070 <vector@plt>
mov    %rax,%r12
mov    $0x1,%edi
mov    $0x40,%esi
call   1070 <vector@plt>
mov    %rax,%rbx
mov    $0x1,%edi
mov    $0x80,%esi
call   1070 <vector@plt>
mov    %rax,%r13
mov    $0x1,%edi
mov    $0x7f,%esi
call   1070 <vector@plt>
mov    %rax,%r15
mov    $0x1,%edi
mov    $0x7f,%esi
call   1070 <vector@plt>
mov    %rax,%r14
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6d(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1090 <scanf@plt>
mov    0x2db4(%rip),%rcx
cmp    (%rcx),%rax
jne    12d0 <main+0x150>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x7f,%edx
call   1050 <free_vector@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x7f,%edx
call   1050 <free_vector@plt>
mov    %r13,%rdi
mov    $0x1,%esi
mov    $0x80,%edx
call   1050 <free_vector@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1050 <free_vector@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1050 <free_vector@plt>
mov    0x10(%rsp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1050 <free_vector@plt>
mov    0x18(%rsp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1050 <free_vector@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x8(%r15),%rax
mov    %rax,0x28(%rsp)
lea    0x8(%r14),%rax
mov    %rax,0x20(%rsp)
movsd  0xd86(%rip),%xmm6
movsd  0xd86(%rip),%xmm7
movaps 0xd66(%rip),%xmm8
movaps 0xd1e(%rip),%xmm9
pcmpeqd %xmm10,%xmm10
movapd 0xd20(%rip),%xmm11
movapd 0xd27(%rip),%xmm12
movdqa 0xd2e(%rip),%xmm13
mov    %r13,0x30(%rsp)
jmp    13ca <main+0x24a>
nopl   0x0(%rax)
cvtss2sd %xmm0,%xmm0
lea    0xdaf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdc0(%rip),%rdi
movq   0xd2f(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xd25(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1090 <scanf@plt>
mov    0x2c6c(%rip),%rcx
cmp    (%rcx),%rax
mov    0x30(%rsp),%r13
movsd  0xce4(%rip),%xmm6
movsd  0xce4(%rip),%xmm7
movaps 0xcc4(%rip),%xmm8
movaps 0xc7c(%rip),%xmm9
pcmpeqd %xmm10,%xmm10
movapd 0xc7e(%rip),%xmm11
movapd 0xc85(%rip),%xmm12
movdqa 0xc8c(%rip),%xmm13
je     123d <main+0xbd>
movl   $0x3f000000,0x4(%r15)
3f
movl   $0x3f800000,0x4(%r14)
3f
mov    0x4(%rsp),%edi
cmp    $0x1,%edi
jle    15f0 <main+0x470>
lea    (%rdi,%rdi,1),%eax
cmp    $0x4,%eax
mov    $0x3,%ecx
cmovl  %ecx,%eax
lea    -0x2(%rax),%r8
mov    $0x2,%ecx
cmp    $0x4,%r8
jb     14f0 <main+0x370>
lea    (%r14,%rax,4),%rdx
cmp    %rdx,0x28(%rsp)
jae    1422 <main+0x2a2>
lea    (%r15,%rax,4),%rdx
cmp    %rdx,0x20(%rsp)
jb     14f0 <main+0x370>
mov    %r8,%rsi
and    $0xfffffffffffffffc,%rsi
lea    0x2(%rsi),%rcx
xor    %edx,%edx
movdqa 0xbd9(%rip),%xmm0
movdqa 0xbc1(%rip),%xmm1
nop
movdqa %xmm0,%xmm2
paddq  %xmm10,%xmm2
movdqa %xmm1,%xmm3
paddq  %xmm10,%xmm3
pmuludq %xmm3,%xmm3
pmuludq %xmm2,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xe8,%xmm3,%xmm3
cvtdq2pd %xmm3,%xmm3
cvtdq2pd %xmm2,%xmm2
movapd %xmm11,%xmm4
divpd  %xmm2,%xmm4
movapd %xmm11,%xmm2
divpd  %xmm3,%xmm2
movapd %xmm12,%xmm3
movapd %xmm12,%xmm5
subpd  %xmm2,%xmm3
subpd  %xmm4,%xmm5
mulpd  %xmm12,%xmm5
mulpd  %xmm12,%xmm3
movups %xmm9,0x8(%r15,%rdx,4)
movapd %xmm11,%xmm2
divpd  %xmm3,%xmm2
movapd %xmm11,%xmm3
divpd  %xmm5,%xmm3
cvtpd2ps %xmm3,%xmm3
cvtpd2ps %xmm2,%xmm2
unpcklpd %xmm2,%xmm3
movupd %xmm3,0x8(%r14,%rdx,4)
add    $0x4,%rdx
paddq  %xmm13,%xmm0
paddq  %xmm13,%xmm1
cmp    %rdx,%rsi
jne    1440 <main+0x2c0>
cmp    %rsi,%r8
je     1551 <main+0x3d1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0xffffffffffffffff,%rcx
mov    %rax,%rdx
neg    %rdx
nopw   0x0(%rax,%rax,1)
movl   $0x3f000000,0x4(%r15,%rcx,4)
mov    %ecx,%esi
imul   %ecx,%esi
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
movapd %xmm6,%xmm1
divsd  %xmm0,%xmm1
movapd %xmm7,%xmm0
subsd  %xmm1,%xmm0
mulsd  %xmm7,%xmm0
movapd %xmm6,%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x4(%r14,%rcx,4)
lea    (%rdx,%rcx,1),%rsi
add    $0x1,%rsi
add    $0x1,%rcx
cmp    $0xffffffffffffffff,%rsi
jne    1500 <main+0x380>
movabs $0xbe8000003f800000,%rcx
mov    %rcx,0x4(%r13)
cmp    $0x2,%edi
jl     15fe <main+0x47e>
mov    $0x2,%ecx
sub    %rax,%rcx
mov    $0x3,%eax
mov    $0x1,%esi
mov    $0x3,%edx
movss  0xb01(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
xorps  %xmm8,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %esi,%xmm1
add    $0x1,%esi
xorps  %xmm2,%xmm2
cvtsi2ss %esi,%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm2,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %edx,%xmm1
addsd  %xmm1,%xmm1
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
mulsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x0(%r13,%rdx,4)
add    $0x2,%eax
lea    (%rcx,%rdx,1),%rbp
add    $0x1,%rbp
add    $0x1,%rdx
cmp    $0x3,%rbp
jne    1590 <main+0x410>
jmp    15fe <main+0x47e>
movabs $0xbe8000003f800000,%rax
mov    %rax,0x4(%r13)
mov    %r13,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
mov    0x18(%rsp),%rbp
mov    %rbp,%r8
mov    0x10(%rsp),%r13
mov    %r13,%r9
call   10a0 <orthog@plt>
mov    0x4(%rsp),%edi
mov    %rbp,%rsi
mov    %r13,%rdx
movss  0xa5e(%rip),%xmm0
mov    %r12,%rcx
mov    %rbx,%r8
call   1060 <gaucof@plt>
lea    0xa53(%rip),%rdi
lea    0xa5b(%rip),%rsi
lea    0xa56(%rip),%rdx
lea    0xa54(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
xorps  %xmm0,%xmm0
lea    0xa43(%rip),%rbp
jle    174e <main+0x5ce>
mov    $0x1,%r13d
nopw   0x0(%rax,%rax,1)
movss  (%r12,%r13,4),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rbx,%r13,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbp,%rdi
mov    %r13d,%esi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0x1(%r13),%rcx
movslq 0x4(%rsp),%rax
cmp    %rax,%r13
mov    %rcx,%r13
jl     1680 <main+0x500>
mov    %eax,%ecx
xorps  %xmm0,%xmm0
test   %ecx,%ecx
jle    174e <main+0x5ce>
lea    -0x1(%rcx),%rdx
mov    %ecx,%eax
and    $0x7,%eax
cmp    $0x7,%rdx
jae    16dd <main+0x55d>
xorps  %xmm0,%xmm0
mov    $0x1,%edx
test   %rax,%rax
jne    1732 <main+0x5b2>
jmp    174e <main+0x5ce>
and    $0xfffffff8,%ecx
xorps  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
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
addss  0x20(%rbx,%rdx,4),%xmm0
add    $0x8,%rdx
cmp    %rdx,%rcx
jne    16f0 <main+0x570>
add    $0x1,%rdx
test   %rax,%rax
je     174e <main+0x5ce>
lea    (%rbx,%rdx,4),%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
addss  (%rcx,%rdx,4),%xmm0
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1740 <main+0x5c0>
cvtss2sd %xmm0,%xmm0
lea    0x968(%rip),%rdi
movsd  0x90f(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
xorps  %xmm0,%xmm0
jle    1330 <main+0x1b0>
xorps  %xmm0,%xmm0
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movss  %xmm0,0x8(%rsp)
movss  0x4(%rbx,%rbp,4),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0x4(%r12,%rbp,4),%xmm0
call   1080 <func@plt>
mulss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x8(%rsp),%xmm0
movslq 0x4(%rsp),%rax
add    $0x1,%rbp
cmp    %rax,%rbp
jl     1780 <main+0x600>
jmp    1330 <main+0x1b0>

LLVM IR (-O0):
@.str = [9 x i8] c"Enter N\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.2 = [15 x i8] c"%3s %10s %14s\0A\00"
@.str.3 = [2 x i8] c"#\00"
@.str.4 = [5 x i8] c"x(i)\00"
@.str.5 = [5 x i8] c"w(i)\00"
@.str.6 = [19 x i8] c"%3d %14.6e %14.6e\0A\00"
@.str.7 = [41 x i8] c"\0ACheck value: %15.7e should be: %15.7e\0A\00"
@.str.8 = [31 x i8] c"\0AIntegral from orthog: %12.6f\0A\00"
@.str.9 = [30 x i8] c"Actual value: %12.6f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
%10 = alloca float*
%11 = alloca float*
%12 = alloca float*
%13 = alloca float*
store i32 0, i32* %1
%14 = call float* @vector(i32 1, i32 64)
store float* %14, float** %7
%15 = call float* @vector(i32 1, i32 64)
store float* %15, float** %8
%16 = call float* @vector(i32 1, i32 64)
store float* %16, float** %9
%17 = call float* @vector(i32 1, i32 64)
store float* %17, float** %10
%18 = call float* @vector(i32 1, i32 128)
store float* %18, float** %11
%19 = call float* @vector(i32 1, i32 127)
store float* %19, float** %12
%20 = call float* @vector(i32 1, i32 127)
store float* %20, float** %13
br label %21
21: ; preds = %187, %0
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%23 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%24 = load i64, i64* @EOF
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %21
br label %193
27: ; preds = %21
%28 = load float*, float** %12
%29 = getelementptr inbounds float, float* %28, i64 1
store float 5.000000e-01, float* %29
%30 = load float*, float** %13
%31 = getelementptr inbounds float, float* %30, i64 1
store float 1.000000e+00, float* %31
store i32 2, i32* %2
br label %32
32: ; preds = %58, %27
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = mul nsw i32 2, %34
%36 = sub nsw i32 %35, 1
%37 = icmp sle i32 %33, %36
br i1 %37, label %38, label %61
38: ; preds = %32
%39 = load float*, float** %12
%40 = load i32, i32* %2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds float, float* %39, i64 %41
store float 5.000000e-01, float* %42
%43 = load i32, i32* %2
%44 = sub nsw i32 %43, 1
%45 = load i32, i32* %2
%46 = sub nsw i32 %45, 1
%47 = mul nsw i32 %44, %46
%48 = sitofp i32 %47 to double
%49 = fdiv double 1.000000e+00, %48
%50 = fsub double 4.000000e+00, %49
%51 = fmul double 4.000000e+00, %50
%52 = fdiv double 1.000000e+00, %51
%53 = fptrunc double %52 to float
%54 = load float*, float** %13
%55 = load i32, i32* %2
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, float* %54, i64 %56
store float %53, float* %57
br label %58
58: ; preds = %38
%59 = load i32, i32* %2
%60 = add nsw i32 %59, 1
store i32 %60, i32* %2
br label %32
61: ; preds = %32
%62 = load float*, float** %11
%63 = getelementptr inbounds float, float* %62, i64 1
store float 1.000000e+00, float* %63
%64 = load float*, float** %11
%65 = getelementptr inbounds float, float* %64, i64 2
store float -2.500000e-01, float* %65
store i32 2, i32* %2
br label %66
66: ; preds = %103, %61
%67 = load i32, i32* %2
%68 = load i32, i32* %3
%69 = mul nsw i32 2, %68
%70 = sub nsw i32 %69, 1
%71 = icmp sle i32 %67, %70
br i1 %71, label %72, label %106
72: ; preds = %66
%73 = load float*, float** %11
%74 = load i32, i32* %2
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds float, float* %73, i64 %75
%77 = load float, float* %76
%78 = fneg float %77
%79 = load i32, i32* %2
%80 = sitofp i32 %79 to float
%81 = fmul float %78, %80
%82 = load i32, i32* %2
%83 = sub nsw i32 %82, 1
%84 = sitofp i32 %83 to float
%85 = fmul float %81, %84
%86 = fpext float %85 to double
%87 = load i32, i32* %2
%88 = add nsw i32 %87, 1
%89 = sitofp i32 %88 to double
%90 = fmul double 2.000000e+00, %89
%91 = load i32, i32* %2
%92 = mul nsw i32 2, %91
%93 = sub nsw i32 %92, 1
%94 = sitofp i32 %93 to double
%95 = fmul double %90, %94
%96 = fdiv double %86, %95
%97 = fptrunc double %96 to float
%98 = load float*, float** %11
%99 = load i32, i32* %2
%100 = add nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, float* %98, i64 %101
store float %97, float* %102
br label %103
103: ; preds = %72
%104 = load i32, i32* %2
%105 = add nsw i32 %104, 1
store i32 %105, i32* %2
br label %66
106: ; preds = %66
%107 = load i32, i32* %3
%108 = load float*, float** %11
%109 = load float*, float** %12
%110 = load float*, float** %13
%111 = load float*, float** %7
%112 = load float*, float** %8
%113 = call i32 @orthog(i32 %107, float* %108, float* %109, float* %110, float* %111, float* %112)
store float 1.000000e+00, float* %4
%114 = load i32, i32* %3
%115 = load float*, float** %7
%116 = load float*, float** %8
%117 = load float, float* %4
%118 = load float*, float** %9
%119 = load float*, float** %10
%120 = call i32 @gaucof(i32 %114, float* %115, float* %116, float %117, float* %118, float* %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %2
br label %122
122: ; preds = %141, %106
%123 = load i32, i32* %2
%124 = load i32, i32* %3
%125 = icmp sle i32 %123, %124
br i1 %125, label %126, label %144
126: ; preds = %122
%127 = load i32, i32* %2
%128 = load float*, float** %9
%129 = load i32, i32* %2
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds float, float* %128, i64 %130
%132 = load float, float* %131
%133 = fpext float %132 to double
%134 = load float*, float** %10
%135 = load i32, i32* %2
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, float* %134, i64 %136
%138 = load float, float* %137
%139 = fpext float %138 to double
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %127, double %133, double %139)
br label %141
141: ; preds = %126
%142 = load i32, i32* %2
%143 = add nsw i32 %142, 1
store i32 %143, i32* %2
br label %122
144: ; preds = %122
store float 0.000000e+00, float* %5
store i32 1, i32* %2
br label %145
145: ; preds = %157, %144
%146 = load i32, i32* %2
%147 = load i32, i32* %3
%148 = icmp sle i32 %146, %147
br i1 %148, label %149, label %160
149: ; preds = %145
%150 = load float*, float** %10
%151 = load i32, i32* %2
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds float, float* %150, i64 %152
%154 = load float, float* %153
%155 = load float, float* %5
%156 = fadd float %155, %154
store float %156, float* %5
br label %157
157: ; preds = %149
%158 = load i32, i32* %2
%159 = add nsw i32 %158, 1
store i32 %159, i32* %2
br label %145
160: ; preds = %145
%161 = load float, float* %5
%162 = fpext float %161 to double
%163 = load float, float* %4
%164 = fpext float %163 to double
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), double %162, double %164)
store float 0.000000e+00, float* %6
store i32 1, i32* %2
br label %166
166: ; preds = %184, %160
%167 = load i32, i32* %2
%168 = load i32, i32* %3
%169 = icmp sle i32 %167, %168
br i1 %169, label %170, label %187
170: ; preds = %166
%171 = load float*, float** %10
%172 = load i32, i32* %2
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, float* %171, i64 %173
%175 = load float, float* %174
%176 = load float*, float** %9
%177 = load i32, i32* %2
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds float, float* %176, i64 %178
%180 = load float, float* %179
%181 = call float @func(float %180)
%182 = load float, float* %6
%183 = call float @llvm.fmuladd.f32(float %175, float %181, float %182)
store float %183, float* %6
br label %184
184: ; preds = %170
%185 = load i32, i32* %2
%186 = add nsw i32 %185, 1
store i32 %186, i32* %2
br label %166
187: ; preds = %166
%188 = load float, float* %6
%189 = fpext float %188 to double
%190 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), double %189)
%191 = call double @log(double 2.000000e+00)
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), double %191)
br label %21
193: ; preds = %26
%194 = load float*, float** %13
%195 = call i32 @free_vector(float* %194, i32 1, i32 127)
%196 = load float*, float** %12
%197 = call i32 @free_vector(float* %196, i32 1, i32 127)
%198 = load float*, float** %11
%199 = call i32 @free_vector(float* %198, i32 1, i32 128)
%200 = load float*, float** %10
%201 = call i32 @free_vector(float* %200, i32 1, i32 64)
%202 = load float*, float** %9
%203 = call i32 @free_vector(float* %202, i32 1, i32 64)
%204 = load float*, float** %8
%205 = call i32 @free_vector(float* %204, i32 1, i32 64)
%206 = load float*, float** %7
%207 = call i32 @free_vector(float* %206, i32 1, i32 64)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.2 = [15 x i8] c"%3s %10s %14s\0A\00"
@.str.3 = [2 x i8] c"#\00"
@.str.4 = [5 x i8] c"x(i)\00"
@.str.5 = [5 x i8] c"w(i)\00"
@.str.6 = [19 x i8] c"%3d %14.6e %14.6e\0A\00"
@.str.7 = [41 x i8] c"\0ACheck value: %15.7e should be: %15.7e\0A\00"
@.str.8 = [31 x i8] c"\0AIntegral from orthog: %12.6f\0A\00"
@.str.9 = [30 x i8] c"Actual value: %12.6f\0A\00"
@str = [8 x i8] c"Enter N\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call float* @vector(i32 1, i32 64)
%4 = tail call float* @vector(i32 1, i32 64)
%5 = tail call float* @vector(i32 1, i32 64)
%6 = tail call float* @vector(i32 1, i32 64)
%7 = tail call float* @vector(i32 1, i32 128)
%8 = tail call float* @vector(i32 1, i32 127)
%9 = tail call float* @vector(i32 1, i32 127)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%11 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%12 = load i64, i64* @EOF
%13 = icmp eq i64 %11, %12
br i1 %13, label %221, label %14
14: ; preds = %0
%15 = getelementptr inbounds float, float* %8, i64 1
%16 = getelementptr inbounds float, float* %9, i64 1
%17 = getelementptr inbounds float, float* %7, i64 1
%18 = getelementptr inbounds float, float* %7, i64 2
%19 = getelementptr float, float* %8, i64 2
%20 = getelementptr float, float* %9, i64 2
br label %21
21: ; preds = %14, %212
store float 5.000000e-01, float* %15
store float 1.000000e+00, float* %16
%22 = load i32, i32* %1
%23 = shl i32 %22, 1
%24 = icmp sgt i32 %22, 1
br i1 %24, label %26, label %25
25: ; preds = %21
store float 1.000000e+00, float* %17
store float -2.500000e-01, float* %18
br label %108
26: ; preds = %21
%27 = call i32 @llvm.smax.i32(i32 %23, i32 3)
%28 = zext i32 %27 to i64
%29 = add nsw i64 %28, -2
%30 = icmp ult i64 %29, 4
br i1 %30, label %62, label %31
31: ; preds = %26
%32 = getelementptr float, float* %8, i64 %28
%33 = getelementptr float, float* %9, i64 %28
%34 = icmp ult float* %19, %33
%35 = icmp ult float* %20, %32
%36 = and i1 %34, %35
br i1 %36, label %62, label %37
37: ; preds = %31
%38 = and i64 %29, -4
%39 = or i64 %38, 2
br label %40
40: ; preds = %40, %37
%41 = phi i64 [ 0, %37 ], [ %57, %40 ]
%42 = phi <4 x i64> [ <i64 2, i64 3, i64 4, i64 5>, %37 ], [ %58, %40 ]
%43 = or i64 %41, 2
%44 = getelementptr inbounds float, float* %8, i64 %43
%45 = bitcast float* %44 to <4 x float>*
store <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>, <4 x float>* %45
%46 = add nsw <4 x i64> %42, <i64 -1, i64 -1, i64 -1, i64 -1>
%47 = mul nsw <4 x i64> %46, %46
%48 = trunc <4 x i64> %47 to <4 x i32>
%49 = sitofp <4 x i32> %48 to <4 x double>
%50 = fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %49
%51 = fsub <4 x double> <double 4.000000e+00, double 4.000000e+00, double 4.000000e+00, double 4.000000e+00>, %50
%52 = fmul <4 x double> %51, <double 4.000000e+00, double 4.000000e+00, double 4.000000e+00, double 4.000000e+00>
%53 = fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %52
%54 = fptrunc <4 x double> %53 to <4 x float>
%55 = getelementptr inbounds float, float* %9, i64 %43
%56 = bitcast float* %55 to <4 x float>*
store <4 x float> %54, <4 x float>* %56
%57 = add nuw i64 %41, 4
%58 = add <4 x i64> %42, <i64 4, i64 4, i64 4, i64 4>
%59 = icmp eq i64 %57, %38
br i1 %59, label %60, label %40
60: ; preds = %40
%61 = icmp eq i64 %29, %38
br i1 %61, label %79, label %62
62: ; preds = %31, %26, %60
%63 = phi i64 [ 2, %31 ], [ 2, %26 ], [ %39, %60 ]
br label %64
64: ; preds = %62, %64
%65 = phi i64 [ %77, %64 ], [ %63, %62 ]
%66 = getelementptr inbounds float, float* %8, i64 %65
store float 5.000000e-01, float* %66
%67 = add nsw i64 %65, -1
%68 = mul nsw i64 %67, %67
%69 = trunc i64 %68 to i32
%70 = sitofp i32 %69 to double
%71 = fdiv double 1.000000e+00, %70
%72 = fsub double 4.000000e+00, %71
%73 = fmul double %72, 4.000000e+00
%74 = fdiv double 1.000000e+00, %73
%75 = fptrunc double %74 to float
%76 = getelementptr inbounds float, float* %9, i64 %65
store float %75, float* %76
%77 = add nuw nsw i64 %65, 1
%78 = icmp eq i64 %77, %28
br i1 %78, label %79, label %64
79: ; preds = %64, %60
store float 1.000000e+00, float* %17
store float -2.500000e-01, float* %18
br i1 %24, label %80, label %108
80: ; preds = %79
%81 = call i32 @llvm.smax.i32(i32 %23, i32 3)
%82 = zext i32 %81 to i64
br label %83
83: ; preds = %80, %83
%84 = phi float [ -2.500000e-01, %80 ], [ %105, %83 ]
%85 = phi i64 [ 2, %80 ], [ %95, %83 ]
%86 = fneg float %84
%87 = trunc i64 %85 to i32
%88 = sitofp i32 %87 to float
%89 = fmul float %88, %86
%90 = trunc i64 %85 to i32
%91 = add i32 %90, -1
%92 = sitofp i32 %91 to float
%93 = fmul float %89, %92
%94 = fpext float %93 to double
%95 = add nuw nsw i64 %85, 1
%96 = trunc i64 %95 to i32
%97 = sitofp i32 %96 to double
%98 = fmul double %97, 2.000000e+00
%99 = trunc i64 %85 to i32
%100 = shl i32 %99, 1
%101 = add i32 %100, -1
%102 = sitofp i32 %101 to double
%103 = fmul double %98, %102
%104 = fdiv double %94, %103
%105 = fptrunc double %104 to float
%106 = getelementptr inbounds float, float* %7, i64 %95
store float %105, float* %106
%107 = icmp eq i64 %95, %82
br i1 %107, label %108, label %83
108: ; preds = %83, %25, %79
%109 = call i32 @orthog(i32 %22, float* %7, float* %8, float* %9, float* %3, float* %4)
%110 = load i32, i32* %1
%111 = call i32 @gaucof(i32 %110, float* %3, float* %4, float 1.000000e+00, float* %5, float* %6)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%113 = load i32, i32* %1
%114 = icmp slt i32 %113, 1
br i1 %114, label %193, label %126
115: ; preds = %126
%116 = icmp slt i32 %137, 1
br i1 %116, label %193, label %117
117: ; preds = %115
%118 = add nuw i32 %137, 1
%119 = zext i32 %118 to i64
%120 = add nsw i64 %119, -1
%121 = add nsw i64 %119, -2
%122 = and i64 %120, 7
%123 = icmp ult i64 %121, 7
br i1 %123, label %178, label %124
124: ; preds = %117
%125 = and i64 %120, -8
br label %140
126: ; preds = %108, %126
%127 = phi i64 [ %136, %126 ], [ 1, %108 ]
%128 = getelementptr inbounds float, float* %5, i64 %127
%129 = load float, float* %128
%130 = fpext float %129 to double
%131 = getelementptr inbounds float, float* %6, i64 %127
%132 = load float, float* %131
%133 = fpext float %132 to double
%134 = trunc i64 %127 to i32
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %134, double %130, double %133)
%136 = add nuw nsw i64 %127, 1
%137 = load i32, i32* %1
%138 = sext i32 %137 to i64
%139 = icmp slt i64 %127, %138
br i1 %139, label %126, label %115
140: ; preds = %140, %124
%141 = phi i64 [ 1, %124 ], [ %175, %140 ]
%142 = phi float [ 0.000000e+00, %124 ], [ %174, %140 ]
%143 = phi i64 [ 0, %124 ], [ %176, %140 ]
%144 = getelementptr inbounds float, float* %6, i64 %141
%145 = load float, float* %144
%146 = fadd float %142, %145
%147 = add nuw nsw i64 %141, 1
%148 = getelementptr inbounds float, float* %6, i64 %147
%149 = load float, float* %148
%150 = fadd float %146, %149
%151 = add nuw nsw i64 %141, 2
%152 = getelementptr inbounds float, float* %6, i64 %151
%153 = load float, float* %152
%154 = fadd float %150, %153
%155 = add nuw nsw i64 %141, 3
%156 = getelementptr inbounds float, float* %6, i64 %155
%157 = load float, float* %156
%158 = fadd float %154, %157
%159 = add nuw nsw i64 %141, 4
%160 = getelementptr inbounds float, float* %6, i64 %159
%161 = load float, float* %160
%162 = fadd float %158, %161
%163 = add nuw nsw i64 %141, 5
%164 = getelementptr inbounds float, float* %6, i64 %163
%165 = load float, float* %164
%166 = fadd float %162, %165
%167 = add nuw nsw i64 %141, 6
%168 = getelementptr inbounds float, float* %6, i64 %167
%169 = load float, float* %168
%170 = fadd float %166, %169
%171 = add nuw nsw i64 %141, 7
%172 = getelementptr inbounds float, float* %6, i64 %171
%173 = load float, float* %172
%174 = fadd float %170, %173
%175 = add nuw nsw i64 %141, 8
%176 = add i64 %143, 8
%177 = icmp eq i64 %176, %125
br i1 %177, label %178, label %140
178: ; preds = %140, %117
%179 = phi float [ undef, %117 ], [ %174, %140 ]
%180 = phi i64 [ 1, %117 ], [ %175, %140 ]
%181 = phi float [ 0.000000e+00, %117 ], [ %174, %140 ]
%182 = icmp eq i64 %122, 0
br i1 %182, label %193, label %183
183: ; preds = %178, %183
%184 = phi i64 [ %190, %183 ], [ %180, %178 ]
%185 = phi float [ %189, %183 ], [ %181, %178 ]
%186 = phi i64 [ %191, %183 ], [ 0, %178 ]
%187 = getelementptr inbounds float, float* %6, i64 %184
%188 = load float, float* %187
%189 = fadd float %185, %188
%190 = add nuw nsw i64 %184, 1
%191 = add i64 %186, 1
%192 = icmp eq i64 %191, %122
br i1 %192, label %193, label %183
193: ; preds = %178, %183, %108, %115
%194 = phi float [ 0.000000e+00, %115 ], [ 0.000000e+00, %108 ], [ %179, %178 ], [ %189, %183 ]
%195 = fpext float %194 to double
%196 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), double %195, double 1.000000e+00)
%197 = load i32, i32* %1
%198 = icmp slt i32 %197, 1
br i1 %198, label %212, label %199
199: ; preds = %193, %199
%200 = phi i64 [ %208, %199 ], [ 1, %193 ]
%201 = phi float [ %207, %199 ], [ 0.000000e+00, %193 ]
%202 = getelementptr inbounds float, float* %6, i64 %200
%203 = load float, float* %202
%204 = getelementptr inbounds float, float* %5, i64 %200
%205 = load float, float* %204
%206 = call float @func(float %205)
%207 = call float @llvm.fmuladd.f32(float %203, float %206, float %201)
%208 = add nuw nsw i64 %200, 1
%209 = load i32, i32* %1
%210 = sext i32 %209 to i64
%211 = icmp slt i64 %200, %210
br i1 %211, label %199, label %212
212: ; preds = %199, %193
%213 = phi float [ 0.000000e+00, %193 ], [ %207, %199 ]
%214 = fpext float %213 to double
%215 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), double %214)
%216 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), double 0x3FE62E42FEFA39EF)
%217 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%218 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%219 = load i64, i64* @EOF
%220 = icmp eq i64 %218, %219
br i1 %220, label %221, label %21
221: ; preds = %212, %0
%222 = call i32 @free_vector(float* %9, i32 1, i32 127)
%223 = call i32 @free_vector(float* %8, i32 1, i32 127)
%224 = call i32 @free_vector(float* %7, i32 1, i32 128)
%225 = call i32 @free_vector(float* %6, i32 1, i32 64)
%226 = call i32 @free_vector(float* %5, i32 1, i32 64)
%227 = call i32 @free_vector(float* %4, i32 1, i32 64)
%228 = call i32 @free_vector(float* %3, i32 1, i32 64)
ret i32 0
}