; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/CornerDetecto_6fa82f99 (ff)

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) unnamed_addr #5 align 2

declare void @_Z3dX6P12ImageContentS0_(ptr noundef, ptr noundef) #6

declare void @_Z3dY6P12ImageContentS0_(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5getMiP12ImageContentRfS1_S1_ff(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, float noundef %4, float noundef %5) #5 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store float %4, ptr %11, align 4, !tbaa !9
  store float %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
  store i32 %26, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
  store i32 %28, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %29 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
  %30 = load i32, ptr %13, align 4, !tbaa !11
  %31 = load i32, ptr %14, align 4, !tbaa !11
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %29, i32 noundef %30, i32 noundef %31)
          to label %32 unwind label %50

32:                                               ; preds = %6
  store ptr %29, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %33 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
  %34 = load i32, ptr %13, align 4, !tbaa !11
  %35 = load i32, ptr %14, align 4, !tbaa !11
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %33, i32 noundef %34, i32 noundef %35)
          to label %36 unwind label %54

36:                                               ; preds = %32
  store ptr %33, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %37 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
  %38 = load i32, ptr %13, align 4, !tbaa !11
  %39 = load i32, ptr %14, align 4, !tbaa !11
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %37, i32 noundef %38, i32 noundef %39)
          to label %40 unwind label %58

40:                                               ; preds = %36
  store ptr %37, ptr %21, align 8, !tbaa !5
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_Z3dX6P12ImageContentS0_(ptr noundef %41, ptr noundef %42)
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_Z3dY6P12ImageContentS0_(ptr noundef %43, ptr noundef %44)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %134, %40
  %46 = load i32, ptr %22, align 4, !tbaa !11
  %47 = load i32, ptr %13, align 4, !tbaa !11
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %62, label %49

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

50:                                               ; preds = %6
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %18, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %29, i64 noundef 80) #9
  br label %172

54:                                               ; preds = %32
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %18, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %33, i64 noundef 80) #9
  br label %171

58:                                               ; preds = %36
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %18, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %37, i64 noundef 80) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %171

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

63:                                               ; preds = %130, %62
  %64 = load i32, ptr %24, align 4, !tbaa !11
  %65 = load i32, ptr %14, align 4, !tbaa !11
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %63
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.ImageContent, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = load i32, ptr %22, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %24, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %75, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !9
  store float %79, ptr %15, align 4, !tbaa !9
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.ImageContent, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load i32, ptr %22, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i32, ptr %24, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds float, ptr %86, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !9
  store float %90, ptr %16, align 4, !tbaa !9
  %91 = load float, ptr %15, align 4, !tbaa !9
  %92 = load float, ptr %15, align 4, !tbaa !9
  %93 = fmul float %91, %92
  %94 = load ptr, ptr %17, 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 %16, align 4, !tbaa !9
  %105 = load float, ptr %16, align 4, !tbaa !9
  %106 = fmul float %104, %105
  %107 = load ptr, ptr %20, 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
  %117 = load float, ptr %15, align 4, !tbaa !9
  %118 = load float, ptr %16, align 4, !tbaa !9
  %119 = fmul float %117, %118
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.ImageContent, ptr %120, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !13
  %123 = load i32, ptr %22, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds ptr, ptr %122, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i32, ptr %24, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %126, i64 %128
  store float %119, ptr %129, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %68
  %131 = load i32, ptr %24, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %24, align 4, !tbaa !11
  br label %63, !llvm.loop !15

133:                                              ; preds = %67
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %22, align 4, !tbaa !11
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %22, align 4, !tbaa !11
  br label %45, !llvm.loop !17

137:                                              ; preds = %49
  %138 = load float, ptr %11, align 4, !tbaa !9
  %139 = fptosi float %138 to i32
  %140 = load float, ptr %12, align 4, !tbaa !9
  %141 = fptosi float %140 to i32
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %139, i32 noundef %141, ptr noundef %142, float noundef 3.000000e+00)
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  store float %143, ptr %144, align 4, !tbaa !9
  %145 = load float, ptr %11, align 4, !tbaa !9
  %146 = fptosi float %145 to i32
  %147 = load float, ptr %12, align 4, !tbaa !9
  %148 = fptosi float %147 to i32
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %146, i32 noundef %148, ptr noundef %149, float noundef 3.000000e+00)
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  store float %150, ptr %151, align 4, !tbaa !9
  %152 = load float, ptr %11, align 4, !tbaa !9
  %153 = fptosi float %152 to i32
  %154 = load float, ptr %12, align 4, !tbaa !9
  %155 = fptosi float %154 to i32
  %156 = load ptr, ptr %21, align 8, !tbaa !5
  %157 = call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %153, i32 noundef %155, ptr noundef %156, float noundef 3.000000e+00)
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  store float %157, ptr %158, align 4, !tbaa !9
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = icmp eq ptr %159, null
  br i1 %160, label %162, label %161

161:                                              ; preds = %137
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %159) #7
  call void @_ZdlPvm(ptr noundef %159, i64 noundef 80) #9
  br label %162

162:                                              ; preds = %161, %137
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = icmp eq ptr %163, null
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %163) #7
  call void @_ZdlPvm(ptr noundef %163, i64 noundef 80) #9
  br label %166

166:                                              ; preds = %165, %162
  %167 = load ptr, ptr %21, align 8, !tbaa !5
  %168 = icmp eq ptr %167, null
  br i1 %168, label %170, label %169

169:                                              ; preds = %166
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %167) #7
  call void @_ZdlPvm(ptr noundef %167, i64 noundef 80) #9
  br label %170

170:                                              ; preds = %169, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  ret void

171:                                              ; preds = %58, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %172

172:                                              ; preds = %171, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %18, align 8
  %175 = load i32, ptr %19, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { 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 #3 = { nobuiltin 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 #4 = { 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 = { 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 = { "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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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}


; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) unnamed_addr #4 align 2

declare void @_Z3dX6P12ImageContentS0_(ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @_Z3dY6P12ImageContentS0_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5getMiP12ImageContentRfS1_S1_ff(ptr noundef nonnull %0, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %1, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %2, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %3, float noundef %4, float noundef %5) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %7 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %8 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %9 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef %7, i32 noundef %8)
          to label %10 unwind label %68

10:                                               ; preds = %6
  %11 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %11, i32 noundef %7, i32 noundef %8)
          to label %12 unwind label %70

12:                                               ; preds = %10
  %13 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %13, i32 noundef %7, i32 noundef %8)
          to label %14 unwind label %72

14:                                               ; preds = %12
  tail call void @_Z3dX6P12ImageContentS0_(ptr noundef nonnull %0, ptr noundef nonnull %9)
  tail call void @_Z3dY6P12ImageContentS0_(ptr noundef nonnull %0, ptr noundef nonnull %11)
  %15 = icmp sgt i32 %7, 0
  %16 = icmp sgt i32 %8, 0
  %or.cond = and i1 %15, %16
  br i1 %or.cond, label %.preheader.lr.ph.split.us, label %._crit_edge63

.preheader.lr.ph.split.us:                        ; preds = %14
  %17 = getelementptr inbounds i8, ptr %13, i64 16
  %18 = getelementptr inbounds i8, ptr %11, i64 16
  %19 = getelementptr inbounds i8, ptr %9, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = load ptr, ptr %18, align 8, !tbaa !5
  %22 = load ptr, ptr %17, align 8, !tbaa !5
  %wide.trip.count69 = zext nneg i32 %7 to i64
  %wide.trip.count = zext nneg i32 %8 to i64
  %23 = shl nuw nsw i64 %wide.trip.count, 2
  %min.iters.check = icmp ult i32 %8, 4
  %n.vec = and i64 %wide.trip.count, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %24 = add nsw i64 %wide.trip.count, -1
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %._crit_edge.us ], [ 0, %.preheader.lr.ph.split.us ]
  %25 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv66
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds ptr, ptr %21, i64 %indvars.iv66
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv66
  %30 = load ptr, ptr %29, 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 %26, i64 %23
  %scevgep71 = getelementptr i8, ptr %28, i64 %23
  %scevgep72 = getelementptr i8, ptr %30, i64 %23
  %bound0 = icmp ult ptr %26, %scevgep71
  %bound1 = icmp ult ptr %28, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound073 = icmp ult ptr %26, %scevgep72
  %bound174 = icmp ult ptr %30, %scevgep
  %found.conflict75 = and i1 %bound073, %bound174
  %conflict.rdx = or i1 %found.conflict, %found.conflict75
  %bound076 = icmp ult ptr %28, %scevgep72
  %bound177 = icmp ult ptr %30, %scevgep71
  %found.conflict78 = and i1 %bound076, %bound177
  %conflict.rdx79 = or i1 %conflict.rdx, %found.conflict78
  br i1 %conflict.rdx79, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %31 = getelementptr inbounds float, ptr %26, i64 %index
  %wide.load = load <4 x float>, ptr %31, align 4, !tbaa !12, !alias.scope !14, !noalias !17
  %32 = getelementptr inbounds float, ptr %28, i64 %index
  %wide.load80 = load <4 x float>, ptr %32, align 4, !tbaa !12, !alias.scope !20, !noalias !21
  %33 = fmul <4 x float> %wide.load, %wide.load
  store <4 x float> %33, ptr %31, align 4, !tbaa !12, !alias.scope !14, !noalias !17
  %34 = fmul <4 x float> %wide.load80, %wide.load80
  store <4 x float> %34, ptr %32, align 4, !tbaa !12, !alias.scope !20, !noalias !21
  %35 = fmul <4 x float> %wide.load, %wide.load80
  %36 = getelementptr inbounds float, ptr %30, i64 %index
  store <4 x float> %35, ptr %36, align 4, !tbaa !12, !alias.scope !21
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, 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 i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %38 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.ph
  %39 = load float, ptr %38, align 4, !tbaa !12
  %40 = getelementptr inbounds float, ptr %28, i64 %indvars.iv.ph
  %41 = load float, ptr %40, align 4, !tbaa !12
  %42 = fmul float %39, %39
  store float %42, ptr %38, align 4, !tbaa !12
  %43 = fmul float %41, %41
  store float %43, ptr %40, align 4, !tbaa !12
  %44 = fmul float %39, %41
  %45 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.ph
  store float %44, ptr %45, align 4, !tbaa !12
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %46 = icmp eq i64 %indvars.iv.ph, %24
  br i1 %46, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %47 = getelementptr inbounds float, ptr %26, i64 %indvars.iv
  %48 = load float, ptr %47, align 4, !tbaa !12
  %49 = getelementptr inbounds float, ptr %28, i64 %indvars.iv
  %50 = load float, ptr %49, align 4, !tbaa !12
  %51 = fmul float %48, %48
  store float %51, ptr %47, align 4, !tbaa !12
  %52 = fmul float %50, %50
  store float %52, ptr %49, align 4, !tbaa !12
  %53 = fmul float %48, %50
  %54 = getelementptr inbounds float, ptr %30, i64 %indvars.iv
  store float %53, ptr %54, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next
  %56 = load float, ptr %55, align 4, !tbaa !12
  %57 = getelementptr inbounds float, ptr %28, i64 %indvars.iv.next
  %58 = load float, ptr %57, align 4, !tbaa !12
  %59 = fmul float %56, %56
  store float %59, ptr %55, align 4, !tbaa !12
  %60 = fmul float %58, %58
  store float %60, ptr %57, align 4, !tbaa !12
  %61 = fmul float %56, %58
  %62 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next
  store float %61, ptr %62, align 4, !tbaa !12
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge.us, label %scalar.ph, !llvm.loop !26

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count69
  br i1 %exitcond70.not, label %._crit_edge63, label %.preheader.us, !llvm.loop !27

._crit_edge63:                                    ; preds = %._crit_edge.us, %14
  %63 = fptosi float %4 to i32
  %64 = fptosi float %5 to i32
  %65 = tail call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %63, i32 noundef %64, ptr noundef nonnull %9, float noundef 3.000000e+00)
  store float %65, ptr %1, align 4, !tbaa !12
  %66 = tail call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %63, i32 noundef %64, ptr noundef nonnull %11, float noundef 3.000000e+00)
  store float %66, ptr %3, align 4, !tbaa !12
  %67 = tail call noundef float @_Z7smoothfiiP12ImageContentf(i32 noundef %63, i32 noundef %64, ptr noundef nonnull %13, float noundef 3.000000e+00)
  store float %67, ptr %2, align 4, !tbaa !12
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 80) #8
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 80) #8
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 80) #8
  ret void

68:                                               ; preds = %6
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %74

70:                                               ; preds = %10
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %12
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %74

74:                                               ; preds = %70, %72, %68
  %.sink = phi ptr [ %11, %70 ], [ %13, %72 ], [ %9, %68 ]
  %.pn.pn = phi { ptr, i32 } [ %71, %70 ], [ %73, %72 ], [ %69, %68 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 80) #8
  resume { ptr, i32 } %.pn.pn
}

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

attributes #0 = { nobuiltin allocsize(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 = { 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 = { nobuiltin 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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, !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}


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