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

@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.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.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.autotest_polyf_lagrange.x = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_polyf_lagrange.y = external hidden unnamed_addr constant [3 x float], align 4

; 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_polyf_lagrange() #5 {
  %1 = alloca i32, align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 3, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.autotest_polyf_lagrange.x, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.autotest_polyf_lagrange.y, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0x3F50624DE0000000, ptr %5, align 4, !tbaa !9
  %8 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %9 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %12 = call i32 @polyf_fit_lagrange(ptr noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %25, %0
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = icmp ult i32 %14, %15
  br i1 %16, label %17, label %28

17:                                               ; preds = %13
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 %20
  %22 = load float, ptr %21, align 4, !tbaa !9
  %23 = fpext float %22 to double
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18, double noundef %23)
  br label %25

25:                                               ; preds = %17
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = add i32 %26, 1
  store i32 %27, ptr %6, align 4, !tbaa !5
  br label %13, !llvm.loop !11

28:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %172, %28
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = icmp ult i32 %30, %31
  br i1 %32, label %33, label %175

33:                                               ; preds = %29
  %34 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 %37
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = call float @polyf_val(ptr noundef %34, i32 noundef %35, float noundef %39)
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %42
  store float %40, ptr %43, align 4, !tbaa !9
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = fpext float %48 to double
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !9
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %44, double noundef %49, double noundef %54)
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = fsub float %59, %63
  %65 = fpext float %64 to double
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = fsub float %69, %73
  %75 = fpext float %74 to double
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !9
  %84 = fsub float %79, %83
  %85 = fpext float %84 to double
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %87
  %89 = load float, ptr %88, align 4, !tbaa !9
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !9
  %94 = fsub float %89, %93
  %95 = fpext float %94 to double
  %96 = call double @llvm.fmuladd.f64(double %65, double %75, double 0.000000e+00)
  %97 = call double @sqrt(double noundef %96) #6
  %98 = load float, ptr %5, align 4, !tbaa !9
  %99 = fpext float %98 to double
  %100 = fcmp ogt double %97, %99
  br i1 %100, label %125, label %101

101:                                              ; preds = %33
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %103
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = call i1 @llvm.is.fpclass.f32(float %105, i32 3)
  br i1 %106, label %125, label %107

107:                                              ; preds = %101
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %109
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %112, label %125, label %113

113:                                              ; preds = %107
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = call i1 @llvm.is.fpclass.f32(float %117, i32 3)
  br i1 %118, label %125, label %119

119:                                              ; preds = %113
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !9
  %124 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %124, label %125, label %170

125:                                              ; preds = %119, %113, %107, %101, %33
  %126 = load i32, ptr %6, align 4, !tbaa !5
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !9
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !9
  %134 = fsub float %129, %133
  %135 = fpext float %134 to double
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !9
  %144 = fsub float %139, %143
  %145 = fpext float %144 to double
  %146 = load i32, ptr %6, align 4, !tbaa !5
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %147
  %149 = load float, ptr %148, align 4, !tbaa !9
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = fsub float %149, %153
  %155 = fpext float %154 to double
  %156 = load i32, ptr %6, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !9
  %160 = load i32, ptr %6, align 4, !tbaa !5
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !9
  %164 = fsub float %159, %163
  %165 = fpext float %164 to double
  %166 = call double @llvm.fmuladd.f64(double %135, double %145, double 0.000000e+00)
  %167 = call double @sqrt(double noundef %166) #6
  %168 = load float, ptr %5, align 4, !tbaa !9
  %169 = fpext float %168 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 115, ptr noundef @.str.9, double noundef %167, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %169)
  br label %171

170:                                              ; preds = %119
  call void (...) @liquid_autotest_passed()
  br label %171

171:                                              ; preds = %170, %125
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %6, align 4, !tbaa !5
  %174 = add i32 %173, 1
  store i32 %174, ptr %6, align 4, !tbaa !5
  br label %29, !llvm.loop !13

175:                                              ; preds = %29
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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"

@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.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.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.autotest_polyf_lagrange.x = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_polyf_lagrange.y = external hidden unnamed_addr constant [3 x float], align 4

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

; Function Attrs: mustprogress 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

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

; 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) #3

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

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

declare i32 @polyf_fit_lagrange(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare float @polyf_val(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @autotest_polyf_lagrange() local_unnamed_addr #5 {
.preheader.preheader:
  %0 = alloca [3 x float], align 4
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %0) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_polyf_lagrange.x, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_polyf_lagrange.y, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  %3 = call i32 @polyf_fit_lagrange(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 3, ptr noundef nonnull %2) #7
  %4 = load float, ptr %2, align 4, !tbaa !5
  %5 = fpext float %4 to double
  %6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 0, double noundef %5)
  %7 = getelementptr inbounds i8, ptr %2, i64 4
  %8 = load float, ptr %7, align 4, !tbaa !5
  %9 = fpext float %8 to double
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 1, double noundef %9)
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = fpext float %12 to double
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 2, double noundef %13)
  %15 = load float, ptr %0, align 4, !tbaa !5
  %16 = call float @polyf_val(ptr noundef nonnull %2, i32 noundef 3, float noundef %15) #7
  %17 = fpext float %16 to double
  %18 = load float, ptr %1, align 4, !tbaa !5
  %19 = fpext float %18 to double
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 0, double noundef %17, double noundef %19)
  %21 = load float, ptr %1, align 4, !tbaa !5
  %22 = fsub float %21, %16
  %23 = fpext float %22 to double
  %24 = call double @llvm.fmuladd.f64(double %23, double %23, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %24)
  %25 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %or.cond = fcmp uno float %21, %16
  %or.cond41 = select i1 %25, i1 true, i1 %or.cond
  br i1 %or.cond41, label %26, label %27

26:                                               ; preds = %.preheader.preheader
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 115, ptr noundef nonnull @.str.9, double noundef %sqrt, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %.preheader.1

27:                                               ; preds = %.preheader.preheader
  call void (...) @liquid_autotest_passed() #7
  br label %.preheader.1

.preheader.1:                                     ; preds = %26, %27
  %28 = getelementptr inbounds i8, ptr %0, i64 4
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = call float @polyf_val(ptr noundef nonnull %2, i32 noundef 3, float noundef %29) #7
  %31 = fpext float %30 to double
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = fpext float %33 to double
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 1, double noundef %31, double noundef %34)
  %36 = load float, ptr %32, align 4, !tbaa !5
  %37 = fsub float %36, %30
  %38 = fpext float %37 to double
  %39 = call double @llvm.fmuladd.f64(double %38, double %38, double 0.000000e+00)
  %sqrt.1 = call double @llvm.sqrt.f64(double %39)
  %40 = fcmp ogt double %sqrt.1, 0x3F50624DE0000000
  %or.cond.1 = fcmp uno float %36, %30
  %or.cond42 = select i1 %40, i1 true, i1 %or.cond.1
  br i1 %or.cond42, label %42, label %41

41:                                               ; preds = %.preheader.1
  call void (...) @liquid_autotest_passed() #7
  br label %.preheader.2

42:                                               ; preds = %.preheader.1
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 115, ptr noundef nonnull @.str.9, double noundef %sqrt.1, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %.preheader.2

.preheader.2:                                     ; preds = %42, %41
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = call float @polyf_val(ptr noundef nonnull %2, i32 noundef 3, float noundef %44) #7
  %46 = fpext float %45 to double
  %47 = getelementptr inbounds i8, ptr %1, i64 8
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = fpext float %48 to double
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 2, double noundef %46, double noundef %49)
  %51 = load float, ptr %47, align 4, !tbaa !5
  %52 = fsub float %51, %45
  %53 = fpext float %52 to double
  %54 = call double @llvm.fmuladd.f64(double %53, double %53, double 0.000000e+00)
  %sqrt.2 = call double @llvm.sqrt.f64(double %54)
  %55 = fcmp ogt double %sqrt.2, 0x3F50624DE0000000
  %or.cond.2 = fcmp uno float %51, %45
  %or.cond43 = select i1 %55, i1 true, i1 %or.cond.2
  br i1 %or.cond43, label %57, label %56

56:                                               ; preds = %.preheader.2
  call void (...) @liquid_autotest_passed() #7
  br label %58

57:                                               ; preds = %.preheader.2
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 115, ptr noundef nonnull @.str.9, double noundef %sqrt.2, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %58

58:                                               ; preds = %57, %56
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %0) #7
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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"}


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