; LLVM IR from jgaeddert/liquid-dsp :: src/optim/tests (gradsearch_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 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [70 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 nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #1

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

declare float @gradsearch_step(ptr noundef) #2

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

declare void @gradsearch_print(ptr noundef) #2

declare void @gradsearch_destroy(ptr noundef) #2

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local float @utility_max_autotest(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @autotest_gradsearch_maxutility() #5 {
  %1 = alloca float, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3F847AE140000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 6, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 4000, ptr %3, align 4, !tbaa !9
  %9 = load i32, ptr %2, align 4, !tbaa !9
  %10 = zext i32 %9 to i64
  %11 = call ptr @llvm.stacksave.p0()
  store ptr %11, ptr %4, align 8
  %12 = alloca float, i64 %10, align 16
  store i64 %10, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %21, %0
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = load i32, ptr %2, align 4, !tbaa !9
  %16 = icmp ult i32 %14, %15
  br i1 %16, label %17, label %24

17:                                               ; preds = %13
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds float, ptr %12, i64 %19
  store float 0.000000e+00, ptr %20, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %17
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = add i32 %22, 1
  store i32 %23, ptr %6, align 4, !tbaa !9
  br label %13, !llvm.loop !11

24:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = load i32, ptr %2, align 4, !tbaa !9
  %26 = call ptr @gradsearch_create(ptr noundef null, ptr noundef %12, i32 noundef %25, ptr noundef @utility_max_autotest, i32 noundef 1)
  store ptr %26, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %66, %24
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = icmp ult i32 %28, %29
  br i1 %30, label %31, label %69

31:                                               ; preds = %27
  %32 = load ptr, ptr %7, align 8, !tbaa !13
  %33 = call float @gradsearch_step(ptr noundef %32)
  %34 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %65

36:                                               ; preds = %31
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = add i32 %37, 1
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = urem i32 %38, %39
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %50, label %42

42:                                               ; preds = %36
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %50, label %45

45:                                               ; preds = %42
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = sub i32 %47, 1
  %49 = icmp eq i32 %46, %48
  br i1 %49, label %50, label %64

50:                                               ; preds = %45, %42, %36
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = add i32 %51, 1
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %52)
  %54 = load ptr, ptr %7, align 8, !tbaa !13
  call void @gradsearch_print(ptr noundef %54)
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = add i32 %55, 1
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = mul i32 10, %57
  %59 = icmp eq i32 %56, %58
  br i1 %59, label %60, label %63

60:                                               ; preds = %50
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = mul i32 %61, 10
  store i32 %62, ptr %8, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %60, %50
  br label %64

64:                                               ; preds = %63, %45
  br label %65

65:                                               ; preds = %64, %31
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = add i32 %67, 1
  store i32 %68, ptr %6, align 4, !tbaa !9
  br label %27, !llvm.loop !15

69:                                               ; preds = %27
  %70 = load ptr, ptr %7, align 8, !tbaa !13
  call void @gradsearch_destroy(ptr noundef %70)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %152, %69
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = load i32, ptr %2, align 4, !tbaa !9
  %74 = icmp ult i32 %72, %73
  br i1 %74, label %75, label %155

75:                                               ; preds = %71
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %12, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fsub float %79, 1.000000e+00
  %81 = fpext float %80 to double
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds float, ptr %12, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !5
  %86 = fsub float %85, 1.000000e+00
  %87 = fpext float %86 to double
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %12, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = fsub float %91, 1.000000e+00
  %93 = fpext float %92 to double
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %12, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !5
  %98 = fsub float %97, 1.000000e+00
  %99 = fpext float %98 to double
  %100 = call double @llvm.fmuladd.f64(double %81, double %87, double 0.000000e+00)
  %101 = call double @sqrt(double noundef %100) #6
  %102 = load float, ptr %1, align 4, !tbaa !5
  %103 = fpext float %102 to double
  %104 = fcmp ogt double %101, %103
  br i1 %104, label %121, label %105

105:                                              ; preds = %75
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %12, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !5
  %110 = call i1 @llvm.is.fpclass.f32(float %109, i32 3)
  br i1 %110, label %121, label %111

111:                                              ; preds = %105
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %12, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !5
  %116 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %116, label %121, label %117

117:                                              ; preds = %111
  %118 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %118, label %121, label %119

119:                                              ; preds = %117
  %120 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %120, label %121, label %150

121:                                              ; preds = %119, %117, %111, %105, %75
  %122 = load i32, ptr %6, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %12, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !5
  %126 = fsub float %125, 1.000000e+00
  %127 = fpext float %126 to double
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds float, ptr %12, i64 %129
  %131 = load float, ptr %130, align 4, !tbaa !5
  %132 = fsub float %131, 1.000000e+00
  %133 = fpext float %132 to double
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %12, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !5
  %138 = fsub float %137, 1.000000e+00
  %139 = fpext float %138 to double
  %140 = load i32, ptr %6, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %12, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !5
  %144 = fsub float %143, 1.000000e+00
  %145 = fpext float %144 to double
  %146 = call double @llvm.fmuladd.f64(double %127, double %133, double 0.000000e+00)
  %147 = call double @sqrt(double noundef %146) #6
  %148 = load float, ptr %1, align 4, !tbaa !5
  %149 = fpext float %148 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 155, ptr noundef @.str.2, double noundef %147, ptr noundef @.str.3, ptr noundef @.str.4, double noundef %149)
  br label %151

150:                                              ; preds = %119
  call void (...) @liquid_autotest_passed()
  br label %151

151:                                              ; preds = %150, %121
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %6, align 4, !tbaa !9
  %154 = add i32 %153, 1
  store i32 %154, ptr %6, align 4, !tbaa !9
  br label %71, !llvm.loop !16

155:                                              ; preds = %71
  %156 = load i32, ptr %2, align 4, !tbaa !9
  %157 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %156)
  %158 = fsub float %157, 1.000000e+00
  %159 = fpext float %158 to double
  %160 = load i32, ptr %2, align 4, !tbaa !9
  %161 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %160)
  %162 = fsub float %161, 1.000000e+00
  %163 = fpext float %162 to double
  %164 = load i32, ptr %2, align 4, !tbaa !9
  %165 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %164)
  %166 = fsub float %165, 1.000000e+00
  %167 = fpext float %166 to double
  %168 = load i32, ptr %2, align 4, !tbaa !9
  %169 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %168)
  %170 = fsub float %169, 1.000000e+00
  %171 = fpext float %170 to double
  %172 = call double @llvm.fmuladd.f64(double %159, double %163, double 0.000000e+00)
  %173 = call double @sqrt(double noundef %172) #6
  %174 = load float, ptr %1, align 4, !tbaa !5
  %175 = fpext float %174 to double
  %176 = fcmp ogt double %173, %175
  br i1 %176, label %189, label %177

177:                                              ; preds = %155
  %178 = load i32, ptr %2, align 4, !tbaa !9
  %179 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %178)
  %180 = call i1 @llvm.is.fpclass.f32(float %179, i32 3)
  br i1 %180, label %189, label %181

181:                                              ; preds = %177
  %182 = load i32, ptr %2, align 4, !tbaa !9
  %183 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %182)
  %184 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %184, label %189, label %185

185:                                              ; preds = %181
  %186 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %186, label %189, label %187

187:                                              ; preds = %185
  %188 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %188, label %189, label %210

189:                                              ; preds = %187, %185, %181, %177, %155
  %190 = load i32, ptr %2, align 4, !tbaa !9
  %191 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %190)
  %192 = fsub float %191, 1.000000e+00
  %193 = fpext float %192 to double
  %194 = load i32, ptr %2, align 4, !tbaa !9
  %195 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %194)
  %196 = fsub float %195, 1.000000e+00
  %197 = fpext float %196 to double
  %198 = load i32, ptr %2, align 4, !tbaa !9
  %199 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %198)
  %200 = fsub float %199, 1.000000e+00
  %201 = fpext float %200 to double
  %202 = load i32, ptr %2, align 4, !tbaa !9
  %203 = call float @utility_max_autotest(ptr noundef null, ptr noundef %12, i32 noundef %202)
  %204 = fsub float %203, 1.000000e+00
  %205 = fpext float %204 to double
  %206 = call double @llvm.fmuladd.f64(double %193, double %197, double 0.000000e+00)
  %207 = call double @sqrt(double noundef %206) #6
  %208 = load float, ptr %1, align 4, !tbaa !5
  %209 = fpext float %208 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 158, ptr noundef @.str.7, double noundef %207, ptr noundef @.str.3, ptr noundef @.str.4, double noundef %209)
  br label %211

210:                                              ; preds = %187
  call void (...) @liquid_autotest_passed()
  br label %211

211:                                              ; preds = %210, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %212 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %212)
  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
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [70 x i8], align 1

declare ptr @gradsearch_create(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare float @gradsearch_step(ptr noundef) local_unnamed_addr #0

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

declare void @gradsearch_print(ptr noundef) local_unnamed_addr #0

declare void @gradsearch_destroy(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; 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 #0

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

; Function Attrs: nounwind uwtable
declare dso_local float @utility_max_autotest(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @autotest_gradsearch_maxutility() local_unnamed_addr #4 {
  %1 = alloca [6 x float], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %1, i8 0, i64 24, i1 false), !tbaa !5
  %2 = call ptr @gradsearch_create(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6, ptr noundef nonnull @utility_max_autotest, i32 noundef 1) #7
  br label %3

3:                                                ; preds = %0, %._crit_edge
  %.056 = phi i32 [ 1, %0 ], [ %.1, %._crit_edge ]
  %.15055 = phi i32 [ 0, %0 ], [ %.pre, %._crit_edge ]
  %4 = call float @gradsearch_step(ptr noundef %2) #7
  %5 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %.not = icmp eq i32 %5, 0
  %.pre = add nuw nsw i32 %.15055, 1
  br i1 %.not, label %._crit_edge, label %6

6:                                                ; preds = %3
  %7 = urem i32 %.pre, %.056
  %.fr = freeze i32 %7
  %8 = icmp eq i32 %.fr, 0
  br i1 %8, label %9, label %switch.early.test

switch.early.test:                                ; preds = %6
  switch i32 %.15055, label %._crit_edge [
    i32 3999, label %9
    i32 0, label %9
  ]

9:                                                ; preds = %switch.early.test, %switch.early.test, %6
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.pre)
  call void @gradsearch_print(ptr noundef %2) #7
  %11 = mul i32 %.056, 10
  %12 = icmp eq i32 %.pre, %11
  %spec.select = select i1 %12, i32 %11, i32 %.056
  br label %._crit_edge

._crit_edge:                                      ; preds = %3, %switch.early.test, %9
  %.1 = phi i32 [ %.056, %switch.early.test ], [ %spec.select, %9 ], [ %.056, %3 ]
  %exitcond.not = icmp eq i32 %.pre, 4000
  br i1 %exitcond.not, label %13, label %3, !llvm.loop !11

13:                                               ; preds = %._crit_edge
  call void @gradsearch_destroy(ptr noundef %2) #7
  %14 = load float, ptr %1, align 16, !tbaa !5
  %15 = fadd float %14, -1.000000e+00
  %16 = fpext float %15 to double
  %17 = call double @llvm.fmuladd.f64(double %16, double %16, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %17)
  %18 = fcmp ogt double %sqrt, 0x3F847AE140000000
  %19 = fcmp uno float %14, 0.000000e+00
  %or.cond = select i1 %18, i1 true, i1 %19
  br i1 %or.cond, label %20, label %21

20:                                               ; preds = %13
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.2, double noundef %sqrt, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %22

21:                                               ; preds = %13
  call void (...) @liquid_autotest_passed() #7
  br label %22

22:                                               ; preds = %20, %21
  %23 = getelementptr inbounds i8, ptr %1, i64 4
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = fadd float %24, -1.000000e+00
  %26 = fpext float %25 to double
  %27 = call double @llvm.fmuladd.f64(double %26, double %26, double 0.000000e+00)
  %sqrt.1 = call double @llvm.sqrt.f64(double %27)
  %28 = fcmp ogt double %sqrt.1, 0x3F847AE140000000
  %29 = fcmp uno float %24, 0.000000e+00
  %or.cond61 = select i1 %28, i1 true, i1 %29
  br i1 %or.cond61, label %31, label %30

30:                                               ; preds = %22
  call void (...) @liquid_autotest_passed() #7
  br label %32

31:                                               ; preds = %22
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.2, double noundef %sqrt.1, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %32

32:                                               ; preds = %31, %30
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = load float, ptr %33, align 8, !tbaa !5
  %35 = fadd float %34, -1.000000e+00
  %36 = fpext float %35 to double
  %37 = call double @llvm.fmuladd.f64(double %36, double %36, double 0.000000e+00)
  %sqrt.2 = call double @llvm.sqrt.f64(double %37)
  %38 = fcmp ogt double %sqrt.2, 0x3F847AE140000000
  %39 = fcmp uno float %34, 0.000000e+00
  %or.cond62 = select i1 %38, i1 true, i1 %39
  br i1 %or.cond62, label %41, label %40

40:                                               ; preds = %32
  call void (...) @liquid_autotest_passed() #7
  br label %42

41:                                               ; preds = %32
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.2, double noundef %sqrt.2, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %42

42:                                               ; preds = %41, %40
  %43 = getelementptr inbounds i8, ptr %1, i64 12
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fadd float %44, -1.000000e+00
  %46 = fpext float %45 to double
  %47 = call double @llvm.fmuladd.f64(double %46, double %46, double 0.000000e+00)
  %sqrt.3 = call double @llvm.sqrt.f64(double %47)
  %48 = fcmp ogt double %sqrt.3, 0x3F847AE140000000
  %49 = fcmp uno float %44, 0.000000e+00
  %or.cond63 = select i1 %48, i1 true, i1 %49
  br i1 %or.cond63, label %51, label %50

50:                                               ; preds = %42
  call void (...) @liquid_autotest_passed() #7
  br label %52

51:                                               ; preds = %42
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.2, double noundef %sqrt.3, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %52

52:                                               ; preds = %51, %50
  %53 = getelementptr inbounds i8, ptr %1, i64 16
  %54 = load float, ptr %53, align 16, !tbaa !5
  %55 = fadd float %54, -1.000000e+00
  %56 = fpext float %55 to double
  %57 = call double @llvm.fmuladd.f64(double %56, double %56, double 0.000000e+00)
  %sqrt.4 = call double @llvm.sqrt.f64(double %57)
  %58 = fcmp ogt double %sqrt.4, 0x3F847AE140000000
  %59 = fcmp uno float %54, 0.000000e+00
  %or.cond64 = select i1 %58, i1 true, i1 %59
  br i1 %or.cond64, label %61, label %60

60:                                               ; preds = %52
  call void (...) @liquid_autotest_passed() #7
  br label %62

61:                                               ; preds = %52
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.2, double noundef %sqrt.4, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %62

62:                                               ; preds = %61, %60
  %63 = getelementptr inbounds i8, ptr %1, i64 20
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = fadd float %64, -1.000000e+00
  %66 = fpext float %65 to double
  %67 = call double @llvm.fmuladd.f64(double %66, double %66, double 0.000000e+00)
  %sqrt.5 = call double @llvm.sqrt.f64(double %67)
  %68 = fcmp ogt double %sqrt.5, 0x3F847AE140000000
  %69 = fcmp uno float %64, 0.000000e+00
  %or.cond65 = select i1 %68, i1 true, i1 %69
  br i1 %or.cond65, label %71, label %70

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

71:                                               ; preds = %62
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 155, ptr noundef nonnull @.str.2, double noundef %sqrt.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %72

72:                                               ; preds = %71, %70
  %73 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %74 = fadd float %73, -1.000000e+00
  %75 = fpext float %74 to double
  %76 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %77 = fadd float %76, -1.000000e+00
  %78 = fpext float %77 to double
  %79 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %80 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %81 = call double @llvm.fmuladd.f64(double %75, double %78, double 0.000000e+00)
  %82 = call double @sqrt(double noundef %81) #7
  %83 = fcmp ogt double %82, 0x3F847AE140000000
  br i1 %83, label %89, label %84

84:                                               ; preds = %72
  %85 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %86 = fcmp uno float %85, 0.000000e+00
  br i1 %86, label %89, label %87

87:                                               ; preds = %84
  %88 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  call void (...) @liquid_autotest_passed() #7
  br label %100

89:                                               ; preds = %84, %72
  %90 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %91 = fadd float %90, -1.000000e+00
  %92 = fpext float %91 to double
  %93 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %94 = fadd float %93, -1.000000e+00
  %95 = fpext float %94 to double
  %96 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %97 = call float @utility_max_autotest(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6)
  %98 = call double @llvm.fmuladd.f64(double %92, double %95, double 0.000000e+00)
  %99 = call double @sqrt(double noundef %98) #7
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 158, ptr noundef nonnull @.str.7, double noundef %99, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3F847AE140000000) #7
  br label %100

100:                                              ; preds = %87, %89
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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