; 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.bpresync_cccf_s = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, float }

@.str = external hidden unnamed_addr constant [87 x i8], align 1
@.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

; Function Attrs: nounwind uwtable
define dso_local ptr @bpresync_cccf_create(ptr noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3) #0 {
  %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 i32, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = 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
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = icmp ult i32 %17, 1
  br i1 %18, label %19, label %21

19:                                               ; preds = %4
  %20 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 72, ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %20, ptr %5, align 8
  br label %223

21:                                               ; preds = %4
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 74, ptr noundef @.str.3, ptr noundef @.str.2)
  store ptr %25, ptr %5, align 8
  br label %223

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

77:                                               ; preds = %208, %26
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !15
  %82 = icmp ult i32 %78, %81
  br i1 %82, label %83, label %211

83:                                               ; preds = %77
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !13
  %87 = call ptr @bsequence_create(i32 noundef %86)
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  store ptr %87, ptr %93, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !13
  %97 = call ptr @bsequence_create(i32 noundef %96)
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %98, i32 0, i32 6
  %100 = load ptr, ptr %99, align 8, !tbaa !21
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  store ptr %97, ptr %103, align 8, !tbaa !5
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = uitofp i32 %104 to float
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !15
  %109 = sub i32 %108, 1
  %110 = uitofp i32 %109 to float
  %111 = fdiv float %105, %110
  %112 = load float, ptr %8, align 4, !tbaa !11
  %113 = fmul float %111, %112
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !19
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %116, i64 %118
  store float %113, ptr %119, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %204, %83
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 8, !tbaa !13
  %125 = icmp ult i32 %121, %124
  br i1 %125, label %126, label %207

126:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds { float, float }, ptr %127, i64 %129
  %131 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 0
  %132 = load float, ptr %131, align 4
  %133 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = uitofp i32 %135 to float
  %137 = fmul float -0.000000e+00, %136
  %138 = fmul float -1.000000e+00, %136
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = fmul float %137, %145
  %147 = fmul float %138, %145
  %148 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %149 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float %146, ptr %148, align 4
  store float %147, ptr %149, align 4
  %150 = load <2 x float>, ptr %14, align 4
  %151 = call <2 x float> @cexpf(<2 x float> noundef %150) #6
  store <2 x float> %151, ptr %15, align 4
  %152 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %153 = load float, ptr %152, align 4
  %154 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %155 = load float, ptr %154, align 4
  %156 = fmul float %132, %153
  %157 = fmul float %134, %155
  %158 = fmul float %132, %155
  %159 = fmul float %134, %153
  %160 = fsub float %156, %157
  %161 = fadd float %158, %159
  %162 = fcmp uno float %160, %160
  br i1 %162, label %163, label %171, !prof !22

163:                                              ; preds = %126
  %164 = fcmp uno float %161, %161
  br i1 %164, label %165, label %171, !prof !22

165:                                              ; preds = %163
  %166 = call <2 x float> @__mulsc3(float noundef %132, float noundef %134, float noundef %153, float noundef %155) #6
  store <2 x float> %166, ptr %16, align 4
  %167 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %168 = load float, ptr %167, align 4
  %169 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %170 = load float, ptr %169, align 4
  br label %171

171:                                              ; preds = %165, %163, %126
  %172 = phi float [ %160, %126 ], [ %160, %163 ], [ %168, %165 ]
  %173 = phi float [ %161, %126 ], [ %161, %163 ], [ %170, %165 ]
  %174 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %175 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %172, ptr %174, align 4
  store float %173, ptr %175, align 4
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %176, i32 0, i32 5
  %178 = load ptr, ptr %177, align 8, !tbaa !20
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %178, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %184 = load float, ptr %183, align 4
  %185 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %186 = load float, ptr %185, align 4
  %187 = fcmp ogt float %184, 0.000000e+00
  %188 = zext i1 %187 to i32
  %189 = call i32 @bsequence_push(ptr noundef %182, i32 noundef %188)
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %190, i32 0, i32 6
  %192 = load ptr, ptr %191, align 8, !tbaa !21
  %193 = load i32, ptr %11, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds ptr, ptr %192, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %198 = load float, ptr %197, align 4
  %199 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %200 = load float, ptr %199, align 4
  %201 = fcmp ogt float %200, 0.000000e+00
  %202 = zext i1 %201 to i32
  %203 = call i32 @bsequence_push(ptr noundef %196, i32 noundef %202)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %204

204:                                              ; preds = %171
  %205 = load i32, ptr %12, align 4, !tbaa !9
  %206 = add i32 %205, 1
  store i32 %206, ptr %12, align 4, !tbaa !9
  br label %120, !llvm.loop !23

207:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = add i32 %209, 1
  store i32 %210, ptr %11, align 4, !tbaa !9
  br label %77, !llvm.loop !25

211:                                              ; preds = %77
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %212, i32 0, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !15
  %215 = zext i32 %214 to i64
  %216 = mul i64 %215, 4
  %217 = call noalias ptr @malloc(i64 noundef %216) #7
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.bpresync_cccf_s, ptr %218, i32 0, i32 7
  store ptr %217, ptr %219, align 8, !tbaa !26
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = call i32 @bpresync_cccf_reset(ptr noundef %220)
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %222, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %223

223:                                              ; preds = %211, %24, %19
  %224 = load ptr, ptr %5, align 8
  ret ptr %224
}

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

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

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

declare ptr @bsequence_create(i32 noundef) #1

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

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

declare i32 @bsequence_push(ptr noundef, i32 noundef) #1

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

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

attributes #0 = { 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 #1 = { "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 willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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, !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 = !{!"bpresync_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 = external hidden unnamed_addr constant [87 x i8], align 1
@.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

; Function Attrs: nounwind uwtable
define dso_local ptr @bpresync_cccf_create(ptr nocapture noundef readonly %0, i32 noundef %1, float noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %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, i32 noundef 72, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #5
  br label %90

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

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

.lr.ph62.preheader:                               ; preds = %8
  %12 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #6
  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 @bsequence_create(i32 noundef %1) #5
  %18 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %17, ptr %18, align 8, !tbaa !14
  %19 = tail call ptr @bsequence_create(i32 noundef %1) #5
  %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) #6
  %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) #6
  %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) #6
  %29 = getelementptr inbounds i8, ptr %12, i64 40
  store ptr %28, ptr %29, align 8, !tbaa !18
  %30 = add i32 %3, -1
  %31 = uitofp i32 %30 to float
  %32 = zext i32 %1 to i64
  br label %.lr.ph62

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %._crit_edge
  %33 = phi i32 [ %1, %.lr.ph62.preheader ], [ %85, %._crit_edge ]
  %indvars.iv67 = phi i64 [ 0, %.lr.ph62.preheader ], [ %indvars.iv.next68, %._crit_edge ]
  %34 = tail call ptr @bsequence_create(i32 noundef %33) #5
  %35 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv67
  store ptr %34, ptr %35, align 8, !tbaa !19
  %36 = tail call ptr @bsequence_create(i32 noundef %33) #5
  %37 = load ptr, ptr %29, align 8, !tbaa !18
  %38 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv67
  store ptr %36, ptr %38, align 8, !tbaa !19
  %39 = trunc nuw i64 %indvars.iv67 to i32
  %40 = uitofp i32 %39 to float
  %41 = fdiv float %40, %31
  %42 = fmul float %41, %2
  %43 = load ptr, ptr %24, align 8, !tbaa !16
  %44 = getelementptr inbounds float, ptr %43, i64 %indvars.iv67
  store float %42, ptr %44, align 4, !tbaa !20
  %.not64 = icmp eq i32 %33, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph62
  %45 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv67
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %73 ]
  %46 = getelementptr inbounds { float, float }, ptr %0, i64 %indvars.iv
  %47 = trunc nuw i64 %indvars.iv to i32
  %48 = uitofp i32 %47 to float
  %49 = fneg float %48
  %50 = load float, ptr %44, align 4, !tbaa !20
  %51 = insertelement <2 x float> poison, float %50, i64 0
  %52 = shufflevector <2 x float> %51, <2 x float> poison, <2 x i32> zeroinitializer
  %53 = insertelement <2 x float> <float -0.000000e+00, float poison>, float %49, i64 1
  %54 = fmul <2 x float> %52, %53
  %55 = load <2 x float>, ptr %46, align 4
  %56 = tail call <2 x float> @cexpf(<2 x float> noundef %54) #5
  %57 = fmul <2 x float> %55, %56
  %58 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %59 = fmul <2 x float> %55, %58
  %shift = shufflevector <2 x float> %57, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %60 = fsub <2 x float> %57, %shift
  %61 = extractelement <2 x float> %60, i64 0
  %shift70 = shufflevector <2 x float> %59, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %62 = fadd <2 x float> %59, %shift70
  %63 = extractelement <2 x float> %62, i64 0
  %64 = fcmp uno float %61, 0.000000e+00
  br i1 %64, label %65, label %73, !prof !21

65:                                               ; preds = %.lr.ph
  %66 = fcmp uno float %63, 0.000000e+00
  br i1 %66, label %67, label %73, !prof !21

67:                                               ; preds = %65
  %68 = extractelement <2 x float> %55, i64 0
  %69 = extractelement <2 x float> %55, i64 1
  %70 = extractelement <2 x float> %56, i64 0
  %71 = extractelement <2 x float> %56, i64 1
  %72 = tail call <2 x float> @__mulsc3(float noundef %68, float noundef %69, float noundef %70, float noundef %71) #5
  %.sroa.0.0.vec.extract = extractelement <2 x float> %72, i64 0
  %.sroa.0.4.vec.extract = extractelement <2 x float> %72, i64 1
  br label %73

73:                                               ; preds = %67, %65, %.lr.ph
  %74 = phi float [ %61, %.lr.ph ], [ %61, %65 ], [ %.sroa.0.0.vec.extract, %67 ]
  %75 = phi float [ %63, %.lr.ph ], [ %63, %65 ], [ %.sroa.0.4.vec.extract, %67 ]
  %76 = load ptr, ptr %45, align 8, !tbaa !19
  %77 = fcmp ogt float %74, 0.000000e+00
  %78 = zext i1 %77 to i32
  %79 = tail call i32 @bsequence_push(ptr noundef %76, i32 noundef %78) #5
  %80 = load ptr, ptr %38, align 8, !tbaa !19
  %81 = fcmp ogt float %75, 0.000000e+00
  %82 = zext i1 %81 to i32
  %83 = tail call i32 @bsequence_push(ptr noundef %80, i32 noundef %82) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %84 = icmp ult i64 %indvars.iv.next, %32
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %73, %.lr.ph62
  %85 = phi i32 [ 0, %.lr.ph62 ], [ %1, %73 ]
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %86 = icmp ult i64 %indvars.iv.next68, %21
  br i1 %86, label %.lr.ph62, label %._crit_edge63, !llvm.loop !24

._crit_edge63:                                    ; preds = %._crit_edge
  %87 = tail call noalias ptr @malloc(i64 noundef %22) #6
  %88 = getelementptr inbounds i8, ptr %12, i64 48
  store ptr %87, ptr %88, align 8, !tbaa !25
  %89 = tail call i32 @bpresync_cccf_reset(ptr noundef nonnull %12)
  br label %90

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

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

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

declare ptr @bsequence_create(i32 noundef) local_unnamed_addr #1

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

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

declare i32 @bsequence_push(ptr noundef, i32 noundef) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn 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 #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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"bpresync_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 = !{!10, !10, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!"branch_weights", i32 1, i32 1048575}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!6, !10, i64 48}


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