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

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.CornerDescriptor = type <{ %class.Corner, ptr, i32, float, i64, i32, [4 x i8] }>
%class.Corner = type { i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, i32, i32 }

@_ZL5gsize = external hidden global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z2XfP12ImageContent(ptr noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z2YfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z3XXfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z3YYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z3XYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4XXXfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4YYYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4XXYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4XYYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XXXXfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5YYYYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XXXYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XYYYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XXYYfP12ImageContent(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14JetLocalAffine17computeComponentsEP12ImageContent(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  br label %113

13:                                               ; preds = %2
  %14 = load i32, ptr @_ZL5gsize, align 4, !tbaa !9
  %15 = shl i32 %14, 1
  %16 = add nsw i32 1, %15
  %17 = icmp ne i32 %16, 41
  br i1 %17, label %18, label %21

18:                                               ; preds = %13
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %113

21:                                               ; preds = %13
  call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %9, i32 noundef 14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %22 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #10
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %22, i32 noundef 41, i32 noundef 41)
          to label %23 unwind label %114

23:                                               ; preds = %21
  store ptr %22, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %9, ptr noundef %24, ptr noundef %25)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %28)
  %30 = lshr i32 %29, 1
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %31)
  %33 = lshr i32 %32, 1
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %34)
  %36 = lshr i32 %35, 1
  %37 = uitofp i32 %36 to float
  call void @_Z9normalizeP12ImageContentiif(ptr noundef %27, i32 noundef %30, i32 noundef %33, float noundef %37)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call noundef float @_Z2XfP12ImageContent(ptr noundef %38)
  %40 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds float, ptr %41, i64 0
  store float %39, ptr %42, align 4, !tbaa !16
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef float @_Z2YfP12ImageContent(ptr noundef %43)
  %45 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds float, ptr %46, i64 1
  store float %44, ptr %47, align 4, !tbaa !16
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef float @_Z3XXfP12ImageContent(ptr noundef %48)
  %50 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds float, ptr %51, i64 2
  store float %49, ptr %52, align 4, !tbaa !16
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call noundef float @_Z3XYfP12ImageContent(ptr noundef %53)
  %55 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds float, ptr %56, i64 3
  store float %54, ptr %57, align 4, !tbaa !16
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call noundef float @_Z3YYfP12ImageContent(ptr noundef %58)
  %60 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds float, ptr %61, i64 4
  store float %59, ptr %62, align 4, !tbaa !16
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call noundef float @_Z4XXXfP12ImageContent(ptr noundef %63)
  %65 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds float, ptr %66, i64 5
  store float %64, ptr %67, align 4, !tbaa !16
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef float @_Z4XXYfP12ImageContent(ptr noundef %68)
  %70 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds float, ptr %71, i64 6
  store float %69, ptr %72, align 4, !tbaa !16
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call noundef float @_Z4XYYfP12ImageContent(ptr noundef %73)
  %75 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds float, ptr %76, i64 7
  store float %74, ptr %77, align 4, !tbaa !16
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = call noundef float @_Z4YYYfP12ImageContent(ptr noundef %78)
  %80 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds float, ptr %81, i64 8
  store float %79, ptr %82, align 4, !tbaa !16
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = call noundef float @_Z5XXXXfP12ImageContent(ptr noundef %83)
  %85 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds float, ptr %86, i64 9
  store float %84, ptr %87, align 4, !tbaa !16
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef float @_Z5XXXYfP12ImageContent(ptr noundef %88)
  %90 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds float, ptr %91, i64 10
  store float %89, ptr %92, align 4, !tbaa !16
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call noundef float @_Z5XXYYfP12ImageContent(ptr noundef %93)
  %95 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !11
  %97 = getelementptr inbounds float, ptr %96, i64 11
  store float %94, ptr %97, align 4, !tbaa !16
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = call noundef float @_Z5XYYYfP12ImageContent(ptr noundef %98)
  %100 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds float, ptr %101, i64 12
  store float %99, ptr %102, align 4, !tbaa !16
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = call noundef float @_Z5YYYYfP12ImageContent(ptr noundef %103)
  %105 = getelementptr inbounds %class.CornerDescriptor, ptr %9, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  %107 = getelementptr inbounds float, ptr %106, i64 13
  store float %104, ptr %107, align 4, !tbaa !16
  %108 = getelementptr inbounds %class.Corner, ptr %9, i32 0, i32 20
  store i32 1, ptr %108, align 8, !tbaa !17
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %112, label %111

111:                                              ; preds = %23
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %109) #9
  call void @_ZdlPvm(ptr noundef %109, i64 noundef 80) #11
  br label %112

112:                                              ; preds = %111, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 10, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %113

113:                                              ; preds = %112, %18, %12
  ret void

114:                                              ; preds = %21
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %6, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %22, i64 noundef 80) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %118

118:                                              ; preds = %114
  %119 = load ptr, ptr %6, align 8
  %120 = load i32, ptr %7, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88), ptr noundef, ptr noundef) #4

declare void @_Z9normalizeP12ImageContentiif(ptr noundef, i32 noundef, i32 noundef, float noundef) #4

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

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { 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 #4 = { "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 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 88}
!12 = !{!"_ZTS16CornerDescriptor", !13, i64 0, !6, i64 88, !10, i64 96, !14, i64 100, !15, i64 104, !10, i64 112}
!13 = !{!"_ZTS6Corner", !10, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !10, i64 68, !10, i64 72, !14, i64 76, !10, i64 80, !10, i64 84}
!14 = !{!"float", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !10, i64 80}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZL5gsize = external hidden local_unnamed_addr global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z2XfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z2YfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z3XXfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z3YYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z3XYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4XXXfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4YYYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4XXYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z4XYYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XXXXfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5YYYYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XXXYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XYYYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z5XXYYfP12ImageContent(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14JetLocalAffine17computeComponentsEP12ImageContent(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = icmp eq ptr %1, null
  br i1 %3, label %63, label %4

4:                                                ; preds = %2
  %5 = load i32, ptr @_ZL5gsize, align 4, !tbaa !5
  %.mask = and i32 %5, 2147483647
  %.not = icmp eq i32 %.mask, 20
  br i1 %.not, label %9, label %6

6:                                                ; preds = %4
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %63

9:                                                ; preds = %4
  tail call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %0, i32 noundef 14)
  %10 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #8
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %10, i32 noundef 41, i32 noundef 41)
          to label %11 unwind label %64

11:                                               ; preds = %9
  %12 = tail call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef nonnull %1, ptr noundef nonnull %10)
  %13 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  %14 = lshr i32 %13, 1
  %15 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  %16 = lshr i32 %15, 1
  %17 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  %18 = lshr i32 %17, 1
  %19 = uitofp nneg i32 %18 to float
  tail call void @_Z9normalizeP12ImageContentiif(ptr noundef nonnull %10, i32 noundef %14, i32 noundef %16, float noundef %19)
  %20 = tail call noundef float @_Z2XfP12ImageContent(ptr noundef nonnull %10)
  %21 = getelementptr inbounds i8, ptr %0, i64 88
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  store float %20, ptr %22, align 4, !tbaa !15
  %23 = tail call noundef float @_Z2YfP12ImageContent(ptr noundef nonnull %10)
  %24 = load ptr, ptr %21, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %24, i64 4
  store float %23, ptr %25, align 4, !tbaa !15
  %26 = tail call noundef float @_Z3XXfP12ImageContent(ptr noundef nonnull %10)
  %27 = load ptr, ptr %21, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  store float %26, ptr %28, align 4, !tbaa !15
  %29 = tail call noundef float @_Z3XYfP12ImageContent(ptr noundef nonnull %10)
  %30 = load ptr, ptr %21, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %30, i64 12
  store float %29, ptr %31, align 4, !tbaa !15
  %32 = tail call noundef float @_Z3YYfP12ImageContent(ptr noundef nonnull %10)
  %33 = load ptr, ptr %21, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store float %32, ptr %34, align 4, !tbaa !15
  %35 = tail call noundef float @_Z4XXXfP12ImageContent(ptr noundef nonnull %10)
  %36 = load ptr, ptr %21, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %36, i64 20
  store float %35, ptr %37, align 4, !tbaa !15
  %38 = tail call noundef float @_Z4XXYfP12ImageContent(ptr noundef nonnull %10)
  %39 = load ptr, ptr %21, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  store float %38, ptr %40, align 4, !tbaa !15
  %41 = tail call noundef float @_Z4XYYfP12ImageContent(ptr noundef nonnull %10)
  %42 = load ptr, ptr %21, align 8, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %42, i64 28
  store float %41, ptr %43, align 4, !tbaa !15
  %44 = tail call noundef float @_Z4YYYfP12ImageContent(ptr noundef nonnull %10)
  %45 = load ptr, ptr %21, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %45, i64 32
  store float %44, ptr %46, align 4, !tbaa !15
  %47 = tail call noundef float @_Z5XXXXfP12ImageContent(ptr noundef nonnull %10)
  %48 = load ptr, ptr %21, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %48, i64 36
  store float %47, ptr %49, align 4, !tbaa !15
  %50 = tail call noundef float @_Z5XXXYfP12ImageContent(ptr noundef nonnull %10)
  %51 = load ptr, ptr %21, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %51, i64 40
  store float %50, ptr %52, align 4, !tbaa !15
  %53 = tail call noundef float @_Z5XXYYfP12ImageContent(ptr noundef nonnull %10)
  %54 = load ptr, ptr %21, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %54, i64 44
  store float %53, ptr %55, align 4, !tbaa !15
  %56 = tail call noundef float @_Z5XYYYfP12ImageContent(ptr noundef nonnull %10)
  %57 = load ptr, ptr %21, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %57, i64 48
  store float %56, ptr %58, align 4, !tbaa !15
  %59 = tail call noundef float @_Z5YYYYfP12ImageContent(ptr noundef nonnull %10)
  %60 = load ptr, ptr %21, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %60, i64 52
  store float %59, ptr %61, align 4, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 1, ptr %62, align 8, !tbaa !16
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #9
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 80) #10
  br label %63

63:                                               ; preds = %2, %11, %6
  ret void

64:                                               ; preds = %9
  %65 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 80) #10
  resume { ptr, i32 } %65
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88), ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_Z9normalizeP12ImageContentiif(ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { 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 = { 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 #2 = { 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 #3 = { "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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 88}
!10 = !{!"_ZTS16CornerDescriptor", !11, i64 0, !13, i64 88, !6, i64 96, !12, i64 100, !14, i64 104, !6, i64 112}
!11 = !{!"_ZTS6Corner", !6, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !6, i64 68, !6, i64 72, !12, i64 76, !6, i64 80, !6, i64 84}
!12 = !{!"float", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!11, !6, i64 80}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass