; LLVM IR from jgaeddert/liquid-dsp :: src/framing/bench (qdetector_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 @qdetector_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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca [7 x { float, float }], align 16
  %20 = alloca i32, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  %26 = alloca { float, float }, align 4
  %27 = 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
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !11
  %30 = mul i64 %29, 4
  store i64 %30, ptr %28, align 8, !tbaa !11
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = udiv i64 %34, %32
  store i64 %35, ptr %33, align 8, !tbaa !11
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call ptr @llvm.stacksave.p0()
  store ptr %38, ptr %9, align 8
  %39 = alloca { float, float }, i64 %37, align 16
  store i64 %37, 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 %40

40:                                               ; preds = %63, %4
  %41 = load i64, ptr %11, align 8, !tbaa !11
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = icmp ult i64 %41, %43
  br i1 %44, label %45, label %66

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

63:                                               ; preds = %45
  %64 = load i64, ptr %11, align 8, !tbaa !11
  %65 = add i64 %64, 1
  store i64 %65, ptr %11, align 8, !tbaa !11
  br label %40, !llvm.loop !13

66:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 7, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 2, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 7, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store float 0x3FD3333340000000, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store float 5.000000e-01, ptr %16, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store float 0x3FA99999A0000000, ptr %17, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = load float, ptr %15, align 4, !tbaa !15
  %72 = call ptr @qdetector_cccf_create_linear(ptr noundef %39, i32 noundef %67, i32 noundef %68, i32 noundef %69, i32 noundef %70, float noundef %71)
  store ptr %72, ptr %18, align 8, !tbaa !5
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = load float, ptr %16, align 4, !tbaa !15
  %75 = call i32 @qdetector_cccf_set_threshold(ptr noundef %73, float noundef %74)
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = load float, ptr %17, align 4, !tbaa !15
  %78 = call i32 @qdetector_cccf_set_range(ptr noundef %76, float noundef %77)
  call void @llvm.lifetime.start.p0(i64 56, ptr %19) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %100, %66
  %80 = load i64, ptr %11, align 8, !tbaa !11
  %81 = icmp ult i64 %80, 7
  br i1 %81, label %82, label %103

82:                                               ; preds = %79
  %83 = call i32 @rand() #5
  %84 = srem i32 %83, 2
  %85 = icmp ne i32 %84, 0
  %86 = zext i1 %85 to i64
  %87 = select i1 %85, float 1.000000e+00, float -1.000000e+00
  %88 = call i32 @rand() #5
  %89 = srem i32 %88, 2
  %90 = icmp ne i32 %89, 0
  %91 = zext i1 %90 to i64
  %92 = select i1 %90, float 1.000000e+00, float -1.000000e+00
  %93 = fmul float %92, 0.000000e+00
  %94 = fmul float %92, 1.000000e+00
  %95 = fadd float %87, %93
  %96 = load i64, ptr %11, align 8, !tbaa !11
  %97 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 %96
  %98 = getelementptr inbounds { float, float }, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds { float, float }, ptr %97, i32 0, i32 1
  store float %95, ptr %98, align 8
  store float %94, ptr %99, align 4
  br label %100

100:                                              ; preds = %82
  %101 = load i64, ptr %11, align 8, !tbaa !11
  %102 = add i64 %101, 1
  store i64 %102, ptr %11, align 8, !tbaa !11
  br label %79, !llvm.loop !17

103:                                              ; preds = %79
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = call i32 @getrusage(i32 noundef 0, ptr noundef %104) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %222, %103
  %107 = load i64, ptr %11, align 8, !tbaa !11
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !11
  %110 = icmp ult i64 %107, %109
  br i1 %110, label %111, label %225

111:                                              ; preds = %106
  %112 = load ptr, ptr %18, align 8, !tbaa !5
  %113 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 0
  %114 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 16
  %116 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 1
  %117 = load float, ptr %116, align 4
  %118 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %119 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %115, ptr %118, align 4
  store float %117, ptr %119, align 4
  %120 = load <2 x float>, ptr %21, align 4
  %121 = call ptr @qdetector_cccf_execute(ptr noundef %112, <2 x float> noundef %120)
  %122 = icmp ne ptr %121, null
  %123 = zext i1 %122 to i32
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = xor i32 %124, %123
  store i32 %125, ptr %20, align 4, !tbaa !9
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 1
  %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 %22, i32 0, i32 0
  %133 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %129, ptr %132, align 4
  store float %131, ptr %133, align 4
  %134 = load <2 x float>, ptr %22, align 4
  %135 = call ptr @qdetector_cccf_execute(ptr noundef %126, <2 x float> noundef %134)
  %136 = icmp ne ptr %135, null
  %137 = zext i1 %136 to i32
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = xor i32 %138, %137
  store i32 %139, ptr %20, align 4, !tbaa !9
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  %141 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 2
  %142 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 0
  %143 = load float, ptr %142, align 16
  %144 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 1
  %145 = load float, ptr %144, align 4
  %146 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %147 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  store float %143, ptr %146, align 4
  store float %145, ptr %147, align 4
  %148 = load <2 x float>, ptr %23, align 4
  %149 = call ptr @qdetector_cccf_execute(ptr noundef %140, <2 x float> noundef %148)
  %150 = icmp ne ptr %149, null
  %151 = zext i1 %150 to i32
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = xor i32 %152, %151
  store i32 %153, ptr %20, align 4, !tbaa !9
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 3
  %156 = getelementptr inbounds { float, float }, ptr %155, i32 0, i32 0
  %157 = load float, ptr %156, align 8
  %158 = getelementptr inbounds { float, float }, ptr %155, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %161 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %157, ptr %160, align 4
  store float %159, ptr %161, align 4
  %162 = load <2 x float>, ptr %24, align 4
  %163 = call ptr @qdetector_cccf_execute(ptr noundef %154, <2 x float> noundef %162)
  %164 = icmp ne ptr %163, null
  %165 = zext i1 %164 to i32
  %166 = load i32, ptr %20, align 4, !tbaa !9
  %167 = xor i32 %166, %165
  store i32 %167, ptr %20, align 4, !tbaa !9
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  %169 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 4
  %170 = getelementptr inbounds { float, float }, ptr %169, i32 0, i32 0
  %171 = load float, ptr %170, align 16
  %172 = getelementptr inbounds { float, float }, ptr %169, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  %174 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %175 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float %171, ptr %174, align 4
  store float %173, ptr %175, align 4
  %176 = load <2 x float>, ptr %25, align 4
  %177 = call ptr @qdetector_cccf_execute(ptr noundef %168, <2 x float> noundef %176)
  %178 = icmp ne ptr %177, null
  %179 = zext i1 %178 to i32
  %180 = load i32, ptr %20, align 4, !tbaa !9
  %181 = xor i32 %180, %179
  store i32 %181, ptr %20, align 4, !tbaa !9
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  %183 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 5
  %184 = getelementptr inbounds { float, float }, ptr %183, i32 0, i32 0
  %185 = load float, ptr %184, align 8
  %186 = getelementptr inbounds { float, float }, ptr %183, i32 0, i32 1
  %187 = load float, ptr %186, align 4
  %188 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %189 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  store float %185, ptr %188, align 4
  store float %187, ptr %189, align 4
  %190 = load <2 x float>, ptr %26, align 4
  %191 = call ptr @qdetector_cccf_execute(ptr noundef %182, <2 x float> noundef %190)
  %192 = icmp ne ptr %191, null
  %193 = zext i1 %192 to i32
  %194 = load i32, ptr %20, align 4, !tbaa !9
  %195 = xor i32 %194, %193
  store i32 %195, ptr %20, align 4, !tbaa !9
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  %197 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 6
  %198 = getelementptr inbounds { float, float }, ptr %197, i32 0, i32 0
  %199 = load float, ptr %198, align 16
  %200 = getelementptr inbounds { float, float }, ptr %197, i32 0, i32 1
  %201 = load float, ptr %200, align 4
  %202 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %203 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  store float %199, ptr %202, align 4
  store float %201, ptr %203, align 4
  %204 = load <2 x float>, ptr %27, align 4
  %205 = call ptr @qdetector_cccf_execute(ptr noundef %196, <2 x float> noundef %204)
  %206 = icmp ne ptr %205, null
  %207 = zext i1 %206 to i32
  %208 = load i32, ptr %20, align 4, !tbaa !9
  %209 = xor i32 %208, %207
  store i32 %209, ptr %20, align 4, !tbaa !9
  %210 = load i32, ptr %20, align 4, !tbaa !9
  %211 = icmp sgt i32 %210, 2
  %212 = zext i1 %211 to i64
  %213 = select i1 %211, float 0xBF50624DE0000000, float 0x3F50624DE0000000
  %214 = getelementptr inbounds [7 x { float, float }], ptr %19, i64 0, i64 0
  %215 = getelementptr inbounds { float, float }, ptr %214, i32 0, i32 0
  %216 = load float, ptr %215, align 16
  %217 = getelementptr inbounds { float, float }, ptr %214, i32 0, i32 1
  %218 = load float, ptr %217, align 4
  %219 = fadd float %216, %213
  %220 = getelementptr inbounds { float, float }, ptr %214, i32 0, i32 0
  %221 = getelementptr inbounds { float, float }, ptr %214, i32 0, i32 1
  store float %219, ptr %220, align 16
  store float %218, ptr %221, align 4
  br label %222

222:                                              ; preds = %111
  %223 = load i64, ptr %11, align 8, !tbaa !11
  %224 = add i64 %223, 1
  store i64 %224, ptr %11, align 8, !tbaa !11
  br label %106, !llvm.loop !18

225:                                              ; preds = %106
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = call i32 @getrusage(i32 noundef 0, ptr noundef %226) #5
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = load i64, ptr %228, align 8, !tbaa !11
  %230 = mul i64 %229, 7
  store i64 %230, ptr %228, align 8, !tbaa !11
  %231 = load ptr, ptr %18, align 8, !tbaa !5
  %232 = call i32 @qdetector_cccf_destroy(ptr noundef %231)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %233 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %233)
  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 @qdetector_cccf_create_linear(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) #4

declare i32 @qdetector_cccf_set_threshold(ptr noundef, float noundef) #4

declare i32 @qdetector_cccf_set_range(ptr noundef, float noundef) #4

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

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

declare i32 @qdetector_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 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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 @qdetector_cccf_bench(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = load i64, ptr %2, align 8, !tbaa !5
  %6 = shl i64 %5, 2
  %7 = zext i32 %3 to i64
  %8 = udiv i64 %6, %7
  store i64 %8, ptr %2, align 8, !tbaa !5
  %9 = alloca { float, float }, i64 %7, align 16
  %umax = tail call i64 @llvm.umax.i64(i64 %7, i64 1)
  br label %10

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

22:                                               ; preds = %10
  %23 = call ptr @qdetector_cccf_create_linear(ptr noundef nonnull %9, i32 noundef %3, i32 noundef 7, i32 noundef 2, i32 noundef 7, float noundef 0x3FD3333340000000) #4
  %24 = call i32 @qdetector_cccf_set_threshold(ptr noundef %23, float noundef 5.000000e-01) #4
  %25 = call i32 @qdetector_cccf_set_range(ptr noundef %23, float noundef 0x3FA99999A0000000) #4
  %26 = call i32 @rand() #4
  %27 = call i32 @rand() #4
  %28 = and i32 %27, 1
  %.not56 = icmp eq i32 %28, 0
  %29 = select i1 %.not56, float -1.000000e+00, float 1.000000e+00
  %30 = call i32 @rand() #4
  %31 = call i32 @rand() #4
  %32 = call i32 @rand() #4
  %33 = call i32 @rand() #4
  %34 = call i32 @rand() #4
  %35 = call i32 @rand() #4
  %36 = call i32 @rand() #4
  %37 = call i32 @rand() #4
  %38 = call i32 @rand() #4
  %39 = call i32 @rand() #4
  %40 = call i32 @rand() #4
  %41 = call i32 @rand() #4
  %42 = call i32 @getrusage(i32 noundef 0, ptr noundef %0) #4
  %43 = load i64, ptr %2, align 8, !tbaa !5
  %.not63 = icmp eq i64 %43, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph

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

84:                                               ; preds = %.lr.ph, %84
  %.261 = phi i64 [ 0, %.lr.ph ], [ %94, %84 ]
  %85 = phi float [ %83, %.lr.ph ], [ %93, %84 ]
  %.sroa.012.0.vec.insert = insertelement <2 x float> poison, float %85, i64 0
  %.sroa.012.4.vec.insert = insertelement <2 x float> %.sroa.012.0.vec.insert, float %29, i64 1
  %86 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.012.4.vec.insert) #4
  %87 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.010.4.vec.insert) #4
  %88 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.08.4.vec.insert) #4
  %89 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.06.4.vec.insert) #4
  %90 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.04.4.vec.insert) #4
  %91 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.02.4.vec.insert) #4
  %92 = call ptr @qdetector_cccf_execute(ptr noundef %23, <2 x float> noundef %.sroa.0.4.vec.insert) #4
  %93 = fadd float %85, 0x3F50624DE0000000
  %94 = add nuw i64 %.261, 1
  %95 = load i64, ptr %2, align 8, !tbaa !5
  %96 = icmp ult i64 %94, %95
  br i1 %96, label %84, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %84, %22
  %97 = call i32 @getrusage(i32 noundef 0, ptr noundef %1) #4
  %98 = load i64, ptr %2, align 8, !tbaa !5
  %99 = mul i64 %98, 7
  store i64 %99, ptr %2, align 8, !tbaa !5
  %100 = call i32 @qdetector_cccf_destroy(ptr noundef %23) #4
  ret void
}

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

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

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

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

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

declare ptr @qdetector_cccf_execute(ptr noundef, <2 x float> noundef) local_unnamed_addr #2

declare i32 @qdetector_cccf_destroy(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass