; LLVM IR from NVIDIA/DALI :: dali/operators/image/resize (resampling_attr)

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

%"class.dali::span" = type { ptr, i64 }
%"struct.dali::kernels::FilterDesc" = type { i8, i8, float }
%"class.dali::ResamplingFilterAttr" = type <{ %"class.std::vector.28", %"class.std::vector.28", %"class.std::vector.33", %"class.std::vector.33", %"class.std::vector.33", i32, i8, [3 x i8] }>
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<dali::kernels::ResamplingFilterType, std::allocator<dali::kernels::ResamplingFilterType>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::kernels::ResamplingFilterType, std::allocator<dali::kernels::ResamplingFilterType>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::kernels::ResamplingFilterType, std::allocator<dali::kernels::ResamplingFilterType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::kernels::ResamplingFilterType, std::allocator<dali::kernels::ResamplingFilterType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<dali::DALIInterpType, std::allocator<dali::DALIInterpType>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::DALIInterpType, std::allocator<dali::DALIInterpType>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::DALIInterpType, std::allocator<dali::DALIInterpType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::DALIInterpType, std::allocator<dali::DALIInterpType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::kernels::ResamplingParams" = type { %"struct.dali::kernels::FilterDesc", %"struct.dali::kernels::FilterDesc", i32, %"struct.dali::kernels::ResamplingParams::ROI" }
%"struct.dali::kernels::ResamplingParams::ROI" = type { i8, float, float }

@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi = external hidden unnamed_addr constant [95 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(32) ptr @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 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) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali7kernels10FilterDescC2ENS0_20ResamplingFilterTypeEbf(ptr noundef nonnull align 4 dereferenceable(8), i8 noundef zeroext, i1 noundef zeroext, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi(ptr noundef nonnull align 8 dereferenceable(125) %0, ptr %1, i64 %2, i32 noundef %3) #3 align 2 {
  %5 = alloca %"class.dali::span", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.dali::kernels::FilterDesc", align 4
  %14 = alloca %"struct.dali::kernels::FilterDesc", align 4
  %15 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  store ptr %1, ptr %15, align 8
  %16 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  store i64 %2, ptr %16, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %3, ptr %7, align 4, !tbaa !9
  %17 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %18 = call noundef i64 @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = sdiv i64 %18, %20
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %8, align 4, !tbaa !9
  %23 = getelementptr inbounds %"class.dali::ResamplingFilterAttr", ptr %17, i32 0, i32 0
  %24 = call noundef i64 @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %25 = trunc i64 %24 to i32
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %4
  br label %31

29:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.18, i32 noundef 136, ptr noundef @__PRETTY_FUNCTION__._ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi) #6
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = getelementptr inbounds %"class.dali::ResamplingFilterAttr", ptr %17, i32 0, i32 1
  %33 = call noundef i64 @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  %34 = trunc i64 %33 to i32
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  br label %40

38:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.18, i32 noundef 137, ptr noundef @__PRETTY_FUNCTION__._ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi) #6
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %80, %40
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %83

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %74, %46
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %79

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %53 = getelementptr inbounds %"class.dali::ResamplingFilterAttr", ptr %17, i32 0, i32 0
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55) #5
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = getelementptr inbounds %"class.dali::ResamplingFilterAttr", ptr %17, i32 0, i32 6
  %59 = load i8, ptr %58, align 4, !tbaa !13, !range !25, !noundef !26
  %60 = trunc i8 %59 to i1
  call void @_ZN4dali7kernels10FilterDescC2ENS0_20ResamplingFilterTypeEbf(ptr noundef nonnull align 4 dereferenceable(8) %13, i8 noundef zeroext %57, i1 noundef zeroext %60, float noundef 0.000000e+00)
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %62)
  %64 = getelementptr inbounds %"struct.dali::kernels::ResamplingParams", ptr %63, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %65 = getelementptr inbounds %"class.dali::ResamplingFilterAttr", ptr %17, i32 0, i32 1
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #5
  %69 = load i8, ptr %68, align 1, !tbaa !11
  call void @_ZN4dali7kernels10FilterDescC2ENS0_20ResamplingFilterTypeEbf(ptr noundef nonnull align 4 dereferenceable(8) %14, i8 noundef zeroext %69, i1 noundef zeroext false, float noundef 0.000000e+00)
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %71)
  %73 = getelementptr inbounds %"struct.dali::kernels::ResamplingParams", ptr %72, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %74

74:                                               ; preds = %52
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %10, align 4, !tbaa !9
  br label %47, !llvm.loop !31

79:                                               ; preds = %51
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %9, align 4, !tbaa !9
  br label %41, !llvm.loop !33

83:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN4dali7kernels20ResamplingFilterTypeE", !7, i64 0}
!13 = !{!14, !24, i64 124}
!14 = !{!"_ZTSN4dali20ResamplingFilterAttrE", !15, i64 0, !15, i64 24, !19, i64 48, !19, i64 72, !19, i64 96, !23, i64 120, !24, i64 124}
!15 = !{!"_ZTSSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN4dali7kernels20ResamplingFilterTypeESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4dali7kernels20ResamplingFilterTypeESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN4dali7kernels20ResamplingFilterTypeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIN4dali14DALIInterpTypeESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN4dali14DALIInterpTypeESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN4dali14DALIInterpTypeESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN4dali14DALIInterpTypeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTS13_DALIDataType", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{i64 0, i64 1, !11, i64 1, i64 1, !28, i64 4, i64 4, !29}
!28 = !{!24, !24, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"float", !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


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

%"class.dali::span" = type { ptr, i64 }
%"struct.dali::kernels::FilterDesc" = type { i8, i8, float }

@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi = external hidden unnamed_addr constant [95 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(32) ptr @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali7kernels10FilterDescC2ENS0_20ResamplingFilterTypeEbf(ptr noundef nonnull align 4 dereferenceable(8), i8 noundef zeroext, i1 noundef zeroext, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi(ptr noundef nonnull align 8 dereferenceable(125) %0, ptr %1, i64 %2, i32 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %"class.dali::span", align 8
  %6 = alloca %"struct.dali::kernels::FilterDesc", align 8
  %7 = alloca %"struct.dali::kernels::FilterDesc", align 8
  store ptr %1, ptr %5, align 8
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 %2, ptr %8, align 8
  %9 = call noundef i64 @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #3
  %10 = sext i32 %3 to i64
  %11 = sdiv i64 %9, %10
  %12 = trunc i64 %11 to i32
  %13 = call noundef i64 @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %14 = trunc i64 %13 to i32
  %15 = icmp eq i32 %14, %12
  br i1 %15, label %17, label %16

16:                                               ; preds = %4
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.18, i32 noundef 136, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi) #4
  unreachable

17:                                               ; preds = %4
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = call noundef i64 @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  %20 = trunc i64 %19 to i32
  %21 = icmp eq i32 %20, %12
  br i1 %21, label %.preheader17, label %39

.preheader17:                                     ; preds = %17
  %22 = icmp sgt i32 %12, 0
  br i1 %22, label %.preheader.lr.ph, label %._crit_edge22

.preheader.lr.ph:                                 ; preds = %.preheader17
  %23 = icmp sgt i32 %3, 0
  %24 = getelementptr inbounds i8, ptr %0, i64 124
  br i1 %23, label %.preheader.us.preheader, label %._crit_edge22

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count = and i64 %11, 2147483647
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv25 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next26, %._crit_edge.us ]
  %.01421.us = phi i32 [ 0, %.preheader.us.preheader ], [ %26, %._crit_edge.us ]
  %25 = sext i32 %.01421.us to i64
  %26 = add i32 %.01421.us, %3
  br label %27

27:                                               ; preds = %.preheader.us, %27
  %indvars.iv = phi i64 [ %25, %.preheader.us ], [ %indvars.iv.next, %27 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv25) #3
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %30 = load i8, ptr %24, align 4, !tbaa !9, !range !22, !noundef !23
  %31 = trunc nuw i8 %30 to i1
  call void @_ZN4dali7kernels10FilterDescC2ENS0_20ResamplingFilterTypeEbf(ptr noundef nonnull align 4 dereferenceable(8) %6, i8 noundef zeroext %29, i1 noundef zeroext %31, float noundef 0.000000e+00)
  %32 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %indvars.iv)
  %33 = load i64, ptr %6, align 8
  store i64 %33, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv25) #3
  %35 = load i8, ptr %34, align 1, !tbaa !5
  call void @_ZN4dali7kernels10FilterDescC2ENS0_20ResamplingFilterTypeEbf(ptr noundef nonnull align 4 dereferenceable(8) %7, i8 noundef zeroext %35, i1 noundef zeroext false, float noundef 0.000000e+00)
  %36 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNK4dali4spanINS_7kernels16ResamplingParamsELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %indvars.iv)
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load i64, ptr %7, align 8
  store i64 %38, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %26, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge.us, label %27, !llvm.loop !24

._crit_edge.us:                                   ; preds = %27
  %indvars.iv.next26 = add nuw nsw i64 %indvars.iv25, 1
  %exitcond28.not = icmp eq i64 %indvars.iv.next26, %wide.trip.count
  br i1 %exitcond28.not, label %._crit_edge22, label %.preheader.us, !llvm.loop !26

39:                                               ; preds = %17
  call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.18, i32 noundef 137, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4dali20ResamplingFilterAttr17ApplyFilterParamsENS_4spanINS_7kernels16ResamplingParamsELln1EEEi) #4
  unreachable

._crit_edge22:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %.preheader17
  ret void
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn 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 = { nounwind }
attributes #4 = { noreturn 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 = !{!"_ZTSN4dali7kernels20ResamplingFilterTypeE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !21, i64 124}
!10 = !{!"_ZTSN4dali20ResamplingFilterAttrE", !11, i64 0, !11, i64 24, !16, i64 48, !16, i64 72, !16, i64 96, !20, i64 120, !21, i64 124}
!11 = !{!"_ZTSSt6vectorIN4dali7kernels20ResamplingFilterTypeESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN4dali7kernels20ResamplingFilterTypeESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN4dali7kernels20ResamplingFilterTypeESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN4dali7kernels20ResamplingFilterTypeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN4dali14DALIInterpTypeESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN4dali14DALIInterpTypeESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN4dali14DALIInterpTypeESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN4dali14DALIInterpTypeESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!"_ZTS13_DALIDataType", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass