; LLVM IR from jgaeddert/liquid-dsp :: examples (polyfit_lagrange_example)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 15, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %15 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %15, ptr %3, align 8, !tbaa !9
  %16 = load ptr, ptr %3, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.2, ptr noundef @.str) #5
  %18 = load ptr, ptr %3, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.3) #5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %4, align 8
  %23 = alloca float, i64 %21, align 16
  store i64 %21, ptr %5, align 8
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = alloca float, i64 %25, align 16
  store i64 %25, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %78, %0
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp ult i32 %28, %29
  br i1 %30, label %31, label %81

31:                                               ; preds = %27
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = uitofp i32 %32 to float
  %34 = fpext float %33 to double
  %35 = fmul double 0x400921FB54442D18, %34
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sub i32 %36, 1
  %38 = uitofp i32 %37 to float
  %39 = fpext float %38 to double
  %40 = fdiv double %35, %39
  %41 = fptrunc double %40 to float
  %42 = call float @cosf(float noundef %41) #5
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %23, i64 %44
  store float %42, ptr %45, align 4, !tbaa !11
  %46 = call float (...) @randnf()
  %47 = fmul float 0x3FC99999A0000000, %46
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %26, i64 %49
  store float %47, ptr %50, align 4, !tbaa !11
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds float, ptr %23, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !11
  %55 = fpext float %54 to double
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %26, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !11
  %60 = fpext float %59 to double
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %55, double noundef %60)
  %62 = load ptr, ptr %3, align 8, !tbaa !9
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = add i32 %63, 1
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %23, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = fpext float %68 to double
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add i32 %70, 1
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %26, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = fpext float %75 to double
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.5, i32 noundef %64, double noundef %69, i32 noundef %71, double noundef %76) #5
  br label %78

78:                                               ; preds = %31
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = add i32 %79, 1
  store i32 %80, ptr %7, align 4, !tbaa !5
  br label %27, !llvm.loop !13

81:                                               ; preds = %27
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = zext i32 %82 to i64
  %84 = alloca float, i64 %83, align 16
  store i64 %83, ptr %8, align 8
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = call i32 @polyf_fit_lagrange_barycentric(ptr noundef %23, i32 noundef %85, ptr noundef %84)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %99, %81
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = icmp ult i32 %88, %89
  br i1 %90, label %91, label %102

91:                                               ; preds = %87
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds float, ptr %84, i64 %94
  %96 = load float, ptr %95, align 4, !tbaa !11
  %97 = fpext float %96 to double
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %92, double noundef %97)
  br label %99

99:                                               ; preds = %91
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = add i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !5
  br label %87, !llvm.loop !15

102:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store float 0xBFF19999A0000000, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store float 0x3FF19999A0000000, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = mul i32 16, %103
  store i32 %104, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %105 = load float, ptr %10, align 4, !tbaa !11
  %106 = load float, ptr %9, align 4, !tbaa !11
  %107 = fsub float %105, %106
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = sub i32 %108, 1
  %110 = uitofp i32 %109 to float
  %111 = fdiv float %107, %110
  store float %111, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %112 = load float, ptr %9, align 4, !tbaa !11
  store float %112, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %134, %102
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = load i32, ptr %11, align 4, !tbaa !5
  %116 = icmp ult i32 %114, %115
  br i1 %116, label %117, label %137

117:                                              ; preds = %113
  %118 = load float, ptr %13, align 4, !tbaa !11
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = call float @polyf_val_lagrange_barycentric(ptr noundef %23, ptr noundef %26, ptr noundef %84, float noundef %118, i32 noundef %119)
  store float %120, ptr %14, align 4, !tbaa !11
  %121 = load ptr, ptr %3, align 8, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = add i32 %122, 1
  %124 = load float, ptr %13, align 4, !tbaa !11
  %125 = fpext float %124 to double
  %126 = load i32, ptr %7, align 4, !tbaa !5
  %127 = add i32 %126, 1
  %128 = load float, ptr %14, align 4, !tbaa !11
  %129 = fpext float %128 to double
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.7, i32 noundef %123, double noundef %125, i32 noundef %127, double noundef %129) #5
  %131 = load float, ptr %12, align 4, !tbaa !11
  %132 = load float, ptr %13, align 4, !tbaa !11
  %133 = fadd float %132, %131
  store float %133, ptr %13, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %117
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = add i32 %135, 1
  store i32 %136, ptr %7, align 4, !tbaa !5
  br label %113, !llvm.loop !16

137:                                              ; preds = %113
  %138 = load ptr, ptr %3, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.8) #5
  %140 = load ptr, ptr %3, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.9) #5
  %142 = load ptr, ptr %3, align 8, !tbaa !9
  %143 = load i32, ptr %2, align 4, !tbaa !5
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.10, i32 noundef %143) #5
  %145 = load ptr, ptr %3, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.11) #5
  %147 = load ptr, ptr %3, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.12) #5
  %149 = load ptr, ptr %3, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.13) #5
  %151 = load ptr, ptr %3, align 8, !tbaa !9
  %152 = call i32 @fclose(ptr noundef %151)
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef @.str)
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %155 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %155)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %156 = load i32, ptr %1, align 4
  ret i32 %156
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

declare float @randnf(...) #2

declare i32 @printf(ptr noundef, ...) #2

declare i32 @polyf_fit_lagrange_barycentric(ptr noundef, i32 noundef, ptr noundef) #2

declare float @polyf_val_lagrange_barycentric(ptr noundef, ptr noundef, ptr noundef, float noundef, i32 noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader.preheader:
  %0 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %1 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #3
  %2 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.3) #3
  %3 = alloca [15 x float], align 16
  %4 = alloca [15 x float], align 16
  store float 1.000000e+00, ptr %3, align 16, !tbaa !5
  %5 = tail call float (...) @randnf() #3
  %6 = fmul float %5, 0x3FC99999A0000000
  store float %6, ptr %4, align 16, !tbaa !5
  %7 = fpext float %6 to double
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.000000e+00, double noundef %7)
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 1, double noundef 1.000000e+00, i32 noundef 1, double noundef %7) #3
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  store float 0x3FEF329C00000000, ptr %10, align 4, !tbaa !5
  %11 = tail call float (...) @randnf() #3
  %12 = fmul float %11, 0x3FC99999A0000000
  %13 = getelementptr inbounds i8, ptr %4, i64 4
  store float %12, ptr %13, align 4, !tbaa !5
  %14 = fpext float %12 to double
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0x3FEF329C00000000, double noundef %14)
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 2, double noundef 0x3FEF329C00000000, i32 noundef 2, double noundef %14) #3
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  store float 0x3FECD4BCA0000000, ptr %17, align 8, !tbaa !5
  %18 = tail call float (...) @randnf() #3
  %19 = fmul float %18, 0x3FC99999A0000000
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  store float %19, ptr %20, align 8, !tbaa !5
  %21 = fpext float %19 to double
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0x3FECD4BCA0000000, double noundef %21)
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 3, double noundef 0x3FECD4BCA0000000, i32 noundef 3, double noundef %21) #3
  %24 = getelementptr inbounds i8, ptr %3, i64 12
  store float 0x3FE904C380000000, ptr %24, align 4, !tbaa !5
  %25 = tail call float (...) @randnf() #3
  %26 = fmul float %25, 0x3FC99999A0000000
  %27 = getelementptr inbounds i8, ptr %4, i64 12
  store float %26, ptr %27, align 4, !tbaa !5
  %28 = fpext float %26 to double
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0x3FE904C380000000, double noundef %28)
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 4, double noundef 0x3FE904C380000000, i32 noundef 4, double noundef %28) #3
  %31 = getelementptr inbounds i8, ptr %3, i64 16
  store float 0x3FE3F3A0E0000000, ptr %31, align 16, !tbaa !5
  %32 = tail call float (...) @randnf() #3
  %33 = fmul float %32, 0x3FC99999A0000000
  %34 = getelementptr inbounds i8, ptr %4, i64 16
  store float %33, ptr %34, align 16, !tbaa !5
  %35 = fpext float %33 to double
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0x3FE3F3A0E0000000, double noundef %35)
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 5, double noundef 0x3FE3F3A0E0000000, i32 noundef 5, double noundef %35) #3
  %38 = getelementptr inbounds i8, ptr %3, i64 20
  store float 0x3FDBC4C060000000, ptr %38, align 4, !tbaa !5
  %39 = tail call float (...) @randnf() #3
  %40 = fmul float %39, 0x3FC99999A0000000
  %41 = getelementptr inbounds i8, ptr %4, i64 20
  store float %40, ptr %41, align 4, !tbaa !5
  %42 = fpext float %40 to double
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0x3FDBC4C060000000, double noundef %42)
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 6, double noundef 0x3FDBC4C060000000, i32 noundef 6, double noundef %42) #3
  %45 = getelementptr inbounds i8, ptr %3, i64 24
  store float 0x3FCC7B9140000000, ptr %45, align 8, !tbaa !5
  %46 = tail call float (...) @randnf() #3
  %47 = fmul float %46, 0x3FC99999A0000000
  %48 = getelementptr inbounds i8, ptr %4, i64 24
  store float %47, ptr %48, align 8, !tbaa !5
  %49 = fpext float %47 to double
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0x3FCC7B9140000000, double noundef %49)
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 7, double noundef 0x3FCC7B9140000000, i32 noundef 7, double noundef %49) #3
  %52 = getelementptr inbounds i8, ptr %3, i64 28
  store float 0xBE6777A5C0000000, ptr %52, align 4, !tbaa !5
  %53 = tail call float (...) @randnf() #3
  %54 = fmul float %53, 0x3FC99999A0000000
  %55 = getelementptr inbounds i8, ptr %4, i64 28
  store float %54, ptr %55, align 4, !tbaa !5
  %56 = fpext float %54 to double
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBE6777A5C0000000, double noundef %56)
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 8, double noundef 0xBE6777A5C0000000, i32 noundef 8, double noundef %56) #3
  %59 = getelementptr inbounds i8, ptr %3, i64 32
  store float 0xBFCC7B9100000000, ptr %59, align 16, !tbaa !5
  %60 = tail call float (...) @randnf() #3
  %61 = fmul float %60, 0x3FC99999A0000000
  %62 = getelementptr inbounds i8, ptr %4, i64 32
  store float %61, ptr %62, align 16, !tbaa !5
  %63 = fpext float %61 to double
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBFCC7B9100000000, double noundef %63)
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 9, double noundef 0xBFCC7B9100000000, i32 noundef 9, double noundef %63) #3
  %66 = getelementptr inbounds i8, ptr %3, i64 36
  store float 0xBFDBC4C0C0000000, ptr %66, align 4, !tbaa !5
  %67 = tail call float (...) @randnf() #3
  %68 = fmul float %67, 0x3FC99999A0000000
  %69 = getelementptr inbounds i8, ptr %4, i64 36
  store float %68, ptr %69, align 4, !tbaa !5
  %70 = fpext float %68 to double
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBFDBC4C0C0000000, double noundef %70)
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 10, double noundef 0xBFDBC4C0C0000000, i32 noundef 10, double noundef %70) #3
  %73 = getelementptr inbounds i8, ptr %3, i64 40
  store float 0xBFE3F3A0E0000000, ptr %73, align 8, !tbaa !5
  %74 = tail call float (...) @randnf() #3
  %75 = fmul float %74, 0x3FC99999A0000000
  %76 = getelementptr inbounds i8, ptr %4, i64 40
  store float %75, ptr %76, align 8, !tbaa !5
  %77 = fpext float %75 to double
  %78 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBFE3F3A0E0000000, double noundef %77)
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 11, double noundef 0xBFE3F3A0E0000000, i32 noundef 11, double noundef %77) #3
  %80 = getelementptr inbounds i8, ptr %3, i64 44
  store float 0xBFE904C380000000, ptr %80, align 4, !tbaa !5
  %81 = tail call float (...) @randnf() #3
  %82 = fmul float %81, 0x3FC99999A0000000
  %83 = getelementptr inbounds i8, ptr %4, i64 44
  store float %82, ptr %83, align 4, !tbaa !5
  %84 = fpext float %82 to double
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBFE904C380000000, double noundef %84)
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 12, double noundef 0xBFE904C380000000, i32 noundef 12, double noundef %84) #3
  %87 = getelementptr inbounds i8, ptr %3, i64 48
  store float 0xBFECD4BCA0000000, ptr %87, align 16, !tbaa !5
  %88 = tail call float (...) @randnf() #3
  %89 = fmul float %88, 0x3FC99999A0000000
  %90 = getelementptr inbounds i8, ptr %4, i64 48
  store float %89, ptr %90, align 16, !tbaa !5
  %91 = fpext float %89 to double
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBFECD4BCA0000000, double noundef %91)
  %93 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 13, double noundef 0xBFECD4BCA0000000, i32 noundef 13, double noundef %91) #3
  %94 = getelementptr inbounds i8, ptr %3, i64 52
  store float 0xBFEF329C00000000, ptr %94, align 4, !tbaa !5
  %95 = tail call float (...) @randnf() #3
  %96 = fmul float %95, 0x3FC99999A0000000
  %97 = getelementptr inbounds i8, ptr %4, i64 52
  store float %96, ptr %97, align 4, !tbaa !5
  %98 = fpext float %96 to double
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0xBFEF329C00000000, double noundef %98)
  %100 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 14, double noundef 0xBFEF329C00000000, i32 noundef 14, double noundef %98) #3
  %101 = getelementptr inbounds i8, ptr %3, i64 56
  store float -1.000000e+00, ptr %101, align 8, !tbaa !5
  %102 = tail call float (...) @randnf() #3
  %103 = fmul float %102, 0x3FC99999A0000000
  %104 = getelementptr inbounds i8, ptr %4, i64 56
  store float %103, ptr %104, align 8, !tbaa !5
  %105 = fpext float %103 to double
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef -1.000000e+00, double noundef %105)
  %107 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.5, i32 noundef 15, double noundef -1.000000e+00, i32 noundef 15, double noundef %105) #3
  %108 = alloca [15 x float], align 16
  %109 = call i32 @polyf_fit_lagrange_barycentric(ptr noundef nonnull %3, i32 noundef 15, ptr noundef nonnull %108) #3
  %110 = load float, ptr %108, align 16, !tbaa !5
  %111 = fpext float %110 to double
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 0, double noundef %111)
  %113 = getelementptr inbounds i8, ptr %108, i64 4
  %114 = load float, ptr %113, align 4, !tbaa !5
  %115 = fpext float %114 to double
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 1, double noundef %115)
  %117 = getelementptr inbounds i8, ptr %108, i64 8
  %118 = load float, ptr %117, align 8, !tbaa !5
  %119 = fpext float %118 to double
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 2, double noundef %119)
  %121 = getelementptr inbounds i8, ptr %108, i64 12
  %122 = load float, ptr %121, align 4, !tbaa !5
  %123 = fpext float %122 to double
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 3, double noundef %123)
  %125 = getelementptr inbounds i8, ptr %108, i64 16
  %126 = load float, ptr %125, align 16, !tbaa !5
  %127 = fpext float %126 to double
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 4, double noundef %127)
  %129 = getelementptr inbounds i8, ptr %108, i64 20
  %130 = load float, ptr %129, align 4, !tbaa !5
  %131 = fpext float %130 to double
  %132 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 5, double noundef %131)
  %133 = getelementptr inbounds i8, ptr %108, i64 24
  %134 = load float, ptr %133, align 8, !tbaa !5
  %135 = fpext float %134 to double
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 6, double noundef %135)
  %137 = getelementptr inbounds i8, ptr %108, i64 28
  %138 = load float, ptr %137, align 4, !tbaa !5
  %139 = fpext float %138 to double
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 7, double noundef %139)
  %141 = getelementptr inbounds i8, ptr %108, i64 32
  %142 = load float, ptr %141, align 16, !tbaa !5
  %143 = fpext float %142 to double
  %144 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 8, double noundef %143)
  %145 = getelementptr inbounds i8, ptr %108, i64 36
  %146 = load float, ptr %145, align 4, !tbaa !5
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 9, double noundef %147)
  %149 = getelementptr inbounds i8, ptr %108, i64 40
  %150 = load float, ptr %149, align 8, !tbaa !5
  %151 = fpext float %150 to double
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 10, double noundef %151)
  %153 = getelementptr inbounds i8, ptr %108, i64 44
  %154 = load float, ptr %153, align 4, !tbaa !5
  %155 = fpext float %154 to double
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 11, double noundef %155)
  %157 = getelementptr inbounds i8, ptr %108, i64 48
  %158 = load float, ptr %157, align 16, !tbaa !5
  %159 = fpext float %158 to double
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 12, double noundef %159)
  %161 = getelementptr inbounds i8, ptr %108, i64 52
  %162 = load float, ptr %161, align 4, !tbaa !5
  %163 = fpext float %162 to double
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 13, double noundef %163)
  %165 = getelementptr inbounds i8, ptr %108, i64 56
  %166 = load float, ptr %165, align 8, !tbaa !5
  %167 = fpext float %166 to double
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 14, double noundef %167)
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.055 = phi float [ %174, %.preheader ], [ 0xBFF19999A0000000, %.preheader.preheader ]
  %.254 = phi i32 [ %170, %.preheader ], [ 0, %.preheader.preheader ]
  %169 = call float @polyf_val_lagrange_barycentric(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %108, float noundef %.055, i32 noundef 15) #3
  %170 = add nuw nsw i32 %.254, 1
  %171 = fpext float %.055 to double
  %172 = fpext float %169 to double
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.7, i32 noundef %170, double noundef %171, i32 noundef %170, double noundef %172) #3
  %174 = fadd float %.055, 0x3F82DA1500000000
  %exitcond61.not = icmp eq i32 %170, 240
  br i1 %exitcond61.not, label %175, label %.preheader, !llvm.loop !9

175:                                              ; preds = %.preheader
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.8) #3
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.9) #3
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.10, i32 noundef 15) #3
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.11) #3
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.12) #3
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.13) #3
  %182 = call i32 @fclose(ptr noundef %0)
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull @.str)
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare float @randnf(...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare i32 @polyf_fit_lagrange_barycentric(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare float @polyf_val_lagrange_barycentric(ptr noundef, ptr noundef, ptr noundef, float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass