; LLVM IR from jgaeddert/liquid-dsp :: src/nco/tests (nco_crcf_frequency_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 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1

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

25:                                               ; preds = %276, %6
  %26 = load i32, ptr %14, align 4, !tbaa !5
  %27 = load i32, ptr %11, align 4, !tbaa !5
  %28 = icmp ult i32 %26, %27
  br i1 %28, label %29, label %279

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %30 = load ptr, ptr %13, align 8, !tbaa !11
  %31 = call i32 @nco_crcf_cexpf(ptr noundef %30, ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %32 = load ptr, ptr %10, align 8, !tbaa !11
  %33 = load i32, ptr %14, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds { float, float }, ptr %32, i64 %34
  %36 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %37 = load float, ptr %36, align 4
  %38 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  %39 = load float, ptr %38, align 4
  %40 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %41 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %37, ptr %40, align 4
  store float %39, ptr %41, align 4
  %42 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %43 = load float, ptr %42, align 4
  %44 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %45 = load float, ptr %44, align 4
  %46 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %47 = load float, ptr %46, align 4
  %48 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %49 = load float, ptr %48, align 4
  %50 = fsub float %43, %47
  %51 = fpext float %50 to double
  %52 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %53 = load float, ptr %52, align 4
  %54 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %55 = load float, ptr %54, align 4
  %56 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %57 = load float, ptr %56, align 4
  %58 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %59 = load float, ptr %58, align 4
  %60 = fsub float %53, %57
  %61 = fpext float %60 to double
  %62 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %63 = load float, ptr %62, align 4
  %64 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %65 = load float, ptr %64, align 4
  %66 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %67 = load float, ptr %66, align 4
  %68 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %69 = load float, ptr %68, align 4
  %70 = fsub float %63, %67
  %71 = fpext float %70 to double
  %72 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %73 = load float, ptr %72, align 4
  %74 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %75 = load float, ptr %74, align 4
  %76 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %77 = load float, ptr %76, align 4
  %78 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %79 = load float, ptr %78, align 4
  %80 = fsub float %73, %77
  %81 = fpext float %80 to double
  %82 = call double @llvm.fmuladd.f64(double %51, double %61, double 0.000000e+00)
  %83 = call double @sqrt(double noundef %82) #5
  %84 = load float, ptr %12, align 4, !tbaa !9
  %85 = fpext float %84 to double
  %86 = fcmp ogt double %83, %85
  br i1 %86, label %111, label %87

87:                                               ; preds = %29
  %88 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %89 = load float, ptr %88, align 4
  %90 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %91 = load float, ptr %90, align 4
  %92 = call i1 @llvm.is.fpclass.f32(float %89, i32 3)
  br i1 %92, label %111, label %93

93:                                               ; preds = %87
  %94 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %95 = load float, ptr %94, align 4
  %96 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %97 = load float, ptr %96, align 4
  %98 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %98, label %111, label %99

99:                                               ; preds = %93
  %100 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %101 = load float, ptr %100, align 4
  %102 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %103 = load float, ptr %102, align 4
  %104 = call i1 @llvm.is.fpclass.f32(float %101, i32 3)
  br i1 %104, label %111, label %105

105:                                              ; preds = %99
  %106 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %107 = load float, ptr %106, align 4
  %108 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %109 = load float, ptr %108, align 4
  %110 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %110, label %111, label %156

111:                                              ; preds = %105, %99, %93, %87, %29
  %112 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %113 = load float, ptr %112, align 4
  %114 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %115 = load float, ptr %114, align 4
  %116 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %117 = load float, ptr %116, align 4
  %118 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = fsub float %113, %117
  %121 = fpext float %120 to double
  %122 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %123 = load float, ptr %122, align 4
  %124 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %125 = load float, ptr %124, align 4
  %126 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %127 = load float, ptr %126, align 4
  %128 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %129 = load float, ptr %128, align 4
  %130 = fsub float %123, %127
  %131 = fpext float %130 to double
  %132 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %133 = load float, ptr %132, align 4
  %134 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %135 = load float, ptr %134, align 4
  %136 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %137 = load float, ptr %136, align 4
  %138 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  %140 = fsub float %133, %137
  %141 = fpext float %140 to double
  %142 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %143 = load float, ptr %142, align 4
  %144 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %145 = load float, ptr %144, align 4
  %146 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %147 = load float, ptr %146, align 4
  %148 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %149 = load float, ptr %148, align 4
  %150 = fsub float %143, %147
  %151 = fpext float %150 to double
  %152 = call double @llvm.fmuladd.f64(double %121, double %131, double 0.000000e+00)
  %153 = call double @sqrt(double noundef %152) #5
  %154 = load float, ptr %12, align 4, !tbaa !9
  %155 = fpext float %154 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 66, ptr noundef @.str.1, double noundef %153, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %155)
  br label %157

156:                                              ; preds = %105
  call void (...) @liquid_autotest_passed()
  br label %157

157:                                              ; preds = %156, %111
  %158 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %159 = load float, ptr %158, align 4
  %160 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %161 = load float, ptr %160, align 4
  %162 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %163 = load float, ptr %162, align 4
  %164 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %165 = load float, ptr %164, align 4
  %166 = fsub float %161, %165
  %167 = fpext float %166 to double
  %168 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %169 = load float, ptr %168, align 4
  %170 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %171 = load float, ptr %170, align 4
  %172 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %173 = load float, ptr %172, align 4
  %174 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %175 = load float, ptr %174, align 4
  %176 = fsub float %171, %175
  %177 = fpext float %176 to double
  %178 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %179 = load float, ptr %178, align 4
  %180 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %181 = load float, ptr %180, align 4
  %182 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %183 = load float, ptr %182, align 4
  %184 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %185 = load float, ptr %184, align 4
  %186 = fsub float %181, %185
  %187 = fpext float %186 to double
  %188 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %189 = load float, ptr %188, align 4
  %190 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %191 = load float, ptr %190, align 4
  %192 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %193 = load float, ptr %192, align 4
  %194 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %195 = load float, ptr %194, align 4
  %196 = fsub float %191, %195
  %197 = fpext float %196 to double
  %198 = call double @llvm.fmuladd.f64(double %167, double %177, double 0.000000e+00)
  %199 = call double @sqrt(double noundef %198) #5
  %200 = load float, ptr %12, align 4, !tbaa !9
  %201 = fpext float %200 to double
  %202 = fcmp ogt double %199, %201
  br i1 %202, label %227, label %203

203:                                              ; preds = %157
  %204 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %205 = load float, ptr %204, align 4
  %206 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %207 = load float, ptr %206, align 4
  %208 = call i1 @llvm.is.fpclass.f32(float %207, i32 3)
  br i1 %208, label %227, label %209

209:                                              ; preds = %203
  %210 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %211 = load float, ptr %210, align 4
  %212 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %213 = load float, ptr %212, align 4
  %214 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %214, label %227, label %215

215:                                              ; preds = %209
  %216 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %217 = load float, ptr %216, align 4
  %218 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %219 = load float, ptr %218, align 4
  %220 = call i1 @llvm.is.fpclass.f32(float %219, i32 3)
  br i1 %220, label %227, label %221

221:                                              ; preds = %215
  %222 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %223 = load float, ptr %222, align 4
  %224 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %225 = load float, ptr %224, align 4
  %226 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %226, label %227, label %272

227:                                              ; preds = %221, %215, %209, %203, %157
  %228 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %229 = load float, ptr %228, align 4
  %230 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  %232 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %233 = load float, ptr %232, align 4
  %234 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %235 = load float, ptr %234, align 4
  %236 = fsub float %231, %235
  %237 = fpext float %236 to double
  %238 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %239 = load float, ptr %238, align 4
  %240 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %241 = load float, ptr %240, align 4
  %242 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %243 = load float, ptr %242, align 4
  %244 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %245 = load float, ptr %244, align 4
  %246 = fsub float %241, %245
  %247 = fpext float %246 to double
  %248 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %249 = load float, ptr %248, align 4
  %250 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %251 = load float, ptr %250, align 4
  %252 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %253 = load float, ptr %252, align 4
  %254 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %255 = load float, ptr %254, align 4
  %256 = fsub float %251, %255
  %257 = fpext float %256 to double
  %258 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %259 = load float, ptr %258, align 4
  %260 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %261 = load float, ptr %260, align 4
  %262 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %263 = load float, ptr %262, align 4
  %264 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %265 = load float, ptr %264, align 4
  %266 = fsub float %261, %265
  %267 = fpext float %266 to double
  %268 = call double @llvm.fmuladd.f64(double %237, double %247, double 0.000000e+00)
  %269 = call double @sqrt(double noundef %268) #5
  %270 = load float, ptr %12, align 4, !tbaa !9
  %271 = fpext float %270 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 67, ptr noundef @.str.4, double noundef %269, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %271)
  br label %273

272:                                              ; preds = %221
  call void (...) @liquid_autotest_passed()
  br label %273

273:                                              ; preds = %272, %227
  %274 = load ptr, ptr %13, align 8, !tbaa !11
  %275 = call i32 @nco_crcf_step(ptr noundef %274)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %276

276:                                              ; preds = %273
  %277 = load i32, ptr %14, align 4, !tbaa !5
  %278 = add i32 %277, 1
  store i32 %278, ptr %14, align 4, !tbaa !5
  br label %25, !llvm.loop !13

279:                                              ; preds = %25
  %280 = load ptr, ptr %13, align 8, !tbaa !11
  %281 = call i32 @nco_crcf_destroy(ptr noundef %280)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret void
}

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

declare ptr @nco_crcf_create(i32 noundef) #2

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

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

declare i32 @nco_crcf_cexpf(ptr noundef, 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

declare i32 @nco_crcf_step(ptr noundef) #2

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

declare i32 @nco_crcf_destroy(ptr noundef) #2

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 = { 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 "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 }

!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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @nco_crcf_frequency_test(i32 noundef %0, float noundef %1, float noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, float noundef %5) local_unnamed_addr #0 {
  %7 = alloca { float, float }, align 4
  %8 = tail call ptr @nco_crcf_create(i32 noundef %0) #5
  %9 = tail call i32 @nco_crcf_set_phase(ptr noundef %8, float noundef %1) #5
  %10 = tail call i32 @nco_crcf_set_frequency(ptr noundef %8, float noundef %2) #5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %6
  %11 = getelementptr inbounds i8, ptr %7, i64 4
  %12 = fpext float %5 to double
  %wide.trip.count = zext i32 %4 to i64
  br label %13

13:                                               ; preds = %.lr.ph, %38
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %38 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %14 = call i32 @nco_crcf_cexpf(ptr noundef %8, ptr noundef nonnull %7) #5
  %15 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv
  %16 = load float, ptr %15, align 4
  %17 = getelementptr inbounds i8, ptr %15, i64 4
  %18 = load float, ptr %17, align 4
  %19 = load float, ptr %7, align 4
  %20 = fsub float %19, %16
  %21 = fpext float %20 to double
  %22 = call double @llvm.fmuladd.f64(double %21, double %21, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %22)
  %23 = fcmp ogt double %sqrt, %12
  %24 = fcmp uno float %19, 0.000000e+00
  %or.cond = select i1 %23, i1 true, i1 %24
  %25 = fcmp uno float %16, 0.000000e+00
  %or.cond55 = select i1 %or.cond, i1 true, i1 %25
  br i1 %or.cond55, label %26, label %27

26:                                               ; preds = %13
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 66, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef %12) #5
  br label %28

27:                                               ; preds = %13
  call void (...) @liquid_autotest_passed() #5
  br label %28

28:                                               ; preds = %27, %26
  %29 = load float, ptr %11, align 4
  %30 = fsub float %29, %18
  %31 = fpext float %30 to double
  %32 = call double @llvm.fmuladd.f64(double %31, double %31, double 0.000000e+00)
  %sqrt60 = call double @llvm.sqrt.f64(double %32)
  %33 = fcmp ogt double %sqrt60, %12
  %34 = fcmp uno float %29, 0.000000e+00
  %or.cond57 = select i1 %33, i1 true, i1 %34
  %35 = fcmp uno float %18, 0.000000e+00
  %or.cond58 = select i1 %or.cond57, i1 true, i1 %35
  br i1 %or.cond58, label %36, label %37

36:                                               ; preds = %28
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 67, ptr noundef nonnull @.str.4, double noundef %sqrt60, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef %12) #5
  br label %38

37:                                               ; preds = %28
  call void (...) @liquid_autotest_passed() #5
  br label %38

38:                                               ; preds = %37, %36
  %39 = call i32 @nco_crcf_step(ptr noundef %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %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 %13, !llvm.loop !5

._crit_edge:                                      ; preds = %38, %6
  %40 = call i32 @nco_crcf_destroy(ptr noundef %8) #5
  ret void
}

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

declare ptr @nco_crcf_create(i32 noundef) local_unnamed_addr #2

declare i32 @nco_crcf_set_phase(ptr noundef, float noundef) local_unnamed_addr #2

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) local_unnamed_addr #2

declare i32 @nco_crcf_cexpf(ptr noundef, ptr 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 #2

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

declare i32 @nco_crcf_step(ptr noundef) 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) #1

declare i32 @nco_crcf_destroy(ptr noundef) local_unnamed_addr #2

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

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


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