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

; 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::kernels::ResamplingFilter" = type { ptr, i32, float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali7kernels26InitializeResamplingFilterEPiPfiffRKNS0_16ResamplingFilterE(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !11
  store float %4, ptr %11, align 4, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !5
  %24 = load float, ptr %11, align 4, !tbaa !11
  %25 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %24, float -5.000000e-01)
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.dali::kernels::ResamplingFilter", ptr %26, i32 0, i32 2
  %28 = load float, ptr %27, align 4, !tbaa !13
  %29 = fsub float %25, %28
  %30 = load float, ptr %10, align 4, !tbaa !11
  %31 = fadd float %30, %29
  store float %31, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = call noundef i32 @_ZNK4dali7kernels16ResamplingFilter7supportEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  store i32 %33, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %114, %6
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %117

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = sitofp i32 %40 to float
  %42 = load float, ptr %11, align 4, !tbaa !11
  %43 = load float, ptr %10, align 4, !tbaa !11
  %44 = call float @llvm.fmuladd.f32(float %41, float %42, float %43)
  store float %44, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %45 = load float, ptr %16, align 4, !tbaa !11
  %46 = call float @llvm.ceil.f32(float %45)
  %47 = fptosi float %46 to i32
  store i32 %47, ptr %17, align 4, !tbaa !9
  %48 = load i32, ptr %17, align 4, !tbaa !9
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %49, i64 %51
  store i32 %48, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %53 = load i32, ptr %17, align 4, !tbaa !9
  %54 = sitofp i32 %53 to float
  %55 = load float, ptr %16, align 4, !tbaa !11
  %56 = fsub float %54, %55
  store float %56, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store float 0.000000e+00, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %85, %39
  %58 = load i32, ptr %21, align 4, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %88

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load float, ptr %18, align 4, !tbaa !11
  %65 = load i32, ptr %21, align 4, !tbaa !9
  %66 = sitofp i32 %65 to float
  %67 = fadd float %64, %66
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.dali::kernels::ResamplingFilter", ptr %68, i32 0, i32 3
  %70 = load float, ptr %69, align 8, !tbaa !15
  %71 = fmul float %67, %70
  %72 = call noundef float @_ZNK4dali7kernels16ResamplingFilterclEf(ptr noundef nonnull align 8 dereferenceable(24) %63, float noundef %71)
  store float %72, ptr %22, align 4, !tbaa !11
  %73 = load float, ptr %22, align 4, !tbaa !11
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = mul nsw i32 %75, %76
  %78 = load i32, ptr %21, align 4, !tbaa !9
  %79 = add nsw i32 %77, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds float, ptr %74, i64 %80
  store float %73, ptr %81, align 4, !tbaa !11
  %82 = load float, ptr %22, align 4, !tbaa !11
  %83 = load float, ptr %19, align 4, !tbaa !11
  %84 = fadd float %83, %82
  store float %84, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %85

85:                                               ; preds = %62
  %86 = load i32, ptr %21, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %21, align 4, !tbaa !9
  br label %57, !llvm.loop !16

88:                                               ; preds = %61
  %89 = load float, ptr %19, align 4, !tbaa !11
  %90 = fcmp une float %89, 0.000000e+00
  br i1 %90, label %91, label %113

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %109, %91
  %93 = load i32, ptr %23, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %112

97:                                               ; preds = %92
  %98 = load float, ptr %19, align 4, !tbaa !11
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = mul nsw i32 %100, %101
  %103 = load i32, ptr %23, align 4, !tbaa !9
  %104 = add nsw i32 %102, %103
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds float, ptr %99, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !11
  %108 = fdiv float %107, %98
  store float %108, ptr %106, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %97
  %110 = load i32, ptr %23, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %23, align 4, !tbaa !9
  br label %92, !llvm.loop !18

112:                                              ; preds = %96
  br label %113

113:                                              ; preds = %112, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %14, align 4, !tbaa !9
  br label %34, !llvm.loop !19

117:                                              ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali7kernels16ResamplingFilter7supportEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK4dali7kernels16ResamplingFilterclEf(ptr noundef nonnull align 8 dereferenceable(24), float noundef) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 12}
!14 = !{!"_ZTSN4dali7kernels16ResamplingFilterE", !6, i64 0, !10, i64 8, !12, i64 12, !12, i64 16}
!15 = !{!14, !12, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali7kernels26InitializeResamplingFilterEPiPfiffRKNS0_16ResamplingFilterE(ptr nocapture noundef writeonly %0, ptr nocapture noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5) local_unnamed_addr #0 {
  %7 = tail call float @llvm.fmuladd.f32(float %4, float 5.000000e-01, float -5.000000e-01)
  %8 = getelementptr inbounds i8, ptr %5, i64 12
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = fsub float %7, %9
  %11 = fadd float %10, %3
  %12 = tail call noundef i32 @_ZNK4dali7kernels16ResamplingFilter7supportEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %13 = icmp sgt i32 %2, 0
  br i1 %13, label %.lr.ph49, label %._crit_edge50

.lr.ph49:                                         ; preds = %6
  %14 = icmp sgt i32 %12, 0
  %15 = getelementptr inbounds i8, ptr %5, i64 16
  br i1 %14, label %.lr.ph.us.us.preheader, label %.lr.ph49.split.preheader

.lr.ph49.split.preheader:                         ; preds = %.lr.ph49
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %.lr.ph49.split.preheader87, label %vector.ph

.lr.ph49.split.preheader87:                       ; preds = %middle.block, %.lr.ph49.split.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph49.split.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph49.split

vector.ph:                                        ; preds = %.lr.ph49.split.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <4 x float> poison, float %4, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert72 = insertelement <4 x float> poison, float %11, i64 0
  %broadcast.splat73 = shufflevector <4 x float> %broadcast.splatinsert72, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %16 = uitofp <4 x i32> %vec.ind to <4 x float>
  %17 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %16, <4 x float> %broadcast.splat, <4 x float> %broadcast.splat73)
  %18 = tail call <4 x float> @llvm.ceil.v4f32(<4 x float> %17)
  %19 = fptosi <4 x float> %18 to <4 x i32>
  %20 = getelementptr inbounds i32, ptr %0, i64 %index
  store <4 x i32> %19, ptr %20, align 4, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %21 = icmp eq i64 %index.next, %n.vec
  br i1 %21, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge50, label %.lr.ph49.split.preheader87

.lr.ph.us.us.preheader:                           ; preds = %.lr.ph49
  %22 = zext nneg i32 %12 to i64
  %wide.trip.count66 = zext nneg i32 %2 to i64
  %min.iters.check76 = icmp ult i32 %12, 4
  %n.vec79 = and i64 %22, 2147483644
  %cmp.n86 = icmp eq i64 %n.vec79, %22
  br label %.lr.ph.us.us

.lr.ph.us.us:                                     ; preds = %.lr.ph.us.us.preheader, %..loopexit_crit_edge.us.us
  %indvars.iv63 = phi i64 [ 0, %.lr.ph.us.us.preheader ], [ %indvars.iv.next64, %..loopexit_crit_edge.us.us ]
  %23 = trunc nuw nsw i64 %indvars.iv63 to i32
  %24 = uitofp nneg i32 %23 to float
  %25 = tail call float @llvm.fmuladd.f32(float %24, float %4, float %11)
  %26 = tail call float @llvm.ceil.f32(float %25)
  %27 = fptosi float %26 to i32
  %28 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv63
  store i32 %27, ptr %28, align 4, !tbaa !12
  %29 = sitofp i32 %27 to float
  %30 = fsub float %29, %25
  %31 = mul nuw nsw i64 %indvars.iv63, %22
  %invariant.gep = getelementptr inbounds float, ptr %1, i64 %31
  br label %34

..loopexit_crit_edge.us.us:                       ; preds = %scalar.ph75, %middle.block74, %._crit_edge.us.us
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next64, %wide.trip.count66
  br i1 %exitcond67.not, label %._crit_edge50, label %.lr.ph.us.us, !llvm.loop !17

scalar.ph75:                                      ; preds = %scalar.ph75.preheader, %scalar.ph75
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %scalar.ph75 ], [ %indvars.iv58.ph, %scalar.ph75.preheader ]
  %gep70 = getelementptr inbounds float, ptr %invariant.gep69, i64 %indvars.iv58
  %32 = load float, ptr %gep70, align 4, !tbaa !18
  %33 = fdiv float %32, %41
  store float %33, ptr %gep70, align 4, !tbaa !18
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next59, %22
  br i1 %exitcond62.not, label %..loopexit_crit_edge.us.us, label %scalar.ph75, !llvm.loop !19

34:                                               ; preds = %34, %.lr.ph.us.us
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %34 ], [ 0, %.lr.ph.us.us ]
  %.04042.us.us = phi float [ %41, %34 ], [ 0.000000e+00, %.lr.ph.us.us ]
  %35 = trunc nuw nsw i64 %indvars.iv53 to i32
  %36 = uitofp nneg i32 %35 to float
  %37 = fadd float %30, %36
  %38 = load float, ptr %15, align 8, !tbaa !20
  %39 = fmul float %37, %38
  %40 = tail call noundef float @_ZNK4dali7kernels16ResamplingFilterclEf(ptr noundef nonnull align 8 dereferenceable(24) %5, float noundef %39)
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv53
  store float %40, ptr %gep, align 4, !tbaa !18
  %41 = fadd float %.04042.us.us, %40
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next54, %22
  br i1 %exitcond57.not, label %._crit_edge.us.us, label %34, !llvm.loop !21

.preheader.us.us:                                 ; preds = %._crit_edge.us.us
  %invariant.gep69 = getelementptr inbounds float, ptr %1, i64 %31
  br i1 %min.iters.check76, label %scalar.ph75.preheader, label %vector.ph77

scalar.ph75.preheader:                            ; preds = %middle.block74, %.preheader.us.us
  %indvars.iv58.ph = phi i64 [ 0, %.preheader.us.us ], [ %n.vec79, %middle.block74 ]
  br label %scalar.ph75

vector.ph77:                                      ; preds = %.preheader.us.us
  %broadcast.splatinsert83 = insertelement <4 x float> poison, float %41, i64 0
  %broadcast.splat84 = shufflevector <4 x float> %broadcast.splatinsert83, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body81

vector.body81:                                    ; preds = %vector.body81, %vector.ph77
  %index82 = phi i64 [ 0, %vector.ph77 ], [ %index.next85, %vector.body81 ]
  %42 = getelementptr inbounds float, ptr %invariant.gep69, i64 %index82
  %wide.load = load <4 x float>, ptr %42, align 4, !tbaa !18
  %43 = fdiv <4 x float> %wide.load, %broadcast.splat84
  store <4 x float> %43, ptr %42, align 4, !tbaa !18
  %index.next85 = add nuw i64 %index82, 4
  %44 = icmp eq i64 %index.next85, %n.vec79
  br i1 %44, label %middle.block74, label %vector.body81, !llvm.loop !22

middle.block74:                                   ; preds = %vector.body81
  br i1 %cmp.n86, label %..loopexit_crit_edge.us.us, label %scalar.ph75.preheader

._crit_edge.us.us:                                ; preds = %34
  %45 = fcmp une float %41, 0.000000e+00
  br i1 %45, label %.preheader.us.us, label %..loopexit_crit_edge.us.us

._crit_edge50:                                    ; preds = %.lr.ph49.split, %..loopexit_crit_edge.us.us, %middle.block, %6
  ret void

.lr.ph49.split:                                   ; preds = %.lr.ph49.split.preheader87, %.lr.ph49.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph49.split ], [ %indvars.iv.ph, %.lr.ph49.split.preheader87 ]
  %46 = trunc nuw nsw i64 %indvars.iv to i32
  %47 = uitofp nneg i32 %46 to float
  %48 = tail call float @llvm.fmuladd.f32(float %47, float %4, float %11)
  %49 = tail call float @llvm.ceil.f32(float %48)
  %50 = fptosi float %49 to i32
  %51 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  store i32 %50, ptr %51, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge50, label %.lr.ph49.split, !llvm.loop !23
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK4dali7kernels16ResamplingFilterclEf(ptr noundef nonnull align 8 dereferenceable(24), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.ceil.v4f32(<4 x float>) #3

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

!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, !11, i64 12}
!6 = !{!"_ZTSN4dali7kernels16ResamplingFilterE", !7, i64 0, !10, i64 8, !11, i64 12, !11, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !14, !16, !15}
!20 = !{!6, !11, i64 16}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14, !15, !16}
!23 = distinct !{!23, !14, !16, !15}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass