; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/AffineRegion._6370223e (ffR6Matrix)

; 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.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

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

declare void @_Z2dXP12ImageContentS0_f(ptr noundef, ptr noundef, float noundef) #2

declare void @_Z2dYP12ImageContentS0_f(ptr noundef, ptr noundef, float noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13getAnisotropyP12ImageContentS0_S0_S0_ffR6Matrix(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4, float noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store float %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
  store i32 %26, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  store i32 %28, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %29 = load i32, ptr %16, align 4, !tbaa !11
  %30 = ashr i32 %29, 1
  store i32 %30, ptr %17, align 4, !tbaa !11
  %31 = load i32, ptr %15, align 4, !tbaa !11
  %32 = ashr i32 %31, 1
  store i32 %32, ptr %18, align 4, !tbaa !11
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = load float, ptr %12, align 4, !tbaa !9
  call void @_Z2dXP12ImageContentS0_f(ptr noundef %33, ptr noundef %34, float noundef %35)
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = load float, ptr %12, align 4, !tbaa !9
  call void @_Z2dYP12ImageContentS0_f(ptr noundef %36, ptr noundef %37, float noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %39 = load float, ptr %12, align 4, !tbaa !9
  store float %39, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %121, %7
  %41 = load i32, ptr %22, align 4, !tbaa !11
  %42 = load i32, ptr %15, align 4, !tbaa !11
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 2, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %124

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %117, %45
  %47 = load i32, ptr %24, align 4, !tbaa !11
  %48 = load i32, ptr %16, align 4, !tbaa !11
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %120

51:                                               ; preds = %46
  %52 = load float, ptr %21, align 4, !tbaa !9
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.ImageContent, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = load i32, ptr %22, align 4, !tbaa !11
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = load i32, ptr %24, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds float, ptr %59, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = fmul float %52, %63
  store float %64, ptr %19, align 4, !tbaa !9
  %65 = load float, ptr %21, align 4, !tbaa !9
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %class.ImageContent, ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = load i32, ptr %22, align 4, !tbaa !11
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i32, ptr %24, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %72, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = fmul float %65, %76
  store float %77, ptr %20, align 4, !tbaa !9
  %78 = load float, ptr %19, align 4, !tbaa !9
  %79 = load float, ptr %19, align 4, !tbaa !9
  %80 = fmul float %78, %79
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.ImageContent, ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = load i32, ptr %22, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = load i32, ptr %24, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  store float %80, ptr %90, align 4, !tbaa !9
  %91 = load float, ptr %20, align 4, !tbaa !9
  %92 = load float, ptr %20, align 4, !tbaa !9
  %93 = fmul float %91, %92
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.ImageContent, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = load i32, ptr %22, align 4, !tbaa !11
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %96, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load i32, ptr %24, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %100, i64 %102
  store float %93, ptr %103, align 4, !tbaa !9
  %104 = load float, ptr %19, align 4, !tbaa !9
  %105 = load float, ptr %20, align 4, !tbaa !9
  %106 = fmul float %104, %105
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.ImageContent, ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = load i32, ptr %22, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load i32, ptr %24, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %113, i64 %115
  store float %106, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %51
  %118 = load i32, ptr %24, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %24, align 4, !tbaa !11
  br label %46, !llvm.loop !15

120:                                              ; preds = %50
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %22, align 4, !tbaa !11
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %22, align 4, !tbaa !11
  br label %40, !llvm.loop !17

124:                                              ; preds = %44
  %125 = load i32, ptr %17, align 4, !tbaa !11
  %126 = load i32, ptr %18, align 4, !tbaa !11
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load float, ptr %13, align 4, !tbaa !9
  %129 = call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %125, i32 noundef %126, ptr noundef %127, float noundef %128)
  %130 = fpext float %129 to double
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load ptr, ptr %131, align 8, !tbaa !18
  %133 = getelementptr inbounds ptr, ptr %132, i64 6
  %134 = load ptr, ptr %133, align 8
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr %134(ptr noundef nonnull align 8 dereferenceable(24) %131, i32 noundef 1, i32 noundef 1)
  store double %130, ptr %135, align 8, !tbaa !20
  %136 = load i32, ptr %17, align 4, !tbaa !11
  %137 = load i32, ptr %18, align 4, !tbaa !11
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load float, ptr %13, align 4, !tbaa !9
  %140 = call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %136, i32 noundef %137, ptr noundef %138, float noundef %139)
  %141 = fpext float %140 to double
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = load ptr, ptr %142, align 8, !tbaa !18
  %144 = getelementptr inbounds ptr, ptr %143, i64 6
  %145 = load ptr, ptr %144, align 8
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr %145(ptr noundef nonnull align 8 dereferenceable(24) %142, i32 noundef 2, i32 noundef 2)
  store double %141, ptr %146, align 8, !tbaa !20
  %147 = load i32, ptr %17, align 4, !tbaa !11
  %148 = load i32, ptr %18, align 4, !tbaa !11
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load float, ptr %13, align 4, !tbaa !9
  %151 = call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %147, i32 noundef %148, ptr noundef %149, float noundef %150)
  %152 = fpext float %151 to double
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %153, align 8, !tbaa !18
  %155 = getelementptr inbounds ptr, ptr %154, i64 6
  %156 = load ptr, ptr %155, align 8
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr %156(ptr noundef nonnull align 8 dereferenceable(24) %153, i32 noundef 2, i32 noundef 1)
  store double %152, ptr %157, align 8, !tbaa !20
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !18
  %160 = getelementptr inbounds ptr, ptr %159, i64 6
  %161 = load ptr, ptr %160, align 8
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr %161(ptr noundef nonnull align 8 dereferenceable(24) %158, i32 noundef 1, i32 noundef 2)
  store double %152, ptr %162, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { "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 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTS12ImageContent", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}


; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

declare void @_Z2dXP12ImageContentS0_f(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

declare void @_Z2dYP12ImageContentS0_f(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

declare noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef, i32 noundef, ptr noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13getAnisotropyP12ImageContentS0_S0_S0_ffR6Matrix(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4, float noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #2 {
  %8 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %9 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  tail call void @_Z2dXP12ImageContentS0_f(ptr noundef nonnull %0, ptr noundef %1, float noundef %4)
  tail call void @_Z2dYP12ImageContentS0_f(ptr noundef nonnull %0, ptr noundef %2, float noundef %4)
  %10 = icmp sgt i32 %8, 0
  %11 = icmp sgt i32 %9, 0
  %or.cond = and i1 %10, %11
  br i1 %or.cond, label %.preheader.lr.ph.split.us, label %._crit_edge58

.preheader.lr.ph.split.us:                        ; preds = %7
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  %13 = getelementptr inbounds i8, ptr %2, i64 16
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = load ptr, ptr %13, align 8, !tbaa !5
  %17 = load ptr, ptr %12, align 8, !tbaa !5
  %wide.trip.count64 = zext nneg i32 %8 to i64
  %wide.trip.count = zext nneg i32 %9 to i64
  %18 = shl nuw nsw i64 %wide.trip.count, 2
  %min.iters.check = icmp ult i32 %9, 4
  %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
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %._crit_edge.us ], [ 0, %.preheader.lr.ph.split.us ]
  %19 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv61
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv61
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv61
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader.us
  %scevgep = getelementptr i8, ptr %20, i64 %18
  %scevgep66 = getelementptr i8, ptr %22, i64 %18
  %scevgep67 = getelementptr i8, ptr %24, i64 %18
  %bound0 = icmp ult ptr %20, %scevgep66
  %bound1 = icmp ult ptr %22, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound068 = icmp ult ptr %20, %scevgep67
  %bound169 = icmp ult ptr %24, %scevgep
  %found.conflict70 = and i1 %bound068, %bound169
  %conflict.rdx = or i1 %found.conflict, %found.conflict70
  %bound071 = icmp ult ptr %22, %scevgep67
  %bound172 = icmp ult ptr %24, %scevgep66
  %found.conflict73 = and i1 %bound071, %bound172
  %conflict.rdx74 = or i1 %conflict.rdx, %found.conflict73
  br i1 %conflict.rdx74, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %25 = getelementptr inbounds float, ptr %20, i64 %index
  %wide.load = load <4 x float>, ptr %25, align 4, !tbaa !12, !alias.scope !14, !noalias !17
  %26 = fmul <4 x float> %wide.load, %broadcast.splat
  %27 = getelementptr inbounds float, ptr %22, i64 %index
  %wide.load75 = load <4 x float>, ptr %27, align 4, !tbaa !12, !alias.scope !20, !noalias !21
  %28 = fmul <4 x float> %wide.load75, %broadcast.splat
  %29 = fmul <4 x float> %26, %26
  store <4 x float> %29, ptr %25, align 4, !tbaa !12, !alias.scope !14, !noalias !17
  %30 = fmul <4 x float> %28, %28
  store <4 x float> %30, ptr %27, align 4, !tbaa !12, !alias.scope !20, !noalias !21
  %31 = fmul <4 x float> %26, %28
  %32 = getelementptr inbounds float, ptr %24, i64 %index
  store <4 x float> %31, ptr %32, align 4, !tbaa !12, !alias.scope !21
  %index.next = add nuw i64 %index, 4
  %33 = icmp eq i64 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader.us
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %34 = getelementptr inbounds float, ptr %20, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !12
  %36 = fmul float %35, %4
  %37 = getelementptr inbounds float, ptr %22, i64 %indvars.iv
  %38 = load float, ptr %37, align 4, !tbaa !12
  %39 = fmul float %38, %4
  %40 = fmul float %36, %36
  store float %40, ptr %34, align 4, !tbaa !12
  %41 = fmul float %39, %39
  store float %41, ptr %37, align 4, !tbaa !12
  %42 = fmul float %36, %39
  %43 = getelementptr inbounds float, ptr %24, i64 %indvars.iv
  store float %42, ptr %43, 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_edge.us, label %scalar.ph, !llvm.loop !26

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next62, %wide.trip.count64
  br i1 %exitcond65.not, label %._crit_edge58, label %.preheader.us, !llvm.loop !27

._crit_edge58:                                    ; preds = %._crit_edge.us, %7
  %44 = ashr i32 %8, 1
  %45 = ashr i32 %9, 1
  %46 = tail call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %45, i32 noundef %44, ptr noundef %1, float noundef %5)
  %47 = fpext float %46 to double
  %48 = load ptr, ptr %6, align 8, !tbaa !28
  %49 = getelementptr inbounds i8, ptr %48, i64 48
  %50 = load ptr, ptr %49, align 8
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr %50(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1, i32 noundef 1)
  store double %47, ptr %51, align 8, !tbaa !30
  %52 = tail call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %45, i32 noundef %44, ptr noundef %2, float noundef %5)
  %53 = fpext float %52 to double
  %54 = load ptr, ptr %6, align 8, !tbaa !28
  %55 = getelementptr inbounds i8, ptr %54, i64 48
  %56 = load ptr, ptr %55, align 8
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr %56(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2, i32 noundef 2)
  store double %53, ptr %57, align 8, !tbaa !30
  %58 = tail call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %45, i32 noundef %44, ptr noundef %3, float noundef %5)
  %59 = fpext float %58 to double
  %60 = load ptr, ptr %6, align 8, !tbaa !28
  %61 = getelementptr inbounds i8, ptr %60, i64 48
  %62 = load ptr, ptr %61, align 8
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr %62(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2, i32 noundef 1)
  store double %59, ptr %63, align 8, !tbaa !30
  %64 = load ptr, ptr %6, align 8, !tbaa !28
  %65 = getelementptr inbounds i8, ptr %64, i64 48
  %66 = load ptr, ptr %65, align 8
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr %66(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1, i32 noundef 2)
  store double %59, ptr %67, align 8, !tbaa !30
  ret void
}

attributes #0 = { inlinehint 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 #1 = { "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 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" }

!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, !10, i64 16}
!6 = !{!"_ZTS12ImageContent", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!15}
!15 = distinct !{!15, !16}
!16 = distinct !{!16, !"LVerDomain"}
!17 = !{!18, !19}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!18}
!21 = !{!19}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !23, !24}
!27 = distinct !{!27, !23}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !9, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"double", !8, i64 0}


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