; LLVM IR from jgaeddert/liquid-dsp :: src/math/tests (math_window_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 [92 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

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
declare void @llvm.stackrestore.p0(ptr) #0

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

22:                                               ; preds = %39, %2
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp ult i32 %23, %24
  br i1 %25, label %26, label %42

26:                                               ; preds = %22
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds float, ptr %15, i64 %28
  %30 = load float, ptr %29, align 4, !tbaa !9
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds float, ptr %15, i64 %32
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = fmul float %30, %34
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds float, ptr %21, i64 %37
  store float %35, ptr %38, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %26
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = add i32 %40, 1
  store i32 %41, ptr %5, align 4, !tbaa !5
  br label %22, !llvm.loop !11

42:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = udiv i32 %43, 2
  store i32 %44, ptr %10, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %216, %42
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = icmp ult i32 %46, %47
  br i1 %48, label %49, label %219

49:                                               ; preds = %45
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %21, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !9
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = add i32 %54, %55
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = urem i32 %56, %57
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %21, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !9
  %62 = fadd float %53, %61
  %63 = fsub float %62, 1.000000e+00
  %64 = fpext float %63 to double
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %21, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !9
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = add i32 %69, %70
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = urem i32 %71, %72
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %21, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = fadd float %68, %76
  %78 = fsub float %77, 1.000000e+00
  %79 = fpext float %78 to double
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %21, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = add i32 %84, %85
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = urem i32 %86, %87
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %21, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = fadd float %83, %91
  %93 = fsub float %92, 1.000000e+00
  %94 = fpext float %93 to double
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %21, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !9
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = add i32 %99, %100
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = urem i32 %101, %102
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %21, i64 %104
  %106 = load float, ptr %105, align 4, !tbaa !9
  %107 = fadd float %98, %106
  %108 = fsub float %107, 1.000000e+00
  %109 = fpext float %108 to double
  %110 = call double @llvm.fmuladd.f64(double %64, double %79, double 0.000000e+00)
  %111 = call double @sqrt(double noundef %110) #6
  %112 = load float, ptr %6, align 4, !tbaa !9
  %113 = fpext float %112 to double
  %114 = fcmp ogt double %111, %113
  br i1 %114, label %149, label %115

115:                                              ; preds = %49
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds float, ptr %21, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !9
  %120 = load i32, ptr %5, align 4, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = add i32 %120, %121
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = urem i32 %122, %123
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %21, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !9
  %128 = fadd float %119, %127
  %129 = call i1 @llvm.is.fpclass.f32(float %128, i32 3)
  br i1 %129, label %149, label %130

130:                                              ; preds = %115
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %21, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = add i32 %135, %136
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = urem i32 %137, %138
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %21, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !9
  %143 = fadd float %134, %142
  %144 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %144, label %149, label %145

145:                                              ; preds = %130
  %146 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %146, label %149, label %147

147:                                              ; preds = %145
  %148 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %148, label %149, label %214

149:                                              ; preds = %147, %145, %130, %115, %49
  %150 = load i32, ptr %5, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %21, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = add i32 %154, %155
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = urem i32 %156, %157
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds float, ptr %21, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !9
  %162 = fadd float %153, %161
  %163 = fsub float %162, 1.000000e+00
  %164 = fpext float %163 to double
  %165 = load i32, ptr %5, align 4, !tbaa !5
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds float, ptr %21, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !9
  %169 = load i32, ptr %5, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = add i32 %169, %170
  %172 = load i32, ptr %3, align 4, !tbaa !5
  %173 = urem i32 %171, %172
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %21, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !9
  %177 = fadd float %168, %176
  %178 = fsub float %177, 1.000000e+00
  %179 = fpext float %178 to double
  %180 = load i32, ptr %5, align 4, !tbaa !5
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds float, ptr %21, i64 %181
  %183 = load float, ptr %182, align 4, !tbaa !9
  %184 = load i32, ptr %5, align 4, !tbaa !5
  %185 = load i32, ptr %10, align 4, !tbaa !5
  %186 = add i32 %184, %185
  %187 = load i32, ptr %3, align 4, !tbaa !5
  %188 = urem i32 %186, %187
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds float, ptr %21, i64 %189
  %191 = load float, ptr %190, align 4, !tbaa !9
  %192 = fadd float %183, %191
  %193 = fsub float %192, 1.000000e+00
  %194 = fpext float %193 to double
  %195 = load i32, ptr %5, align 4, !tbaa !5
  %196 = zext i32 %195 to i64
  %197 = getelementptr inbounds float, ptr %21, i64 %196
  %198 = load float, ptr %197, align 4, !tbaa !9
  %199 = load i32, ptr %5, align 4, !tbaa !5
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = add i32 %199, %200
  %202 = load i32, ptr %3, align 4, !tbaa !5
  %203 = urem i32 %201, %202
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds float, ptr %21, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !9
  %207 = fadd float %198, %206
  %208 = fsub float %207, 1.000000e+00
  %209 = fpext float %208 to double
  %210 = call double @llvm.fmuladd.f64(double %164, double %179, double 0.000000e+00)
  %211 = call double @sqrt(double noundef %210) #6
  %212 = load float, ptr %6, align 4, !tbaa !9
  %213 = fpext float %212 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 109, ptr noundef @.str.9, double noundef %211, ptr noundef @.str.5, ptr noundef @.str.10, double noundef %213)
  br label %215

214:                                              ; preds = %147
  call void (...) @liquid_autotest_passed()
  br label %215

215:                                              ; preds = %214, %149
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %5, align 4, !tbaa !5
  %218 = add i32 %217, 1
  store i32 %218, ptr %5, align 4, !tbaa !5
  br label %45, !llvm.loop !13

219:                                              ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %231, %219
  %221 = load i32, ptr %5, align 4, !tbaa !5
  %222 = load i32, ptr %3, align 4, !tbaa !5
  %223 = icmp ult i32 %221, %222
  br i1 %223, label %224, label %234

224:                                              ; preds = %220
  %225 = load i32, ptr %5, align 4, !tbaa !5
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds float, ptr %21, i64 %226
  %228 = load float, ptr %227, align 4, !tbaa !9
  %229 = load float, ptr %11, align 4, !tbaa !9
  %230 = fadd float %229, %228
  store float %230, ptr %11, align 4, !tbaa !9
  br label %231

231:                                              ; preds = %224
  %232 = load i32, ptr %5, align 4, !tbaa !5
  %233 = add i32 %232, 1
  store i32 %233, ptr %5, align 4, !tbaa !5
  br label %220, !llvm.loop !14

234:                                              ; preds = %220
  %235 = load float, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %3, align 4, !tbaa !5
  %237 = uitofp i32 %236 to float
  %238 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %237, float %235)
  %239 = fpext float %238 to double
  %240 = load float, ptr %11, align 4, !tbaa !9
  %241 = load i32, ptr %3, align 4, !tbaa !5
  %242 = uitofp i32 %241 to float
  %243 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %242, float %240)
  %244 = fpext float %243 to double
  %245 = load float, ptr %11, align 4, !tbaa !9
  %246 = load i32, ptr %3, align 4, !tbaa !5
  %247 = uitofp i32 %246 to float
  %248 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %247, float %245)
  %249 = fpext float %248 to double
  %250 = load float, ptr %11, align 4, !tbaa !9
  %251 = load i32, ptr %3, align 4, !tbaa !5
  %252 = uitofp i32 %251 to float
  %253 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %252, float %250)
  %254 = fpext float %253 to double
  %255 = call double @llvm.fmuladd.f64(double %239, double %244, double 0.000000e+00)
  %256 = call double @sqrt(double noundef %255) #6
  %257 = load float, ptr %6, align 4, !tbaa !9
  %258 = fpext float %257 to double
  %259 = fcmp ogt double %256, %258
  br i1 %259, label %276, label %260

260:                                              ; preds = %234
  %261 = load float, ptr %11, align 4, !tbaa !9
  %262 = call i1 @llvm.is.fpclass.f32(float %261, i32 3)
  br i1 %262, label %276, label %263

263:                                              ; preds = %260
  %264 = load float, ptr %11, align 4, !tbaa !9
  %265 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %265, label %276, label %266

266:                                              ; preds = %263
  %267 = load i32, ptr %3, align 4, !tbaa !5
  %268 = uitofp i32 %267 to float
  %269 = fmul float 5.000000e-01, %268
  %270 = call i1 @llvm.is.fpclass.f32(float %269, i32 3)
  br i1 %270, label %276, label %271

271:                                              ; preds = %266
  %272 = load i32, ptr %3, align 4, !tbaa !5
  %273 = uitofp i32 %272 to float
  %274 = fmul float 5.000000e-01, %273
  %275 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %275, label %276, label %301

276:                                              ; preds = %271, %266, %263, %260, %234
  %277 = load float, ptr %11, align 4, !tbaa !9
  %278 = load i32, ptr %3, align 4, !tbaa !5
  %279 = uitofp i32 %278 to float
  %280 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %279, float %277)
  %281 = fpext float %280 to double
  %282 = load float, ptr %11, align 4, !tbaa !9
  %283 = load i32, ptr %3, align 4, !tbaa !5
  %284 = uitofp i32 %283 to float
  %285 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %284, float %282)
  %286 = fpext float %285 to double
  %287 = load float, ptr %11, align 4, !tbaa !9
  %288 = load i32, ptr %3, align 4, !tbaa !5
  %289 = uitofp i32 %288 to float
  %290 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %289, float %287)
  %291 = fpext float %290 to double
  %292 = load float, ptr %11, align 4, !tbaa !9
  %293 = load i32, ptr %3, align 4, !tbaa !5
  %294 = uitofp i32 %293 to float
  %295 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %294, float %292)
  %296 = fpext float %295 to double
  %297 = call double @llvm.fmuladd.f64(double %281, double %286, double 0.000000e+00)
  %298 = call double @sqrt(double noundef %297) #6
  %299 = load float, ptr %6, align 4, !tbaa !9
  %300 = fpext float %299 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 115, ptr noundef @.str.11, double noundef %298, ptr noundef @.str.5, ptr noundef @.str.10, double noundef %300)
  br label %302

301:                                              ; preds = %271
  call void (...) @liquid_autotest_passed()
  br label %302

302:                                              ; preds = %301, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %303 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %303)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { 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 #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}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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 [92 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1

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
define dso_local void @liquid_kbd_window_test(i32 noundef %0, float noundef %1) local_unnamed_addr #1 {
  %3 = zext i32 %0 to i64
  %4 = alloca float, i64 %3, align 16
  %5 = call i32 @liquid_kbd_window(i32 noundef %0, float noundef %1, ptr noundef nonnull %4) #4
  %6 = alloca float, i64 %3, align 16
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %._crit_edge97, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %min.iters.check = icmp ult i32 %0, 8
  br i1 %min.iters.check, label %.lr.ph.preheader113, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %3, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %7 = getelementptr inbounds float, ptr %4, i64 %index
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %wide.load = load <4 x float>, ptr %7, align 16, !tbaa !5
  %wide.load112 = load <4 x float>, ptr %8, align 16, !tbaa !5
  %9 = fmul <4 x float> %wide.load, %wide.load
  %10 = fmul <4 x float> %wide.load112, %wide.load112
  %11 = getelementptr inbounds float, ptr %6, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x float> %9, ptr %11, align 16, !tbaa !5
  store <4 x float> %10, ptr %12, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %13 = icmp eq i64 %index.next, %n.vec
  br i1 %13, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %3
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader113

.lr.ph.preheader113:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader113, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader113 ]
  %14 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fmul float %15, %15
  %17 = getelementptr inbounds float, ptr %6, i64 %indvars.iv
  store float %16, ptr %17, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %.not98 = icmp eq i32 %0, 1
  br i1 %.not98, label %.preheader, label %.lr.ph93.preheader

.lr.ph93.preheader:                               ; preds = %._crit_edge
  %18 = lshr i32 %0, 1
  %19 = zext nneg i32 %18 to i64
  br label %.lr.ph93

.preheader:                                       ; preds = %37, %._crit_edge
  br i1 %.not, label %._crit_edge97, label %.lr.ph96.preheader

.lr.ph96.preheader:                               ; preds = %.preheader
  %xtraiter = and i64 %3, 7
  %20 = icmp ult i32 %0, 8
  br i1 %20, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96.preheader.new

.lr.ph96.preheader.new:                           ; preds = %.lr.ph96.preheader
  %unroll_iter = and i64 %3, 4294967288
  br label %.lr.ph96

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %37
  %indvars.iv101 = phi i64 [ 0, %.lr.ph93.preheader ], [ %indvars.iv.next102, %37 ]
  %21 = getelementptr inbounds float, ptr %6, i64 %indvars.iv101
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = trunc i64 %indvars.iv101 to i32
  %24 = add i32 %18, %23
  %25 = urem i32 %24, %0
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds float, ptr %6, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = fadd float %22, %28
  %30 = fadd float %29, -1.000000e+00
  %31 = fpext float %30 to double
  %32 = call double @llvm.fmuladd.f64(double %31, double %31, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %32)
  %33 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %34 = fcmp uno float %29, 0.000000e+00
  %or.cond86 = select i1 %33, i1 true, i1 %34
  br i1 %or.cond86, label %35, label %36

35:                                               ; preds = %.lr.ph93
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 109, ptr noundef nonnull @.str.9, double noundef %sqrt, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.10, double noundef 0x3F50624DE0000000) #4
  br label %37

36:                                               ; preds = %.lr.ph93
  call void (...) @liquid_autotest_passed() #4
  br label %37

37:                                               ; preds = %35, %36
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next102, %19
  br i1 %exitcond105.not, label %.preheader, label %.lr.ph93, !llvm.loop !14

.lr.ph96:                                         ; preds = %.lr.ph96, %.lr.ph96.preheader.new
  %indvars.iv106 = phi i64 [ 0, %.lr.ph96.preheader.new ], [ %indvars.iv.next107.7, %.lr.ph96 ]
  %.095 = phi float [ 0.000000e+00, %.lr.ph96.preheader.new ], [ %61, %.lr.ph96 ]
  %niter = phi i64 [ 0, %.lr.ph96.preheader.new ], [ %niter.next.7, %.lr.ph96 ]
  %38 = getelementptr inbounds float, ptr %6, i64 %indvars.iv106
  %39 = load float, ptr %38, align 16, !tbaa !5
  %40 = fadd float %.095, %39
  %indvars.iv.next107 = or disjoint i64 %indvars.iv106, 1
  %41 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fadd float %40, %42
  %indvars.iv.next107.1 = or disjoint i64 %indvars.iv106, 2
  %44 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107.1
  %45 = load float, ptr %44, align 8, !tbaa !5
  %46 = fadd float %43, %45
  %indvars.iv.next107.2 = or disjoint i64 %indvars.iv106, 3
  %47 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107.2
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = fadd float %46, %48
  %indvars.iv.next107.3 = or disjoint i64 %indvars.iv106, 4
  %50 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107.3
  %51 = load float, ptr %50, align 16, !tbaa !5
  %52 = fadd float %49, %51
  %indvars.iv.next107.4 = or disjoint i64 %indvars.iv106, 5
  %53 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107.4
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fadd float %52, %54
  %indvars.iv.next107.5 = or disjoint i64 %indvars.iv106, 6
  %56 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107.5
  %57 = load float, ptr %56, align 8, !tbaa !5
  %58 = fadd float %55, %57
  %indvars.iv.next107.6 = or disjoint i64 %indvars.iv106, 7
  %59 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next107.6
  %60 = load float, ptr %59, align 4, !tbaa !5
  %61 = fadd float %58, %60
  %indvars.iv.next107.7 = add nuw nsw i64 %indvars.iv106, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96, !llvm.loop !15

._crit_edge97.loopexit.unr-lcssa:                 ; preds = %.lr.ph96, %.lr.ph96.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph96.preheader ], [ %61, %.lr.ph96 ]
  %indvars.iv106.unr = phi i64 [ 0, %.lr.ph96.preheader ], [ %indvars.iv.next107.7, %.lr.ph96 ]
  %.095.unr = phi float [ 0.000000e+00, %.lr.ph96.preheader ], [ %61, %.lr.ph96 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge97, label %.lr.ph96.epil

.lr.ph96.epil:                                    ; preds = %._crit_edge97.loopexit.unr-lcssa, %.lr.ph96.epil
  %indvars.iv106.epil = phi i64 [ %indvars.iv.next107.epil, %.lr.ph96.epil ], [ %indvars.iv106.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %.095.epil = phi float [ %64, %.lr.ph96.epil ], [ %.095.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph96.epil ], [ 0, %._crit_edge97.loopexit.unr-lcssa ]
  %62 = getelementptr inbounds float, ptr %6, i64 %indvars.iv106.epil
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fadd float %.095.epil, %63
  %indvars.iv.next107.epil = add nuw nsw i64 %indvars.iv106.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge97, label %.lr.ph96.epil, !llvm.loop !16

._crit_edge97:                                    ; preds = %._crit_edge97.loopexit.unr-lcssa, %.lr.ph96.epil, %2, %.preheader
  %.0.lcssa = phi float [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %2 ], [ %.lcssa.ph, %._crit_edge97.loopexit.unr-lcssa ], [ %64, %.lr.ph96.epil ]
  %65 = uitofp i32 %0 to float
  %66 = call float @llvm.fmuladd.f32(float %65, float -5.000000e-01, float %.0.lcssa)
  %67 = fpext float %66 to double
  %68 = call double @llvm.fmuladd.f64(double %67, double %67, double 0.000000e+00)
  %sqrt88 = call double @llvm.sqrt.f64(double %68)
  %69 = fcmp ogt double %sqrt88, 0x3F50624DE0000000
  %70 = fcmp uno float %.0.lcssa, 0.000000e+00
  %or.cond = select i1 %69, i1 true, i1 %70
  br i1 %or.cond, label %71, label %72

71:                                               ; preds = %._crit_edge97
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 115, ptr noundef nonnull @.str.11, double noundef %sqrt88, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.10, double noundef 0x3F50624DE0000000) #4
  br label %73

72:                                               ; preds = %._crit_edge97
  call void (...) @liquid_autotest_passed() #4
  br label %73

73:                                               ; preds = %72, %71
  ret void
}

declare i32 @liquid_kbd_window(i32 noundef, float noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass