; LLVM IR from NVIDIA/DALI :: dali/kernels/imgproc/resample (resampling_setup)

; 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.dali::vec.5" = type { %"struct.dali::vec_base.6" }
%"struct.dali::vec_base.6" = type { %union.anon.7 }
%union.anon.7 = type { [2 x i32] }
%"struct.dali::kernels::resampling::SampleDesc" = type { %"class.dali::DeviceArray", %"class.dali::DeviceArray.9", %"class.dali::DeviceArray.10", %"class.dali::DeviceArray.14", %"struct.dali::vec.15", %"struct.dali::vec.15", %"struct.dali::vec.19", i32, [2 x i8], [2 x %"struct.dali::kernels::ResamplingFilter"], %"class.dali::DeviceArray.23" }
%"class.dali::DeviceArray" = type { [3 x i64] }
%"class.dali::DeviceArray.9" = type { [3 x i64] }
%"class.dali::DeviceArray.10" = type { [3 x %"struct.dali::vec.11"] }
%"struct.dali::vec.11" = type { %"struct.dali::vec_base.12" }
%"struct.dali::vec_base.12" = type { %union.anon.13 }
%union.anon.13 = type { [1 x i64] }
%"class.dali::DeviceArray.14" = type { [3 x %"struct.dali::vec.5"] }
%"struct.dali::vec.15" = type { %"struct.dali::vec_base.16" }
%"struct.dali::vec_base.16" = type { %union.anon.17 }
%union.anon.17 = type { [2 x float] }
%"struct.dali::vec.19" = type { %"struct.dali::vec_base.20" }
%"struct.dali::vec_base.20" = type { %union.anon.21 }
%union.anon.21 = type { [2 x i8] }
%"struct.dali::kernels::ResamplingFilter" = type { ptr, i32, float, float }
%"class.dali::DeviceArray.23" = type { [2 x %"struct.dali::vec.5"] }
%"class.dali::kernels::resampling::SeparableResamplingSetup" = type { %"struct.dali::vec", [2 x i32], %"class.std::shared_ptr" }
%"struct.dali::vec" = type { %"struct.dali::vec_base" }
%"struct.dali::vec_base" = type { %union.anon }
%union.anon = type { [3 x i32] }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4dali6volumeINS_3vecILi2EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm2EEixEl(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi2EaEixEi(ptr noundef nonnull align 1 dereferenceable(2), i32 noundef) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4dali7kernels10resampling24SeparableResamplingSetupILi2EE18ComputeBlockLayoutERNS1_10SampleDescILi2EEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(192) %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.dali::vec.5", align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %57, %2
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 2
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %60

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc", ptr %16, i32 0, i32 6
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi2EaEixEi(ptr noundef nonnull align 1 dereferenceable(2) %17, i32 noundef %18)
  %20 = load i8, ptr %19, align 1, !tbaa !11
  %21 = sext i8 %20 to i32
  store i32 %21, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc", ptr %22, i32 0, i32 3
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = add nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(24) %23, i64 noundef %26) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %27, i64 8, i1 false)
  %28 = getelementptr inbounds %"class.dali::kernels::resampling::SeparableResamplingSetup", ptr %10, i32 0, i32 0
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %28, i32 noundef %29)
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %32)
  store i32 %31, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %34 = call noundef i64 @_ZN4dali6volumeINS_3vecILi2EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(8) %7)
  store i64 %34, ptr %8, align 8, !tbaa !12
  %35 = load i64, ptr %8, align 8, !tbaa !12
  %36 = icmp sgt i64 %35, 2048
  br i1 %36, label %37, label %51

37:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %38 = load i64, ptr %8, align 8, !tbaa !12
  %39 = call noundef i64 @_ZN4dali8div_ceilElm(i64 noundef %38, i64 noundef 2048)
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = sub nsw i32 1, %41
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %42)
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = sdiv i32 %44, %45
  %47 = call noundef i32 @_ZN4dali8align_upIiiEET_S1_T0_(i32 noundef %46, i32 noundef 32)
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = sub nsw i32 1, %48
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef %49)
  store i32 %47, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %51

51:                                               ; preds = %37, %15
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc", ptr %52, i32 0, i32 10
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm2EEixEl(ptr noundef nonnull align 4 dereferenceable(16) %53, i64 noundef %55) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %7, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %57

57:                                               ; preds = %51
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %5, align 4, !tbaa !9
  br label %11, !llvm.loop !14

60:                                               ; preds = %14
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4dali8div_ceilElm(i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4dali8align_upIiiEET_S1_T0_(i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 #2 = { mustprogress 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 #3 = { alwaysinline mustprogress 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress 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 }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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.dali::vec.5" = type { %"struct.dali::vec_base.6" }
%"struct.dali::vec_base.6" = type { %union.anon.7 }
%union.anon.7 = type { [2 x i32] }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4dali6volumeINS_3vecILi2EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm2EEixEl(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi2EaEixEi(ptr noundef nonnull align 1 dereferenceable(2), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4dali7kernels10resampling24SeparableResamplingSetupILi2EE18ComputeBlockLayoutERNS1_10SampleDescILi2EEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(192) %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %"struct.dali::vec.5", align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 112
  %5 = getelementptr inbounds i8, ptr %1, i64 72
  %6 = getelementptr inbounds i8, ptr %1, i64 176
  %7 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi2EaEixEi(ptr noundef nonnull align 1 dereferenceable(2) %4, i32 noundef 0)
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %9 = sext i8 %8 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %10 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(24) %5, i64 noundef 1) #5
  %11 = load i64, ptr %10, align 4
  store i64 %11, ptr %3, align 8
  %12 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %9)
  %13 = load i32, ptr %12, align 4, !tbaa !8
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %9)
  store i32 %13, ptr %14, align 4, !tbaa !8
  %15 = call noundef i64 @_ZN4dali6volumeINS_3vecILi2EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %16 = icmp sgt i64 %15, 2048
  br i1 %16, label %17, label %26

17:                                               ; preds = %2
  %18 = call noundef i64 @_ZN4dali8div_ceilElm(i64 noundef %15, i64 noundef 2048)
  %19 = trunc i64 %18 to i32
  %20 = sub nsw i32 1, %9
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %20)
  %22 = load i32, ptr %21, align 4, !tbaa !8
  %23 = sdiv i32 %22, %19
  %24 = call noundef i32 @_ZN4dali8align_upIiiEET_S1_T0_(i32 noundef %23, i32 noundef 32)
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %20)
  store i32 %24, ptr %25, align 4, !tbaa !8
  br label %26

26:                                               ; preds = %17, %2
  %27 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm2EEixEl(ptr noundef nonnull align 4 dereferenceable(16) %6, i64 noundef 0) #5
  %28 = load i64, ptr %3, align 8
  store i64 %28, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi2EaEixEi(ptr noundef nonnull align 1 dereferenceable(2) %4, i32 noundef 1)
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = sext i8 %30 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %32 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(24) %5, i64 noundef 2) #5
  %33 = load i64, ptr %32, align 4
  store i64 %33, ptr %3, align 8
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %31)
  %35 = load i32, ptr %34, align 4, !tbaa !8
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %31)
  store i32 %35, ptr %36, align 4, !tbaa !8
  %37 = call noundef i64 @_ZN4dali6volumeINS_3vecILi2EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %38 = icmp sgt i64 %37, 2048
  br i1 %38, label %39, label %48

39:                                               ; preds = %26
  %40 = call noundef i64 @_ZN4dali8div_ceilElm(i64 noundef %37, i64 noundef 2048)
  %41 = trunc i64 %40 to i32
  %42 = sub nsw i32 1, %31
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %42)
  %44 = load i32, ptr %43, align 4, !tbaa !8
  %45 = sdiv i32 %44, %41
  %46 = call noundef i32 @_ZN4dali8align_upIiiEET_S1_T0_(i32 noundef %45, i32 noundef 32)
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi2EiEixEi(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %42)
  store i32 %46, ptr %47, align 4, !tbaa !8
  br label %48

48:                                               ; preds = %39, %26
  %49 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4dali11DeviceArrayINS_3vecILi2EiEELm2EEixEl(ptr noundef nonnull align 4 dereferenceable(16) %6, i64 noundef 1) #5
  %50 = load i64, ptr %3, align 8
  store i64 %50, ptr %49, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4dali8div_ceilElm(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4dali8align_upIiiEET_S1_T0_(i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 #2 = { mustprogress 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 #3 = { alwaysinline mustprogress 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 #4 = { mustprogress 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 }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass