; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (framing_cccf)

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

%struct.presync_cccf_s = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, float }

@.str.1 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [86 x i8], align 1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #0

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #3

declare <2 x float> @__mulsc3(float, float, float, float)

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

; Function Attrs: nounwind uwtable
define dso_local ptr @presync_cccf_create(ptr noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca { float, float }, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !11
  store i32 %3, ptr %9, align 4, !tbaa !9
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = icmp ult i32 %22, 1
  br i1 %23, label %24, label %26

24:                                               ; preds = %4
  %25 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.9, i32 noundef 72, ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %25, ptr %5, align 8
  br label %259

26:                                               ; preds = %4
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.9, i32 noundef 74, ptr noundef @.str.3, ptr noundef @.str.2)
  store ptr %30, ptr %5, align 8
  br label %259

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %32 = call noalias ptr @malloc(i64 noundef 64) #8
  store ptr %32, ptr %10, align 8, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.presync_cccf_s, ptr %34, i32 0, i32 0
  store i32 %33, ptr %35, align 8, !tbaa !13
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.presync_cccf_s, ptr %37, i32 0, i32 1
  store i32 %36, ptr %38, align 4, !tbaa !15
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.presync_cccf_s, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !13
  %42 = uitofp i32 %41 to float
  %43 = fdiv float 1.000000e+00, %42
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.presync_cccf_s, ptr %44, i32 0, i32 8
  store float %43, ptr %45, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.presync_cccf_s, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !13
  %49 = call ptr @windowf_create(i32 noundef %48)
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.presync_cccf_s, ptr %50, i32 0, i32 2
  store ptr %49, ptr %51, align 8, !tbaa !17
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.presync_cccf_s, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = call ptr @windowf_create(i32 noundef %54)
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.presync_cccf_s, ptr %56, i32 0, i32 3
  store ptr %55, ptr %57, align 8, !tbaa !18
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.presync_cccf_s, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !15
  %61 = zext i32 %60 to i64
  %62 = mul i64 %61, 4
  %63 = call noalias ptr @malloc(i64 noundef %62) #8
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.presync_cccf_s, ptr %64, i32 0, i32 4
  store ptr %63, ptr %65, align 8, !tbaa !19
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.presync_cccf_s, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !15
  %69 = zext i32 %68 to i64
  %70 = mul i64 %69, 8
  %71 = call noalias ptr @malloc(i64 noundef %70) #8
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.presync_cccf_s, ptr %72, i32 0, i32 5
  store ptr %71, ptr %73, align 8, !tbaa !20
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.presync_cccf_s, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !15
  %77 = zext i32 %76 to i64
  %78 = mul i64 %77, 8
  %79 = call noalias ptr @malloc(i64 noundef %78) #8
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.presync_cccf_s, ptr %80, i32 0, i32 6
  store ptr %79, ptr %81, align 8, !tbaa !21
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call ptr @llvm.stacksave.p0()
  store ptr %84, ptr %12, align 8
  %85 = alloca float, i64 %83, align 16
  store i64 %83, ptr %13, align 8
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = alloca float, i64 %87, align 16
  store i64 %87, ptr %14, align 8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %243, %31
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.presync_cccf_s, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 4, !tbaa !15
  %94 = icmp ult i32 %90, %93
  br i1 %94, label %95, label %246

95:                                               ; preds = %89
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = uitofp i32 %96 to float
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.presync_cccf_s, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !15
  %101 = sub i32 %100, 1
  %102 = uitofp i32 %101 to float
  %103 = fdiv float %97, %102
  %104 = load float, ptr %8, align 4, !tbaa !11
  %105 = fmul float %103, %104
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.presync_cccf_s, ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !19
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  store float %105, ptr %111, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %219, %95
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.presync_cccf_s, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !13
  %117 = icmp ult i32 %113, %116
  br i1 %117, label %118, label %222

118:                                              ; preds = %112
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds { float, float }, ptr %119, i64 %121
  %123 = getelementptr inbounds { float, float }, ptr %122, i32 0, i32 0
  %124 = load float, ptr %123, align 4
  %125 = getelementptr inbounds { float, float }, ptr %122, i32 0, i32 1
  %126 = load float, ptr %125, align 4
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = uitofp i32 %127 to float
  %129 = fmul float -0.000000e+00, %128
  %130 = fmul float -1.000000e+00, %128
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.presync_cccf_s, ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !19
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %133, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fmul float %129, %137
  %139 = fmul float %130, %137
  %140 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %141 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %138, ptr %140, align 4
  store float %139, ptr %141, align 4
  %142 = load <2 x float>, ptr %16, align 4
  %143 = call <2 x float> @cexpf(<2 x float> noundef %142) #7
  store <2 x float> %143, ptr %17, align 4
  %144 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %145 = load float, ptr %144, align 4
  %146 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %147 = load float, ptr %146, align 4
  %148 = fmul float %124, %145
  %149 = fmul float %126, %147
  %150 = fmul float %124, %147
  %151 = fmul float %126, %145
  %152 = fsub float %148, %149
  %153 = fadd float %150, %151
  %154 = fcmp uno float %152, %152
  br i1 %154, label %155, label %163, !prof !22

155:                                              ; preds = %118
  %156 = fcmp uno float %153, %153
  br i1 %156, label %157, label %163, !prof !22

157:                                              ; preds = %155
  %158 = call <2 x float> @__mulsc3(float noundef %124, float noundef %126, float noundef %145, float noundef %147) #7
  store <2 x float> %158, ptr %18, align 4
  %159 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %160 = load float, ptr %159, align 4
  %161 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %162 = load float, ptr %161, align 4
  br label %163

163:                                              ; preds = %157, %155, %118
  %164 = phi float [ %152, %118 ], [ %152, %155 ], [ %160, %157 ]
  %165 = phi float [ %153, %118 ], [ %153, %155 ], [ %162, %157 ]
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds float, ptr %85, i64 %167
  store float %164, ptr %168, align 4, !tbaa !11
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds { float, float }, ptr %169, i64 %171
  %173 = getelementptr inbounds { float, float }, ptr %172, i32 0, i32 0
  %174 = load float, ptr %173, align 4
  %175 = getelementptr inbounds { float, float }, ptr %172, i32 0, i32 1
  %176 = load float, ptr %175, align 4
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = uitofp i32 %177 to float
  %179 = fmul float -0.000000e+00, %178
  %180 = fmul float -1.000000e+00, %178
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.presync_cccf_s, ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !19
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds float, ptr %183, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !11
  %188 = fmul float %179, %187
  %189 = fmul float %180, %187
  %190 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %191 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %188, ptr %190, align 4
  store float %189, ptr %191, align 4
  %192 = load <2 x float>, ptr %19, align 4
  %193 = call <2 x float> @cexpf(<2 x float> noundef %192) #7
  store <2 x float> %193, ptr %20, align 4
  %194 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %195 = load float, ptr %194, align 4
  %196 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  %197 = load float, ptr %196, align 4
  %198 = fmul float %174, %195
  %199 = fmul float %176, %197
  %200 = fmul float %174, %197
  %201 = fmul float %176, %195
  %202 = fsub float %198, %199
  %203 = fadd float %200, %201
  %204 = fcmp uno float %202, %202
  br i1 %204, label %205, label %213, !prof !22

205:                                              ; preds = %163
  %206 = fcmp uno float %203, %203
  br i1 %206, label %207, label %213, !prof !22

207:                                              ; preds = %205
  %208 = call <2 x float> @__mulsc3(float noundef %174, float noundef %176, float noundef %195, float noundef %197) #7
  store <2 x float> %208, ptr %21, align 4
  %209 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %210 = load float, ptr %209, align 4
  %211 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %212 = load float, ptr %211, align 4
  br label %213

213:                                              ; preds = %207, %205, %163
  %214 = phi float [ %202, %163 ], [ %202, %205 ], [ %210, %207 ]
  %215 = phi float [ %203, %163 ], [ %203, %205 ], [ %212, %207 ]
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds float, ptr %88, i64 %217
  store float %215, ptr %218, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %213
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = add i32 %220, 1
  store i32 %221, ptr %15, align 4, !tbaa !9
  br label %112, !llvm.loop !23

222:                                              ; preds = %112
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.presync_cccf_s, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !13
  %226 = call ptr @dotprod_rrrf_create(ptr noundef %85, i32 noundef %225)
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.presync_cccf_s, ptr %227, i32 0, i32 5
  %229 = load ptr, ptr %228, align 8, !tbaa !20
  %230 = load i32, ptr %11, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds ptr, ptr %229, i64 %231
  store ptr %226, ptr %232, align 8, !tbaa !5
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.presync_cccf_s, ptr %233, i32 0, i32 0
  %235 = load i32, ptr %234, align 8, !tbaa !13
  %236 = call ptr @dotprod_rrrf_create(ptr noundef %88, i32 noundef %235)
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.presync_cccf_s, ptr %237, i32 0, i32 6
  %239 = load ptr, ptr %238, align 8, !tbaa !21
  %240 = load i32, ptr %11, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = getelementptr inbounds ptr, ptr %239, i64 %241
  store ptr %236, ptr %242, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %243

243:                                              ; preds = %222
  %244 = load i32, ptr %11, align 4, !tbaa !9
  %245 = add i32 %244, 1
  store i32 %245, ptr %11, align 4, !tbaa !9
  br label %89, !llvm.loop !25

246:                                              ; preds = %89
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.presync_cccf_s, ptr %247, i32 0, i32 1
  %249 = load i32, ptr %248, align 4, !tbaa !15
  %250 = zext i32 %249 to i64
  %251 = mul i64 %250, 4
  %252 = call noalias ptr @malloc(i64 noundef %251) #8
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.presync_cccf_s, ptr %253, i32 0, i32 7
  store ptr %252, ptr %254, align 8, !tbaa !26
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = call i32 @presync_cccf_reset(ptr noundef %255)
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %257, ptr %5, align 8
  %258 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %258)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %259

259:                                              ; preds = %246, %29, %24
  %260 = load ptr, ptr %5, align 8
  ret ptr %260
}

declare ptr @windowf_create(i32 noundef) #0

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

declare ptr @dotprod_rrrf_create(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @presync_cccf_reset(ptr noundef) #6

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 #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 = { nounwind uwtable "min-legal-vector-width"="64" "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 willreturn }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!14, !10, i64 0}
!14 = !{!"presync_cccf_s", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !12, i64 56}
!17 = !{!14, !6, i64 8}
!18 = !{!14, !6, i64 16}
!19 = !{!14, !6, i64 24}
!20 = !{!14, !6, i64 32}
!21 = !{!14, !6, i64 40}
!22 = !{!"branch_weights", i32 1, i32 1048575}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!14, !6, i64 48}


; 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 [43 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [86 x i8], align 1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #2

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

; Function Attrs: nounwind uwtable
define dso_local ptr @presync_cccf_create(ptr nocapture noundef readonly %0, i32 noundef %1, float noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = icmp eq i32 %1, 0
  br i1 %5, label %6, label %8

6:                                                ; preds = %4
  %7 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.9, i32 noundef 72, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #6
  br label %104

8:                                                ; preds = %4
  %9 = icmp eq i32 %3, 0
  br i1 %9, label %10, label %.lr.ph71.preheader

10:                                               ; preds = %8
  %11 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.9, i32 noundef 74, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2) #6
  br label %104

.lr.ph71.preheader:                               ; preds = %8
  %12 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #7
  store i32 %1, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 4
  store i32 %3, ptr %13, align 4, !tbaa !12
  %14 = uitofp i32 %1 to float
  %15 = fdiv float 1.000000e+00, %14
  %16 = getelementptr inbounds i8, ptr %12, i64 56
  store float %15, ptr %16, align 8, !tbaa !13
  %17 = tail call ptr @windowf_create(i32 noundef %1) #6
  %18 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %17, ptr %18, align 8, !tbaa !14
  %19 = tail call ptr @windowf_create(i32 noundef %1) #6
  %20 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %19, ptr %20, align 8, !tbaa !15
  %21 = zext i32 %3 to i64
  %22 = shl nuw nsw i64 %21, 2
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #7
  %24 = getelementptr inbounds i8, ptr %12, i64 24
  store ptr %23, ptr %24, align 8, !tbaa !16
  %25 = shl nuw nsw i64 %21, 3
  %26 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %27 = getelementptr inbounds i8, ptr %12, i64 32
  store ptr %26, ptr %27, align 8, !tbaa !17
  %28 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %29 = getelementptr inbounds i8, ptr %12, i64 40
  store ptr %28, ptr %29, align 8, !tbaa !18
  %30 = zext i32 %1 to i64
  %31 = tail call ptr @llvm.stacksave.p0()
  %32 = alloca float, i64 %30, align 16
  %33 = alloca float, i64 %30, align 16
  %34 = add i32 %3, -1
  %35 = uitofp i32 %34 to float
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge, %.lr.ph71.preheader
  %indvars.iv78 = phi i64 [ 0, %.lr.ph71.preheader ], [ %indvars.iv.next79, %._crit_edge ]
  %36 = trunc nuw i64 %indvars.iv78 to i32
  %37 = uitofp i32 %36 to float
  %38 = fdiv float %37, %35
  %39 = fmul float %38, %2
  %40 = getelementptr inbounds float, ptr %23, i64 %indvars.iv78
  store float %39, ptr %40, align 4, !tbaa !19
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %92
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %92 ]
  %41 = getelementptr inbounds { float, float }, ptr %0, i64 %indvars.iv
  %42 = trunc nuw i64 %indvars.iv to i32
  %43 = uitofp i32 %42 to float
  %44 = fneg float %43
  %45 = load float, ptr %40, align 4, !tbaa !19
  %46 = insertelement <2 x float> poison, float %45, i64 0
  %47 = shufflevector <2 x float> %46, <2 x float> poison, <2 x i32> zeroinitializer
  %48 = insertelement <2 x float> <float -0.000000e+00, float poison>, float %44, i64 1
  %49 = fmul <2 x float> %47, %48
  %50 = load <2 x float>, ptr %41, align 4
  %51 = call <2 x float> @cexpf(<2 x float> noundef %49) #6
  %52 = fmul <2 x float> %50, %51
  %shift = shufflevector <2 x float> %52, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %53 = fsub <2 x float> %52, %shift
  %54 = extractelement <2 x float> %53, i64 0
  %55 = fcmp uno float %54, 0.000000e+00
  br i1 %55, label %56, label %68, !prof !20

56:                                               ; preds = %.lr.ph
  %57 = shufflevector <2 x float> %51, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %58 = fmul <2 x float> %50, %57
  %shift81 = shufflevector <2 x float> %58, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %59 = fadd <2 x float> %58, %shift81
  %60 = extractelement <2 x float> %59, i64 0
  %61 = fcmp uno float %60, 0.000000e+00
  br i1 %61, label %62, label %68, !prof !20

62:                                               ; preds = %56
  %63 = extractelement <2 x float> %50, i64 0
  %64 = extractelement <2 x float> %50, i64 1
  %65 = extractelement <2 x float> %51, i64 0
  %66 = extractelement <2 x float> %51, i64 1
  %67 = call <2 x float> @__mulsc3(float noundef %63, float noundef %64, float noundef %65, float noundef %66) #6
  %.sroa.04.0.vec.extract = extractelement <2 x float> %67, i64 0
  br label %68

68:                                               ; preds = %62, %56, %.lr.ph
  %69 = phi float [ %54, %.lr.ph ], [ %54, %56 ], [ %.sroa.04.0.vec.extract, %62 ]
  %70 = getelementptr inbounds float, ptr %32, i64 %indvars.iv
  store float %69, ptr %70, align 4, !tbaa !19
  %71 = load float, ptr %40, align 4, !tbaa !19
  %72 = insertelement <2 x float> poison, float %71, i64 0
  %73 = shufflevector <2 x float> %72, <2 x float> poison, <2 x i32> zeroinitializer
  %74 = fmul <2 x float> %73, %48
  %75 = load <2 x float>, ptr %41, align 4
  %76 = call <2 x float> @cexpf(<2 x float> noundef %74) #6
  %77 = fmul <2 x float> %75, %76
  %78 = extractelement <2 x float> %75, i64 0
  %79 = extractelement <2 x float> %76, i64 1
  %80 = fmul float %78, %79
  %81 = extractelement <2 x float> %75, i64 1
  %82 = extractelement <2 x float> %76, i64 0
  %83 = fmul float %81, %82
  %shift82 = shufflevector <2 x float> %77, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %84 = fsub <2 x float> %77, %shift82
  %85 = extractelement <2 x float> %84, i64 0
  %86 = fadd float %80, %83
  %87 = fcmp uno float %85, 0.000000e+00
  br i1 %87, label %88, label %92, !prof !20

88:                                               ; preds = %68
  %89 = fcmp uno float %86, 0.000000e+00
  br i1 %89, label %90, label %92, !prof !20

90:                                               ; preds = %88
  %91 = call <2 x float> @__mulsc3(float noundef %78, float noundef %81, float noundef %82, float noundef %79) #6
  %.sroa.0.4.vec.extract = extractelement <2 x float> %91, i64 1
  br label %92

92:                                               ; preds = %90, %88, %68
  %93 = phi float [ %86, %68 ], [ %86, %88 ], [ %.sroa.0.4.vec.extract, %90 ]
  %94 = getelementptr inbounds float, ptr %33, i64 %indvars.iv
  store float %93, ptr %94, align 4, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %95 = icmp ult i64 %indvars.iv.next, %30
  br i1 %95, label %.lr.ph, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %92
  %96 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %32, i32 noundef %1) #6
  %97 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv78
  store ptr %96, ptr %97, align 8, !tbaa !23
  %98 = call ptr @dotprod_rrrf_create(ptr noundef nonnull %33, i32 noundef %1) #6
  %99 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv78
  store ptr %98, ptr %99, align 8, !tbaa !23
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %100 = icmp ult i64 %indvars.iv.next79, %21
  br i1 %100, label %.lr.ph.preheader, label %._crit_edge72, !llvm.loop !24

._crit_edge72:                                    ; preds = %._crit_edge
  %101 = call noalias ptr @malloc(i64 noundef %22) #7
  %102 = getelementptr inbounds i8, ptr %12, i64 48
  store ptr %101, ptr %102, align 8, !tbaa !25
  %103 = call i32 @presync_cccf_reset(ptr noundef nonnull %12)
  call void @llvm.stackrestore.p0(ptr %31)
  br label %104

104:                                              ; preds = %._crit_edge72, %10, %6
  %.0 = phi ptr [ %7, %6 ], [ %11, %10 ], [ %12, %._crit_edge72 ]
  ret ptr %.0
}

declare ptr @windowf_create(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @presync_cccf_reset(ptr noundef) local_unnamed_addr #5

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

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 }
attributes #7 = { nounwind allocsize(0) }

!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, !7, i64 0}
!6 = !{!"presync_cccf_s", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !11, i64 56}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !10, i64 24}
!17 = !{!6, !10, i64 32}
!18 = !{!6, !10, i64 40}
!19 = !{!11, !11, i64 0}
!20 = !{!"branch_weights", i32 1, i32 1048575}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !10, i64 0}
!24 = distinct !{!24, !22}
!25 = !{!6, !10, i64 48}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass