; 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" = type { %"struct.dali::vec_base" }
%"struct.dali::vec_base" = type { %union.anon }
%union.anon = type { [3 x i32] }
%"struct.dali::kernels::resampling::SampleDesc.43" = type <{ %"class.dali::DeviceArray.44", %"class.dali::DeviceArray.45", %"class.dali::DeviceArray.46", %"class.dali::DeviceArray.51", %"struct.dali::vec.52", %"struct.dali::vec.52", %"struct.dali::vec.56", i8, i32, [3 x i8], [5 x i8], [3 x %"struct.dali::kernels::ResamplingFilter"], %"class.dali::DeviceArray.60", [4 x i8] }>
%"class.dali::DeviceArray.44" = type { [4 x i64] }
%"class.dali::DeviceArray.45" = type { [4 x i64] }
%"class.dali::DeviceArray.46" = type { [4 x %"struct.dali::vec.47"] }
%"struct.dali::vec.47" = type { %"struct.dali::vec_base.48" }
%"struct.dali::vec_base.48" = type { %union.anon.49 }
%union.anon.49 = type { [2 x i64] }
%"class.dali::DeviceArray.51" = type { [4 x %"struct.dali::vec"] }
%"struct.dali::vec.52" = type { %"struct.dali::vec_base.53" }
%"struct.dali::vec_base.53" = type { %union.anon.54 }
%union.anon.54 = type { [3 x float] }
%"struct.dali::vec.56" = type { %"struct.dali::vec_base.57" }
%"struct.dali::vec_base.57" = type { %union.anon.58 }
%union.anon.58 = type { [3 x i8] }
%"struct.dali::kernels::ResamplingFilter" = type { ptr, i32, float, float }
%"class.dali::DeviceArray.60" = type { [3 x %"struct.dali::vec"] }
%"class.dali::kernels::resampling::SeparableResamplingSetup.32" = type { %"struct.dali::vec", [3 x i32], %"class.std::shared_ptr" }
%"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 }
%struct.anon = type { i32, i32, i32 }

; 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: 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) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali7kernels10resampling10SampleDescILi3EE9out_shapeEv(ptr noundef nonnull align 8 dereferenceable(324)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm4EEixEl(ptr noundef nonnull align 4 dereferenceable(48), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36), i64 noundef) #3 align 2

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

; 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) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4dali7kernels10resampling24SeparableResamplingSetupILi3EE18ComputeBlockLayoutERNS1_10SampleDescILi3EEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(324) %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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.dali::vec", align 4
  %10 = alloca %"struct.dali::vec", align 4
  %11 = alloca %"struct.dali::vec", align 4
  %12 = alloca %"struct.dali::vec", align 4
  %13 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali7kernels10resampling10SampleDescILi3EE9out_shapeEv(ptr noundef nonnull align 8 dereferenceable(324) %15)
  %17 = call noundef i64 @_ZN4dali6volumeINS_3vecILi3EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(12) %16)
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %19, label %35

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %31, %19
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 3
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc.43", ptr %25, i32 0, i32 12
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %26, i64 noundef %28) #6
  %30 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali3vecILi3EiEaSIiEENSt9enable_ifIXsr9is_scalarIT_EE5valueERS1_E4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %31

31:                                               ; preds = %24
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %5, align 4, !tbaa !9
  br label %20, !llvm.loop !11

34:                                               ; preds = %23
  br label %106

35:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %103, %35
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = icmp slt i32 %37, 3
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %106

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc.43", ptr %41, i32 0, i32 6
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi3EaEixEi(ptr noundef nonnull align 1 dereferenceable(3) %42, i32 noundef %43)
  %45 = load i8, ptr %44, align 1, !tbaa !13
  %46 = sext i8 %45 to i32
  store i32 %46, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc.43", ptr %47, i32 0, i32 3
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm4EEixEl(ptr noundef nonnull align 4 dereferenceable(48) %48, i64 noundef %51) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %52, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %9, i64 12, i1 false)
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 2
  br i1 %54, label %55, label %74

55:                                               ; preds = %40
  %56 = getelementptr inbounds %"class.dali::kernels::resampling::SeparableResamplingSetup.32", ptr %14, i32 0, i32 0
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %56, i32 noundef %57)
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef %60)
  store i32 %59, ptr %61, align 4, !tbaa !9
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0)
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1)
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = mul nsw i32 %63, %65
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc.43", ptr %67, i32 0, i32 8
  %69 = load i32, ptr %68, align 4, !tbaa !14
  %70 = mul nsw i32 %66, %69
  %71 = sdiv i32 2048, %70
  %72 = getelementptr inbounds %"struct.dali::vec_base", ptr %10, i32 0, i32 0
  %73 = getelementptr inbounds %struct.anon, ptr %72, i32 0, i32 2
  store i32 %71, ptr %73, align 4, !tbaa !13
  br label %93

74:                                               ; preds = %40
  %75 = getelementptr inbounds %"class.dali::kernels::resampling::SeparableResamplingSetup.32", ptr %14, i32 0, i32 0
  %76 = getelementptr inbounds %"struct.dali::vec_base", ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.anon, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = getelementptr inbounds %"struct.dali::vec_base", ptr %10, i32 0, i32 0
  %80 = getelementptr inbounds %struct.anon, ptr %79, i32 0, i32 2
  store i32 %78, ptr %80, align 4, !tbaa !13
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0)
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = mul nsw i32 %82, %84
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc.43", ptr %86, i32 0, i32 8
  %88 = load i32, ptr %87, align 4, !tbaa !14
  %89 = mul nsw i32 %85, %88
  %90 = sdiv i32 2048, %89
  %91 = getelementptr inbounds %"struct.dali::vec_base", ptr %10, i32 0, i32 0
  %92 = getelementptr inbounds %struct.anon, ptr %91, i32 0, i32 1
  store i32 %90, ptr %92, align 4, !tbaa !13
  br label %93

93:                                               ; preds = %74, %55
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  call void @_ZN4dali3vecILi3EiEC2IJiiiEvEEDpT_(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %94 = call { i64, i32 } @_ZN4dali5clampILi3EiEENS_3vecIXT_ET0_EERKS3_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %95 = getelementptr inbounds %"struct.dali::vec", ptr %11, i32 0, i32 0
  %96 = getelementptr inbounds %"struct.dali::vec_base", ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %union.anon, ptr %96, i32 0, i32 0
  store { i64, i32 } %94, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %11, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.dali::kernels::resampling::SampleDesc.43", ptr %98, i32 0, i32 12
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %99, i64 noundef %101) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 4 %10, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %103

103:                                              ; preds = %93
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %7, align 4, !tbaa !9
  br label %36, !llvm.loop !25

106:                                              ; preds = %39, %34
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZN4dali5clampILi3EiEENS_3vecIXT_ET0_EERKS3_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali3vecILi3EiEC2IJiiiEvEEDpT_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !10, i64 204}
!15 = !{!"_ZTSN4dali7kernels10resampling10SampleDescILi3EEE", !16, i64 0, !17, i64 32, !18, i64 64, !19, i64 128, !20, i64 176, !20, i64 188, !22, i64 200, !10, i64 204, !7, i64 208, !7, i64 216, !24, i64 288}
!16 = !{!"_ZTSN4dali11DeviceArrayImLm4EEE", !7, i64 0}
!17 = !{!"_ZTSN4dali11DeviceArrayIlLm4EEE", !7, i64 0}
!18 = !{!"_ZTSN4dali11DeviceArrayINS_3vecILi2ElEELm4EEE", !7, i64 0}
!19 = !{!"_ZTSN4dali11DeviceArrayINS_3vecILi3EiEELm4EEE", !7, i64 0}
!20 = !{!"_ZTSN4dali3vecILi3EfEE", !21, i64 0}
!21 = !{!"_ZTSN4dali8vec_baseILi3EfEE", !7, i64 0}
!22 = !{!"_ZTSN4dali3vecILi3EaEE", !23, i64 0}
!23 = !{!"_ZTSN4dali8vec_baseILi3EaEE", !7, i64 0}
!24 = !{!"_ZTSN4dali11DeviceArrayINS_3vecILi3EiEELm3EEE", !7, i64 0}
!25 = distinct !{!25, !12}


; 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" = type { %"struct.dali::vec_base" }
%"struct.dali::vec_base" = type { %union.anon }
%union.anon = type { [3 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: mustprogress 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) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali7kernels10resampling10SampleDescILi3EE9out_shapeEv(ptr noundef nonnull align 8 dereferenceable(324)) local_unnamed_addr #3 align 2

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

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

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

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

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

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4dali7kernels10resampling24SeparableResamplingSetupILi3EE18ComputeBlockLayoutERNS1_10SampleDescILi3EEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(324) %1) local_unnamed_addr #5 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca %"struct.dali::vec", align 4
  %5 = alloca %"struct.dali::vec", align 8
  %6 = alloca %"struct.dali::vec", align 4
  %7 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali7kernels10resampling10SampleDescILi3EE9out_shapeEv(ptr noundef nonnull align 8 dereferenceable(324) %1)
  %8 = tail call noundef i64 @_ZN4dali6volumeINS_3vecILi3EiEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %.preheader, label %.preheader21

.preheader21:                                     ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 200
  %11 = getelementptr inbounds i8, ptr %1, i64 128
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  %14 = getelementptr inbounds i8, ptr %1, i64 204
  %15 = getelementptr inbounds i8, ptr %5, i64 4
  %16 = getelementptr inbounds i8, ptr %1, i64 288
  %17 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi3EaEixEi(ptr noundef nonnull align 1 dereferenceable(3) %10, i32 noundef 0)
  %18 = load i8, ptr %17, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %19 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm4EEixEl(ptr noundef nonnull align 4 dereferenceable(48) %11, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false)
  %20 = icmp slt i8 %18, 2
  br i1 %20, label %28, label %33

.preheader:                                       ; preds = %2
  %21 = getelementptr inbounds i8, ptr %1, i64 288
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !8
  %22 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %21, i64 noundef 0) #6
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali3vecILi3EiEaSIiEENSt9enable_ifIXsr9is_scalarIT_EE5valueERS1_E4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !8
  %24 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %21, i64 noundef 1) #6
  %25 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali3vecILi3EiEaSIiEENSt9enable_ifIXsr9is_scalarIT_EE5valueERS1_E4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !8
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %21, i64 noundef 2) #6
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali3vecILi3EiEaSIiEENSt9enable_ifIXsr9is_scalarIT_EE5valueERS1_E4typeERKS4_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %.loopexit

28:                                               ; preds = %.preheader21
  %29 = sext i8 %18 to i32
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %29)
  %31 = load i32, ptr %30, align 4, !tbaa !8
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %29)
  store i32 %31, ptr %32, align 4, !tbaa !8
  br label %35

33:                                               ; preds = %.preheader21
  %34 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %34, ptr %13, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %33, %28
  %.sink33 = phi i32 [ 2, %33 ], [ 1, %28 ]
  %.sink28 = phi ptr [ %15, %33 ], [ %13, %28 ]
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  %37 = load i32, ptr %36, align 4, !tbaa !8
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %.sink33)
  %39 = load i32, ptr %38, align 4, !tbaa !8
  %40 = mul nsw i32 %39, %37
  %41 = load i32, ptr %14, align 4, !tbaa !10
  %42 = mul nsw i32 %40, %41
  %43 = sdiv i32 2048, %42
  store i32 %43, ptr %.sink28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN4dali3vecILi3EiEC2IJiiiEvEEDpT_(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %44 = call { i64, i32 } @_ZN4dali5clampILi3EiEENS_3vecIXT_ET0_EERKS3_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %.fca.0.extract = extractvalue { i64, i32 } %44, 0
  %.fca.1.extract = extractvalue { i64, i32 } %44, 1
  store i64 %.fca.0.extract, ptr %5, align 8
  store i32 %.fca.1.extract, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %45 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %16, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 8 dereferenceable(12) %5, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi3EaEixEi(ptr noundef nonnull align 1 dereferenceable(3) %10, i32 noundef 1)
  %47 = load i8, ptr %46, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm4EEixEl(ptr noundef nonnull align 4 dereferenceable(48) %11, i64 noundef 2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %48, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false)
  %49 = icmp slt i8 %47, 2
  br i1 %49, label %52, label %50

50:                                               ; preds = %35
  %51 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %51, ptr %13, align 8, !tbaa !5
  br label %57

52:                                               ; preds = %35
  %53 = sext i8 %47 to i32
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %53)
  %55 = load i32, ptr %54, align 4, !tbaa !8
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %53)
  store i32 %55, ptr %56, align 4, !tbaa !8
  br label %57

57:                                               ; preds = %52, %50
  %.sink39 = phi i32 [ 1, %52 ], [ 2, %50 ]
  %.sink34 = phi ptr [ %13, %52 ], [ %15, %50 ]
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %.sink39)
  %61 = load i32, ptr %60, align 4, !tbaa !8
  %62 = mul nsw i32 %61, %59
  %63 = load i32, ptr %14, align 4, !tbaa !10
  %64 = mul nsw i32 %62, %63
  %65 = sdiv i32 2048, %64
  store i32 %65, ptr %.sink34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN4dali3vecILi3EiEC2IJiiiEvEEDpT_(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %66 = call { i64, i32 } @_ZN4dali5clampILi3EiEENS_3vecIXT_ET0_EERKS3_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %.fca.0.extract.1 = extractvalue { i64, i32 } %66, 0
  %.fca.1.extract.1 = extractvalue { i64, i32 } %66, 1
  store i64 %.fca.0.extract.1, ptr %5, align 8
  store i32 %.fca.1.extract.1, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %67 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %16, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 8 dereferenceable(12) %5, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali3vecILi3EaEixEi(ptr noundef nonnull align 1 dereferenceable(3) %10, i32 noundef 2)
  %69 = load i8, ptr %68, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %70 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm4EEixEl(ptr noundef nonnull align 4 dereferenceable(48) %11, i64 noundef 3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %70, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false)
  %71 = icmp slt i8 %69, 2
  br i1 %71, label %74, label %72

72:                                               ; preds = %57
  %73 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %73, ptr %13, align 8, !tbaa !5
  br label %.loopexit.loopexit25

74:                                               ; preds = %57
  %75 = sext i8 %69 to i32
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %75)
  %77 = load i32, ptr %76, align 4, !tbaa !8
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %75)
  store i32 %77, ptr %78, align 4, !tbaa !8
  br label %.loopexit.loopexit25

.loopexit.loopexit25:                             ; preds = %74, %72
  %.sink45 = phi i32 [ 1, %74 ], [ 2, %72 ]
  %.sink40 = phi ptr [ %13, %74 ], [ %15, %72 ]
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  %80 = load i32, ptr %79, align 4, !tbaa !8
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4dali3vecILi3EiEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %.sink45)
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = mul nsw i32 %82, %80
  %84 = load i32, ptr %14, align 4, !tbaa !10
  %85 = mul nsw i32 %83, %84
  %86 = sdiv i32 2048, %85
  store i32 %86, ptr %.sink40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN4dali3vecILi3EiEC2IJiiiEvEEDpT_(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %87 = call { i64, i32 } @_ZN4dali5clampILi3EiEENS_3vecIXT_ET0_EERKS3_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %.fca.0.extract.2 = extractvalue { i64, i32 } %87, 0
  %.fca.1.extract.2 = extractvalue { i64, i32 } %87, 1
  store i64 %.fca.0.extract.2, ptr %5, align 8
  store i32 %.fca.1.extract.2, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4dali11DeviceArrayINS_3vecILi3EiEELm3EEixEl(ptr noundef nonnull align 4 dereferenceable(36) %16, i64 noundef 2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %88, ptr noundef nonnull align 8 dereferenceable(12) %5, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit25, %.preheader
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZN4dali5clampILi3EiEENS_3vecIXT_ET0_EERKS3_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali3vecILi3EiEC2IJiiiEvEEDpT_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 204}
!11 = !{!"_ZTSN4dali7kernels10resampling10SampleDescILi3EEE", !12, i64 0, !13, i64 32, !14, i64 64, !15, i64 128, !16, i64 176, !16, i64 188, !18, i64 200, !9, i64 204, !6, i64 208, !6, i64 216, !20, i64 288}
!12 = !{!"_ZTSN4dali11DeviceArrayImLm4EEE", !6, i64 0}
!13 = !{!"_ZTSN4dali11DeviceArrayIlLm4EEE", !6, i64 0}
!14 = !{!"_ZTSN4dali11DeviceArrayINS_3vecILi2ElEELm4EEE", !6, i64 0}
!15 = !{!"_ZTSN4dali11DeviceArrayINS_3vecILi3EiEELm4EEE", !6, i64 0}
!16 = !{!"_ZTSN4dali3vecILi3EfEE", !17, i64 0}
!17 = !{!"_ZTSN4dali8vec_baseILi3EfEE", !6, i64 0}
!18 = !{!"_ZTSN4dali3vecILi3EaEE", !19, i64 0}
!19 = !{!"_ZTSN4dali8vec_baseILi3EaEE", !6, i64 0}
!20 = !{!"_ZTSN4dali11DeviceArrayINS_3vecILi3EiEELm3EEE", !6, i64 0}


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