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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@.str = external hidden unnamed_addr constant [55 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @testbench_symstreamcf_psd(i32 noundef %0, i32 noundef %1, float noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca [3 x %struct.autotest_psd_s], align 16
  %21 = alloca [256 x i8], align 16
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 7, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 40, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = load float, ptr %6, align 4, !tbaa !9
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = call ptr @symstreamcf_create_linear(i32 noundef %22, i32 noundef %23, i32 noundef %24, float noundef %25, i32 noundef %26)
  store ptr %27, ptr %9, align 8, !tbaa !11
  %28 = load ptr, ptr %9, align 8, !tbaa !11
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = uitofp i32 %29 to float
  %31 = call float @sqrtf(float noundef %30) #5
  %32 = fdiv float 1.000000e+00, %31
  %33 = call i32 @symstreamcf_set_gain(ptr noundef %28, float noundef %32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 2400, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = mul i32 192000, %34
  store i32 %35, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %36 = load i32, ptr %10, align 4, !tbaa !5
  %37 = call ptr @spgramcf_create_default(i32 noundef %36)
  store ptr %37, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1337, ptr %13, align 4, !tbaa !5
  %38 = load i32, ptr %13, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = call ptr @llvm.stacksave.p0()
  store ptr %40, ptr %14, align 8
  %41 = alloca { float, float }, i64 %39, align 16
  store i64 %39, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %46, %3
  %43 = load i32, ptr %16, align 4, !tbaa !5
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = icmp ult i32 %43, %44
  br i1 %45, label %46, label %56

46:                                               ; preds = %42
  %47 = load ptr, ptr %9, align 8, !tbaa !11
  %48 = load i32, ptr %13, align 4, !tbaa !5
  %49 = call i32 @symstreamcf_write_samples(ptr noundef %47, ptr noundef %41, i32 noundef %48)
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = load i32, ptr %16, align 4, !tbaa !5
  %52 = add i32 %51, %50
  store i32 %52, ptr %16, align 4, !tbaa !5
  %53 = load ptr, ptr %12, align 8, !tbaa !11
  %54 = load i32, ptr %13, align 4, !tbaa !5
  %55 = call i32 @spgramcf_write(ptr noundef %53, ptr noundef %41, i32 noundef %54)
  br label %42, !llvm.loop !13

56:                                               ; preds = %42
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = zext i32 %57 to i64
  %59 = alloca float, i64 %58, align 16
  store i64 %58, ptr %17, align 8
  %60 = load ptr, ptr %12, align 8, !tbaa !11
  %61 = call i32 @spgramcf_get_psd(ptr noundef %60, ptr noundef %59)
  %62 = load ptr, ptr %9, align 8, !tbaa !11
  %63 = call i32 @symstreamcf_destroy(ptr noundef %62)
  %64 = load ptr, ptr %12, align 8, !tbaa !11
  %65 = call i32 @spgramcf_destroy(ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %66 = load float, ptr %6, align 4, !tbaa !9
  %67 = fsub float 1.000000e+00, %66
  %68 = fpext float %67 to double
  %69 = fmul double 5.000000e-01, %68
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = uitofp i32 %70 to float
  %72 = fpext float %71 to double
  %73 = fdiv double %69, %72
  %74 = fptrunc double %73 to float
  store float %74, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %75 = load float, ptr %6, align 4, !tbaa !9
  %76 = fadd float 1.000000e+00, %75
  %77 = fpext float %76 to double
  %78 = fmul double 5.000000e-01, %77
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = uitofp i32 %79 to float
  %81 = fpext float %80 to double
  %82 = fdiv double %78, %81
  %83 = fptrunc double %82 to float
  store float %83, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %20) #5
  %84 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i32 0, i32 0
  store float -5.000000e-01, ptr %84, align 8, !tbaa !15
  %85 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i32 0, i32 1
  %86 = load float, ptr %19, align 4, !tbaa !9
  %87 = fneg float %86
  store float %87, ptr %85, align 4, !tbaa !17
  %88 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i32 0, i32 2
  store float 0.000000e+00, ptr %88, align 8, !tbaa !18
  %89 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i32 0, i32 3
  store float -8.000000e+01, ptr %89, align 4, !tbaa !19
  %90 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i32 0, i32 4
  store i32 0, ptr %90, align 8, !tbaa !20
  %91 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i32 0, i32 5
  store i32 1, ptr %91, align 4, !tbaa !21
  %92 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i64 1
  %93 = getelementptr inbounds %struct.autotest_psd_s, ptr %92, i32 0, i32 0
  %94 = load float, ptr %18, align 4, !tbaa !9
  %95 = fneg float %94
  store float %95, ptr %93, align 8, !tbaa !15
  %96 = getelementptr inbounds %struct.autotest_psd_s, ptr %92, i32 0, i32 1
  %97 = load float, ptr %18, align 4, !tbaa !9
  store float %97, ptr %96, align 4, !tbaa !17
  %98 = getelementptr inbounds %struct.autotest_psd_s, ptr %92, i32 0, i32 2
  store float -1.000000e+00, ptr %98, align 8, !tbaa !18
  %99 = getelementptr inbounds %struct.autotest_psd_s, ptr %92, i32 0, i32 3
  store float 1.000000e+00, ptr %99, align 4, !tbaa !19
  %100 = getelementptr inbounds %struct.autotest_psd_s, ptr %92, i32 0, i32 4
  store i32 1, ptr %100, align 8, !tbaa !20
  %101 = getelementptr inbounds %struct.autotest_psd_s, ptr %92, i32 0, i32 5
  store i32 1, ptr %101, align 4, !tbaa !21
  %102 = getelementptr inbounds %struct.autotest_psd_s, ptr %20, i64 2
  %103 = getelementptr inbounds %struct.autotest_psd_s, ptr %102, i32 0, i32 0
  %104 = load float, ptr %19, align 4, !tbaa !9
  store float %104, ptr %103, align 8, !tbaa !15
  %105 = getelementptr inbounds %struct.autotest_psd_s, ptr %102, i32 0, i32 1
  store float 5.000000e-01, ptr %105, align 4, !tbaa !17
  %106 = getelementptr inbounds %struct.autotest_psd_s, ptr %102, i32 0, i32 2
  store float 0.000000e+00, ptr %106, align 8, !tbaa !18
  %107 = getelementptr inbounds %struct.autotest_psd_s, ptr %102, i32 0, i32 3
  store float -8.000000e+01, ptr %107, align 4, !tbaa !19
  %108 = getelementptr inbounds %struct.autotest_psd_s, ptr %102, i32 0, i32 4
  store i32 0, ptr %108, align 8, !tbaa !20
  %109 = getelementptr inbounds %struct.autotest_psd_s, ptr %102, i32 0, i32 5
  store i32 1, ptr %109, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 256, ptr %21) #5
  %110 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 0
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = load float, ptr %6, align 4, !tbaa !9
  %114 = fmul float %113, 1.000000e+02
  %115 = fptosi float %114 to i32
  %116 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %110, ptr noundef @.str, i32 noundef %111, i32 noundef %112, i32 noundef %115) #5
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = getelementptr inbounds [3 x %struct.autotest_psd_s], ptr %20, i64 0, i64 0
  %119 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %123

121:                                              ; preds = %56
  %122 = getelementptr inbounds [256 x i8], ptr %21, i64 0, i64 0
  br label %124

123:                                              ; preds = %56
  br label %124

124:                                              ; preds = %123, %121
  %125 = phi ptr [ %122, %121 ], [ null, %123 ]
  %126 = call i32 @liquid_autotest_validate_spectrum(ptr noundef %59, i32 noundef %117, ptr noundef %118, i32 noundef 3, ptr noundef %125)
  call void @llvm.lifetime.end.p0(i64 256, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %127 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %127)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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

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

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

declare ptr @spgramcf_create_default(i32 noundef) #2

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

declare i32 @symstreamcf_write_samples(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @spgramcf_write(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @spgramcf_get_psd(ptr noundef, ptr noundef) #2

declare i32 @symstreamcf_destroy(ptr noundef) #2

declare i32 @spgramcf_destroy(ptr noundef) #2

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

declare i32 @liquid_autotest_validate_spectrum(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: 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 willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }

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

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


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

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@.str = external hidden unnamed_addr constant [55 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @testbench_symstreamcf_psd(i32 noundef %0, i32 noundef %1, float noundef %2) local_unnamed_addr #0 {
  %4 = alloca [3 x %struct.autotest_psd_s], align 16
  %5 = alloca [256 x i8], align 16
  %6 = tail call ptr @symstreamcf_create_linear(i32 noundef 7, i32 noundef %0, i32 noundef %1, float noundef %2, i32 noundef 40) #5
  %7 = uitofp i32 %0 to float
  %sqrt = tail call float @llvm.sqrt.f32(float %7)
  %8 = fdiv float 1.000000e+00, %sqrt
  %9 = tail call i32 @symstreamcf_set_gain(ptr noundef %6, float noundef %8) #5
  %10 = mul i32 %0, 192000
  %11 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #5
  %12 = alloca [1337 x { float, float }], align 16
  %.not35 = icmp eq i32 %10, 0
  br i1 %.not35, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.034 = phi i32 [ %14, %.lr.ph ], [ 0, %3 ]
  %13 = call i32 @symstreamcf_write_samples(ptr noundef %6, ptr noundef nonnull %12, i32 noundef 1337) #5
  %14 = add i32 %.034, 1337
  %15 = call i32 @spgramcf_write(ptr noundef %11, ptr noundef nonnull %12, i32 noundef 1337) #5
  %16 = icmp ult i32 %14, %10
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %3
  %17 = alloca [2400 x float], align 16
  %18 = call i32 @spgramcf_get_psd(ptr noundef %11, ptr noundef nonnull %17) #5
  %19 = call i32 @symstreamcf_destroy(ptr noundef %6) #5
  %20 = call i32 @spgramcf_destroy(ptr noundef %11) #5
  %21 = fsub float 1.000000e+00, %2
  %22 = fpext float %21 to double
  %23 = fmul double %22, 5.000000e-01
  %24 = fpext float %7 to double
  %25 = fdiv double %23, %24
  %26 = fptrunc double %25 to float
  %27 = fadd float %2, 1.000000e+00
  %28 = fpext float %27 to double
  %29 = fmul double %28, 5.000000e-01
  %30 = fdiv double %29, %24
  %31 = fptrunc double %30 to float
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #5
  store float -5.000000e-01, ptr %4, align 16, !tbaa !7
  %32 = getelementptr inbounds i8, ptr %4, i64 4
  %33 = fneg float %31
  store float %33, ptr %32, align 4, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %4, i64 8
  store <2 x float> <float 0.000000e+00, float -8.000000e+01>, ptr %34, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 0, ptr %35, align 16, !tbaa !15
  %36 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 1, ptr %36, align 4, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %4, i64 24
  %38 = fneg float %26
  store float %38, ptr %37, align 8, !tbaa !7
  %39 = getelementptr inbounds i8, ptr %4, i64 28
  store float %26, ptr %39, align 4, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %4, i64 32
  store <2 x float> <float -1.000000e+00, float 1.000000e+00>, ptr %40, align 16, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %4, i64 40
  store i32 1, ptr %41, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 1, ptr %42, align 4, !tbaa !16
  %43 = getelementptr inbounds i8, ptr %4, i64 48
  store float %31, ptr %43, align 16, !tbaa !7
  %44 = getelementptr inbounds i8, ptr %4, i64 52
  store <2 x float> <float 5.000000e-01, float 0.000000e+00>, ptr %44, align 4, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %4, i64 60
  store float -8.000000e+01, ptr %45, align 4, !tbaa !17
  %46 = getelementptr inbounds i8, ptr %4, i64 64
  store i32 0, ptr %46, align 16, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %4, i64 68
  store i32 1, ptr %47, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #5
  %48 = fmul float %2, 1.000000e+02
  %49 = fptosi float %48 to i32
  %50 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %0, i32 noundef %1, i32 noundef %49) #5
  %51 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !18
  %.not = icmp eq i32 %51, 0
  %52 = select i1 %.not, ptr null, ptr %5
  %53 = call i32 @liquid_autotest_validate_spectrum(ptr noundef nonnull %17, i32 noundef 2400, ptr noundef nonnull %4, i32 noundef 3, ptr noundef %52) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  ret void
}

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

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

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #2

declare i32 @symstreamcf_write_samples(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @spgramcf_write(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @spgramcf_get_psd(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @symstreamcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare i32 @liquid_autotest_validate_spectrum(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass