; LLVM IR from jgaeddert/liquid-dsp :: src/math/tests (polynomial_autotest)

; 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"

@liquid_autotest_verbose = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.autotest_poly_binomial_expand_pm_m6_k1.c_test = external hidden unnamed_addr constant [7 x float], align 16
@.str.36 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #4

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #2

declare void @liquid_autotest_passed(...) #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_poly_binomial_expand_pm_m6_k1() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [7 x float], align 16
  %5 = alloca [7 x float], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 5, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = add i32 %7, %8
  store i32 %9, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 28, i1 false)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 0
  %13 = call i32 @polyf_expandbinomial_pm(i32 noundef %10, i32 noundef %11, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %14 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %36

16:                                               ; preds = %0
  %17 = load i32, ptr %1, align 4, !tbaa !5
  %18 = add i32 %17, 1
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %18)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %31, %16
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp ule i32 %21, %22
  br i1 %23, label %24, label %34

24:                                               ; preds = %20
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = fpext float %28 to double
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, double noundef %29)
  br label %31

31:                                               ; preds = %24
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = add i32 %32, 1
  store i32 %33, ptr %6, align 4, !tbaa !5
  br label %20, !llvm.loop !11

34:                                               ; preds = %20
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %36

36:                                               ; preds = %34, %0
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %154, %36
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = icmp ule i32 %38, %39
  br i1 %40, label %41, label %157

41:                                               ; preds = %37
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %43
  %45 = load float, ptr %44, align 4, !tbaa !9
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = fsub float %45, %49
  %51 = fpext float %50 to double
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = fsub float %55, %59
  %61 = fpext float %60 to double
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = fsub float %65, %69
  %71 = fpext float %70 to double
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = fsub float %75, %79
  %81 = fpext float %80 to double
  %82 = call double @llvm.fmuladd.f64(double %51, double %61, double 0.000000e+00)
  %83 = call double @sqrt(double noundef %82) #6
  %84 = fcmp ogt double %83, 0x3F50624DE0000000
  br i1 %84, label %109, label %85

85:                                               ; preds = %41
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %87
  %89 = load float, ptr %88, align 4, !tbaa !9
  %90 = call i1 @llvm.is.fpclass.f32(float %89, i32 3)
  br i1 %90, label %109, label %91

91:                                               ; preds = %85
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !9
  %96 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %96, label %109, label %97

97:                                               ; preds = %91
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !9
  %102 = call i1 @llvm.is.fpclass.f32(float %101, i32 3)
  br i1 %102, label %109, label %103

103:                                              ; preds = %97
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !9
  %108 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %108, label %109, label %152

109:                                              ; preds = %103, %97, %91, %85, %41
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !9
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = fsub float %113, %117
  %119 = fpext float %118 to double
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !9
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !9
  %128 = fsub float %123, %127
  %129 = fpext float %128 to double
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !9
  %138 = fsub float %133, %137
  %139 = fpext float %138 to double
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [7 x float], ptr %4, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds [7 x float], ptr %5, i64 0, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !9
  %148 = fsub float %143, %147
  %149 = fpext float %148 to double
  %150 = call double @llvm.fmuladd.f64(double %119, double %129, double 0.000000e+00)
  %151 = call double @sqrt(double noundef %150) #6
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 344, ptr noundef @.str.23, double noundef %151, ptr noundef @.str.4, ptr noundef @.str.36, double noundef 0x3F50624DE0000000)
  br label %153

152:                                              ; preds = %103
  call void (...) @liquid_autotest_passed()
  br label %153

153:                                              ; preds = %152, %109
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %6, align 4, !tbaa !5
  br label %37, !llvm.loop !13

157:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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"

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.autotest_poly_binomial_expand_pm_m6_k1.c_test = external hidden unnamed_addr constant [7 x float], align 16
@.str.36 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #3

declare void @liquid_autotest_passed(...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @autotest_poly_binomial_expand_pm_m6_k1() local_unnamed_addr #4 {
  %1 = alloca [7 x float], align 16
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %1) #6
  %2 = call i32 @polyf_expandbinomial_pm(i32 noundef 5, i32 noundef 1, ptr noundef nonnull %1) #6
  %3 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %34, label %4

4:                                                ; preds = %0
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef 6)
  %6 = load float, ptr %1, align 16, !tbaa !9
  %7 = fpext float %6 to double
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %7)
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = load float, ptr %9, align 4, !tbaa !9
  %11 = fpext float %10 to double
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %11)
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load float, ptr %13, align 8, !tbaa !9
  %15 = fpext float %14 to double
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %15)
  %17 = getelementptr inbounds i8, ptr %1, i64 12
  %18 = load float, ptr %17, align 4, !tbaa !9
  %19 = fpext float %18 to double
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %19)
  %21 = getelementptr inbounds i8, ptr %1, i64 16
  %22 = load float, ptr %21, align 16, !tbaa !9
  %23 = fpext float %22 to double
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %23)
  %25 = getelementptr inbounds i8, ptr %1, i64 20
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fpext float %26 to double
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %27)
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = load float, ptr %29, align 8, !tbaa !9
  %31 = fpext float %30 to double
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, double noundef %31)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  br label %34

34:                                               ; preds = %4, %0
  %35 = load float, ptr %1, align 16, !tbaa !9
  %36 = load float, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, align 16, !tbaa !9
  %37 = fsub float %35, %36
  %38 = fpext float %37 to double
  %39 = call double @llvm.fmuladd.f64(double %38, double %38, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %39)
  %40 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  br i1 %40, label %44, label %41

41:                                               ; preds = %34
  %42 = fcmp uno float %35, 0.000000e+00
  %43 = fcmp uno float %36, 0.000000e+00
  %or.cond = select i1 %42, i1 true, i1 %43
  br i1 %or.cond, label %44, label %45

44:                                               ; preds = %41, %34
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %46

45:                                               ; preds = %41
  call void (...) @liquid_autotest_passed() #6
  br label %46

46:                                               ; preds = %44, %45
  %47 = getelementptr inbounds i8, ptr %1, i64 4
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 4), align 4, !tbaa !9
  %50 = fsub float %48, %49
  %51 = fpext float %50 to double
  %52 = call double @llvm.fmuladd.f64(double %51, double %51, double 0.000000e+00)
  %sqrt.1 = call double @llvm.sqrt.f64(double %52)
  %53 = fcmp ogt double %sqrt.1, 0x3F50624DE0000000
  br i1 %53, label %58, label %54

54:                                               ; preds = %46
  %55 = fcmp uno float %48, 0.000000e+00
  %56 = fcmp uno float %49, 0.000000e+00
  %or.cond.1 = select i1 %55, i1 true, i1 %56
  br i1 %or.cond.1, label %58, label %57

57:                                               ; preds = %54
  call void (...) @liquid_autotest_passed() #6
  br label %59

58:                                               ; preds = %54, %46
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt.1, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %59

59:                                               ; preds = %58, %57
  %60 = getelementptr inbounds i8, ptr %1, i64 8
  %61 = load float, ptr %60, align 8, !tbaa !9
  %62 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 8), align 8, !tbaa !9
  %63 = fsub float %61, %62
  %64 = fpext float %63 to double
  %65 = call double @llvm.fmuladd.f64(double %64, double %64, double 0.000000e+00)
  %sqrt.2 = call double @llvm.sqrt.f64(double %65)
  %66 = fcmp ogt double %sqrt.2, 0x3F50624DE0000000
  br i1 %66, label %71, label %67

67:                                               ; preds = %59
  %68 = fcmp uno float %61, 0.000000e+00
  %69 = fcmp uno float %62, 0.000000e+00
  %or.cond.2 = select i1 %68, i1 true, i1 %69
  br i1 %or.cond.2, label %71, label %70

70:                                               ; preds = %67
  call void (...) @liquid_autotest_passed() #6
  br label %72

71:                                               ; preds = %67, %59
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt.2, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %72

72:                                               ; preds = %71, %70
  %73 = getelementptr inbounds i8, ptr %1, i64 12
  %74 = load float, ptr %73, align 4, !tbaa !9
  %75 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 12), align 4, !tbaa !9
  %76 = fsub float %74, %75
  %77 = fpext float %76 to double
  %78 = call double @llvm.fmuladd.f64(double %77, double %77, double 0.000000e+00)
  %sqrt.3 = call double @llvm.sqrt.f64(double %78)
  %79 = fcmp ogt double %sqrt.3, 0x3F50624DE0000000
  br i1 %79, label %84, label %80

80:                                               ; preds = %72
  %81 = fcmp uno float %74, 0.000000e+00
  %82 = fcmp uno float %75, 0.000000e+00
  %or.cond.3 = select i1 %81, i1 true, i1 %82
  br i1 %or.cond.3, label %84, label %83

83:                                               ; preds = %80
  call void (...) @liquid_autotest_passed() #6
  br label %85

84:                                               ; preds = %80, %72
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %85

85:                                               ; preds = %84, %83
  %86 = getelementptr inbounds i8, ptr %1, i64 16
  %87 = load float, ptr %86, align 16, !tbaa !9
  %88 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 16), align 16, !tbaa !9
  %89 = fsub float %87, %88
  %90 = fpext float %89 to double
  %91 = call double @llvm.fmuladd.f64(double %90, double %90, double 0.000000e+00)
  %sqrt.4 = call double @llvm.sqrt.f64(double %91)
  %92 = fcmp ogt double %sqrt.4, 0x3F50624DE0000000
  br i1 %92, label %97, label %93

93:                                               ; preds = %85
  %94 = fcmp uno float %87, 0.000000e+00
  %95 = fcmp uno float %88, 0.000000e+00
  %or.cond.4 = select i1 %94, i1 true, i1 %95
  br i1 %or.cond.4, label %97, label %96

96:                                               ; preds = %93
  call void (...) @liquid_autotest_passed() #6
  br label %98

97:                                               ; preds = %93, %85
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt.4, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %98

98:                                               ; preds = %97, %96
  %99 = getelementptr inbounds i8, ptr %1, i64 20
  %100 = load float, ptr %99, align 4, !tbaa !9
  %101 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 20), align 4, !tbaa !9
  %102 = fsub float %100, %101
  %103 = fpext float %102 to double
  %104 = call double @llvm.fmuladd.f64(double %103, double %103, double 0.000000e+00)
  %sqrt.5 = call double @llvm.sqrt.f64(double %104)
  %105 = fcmp ogt double %sqrt.5, 0x3F50624DE0000000
  br i1 %105, label %110, label %106

106:                                              ; preds = %98
  %107 = fcmp uno float %100, 0.000000e+00
  %108 = fcmp uno float %101, 0.000000e+00
  %or.cond.5 = select i1 %107, i1 true, i1 %108
  br i1 %or.cond.5, label %110, label %109

109:                                              ; preds = %106
  call void (...) @liquid_autotest_passed() #6
  br label %111

110:                                              ; preds = %106, %98
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt.5, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %111

111:                                              ; preds = %110, %109
  %112 = getelementptr inbounds i8, ptr %1, i64 24
  %113 = load float, ptr %112, align 8, !tbaa !9
  %114 = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_poly_binomial_expand_pm_m6_k1.c_test, i64 24), align 8, !tbaa !9
  %115 = fsub float %113, %114
  %116 = fpext float %115 to double
  %117 = call double @llvm.fmuladd.f64(double %116, double %116, double 0.000000e+00)
  %sqrt.6 = call double @llvm.sqrt.f64(double %117)
  %118 = fcmp ogt double %sqrt.6, 0x3F50624DE0000000
  br i1 %118, label %123, label %119

119:                                              ; preds = %111
  %120 = fcmp uno float %113, 0.000000e+00
  %121 = fcmp uno float %114, 0.000000e+00
  %or.cond.6 = select i1 %120, i1 true, i1 %121
  br i1 %or.cond.6, label %123, label %122

122:                                              ; preds = %119
  call void (...) @liquid_autotest_passed() #6
  br label %124

123:                                              ; preds = %119, %111
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 344, ptr noundef nonnull @.str.23, double noundef %sqrt.6, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.36, double noundef 0x3F50624DE0000000) #6
  br label %124

124:                                              ; preds = %123, %122
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %1) #6
  ret void
}

declare i32 @polyf_expandbinomial_pm(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"float", !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass