#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;
double exp(double);
int /*<<< orphan*/ free_vector(float *, int, int);
float func(float);
int /*<<< orphan*/ gauher(float *, float *, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *);
float *vector(int, int);
int main(void) {
  int i, n;
  float check, xx, *x, *w;
  x = vector(1, 64);
  w = vector(1, 64);
  for (;;) {
    printf("Enter N\n");
    if (scanf("%d", &n) == EOF)
      break;
    gauher(x, w, n);
    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, 1.7724539);
    for (xx = 0.0, i = 1; i <= n; i++)
      xx += w[i] * func(x[i]);
    printf("\nIntegral from gauher: %12.6f\n", xx);
    printf("Actual value:         %12.6f\n", 1.7724539 * exp(-0.25));
  }
  free_vector(w, 1, 64);
  free_vector(x, 1, 64);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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)
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe5f(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1090 <scanf@plt>
mov    0x2e1e(%rip),%rcx
cmp    (%rcx),%rax
jne    11d8 <main+0x68>
jmp    136b <main+0x1fb>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1030 <gauher@plt>
lea    0xe2d(%rip),%rdi
lea    0xe35(%rip),%rsi
lea    0xe30(%rip),%rdx
lea    0xe2e(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     125f <main+0xef>
mov    -0x8(%rbp),%esi
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xded(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1212 <main+0xa2>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     129f <main+0x12f>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    126e <main+0xfe>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd9b(%rip),%rdi
movsd  0xd49(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1325 <main+0x1b5>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1070 <func@plt>
movaps %xmm0,%xmm2
movss  -0x2c(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12cd <main+0x15d>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd3e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xcc4(%rip),%xmm0
call   1080 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xcac(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xd33(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    11a5 <main+0x35>
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1050 <free_vector@plt>
mov    -0x20(%rbp),%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1050 <free_vector@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    $0x1,%edi
mov    $0x40,%esi
call   1070 <vector@plt>
mov    %rax,%r14
mov    $0x1,%edi
mov    $0x40,%esi
call   1070 <vector@plt>
mov    %rax,%rbx
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe5b(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1090 <scanf@plt>
mov    0x2e22(%rip),%r15
cmp    (%r15),%rax
jne    1200 <main+0x90>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1060 <free_vector@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x40,%edx
call   1060 <free_vector@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc(%rsp),%r12
lea    0xe22(%rip),%r13
jmp    125c <main+0xec>
xchg   %ax,%ax
cvtss2sd %xmm0,%xmm0
lea    0xe4f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe60(%rip),%rdi
movsd  0xdd7(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe68(%rip),%rdi
call   1030 <puts@plt>
lea    0xdc5(%rip),%rdi
mov    %r12,%rsi
call   1090 <scanf@plt>
cmp    (%r15),%rax
je     11cb <main+0x5b>
mov    0xc(%rsp),%edx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <gauher@plt>
lea    0xda1(%rip),%rdi
lea    0xda9(%rip),%rsi
lea    0xda4(%rip),%rdx
lea    0xda2(%rip),%rcx
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0xc(%rsp)
xorps  %xmm0,%xmm0
jle    137e <main+0x20e>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%r14,%rbp,4),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rbx,%rbp,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    %ebp,%esi
mov    $0x2,%al
call   1050 <printf@plt>
lea    0x1(%rbp),%rcx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbp
mov    %rcx,%rbp
jl     12b0 <main+0x140>
mov    %eax,%ecx
xorps  %xmm0,%xmm0
test   %ecx,%ecx
jle    137e <main+0x20e>
lea    -0x1(%rcx),%rdx
mov    %ecx,%eax
and    $0x7,%eax
cmp    $0x7,%rdx
jae    130b <main+0x19b>
xorps  %xmm0,%xmm0
mov    $0x1,%edx
test   %rax,%rax
jne    1362 <main+0x1f2>
jmp    137e <main+0x20e>
and    $0xfffffff8,%ecx
xorps  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
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    1320 <main+0x1b0>
add    $0x1,%rdx
test   %rax,%rax
je     137e <main+0x20e>
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    1370 <main+0x200>
cvtss2sd %xmm0,%xmm0
lea    0xcb8(%rip),%rdi
movsd  0xc6f(%rip),%xmm1
mov    $0x2,%al
call   1050 <printf@plt>
cmpl   $0x0,0xc(%rsp)
xorps  %xmm0,%xmm0
jle    1210 <main+0xa0>
xorps  %xmm0,%xmm0
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movss  %xmm0,0x10(%rsp)
movss  0x4(%rbx,%rbp,4),%xmm0
movss  %xmm0,0x14(%rsp)
movss  0x4(%r14,%rbp,4),%xmm0
call   1080 <func@plt>
mulss  0x14(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
movss  0x10(%rsp),%xmm0
movslq 0xc(%rsp),%rax
add    $0x1,%rbp
cmp    %rax,%rbp
jl     13b0 <main+0x240>
jmp    1210 <main+0xa0>

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 gauher: %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*
store i32 0, i32* %1
%8 = call float* @vector(i32 1, i32 64)
store float* %8, float** %6
%9 = call float* @vector(i32 1, i32 64)
store float* %9, float** %7
br label %10
10: ; preds = %85, %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%12 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = load i64, i64* @EOF
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %10
br label %92
16: ; preds = %10
%17 = load float*, float** %6
%18 = load float*, float** %7
%19 = load i32, i32* %3
%20 = call i32 @gauher(float* %17, float* %18, i32 %19)
%21 = 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 %22
22: ; preds = %41, %16
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %44
26: ; preds = %22
%27 = load i32, i32* %2
%28 = load float*, float** %6
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, float* %28, i64 %30
%32 = load float, float* %31
%33 = fpext float %32 to double
%34 = load float*, float** %7
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, float* %34, i64 %36
%38 = load float, float* %37
%39 = fpext float %38 to double
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %27, double %33, double %39)
br label %41
41: ; preds = %26
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %22
44: ; preds = %22
store float 0.000000e+00, float* %4
store i32 1, i32* %2
br label %45
45: ; preds = %57, %44
%46 = load i32, i32* %2
%47 = load i32, i32* %3
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %60
49: ; preds = %45
%50 = load float*, float** %7
%51 = load i32, i32* %2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, float* %50, i64 %52
%54 = load float, float* %53
%55 = load float, float* %4
%56 = fadd float %55, %54
store float %56, float* %4
br label %57
57: ; preds = %49
%58 = load i32, i32* %2
%59 = add nsw i32 %58, 1
store i32 %59, i32* %2
br label %45
60: ; preds = %45
%61 = load float, float* %4
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), double %62, double 0x3FFC5BF89EE2AEB6)
store float 0.000000e+00, float* %5
store i32 1, i32* %2
br label %64
64: ; preds = %82, %60
%65 = load i32, i32* %2
%66 = load i32, i32* %3
%67 = icmp sle i32 %65, %66
br i1 %67, label %68, label %85
68: ; preds = %64
%69 = load float*, float** %7
%70 = load i32, i32* %2
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, float* %69, i64 %71
%73 = load float, float* %72
%74 = load float*, float** %6
%75 = load i32, i32* %2
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, float* %74, i64 %76
%78 = load float, float* %77
%79 = call float @func(float %78)
%80 = load float, float* %5
%81 = call float @llvm.fmuladd.f32(float %73, float %79, float %80)
store float %81, float* %5
br label %82
82: ; preds = %68
%83 = load i32, i32* %2
%84 = add nsw i32 %83, 1
store i32 %84, i32* %2
br label %64
85: ; preds = %64
%86 = load float, float* %5
%87 = fpext float %86 to double
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), double %87)
%89 = call double @exp(double -2.500000e-01)
%90 = fmul double 0x3FFC5BF89EE2AEB6, %89
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), double %90)
br label %10
92: ; preds = %15
%93 = load float*, float** %7
%94 = call i32 @free_vector(float* %93, i32 1, i32 64)
%95 = load float*, float** %6
%96 = call i32 @free_vector(float* %95, 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 gauher: %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 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%6 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%7 = load i64, i64* @EOF
%8 = icmp eq i64 %6, %7
br i1 %8, label %121, label %9
9: ; preds = %0, %112
%10 = load i32, i32* %1
%11 = call i32 @gauher(float* %3, float* %4, i32 %10)
%12 = 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))
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 1
br i1 %14, label %93, label %26
15: ; preds = %26
%16 = icmp slt i32 %37, 1
br i1 %16, label %93, label %17
17: ; preds = %15
%18 = add nuw i32 %37, 1
%19 = zext i32 %18 to i64
%20 = add nsw i64 %19, -1
%21 = add nsw i64 %19, -2
%22 = and i64 %20, 7
%23 = icmp ult i64 %21, 7
br i1 %23, label %78, label %24
24: ; preds = %17
%25 = and i64 %20, -8
br label %40
26: ; preds = %9, %26
%27 = phi i64 [ %36, %26 ], [ 1, %9 ]
%28 = getelementptr inbounds float, float* %3, i64 %27
%29 = load float, float* %28
%30 = fpext float %29 to double
%31 = getelementptr inbounds float, float* %4, i64 %27
%32 = load float, float* %31
%33 = fpext float %32 to double
%34 = trunc i64 %27 to i32
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %34, double %30, double %33)
%36 = add nuw nsw i64 %27, 1
%37 = load i32, i32* %1
%38 = sext i32 %37 to i64
%39 = icmp slt i64 %27, %38
br i1 %39, label %26, label %15
40: ; preds = %40, %24
%41 = phi i64 [ 1, %24 ], [ %75, %40 ]
%42 = phi float [ 0.000000e+00, %24 ], [ %74, %40 ]
%43 = phi i64 [ 0, %24 ], [ %76, %40 ]
%44 = getelementptr inbounds float, float* %4, i64 %41
%45 = load float, float* %44
%46 = fadd float %42, %45
%47 = add nuw nsw i64 %41, 1
%48 = getelementptr inbounds float, float* %4, i64 %47
%49 = load float, float* %48
%50 = fadd float %46, %49
%51 = add nuw nsw i64 %41, 2
%52 = getelementptr inbounds float, float* %4, i64 %51
%53 = load float, float* %52
%54 = fadd float %50, %53
%55 = add nuw nsw i64 %41, 3
%56 = getelementptr inbounds float, float* %4, i64 %55
%57 = load float, float* %56
%58 = fadd float %54, %57
%59 = add nuw nsw i64 %41, 4
%60 = getelementptr inbounds float, float* %4, i64 %59
%61 = load float, float* %60
%62 = fadd float %58, %61
%63 = add nuw nsw i64 %41, 5
%64 = getelementptr inbounds float, float* %4, i64 %63
%65 = load float, float* %64
%66 = fadd float %62, %65
%67 = add nuw nsw i64 %41, 6
%68 = getelementptr inbounds float, float* %4, i64 %67
%69 = load float, float* %68
%70 = fadd float %66, %69
%71 = add nuw nsw i64 %41, 7
%72 = getelementptr inbounds float, float* %4, i64 %71
%73 = load float, float* %72
%74 = fadd float %70, %73
%75 = add nuw nsw i64 %41, 8
%76 = add i64 %43, 8
%77 = icmp eq i64 %76, %25
br i1 %77, label %78, label %40
78: ; preds = %40, %17
%79 = phi float [ undef, %17 ], [ %74, %40 ]
%80 = phi i64 [ 1, %17 ], [ %75, %40 ]
%81 = phi float [ 0.000000e+00, %17 ], [ %74, %40 ]
%82 = icmp eq i64 %22, 0
br i1 %82, label %93, label %83
83: ; preds = %78, %83
%84 = phi i64 [ %90, %83 ], [ %80, %78 ]
%85 = phi float [ %89, %83 ], [ %81, %78 ]
%86 = phi i64 [ %91, %83 ], [ 0, %78 ]
%87 = getelementptr inbounds float, float* %4, i64 %84
%88 = load float, float* %87
%89 = fadd float %85, %88
%90 = add nuw nsw i64 %84, 1
%91 = add i64 %86, 1
%92 = icmp eq i64 %91, %22
br i1 %92, label %93, label %83
93: ; preds = %78, %83, %9, %15
%94 = phi float [ 0.000000e+00, %15 ], [ 0.000000e+00, %9 ], [ %79, %78 ], [ %89, %83 ]
%95 = fpext float %94 to double
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), double %95, double 0x3FFC5BF89EE2AEB6)
%97 = load i32, i32* %1
%98 = icmp slt i32 %97, 1
br i1 %98, label %112, label %99
99: ; preds = %93, %99
%100 = phi i64 [ %108, %99 ], [ 1, %93 ]
%101 = phi float [ %107, %99 ], [ 0.000000e+00, %93 ]
%102 = getelementptr inbounds float, float* %4, i64 %100
%103 = load float, float* %102
%104 = getelementptr inbounds float, float* %3, i64 %100
%105 = load float, float* %104
%106 = call float @func(float %105)
%107 = call float @llvm.fmuladd.f32(float %103, float %106, float %101)
%108 = add nuw nsw i64 %100, 1
%109 = load i32, i32* %1
%110 = sext i32 %109 to i64
%111 = icmp slt i64 %100, %110
br i1 %111, label %99, label %112
112: ; preds = %99, %93
%113 = phi float [ 0.000000e+00, %93 ], [ %107, %99 ]
%114 = fpext float %113 to double
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), double %114)
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), double 0x3FF616123C80B391)
%117 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%118 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%119 = load i64, i64* @EOF
%120 = icmp eq i64 %118, %119
br i1 %120, label %121, label %9
121: ; preds = %112, %0
%122 = call i32 @free_vector(float* %4, i32 1, i32 64)
%123 = call i32 @free_vector(float* %3, i32 1, i32 64)
ret i32 0
}