; LLVM IR from jgaeddert/liquid-dsp :: src/random/tests/random_distributions_autotest.ll (support_histogram_validate)

; 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.7 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 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 memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @_support_histogram_validate(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, float noundef %4, float noundef %5, float noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !11
  store float %5, ptr %13, align 4, !tbaa !11
  store float %6, ptr %14, align 4, !tbaa !11
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = load float, ptr %12, align 4, !tbaa !11
  %21 = load float, ptr %13, align 4, !tbaa !11
  %22 = call float @_support_histogram_normalize(ptr noundef %18, i32 noundef %19, float noundef %20, float noundef %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %164, %7
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = icmp ult i32 %24, %25
  br i1 %26, label %27, label %167

27:                                               ; preds = %23
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load i32, ptr %15, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds float, ptr %28, i64 %30
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds float, ptr %33, i64 %35
  %37 = load float, ptr %36, align 4, !tbaa !11
  %38 = fsub float %32, %37
  %39 = fpext float %38 to double
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %40, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !11
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %45, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fsub float %44, %49
  %51 = fpext float %50 to double
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %52, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !11
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %57, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !11
  %62 = fsub float %56, %61
  %63 = fpext float %62 to double
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %64, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds float, ptr %69, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !11
  %74 = fsub float %68, %73
  %75 = fpext float %74 to double
  %76 = call double @llvm.fmuladd.f64(double %39, double %51, double 0.000000e+00)
  %77 = call double @sqrt(double noundef %76) #5
  %78 = load float, ptr %14, align 4, !tbaa !11
  %79 = fpext float %78 to double
  %80 = fcmp ogt double %77, %79
  br i1 %80, label %109, label %81

81:                                               ; preds = %27
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %82, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !11
  %87 = call i1 @llvm.is.fpclass.f32(float %86, i32 3)
  br i1 %87, label %109, label %88

88:                                               ; preds = %81
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %94, label %109, label %95

95:                                               ; preds = %88
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %96, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = call i1 @llvm.is.fpclass.f32(float %100, i32 3)
  br i1 %101, label %109, label %102

102:                                              ; preds = %95
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds float, ptr %103, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !11
  %108 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %108, label %109, label %162

109:                                              ; preds = %102, %95, %88, %81, %27
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds float, ptr %110, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !11
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds float, ptr %115, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !11
  %120 = fsub float %114, %119
  %121 = fpext float %120 to double
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %122, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !11
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load i32, ptr %15, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds float, ptr %127, i64 %129
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = fsub float %126, %131
  %133 = fpext float %132 to double
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds float, ptr %134, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !11
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %139, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !11
  %144 = fsub float %138, %143
  %145 = fpext float %144 to double
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %146, i64 %148
  %150 = load float, ptr %149, align 4, !tbaa !11
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  %155 = load float, ptr %154, align 4, !tbaa !11
  %156 = fsub float %150, %155
  %157 = fpext float %156 to double
  %158 = call double @llvm.fmuladd.f64(double %121, double %133, double 0.000000e+00)
  %159 = call double @sqrt(double noundef %158) #5
  %160 = load float, ptr %14, align 4, !tbaa !11
  %161 = fpext float %160 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.7, i32 noundef 103, ptr noundef @.str.8, double noundef %159, ptr noundef @.str.9, ptr noundef @.str.10, double noundef %161)
  br label %163

162:                                              ; preds = %102
  call void (...) @liquid_autotest_passed()
  br label %163

163:                                              ; preds = %162, %109
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = add i32 %165, 1
  store i32 %166, ptr %15, align 4, !tbaa !9
  br label %23, !llvm.loop !13

167:                                              ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %168 = load float, ptr %13, align 4, !tbaa !11
  %169 = load float, ptr %12, align 4, !tbaa !11
  %170 = fsub float %168, %169
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = uitofp i32 %171 to float
  %173 = fdiv float %170, %172
  store float %173, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store float 0.000000e+00, ptr %17, align 4, !tbaa !11
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %291, %167
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = icmp ult i32 %175, %176
  br i1 %177, label %178, label %294

178:                                              ; preds = %174
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = sub i32 %180, 1
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds float, ptr %179, i64 %182
  %184 = load float, ptr %183, align 4, !tbaa !11
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds float, ptr %185, i64 %187
  %189 = load float, ptr %188, align 4, !tbaa !11
  %190 = fadd float %184, %189
  %191 = fmul float 5.000000e-01, %190
  %192 = load float, ptr %16, align 4, !tbaa !11
  %193 = load float, ptr %17, align 4, !tbaa !11
  %194 = call float @llvm.fmuladd.f32(float %191, float %192, float %193)
  store float %194, ptr %17, align 4, !tbaa !11
  %195 = load float, ptr %17, align 4, !tbaa !11
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds float, ptr %196, i64 %198
  %200 = load float, ptr %199, align 4, !tbaa !11
  %201 = fsub float %195, %200
  %202 = fpext float %201 to double
  %203 = load float, ptr %17, align 4, !tbaa !11
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load i32, ptr %15, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds float, ptr %204, i64 %206
  %208 = load float, ptr %207, align 4, !tbaa !11
  %209 = fsub float %203, %208
  %210 = fpext float %209 to double
  %211 = load float, ptr %17, align 4, !tbaa !11
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds float, ptr %212, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !11
  %217 = fsub float %211, %216
  %218 = fpext float %217 to double
  %219 = load float, ptr %17, align 4, !tbaa !11
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds float, ptr %220, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !11
  %225 = fsub float %219, %224
  %226 = fpext float %225 to double
  %227 = call double @llvm.fmuladd.f64(double %202, double %210, double 0.000000e+00)
  %228 = call double @sqrt(double noundef %227) #5
  %229 = load float, ptr %14, align 4, !tbaa !11
  %230 = fpext float %229 to double
  %231 = fcmp ogt double %228, %230
  br i1 %231, label %252, label %232

232:                                              ; preds = %178
  %233 = load float, ptr %17, align 4, !tbaa !11
  %234 = call i1 @llvm.is.fpclass.f32(float %233, i32 3)
  br i1 %234, label %252, label %235

235:                                              ; preds = %232
  %236 = load float, ptr %17, align 4, !tbaa !11
  %237 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %237, label %252, label %238

238:                                              ; preds = %235
  %239 = load ptr, ptr %10, align 8, !tbaa !5
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = getelementptr inbounds float, ptr %239, i64 %241
  %243 = load float, ptr %242, align 4, !tbaa !11
  %244 = call i1 @llvm.is.fpclass.f32(float %243, i32 3)
  br i1 %244, label %252, label %245

245:                                              ; preds = %238
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = getelementptr inbounds float, ptr %246, i64 %248
  %250 = load float, ptr %249, align 4, !tbaa !11
  %251 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %251, label %252, label %289

252:                                              ; preds = %245, %238, %235, %232, %178
  %253 = load float, ptr %17, align 4, !tbaa !11
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds float, ptr %254, i64 %256
  %258 = load float, ptr %257, align 4, !tbaa !11
  %259 = fsub float %253, %258
  %260 = fpext float %259 to double
  %261 = load float, ptr %17, align 4, !tbaa !11
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  %263 = load i32, ptr %15, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds float, ptr %262, i64 %264
  %266 = load float, ptr %265, align 4, !tbaa !11
  %267 = fsub float %261, %266
  %268 = fpext float %267 to double
  %269 = load float, ptr %17, align 4, !tbaa !11
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = load i32, ptr %15, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = getelementptr inbounds float, ptr %270, i64 %272
  %274 = load float, ptr %273, align 4, !tbaa !11
  %275 = fsub float %269, %274
  %276 = fpext float %275 to double
  %277 = load float, ptr %17, align 4, !tbaa !11
  %278 = load ptr, ptr %10, align 8, !tbaa !5
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = getelementptr inbounds float, ptr %278, i64 %280
  %282 = load float, ptr %281, align 4, !tbaa !11
  %283 = fsub float %277, %282
  %284 = fpext float %283 to double
  %285 = call double @llvm.fmuladd.f64(double %260, double %268, double 0.000000e+00)
  %286 = call double @sqrt(double noundef %285) #5
  %287 = load float, ptr %14, align 4, !tbaa !11
  %288 = fpext float %287 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.7, i32 noundef 112, ptr noundef @.str.11, double noundef %286, ptr noundef @.str.9, ptr noundef @.str.10, double noundef %288)
  br label %290

289:                                              ; preds = %245
  call void (...) @liquid_autotest_passed()
  br label %290

290:                                              ; preds = %289, %252
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = add i32 %292, 1
  store i32 %293, ptr %15, align 4, !tbaa !9
  br label %174, !llvm.loop !15

294:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  ret void
}

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

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

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

declare void @liquid_autotest_passed(...) #4

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

!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 = !{!"any pointer", !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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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.7 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @_support_histogram_normalize(ptr noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nounwind uwtable
define dso_local void @_support_histogram_validate(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, float noundef %4, float noundef %5, float noundef %6) local_unnamed_addr #0 {
  %8 = tail call float @_support_histogram_normalize(ptr noundef %0, i32 noundef %3, float noundef %4, float noundef %5)
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %._crit_edge102, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %9 = fpext float %6 to double
  %wide.trip.count = zext i32 %3 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %23
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %23 ]
  %11 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = fsub float %12, %14
  %16 = fpext float %15 to double
  %17 = tail call double @llvm.fmuladd.f64(double %16, double %16, double 0.000000e+00)
  %sqrt = tail call double @llvm.sqrt.f64(double %17)
  %18 = fcmp ogt double %sqrt, %9
  %19 = fcmp uno float %12, 0.000000e+00
  %or.cond109 = select i1 %18, i1 true, i1 %19
  %20 = fcmp uno float %14, 0.000000e+00
  %or.cond110 = select i1 %or.cond109, i1 true, i1 %20
  br i1 %or.cond110, label %21, label %22

21:                                               ; preds = %10
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.7, i32 noundef 103, ptr noundef nonnull @.str.8, double noundef %sqrt, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, double noundef %9) #4
  br label %23

22:                                               ; preds = %10
  tail call void (...) @liquid_autotest_passed() #4
  br label %23

23:                                               ; preds = %21, %22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %10, !llvm.loop !9

._crit_edge:                                      ; preds = %23
  %24 = fsub float %5, %4
  %25 = uitofp i32 %3 to float
  %26 = fdiv float %24, %25
  %.not112 = icmp eq i32 %3, 1
  br i1 %.not112, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %._crit_edge
  %27 = fpext float %6 to double
  %wide.trip.count107 = zext i32 %3 to i64
  %invariant.gep = getelementptr i8, ptr %0, i64 -4
  br label %28

28:                                               ; preds = %.lr.ph101, %45
  %indvars.iv104 = phi i64 [ 1, %.lr.ph101 ], [ %indvars.iv.next105, %45 ]
  %.099 = phi float [ 0.000000e+00, %.lr.ph101 ], [ %34, %45 ]
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv104
  %29 = load float, ptr %gep, align 4, !tbaa !5
  %30 = getelementptr inbounds float, ptr %0, i64 %indvars.iv104
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = fadd float %29, %31
  %33 = fmul float %32, 5.000000e-01
  %34 = tail call float @llvm.fmuladd.f32(float %33, float %26, float %.099)
  %35 = getelementptr inbounds float, ptr %2, i64 %indvars.iv104
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = fsub float %34, %36
  %38 = fpext float %37 to double
  %39 = tail call double @llvm.fmuladd.f64(double %38, double %38, double 0.000000e+00)
  %sqrt95 = tail call double @llvm.sqrt.f64(double %39)
  %40 = fcmp ogt double %sqrt95, %27
  %41 = fcmp uno float %34, 0.000000e+00
  %or.cond = select i1 %40, i1 true, i1 %41
  %42 = fcmp uno float %36, 0.000000e+00
  %or.cond111 = select i1 %or.cond, i1 true, i1 %42
  br i1 %or.cond111, label %43, label %44

43:                                               ; preds = %28
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.7, i32 noundef 112, ptr noundef nonnull @.str.11, double noundef %sqrt95, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, double noundef %27) #4
  br label %45

44:                                               ; preds = %28
  tail call void (...) @liquid_autotest_passed() #4
  br label %45

45:                                               ; preds = %43, %44
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next105, %wide.trip.count107
  br i1 %exitcond108.not, label %._crit_edge102, label %28, !llvm.loop !11

._crit_edge102:                                   ; preds = %45, %7, %._crit_edge
  ret void
}

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

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

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

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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"}
!11 = distinct !{!11, !10}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass