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

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

; Function Attrs: nounwind uwtable
define dso_local void @bsync_cccf_bench(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [7 x { float, float }], align 16
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, 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 %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = mul i64 %23, 4
  store i64 %24, ptr %22, align 8, !tbaa !11
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = udiv i64 %28, %26
  store i64 %29, ptr %27, align 8, !tbaa !11
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = call ptr @llvm.stacksave.p0()
  store ptr %32, ptr %9, align 8
  %33 = alloca { float, float }, i64 %31, align 16
  store i64 %31, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %57, %4
  %35 = load i64, ptr %11, align 8, !tbaa !11
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = icmp ult i64 %35, %37
  br i1 %38, label %39, label %60

39:                                               ; preds = %34
  %40 = call i32 @rand() #5
  %41 = srem i32 %40, 2
  %42 = icmp ne i32 %41, 0
  %43 = zext i1 %42 to i64
  %44 = select i1 %42, float 1.000000e+00, float -1.000000e+00
  %45 = call i32 @rand() #5
  %46 = srem i32 %45, 2
  %47 = icmp ne i32 %46, 0
  %48 = zext i1 %47 to i64
  %49 = select i1 %47, float 1.000000e+00, float -1.000000e+00
  %50 = fmul float %49, 0.000000e+00
  %51 = fmul float %49, 1.000000e+00
  %52 = fadd float %44, %50
  %53 = load i64, ptr %11, align 8, !tbaa !11
  %54 = getelementptr inbounds { float, float }, ptr %33, i64 %53
  %55 = getelementptr inbounds { float, float }, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds { float, float }, ptr %54, i32 0, i32 1
  store float %52, ptr %55, align 8
  store float %51, ptr %56, align 4
  br label %57

57:                                               ; preds = %39
  %58 = load i64, ptr %11, align 8, !tbaa !11
  %59 = add i64 %58, 1
  store i64 %59, ptr %11, align 8, !tbaa !11
  br label %34, !llvm.loop !13

60:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = call ptr @bsync_cccf_create(i32 noundef %61, ptr noundef %33)
  store ptr %62, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %84, %60
  %64 = load i64, ptr %11, align 8, !tbaa !11
  %65 = icmp ult i64 %64, 7
  br i1 %65, label %66, label %87

66:                                               ; preds = %63
  %67 = call i32 @rand() #5
  %68 = srem i32 %67, 2
  %69 = icmp ne i32 %68, 0
  %70 = zext i1 %69 to i64
  %71 = select i1 %69, float 1.000000e+00, float -1.000000e+00
  %72 = call i32 @rand() #5
  %73 = srem i32 %72, 2
  %74 = icmp ne i32 %73, 0
  %75 = zext i1 %74 to i64
  %76 = select i1 %74, float 1.000000e+00, float -1.000000e+00
  %77 = fmul float %76, 0.000000e+00
  %78 = fmul float %76, 1.000000e+00
  %79 = fadd float %71, %77
  %80 = load i64, ptr %11, align 8, !tbaa !11
  %81 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 %80
  %82 = getelementptr inbounds { float, float }, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds { float, float }, ptr %81, i32 0, i32 1
  store float %79, ptr %82, align 8
  store float %78, ptr %83, align 4
  br label %84

84:                                               ; preds = %66
  %85 = load i64, ptr %11, align 8, !tbaa !11
  %86 = add i64 %85, 1
  store i64 %86, ptr %11, align 8, !tbaa !11
  br label %63, !llvm.loop !15

87:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call i32 @getrusage(i32 noundef 0, ptr noundef %88) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %166, %87
  %91 = load i64, ptr %11, align 8, !tbaa !11
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = icmp ult i64 %91, %93
  br i1 %94, label %95, label %169

95:                                               ; preds = %90
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 0
  %98 = getelementptr inbounds { float, float }, ptr %97, i32 0, i32 0
  %99 = load float, ptr %98, align 16
  %100 = getelementptr inbounds { float, float }, ptr %97, i32 0, i32 1
  %101 = load float, ptr %100, align 4
  %102 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %103 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float %99, ptr %102, align 4
  store float %101, ptr %103, align 4
  %104 = load <2 x float>, ptr %15, align 4
  %105 = call i32 @bsync_cccf_correlate(ptr noundef %96, <2 x float> noundef %104, ptr noundef %14)
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 1
  %108 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 0
  %109 = load float, ptr %108, align 8
  %110 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  %112 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %113 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %109, ptr %112, align 4
  store float %111, ptr %113, align 4
  %114 = load <2 x float>, ptr %16, align 4
  %115 = call i32 @bsync_cccf_correlate(ptr noundef %106, <2 x float> noundef %114, ptr noundef %14)
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 2
  %118 = getelementptr inbounds { float, float }, ptr %117, i32 0, i32 0
  %119 = load float, ptr %118, align 16
  %120 = getelementptr inbounds { float, float }, ptr %117, i32 0, i32 1
  %121 = load float, ptr %120, align 4
  %122 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %123 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %119, ptr %122, align 4
  store float %121, ptr %123, align 4
  %124 = load <2 x float>, ptr %17, align 4
  %125 = call i32 @bsync_cccf_correlate(ptr noundef %116, <2 x float> noundef %124, ptr noundef %14)
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 3
  %128 = getelementptr inbounds { float, float }, ptr %127, i32 0, i32 0
  %129 = load float, ptr %128, align 8
  %130 = getelementptr inbounds { float, float }, ptr %127, i32 0, i32 1
  %131 = load float, ptr %130, align 4
  %132 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %133 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %129, ptr %132, align 4
  store float %131, ptr %133, align 4
  %134 = load <2 x float>, ptr %18, align 4
  %135 = call i32 @bsync_cccf_correlate(ptr noundef %126, <2 x float> noundef %134, ptr noundef %14)
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 4
  %138 = getelementptr inbounds { float, float }, ptr %137, i32 0, i32 0
  %139 = load float, ptr %138, align 16
  %140 = getelementptr inbounds { float, float }, ptr %137, i32 0, i32 1
  %141 = load float, ptr %140, align 4
  %142 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %143 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %139, ptr %142, align 4
  store float %141, ptr %143, align 4
  %144 = load <2 x float>, ptr %19, align 4
  %145 = call i32 @bsync_cccf_correlate(ptr noundef %136, <2 x float> noundef %144, ptr noundef %14)
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 5
  %148 = getelementptr inbounds { float, float }, ptr %147, i32 0, i32 0
  %149 = load float, ptr %148, align 8
  %150 = getelementptr inbounds { float, float }, ptr %147, i32 0, i32 1
  %151 = load float, ptr %150, align 4
  %152 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %153 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %149, ptr %152, align 4
  store float %151, ptr %153, align 4
  %154 = load <2 x float>, ptr %20, align 4
  %155 = call i32 @bsync_cccf_correlate(ptr noundef %146, <2 x float> noundef %154, ptr noundef %14)
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds [7 x { float, float }], ptr %13, i64 0, i64 6
  %158 = getelementptr inbounds { float, float }, ptr %157, i32 0, i32 0
  %159 = load float, ptr %158, align 16
  %160 = getelementptr inbounds { float, float }, ptr %157, i32 0, i32 1
  %161 = load float, ptr %160, align 4
  %162 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %163 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %159, ptr %162, align 4
  store float %161, ptr %163, align 4
  %164 = load <2 x float>, ptr %21, align 4
  %165 = call i32 @bsync_cccf_correlate(ptr noundef %156, <2 x float> noundef %164, ptr noundef %14)
  br label %166

166:                                              ; preds = %95
  %167 = load i64, ptr %11, align 8, !tbaa !11
  %168 = add i64 %167, 1
  store i64 %168, ptr %11, align 8, !tbaa !11
  br label %90, !llvm.loop !16

169:                                              ; preds = %90
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = call i32 @getrusage(i32 noundef 0, ptr noundef %170) #5
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load i64, ptr %172, align 8, !tbaa !11
  %174 = mul i64 %173, 7
  store i64 %174, ptr %172, align 8, !tbaa !11
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = call i32 @bsync_cccf_destroy(ptr noundef %175)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %177 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %177)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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
declare i32 @rand() #3

declare ptr @bsync_cccf_create(i32 noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) #3

declare i32 @bsync_cccf_correlate(ptr noundef, <2 x float> noundef, ptr noundef) #4

declare i32 @bsync_cccf_destroy(ptr noundef) #4

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

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

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 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local void @bsync_cccf_bench(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca { float, float }, align 4
  %6 = load i64, ptr %2, align 8, !tbaa !5
  %7 = shl i64 %6, 2
  %8 = zext i32 %3 to i64
  %9 = udiv i64 %7, %8
  store i64 %9, ptr %2, align 8, !tbaa !5
  %10 = alloca { float, float }, i64 %8, align 16
  %umax = tail call i64 @llvm.umax.i64(i64 %8, i64 1)
  br label %11

11:                                               ; preds = %4, %11
  %.042 = phi i64 [ 0, %4 ], [ %22, %11 ]
  %12 = tail call i32 @rand() #5
  %13 = and i32 %12, 1
  %.not40 = icmp eq i32 %13, 0
  %14 = select i1 %.not40, float -1.000000e+00, float 1.000000e+00
  %15 = tail call i32 @rand() #5
  %16 = and i32 %15, 1
  %.not41 = icmp eq i32 %16, 0
  %17 = select i1 %.not41, float -1.000000e+00, float 1.000000e+00
  %18 = tail call float @llvm.copysign.f32(float 0.000000e+00, float %17)
  %19 = fadd float %14, %18
  %20 = getelementptr inbounds { float, float }, ptr %10, i64 %.042
  %21 = getelementptr inbounds i8, ptr %20, i64 4
  store float %19, ptr %20, align 8
  store float %17, ptr %21, align 4
  %22 = add nuw nsw i64 %.042, 1
  %exitcond.not = icmp eq i64 %22, %umax
  br i1 %exitcond.not, label %23, label %11, !llvm.loop !9

23:                                               ; preds = %11
  %24 = call ptr @bsync_cccf_create(i32 noundef %3, ptr noundef nonnull %10) #5
  %25 = call i32 @rand() #5
  %26 = call i32 @rand() #5
  %27 = call i32 @rand() #5
  %28 = call i32 @rand() #5
  %29 = call i32 @rand() #5
  %30 = call i32 @rand() #5
  %31 = call i32 @rand() #5
  %32 = call i32 @rand() #5
  %33 = call i32 @rand() #5
  %34 = call i32 @rand() #5
  %35 = call i32 @rand() #5
  %36 = call i32 @rand() #5
  %37 = call i32 @rand() #5
  %38 = call i32 @rand() #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %39 = call i32 @getrusage(i32 noundef 0, ptr noundef %0) #5
  %40 = load i64, ptr %2, align 8, !tbaa !5
  %.not45 = icmp eq i64 %40, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %41 = and i32 %37, 1
  %.not.6 = icmp eq i32 %41, 0
  %42 = select i1 %.not.6, float -1.000000e+00, float 1.000000e+00
  %43 = and i32 %38, 1
  %.not39.6 = icmp eq i32 %43, 0
  %44 = select i1 %.not39.6, float -1.000000e+00, float 1.000000e+00
  %45 = call float @llvm.copysign.f32(float 0.000000e+00, float %44)
  %46 = fadd float %42, %45
  %47 = and i32 %35, 1
  %.not.5 = icmp eq i32 %47, 0
  %48 = select i1 %.not.5, float -1.000000e+00, float 1.000000e+00
  %49 = and i32 %36, 1
  %.not39.5 = icmp eq i32 %49, 0
  %50 = select i1 %.not39.5, float -1.000000e+00, float 1.000000e+00
  %51 = call float @llvm.copysign.f32(float 0.000000e+00, float %50)
  %52 = fadd float %48, %51
  %53 = and i32 %33, 1
  %.not.4 = icmp eq i32 %53, 0
  %54 = select i1 %.not.4, float -1.000000e+00, float 1.000000e+00
  %55 = and i32 %34, 1
  %.not39.4 = icmp eq i32 %55, 0
  %56 = select i1 %.not39.4, float -1.000000e+00, float 1.000000e+00
  %57 = call float @llvm.copysign.f32(float 0.000000e+00, float %56)
  %58 = fadd float %54, %57
  %59 = and i32 %31, 1
  %.not.3 = icmp eq i32 %59, 0
  %60 = select i1 %.not.3, float -1.000000e+00, float 1.000000e+00
  %61 = and i32 %32, 1
  %.not39.3 = icmp eq i32 %61, 0
  %62 = select i1 %.not39.3, float -1.000000e+00, float 1.000000e+00
  %63 = call float @llvm.copysign.f32(float 0.000000e+00, float %62)
  %64 = fadd float %60, %63
  %65 = and i32 %29, 1
  %.not.2 = icmp eq i32 %65, 0
  %66 = select i1 %.not.2, float -1.000000e+00, float 1.000000e+00
  %67 = and i32 %30, 1
  %.not39.2 = icmp eq i32 %67, 0
  %68 = select i1 %.not39.2, float -1.000000e+00, float 1.000000e+00
  %69 = call float @llvm.copysign.f32(float 0.000000e+00, float %68)
  %70 = fadd float %66, %69
  %71 = and i32 %27, 1
  %.not.1 = icmp eq i32 %71, 0
  %72 = select i1 %.not.1, float -1.000000e+00, float 1.000000e+00
  %73 = and i32 %28, 1
  %.not39.1 = icmp eq i32 %73, 0
  %74 = select i1 %.not39.1, float -1.000000e+00, float 1.000000e+00
  %75 = call float @llvm.copysign.f32(float 0.000000e+00, float %74)
  %76 = fadd float %72, %75
  %77 = and i32 %25, 1
  %.not = icmp eq i32 %77, 0
  %78 = select i1 %.not, float -1.000000e+00, float 1.000000e+00
  %79 = and i32 %26, 1
  %.not39 = icmp eq i32 %79, 0
  %80 = select i1 %.not39, float -1.000000e+00, float 1.000000e+00
  %81 = call float @llvm.copysign.f32(float 0.000000e+00, float %80)
  %82 = fadd float %78, %81
  %.sroa.012.0.vec.insert = insertelement <2 x float> poison, float %82, i64 0
  %.sroa.012.4.vec.insert = insertelement <2 x float> %.sroa.012.0.vec.insert, float %80, i64 1
  %.sroa.010.0.vec.insert = insertelement <2 x float> poison, float %76, i64 0
  %.sroa.010.4.vec.insert = insertelement <2 x float> %.sroa.010.0.vec.insert, float %74, i64 1
  %.sroa.08.0.vec.insert = insertelement <2 x float> poison, float %70, i64 0
  %.sroa.08.4.vec.insert = insertelement <2 x float> %.sroa.08.0.vec.insert, float %68, i64 1
  %.sroa.06.0.vec.insert = insertelement <2 x float> poison, float %64, i64 0
  %.sroa.06.4.vec.insert = insertelement <2 x float> %.sroa.06.0.vec.insert, float %62, i64 1
  %.sroa.04.0.vec.insert = insertelement <2 x float> poison, float %58, i64 0
  %.sroa.04.4.vec.insert = insertelement <2 x float> %.sroa.04.0.vec.insert, float %56, i64 1
  %.sroa.02.0.vec.insert = insertelement <2 x float> poison, float %52, i64 0
  %.sroa.02.4.vec.insert = insertelement <2 x float> %.sroa.02.0.vec.insert, float %50, i64 1
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %46, i64 0
  %.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %44, i64 1
  br label %83

83:                                               ; preds = %.lr.ph, %83
  %.244 = phi i64 [ 0, %.lr.ph ], [ %91, %83 ]
  %84 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.012.4.vec.insert, ptr noundef nonnull %5) #5
  %85 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.010.4.vec.insert, ptr noundef nonnull %5) #5
  %86 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.08.4.vec.insert, ptr noundef nonnull %5) #5
  %87 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.06.4.vec.insert, ptr noundef nonnull %5) #5
  %88 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.04.4.vec.insert, ptr noundef nonnull %5) #5
  %89 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.02.4.vec.insert, ptr noundef nonnull %5) #5
  %90 = call i32 @bsync_cccf_correlate(ptr noundef %24, <2 x float> noundef %.sroa.0.4.vec.insert, ptr noundef nonnull %5) #5
  %91 = add nuw i64 %.244, 1
  %92 = load i64, ptr %2, align 8, !tbaa !5
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %83, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %83, %23
  %94 = call i32 @getrusage(i32 noundef 0, ptr noundef %1) #5
  %95 = load i64, ptr %2, align 8, !tbaa !5
  %96 = mul i64 %95, 7
  store i64 %96, ptr %2, align 8, !tbaa !5
  %97 = call i32 @bsync_cccf_destroy(ptr noundef %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

declare ptr @bsync_cccf_create(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @bsync_cccf_correlate(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #3

declare i32 @bsync_cccf_destroy(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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