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

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14InterpKeyPointiP12ImageContentS0_S0_S0_S0_iifRSt6vectorIP16CornerDescriptorSaIS3_EE(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10FindMaxMinSt6vectorIP12ImageContentSaIS1_EES3_S3_fRS_IP16CornerDescriptorSaIS5_EEf(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, float noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = 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 float %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store float %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %21 = call noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %25 = trunc i64 %24 to i32
  store i32 %25, ptr %20, align 4, !tbaa !11
  store i32 1, ptr %13, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %151, %6
  %27 = load i32, ptr %13, align 4, !tbaa !11
  %28 = load i32, ptr %19, align 4, !tbaa !11
  %29 = sub nsw i32 %28, 2
  %30 = icmp slt i32 %27, %29
  br i1 %30, label %31, label %154

31:                                               ; preds = %26
  %32 = load i32, ptr %13, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %33) #5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %35)
  store i32 %36, ptr %16, align 4, !tbaa !11
  %37 = load i32, ptr %13, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %38) #5
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %40)
  store i32 %41, ptr %17, align 4, !tbaa !11
  store i32 5, ptr %14, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %137, %31
  %43 = load i32, ptr %14, align 4, !tbaa !11
  %44 = load i32, ptr %16, align 4, !tbaa !11
  %45 = sub nsw i32 %44, 5
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %47, label %140

47:                                               ; preds = %42
  store i32 5, ptr %15, align 4, !tbaa !11
  br label %48

48:                                               ; preds = %133, %47
  %49 = load i32, ptr %15, align 4, !tbaa !11
  %50 = load i32, ptr %17, align 4, !tbaa !11
  %51 = sub nsw i32 %50, 5
  %52 = icmp slt i32 %49, %51
  br i1 %52, label %53, label %136

53:                                               ; preds = %48
  %54 = load i32, ptr %13, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %55) #5
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.ImageContent, ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = load i32, ptr %14, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load i32, ptr %15, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds float, ptr %63, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !9
  store float %67, ptr %18, align 4, !tbaa !9
  %68 = load float, ptr %18, align 4, !tbaa !9
  %69 = call noundef float @_ZSt4fabsf(float noundef %68)
  %70 = load float, ptr %12, align 4, !tbaa !9
  %71 = fcmp ogt float %69, %70
  br i1 %71, label %72, label %132

72:                                               ; preds = %53
  %73 = load float, ptr %18, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %75) #5
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i32, ptr %14, align 4, !tbaa !11
  %79 = load i32, ptr %15, align 4, !tbaa !11
  %80 = call noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef %73, ptr noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef 0, float noundef 1.500000e+00)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %132

82:                                               ; preds = %72
  %83 = load float, ptr %18, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !11
  %85 = sub nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %86) #5
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load i32, ptr %14, align 4, !tbaa !11
  %90 = load i32, ptr %15, align 4, !tbaa !11
  %91 = call noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef %83, ptr noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef -1, float noundef 1.500000e+00)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %132

93:                                               ; preds = %82
  %94 = load float, ptr %18, align 4, !tbaa !9
  %95 = load i32, ptr %13, align 4, !tbaa !11
  %96 = add nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %97) #5
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load i32, ptr %14, align 4, !tbaa !11
  %101 = load i32, ptr %15, align 4, !tbaa !11
  %102 = call noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef %94, ptr noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef 1, float noundef 1.500000e+00)
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %132

104:                                              ; preds = %93
  %105 = load i32, ptr %13, align 4, !tbaa !11
  %106 = load i32, ptr %13, align 4, !tbaa !11
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %107) #5
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %111) #5
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load i32, ptr %13, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %115) #5
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load i32, ptr %13, align 4, !tbaa !11
  %119 = add nsw i32 %118, 2
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %120) #5
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = load i32, ptr %13, align 4, !tbaa !11
  %124 = add nsw i32 %123, 2
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %125) #5
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = load i32, ptr %14, align 4, !tbaa !11
  %129 = load i32, ptr %15, align 4, !tbaa !11
  %130 = load float, ptr %10, align 4, !tbaa !9
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z14InterpKeyPointiP12ImageContentS0_S0_S0_S0_iifRSt6vectorIP16CornerDescriptorSaIS3_EE(i32 noundef %105, ptr noundef %109, ptr noundef %113, ptr noundef %117, ptr noundef %122, ptr noundef %127, i32 noundef %128, i32 noundef %129, float noundef %130, ptr noundef nonnull align 8 dereferenceable(24) %131)
  br label %132

132:                                              ; preds = %104, %93, %82, %72, %53
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %15, align 4, !tbaa !11
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %15, align 4, !tbaa !11
  br label %48, !llvm.loop !15

136:                                              ; preds = %48
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %14, align 4, !tbaa !11
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %14, align 4, !tbaa !11
  br label %42, !llvm.loop !17

140:                                              ; preds = %42
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %142 = load i32, ptr %13, align 4, !tbaa !11
  %143 = sitofp i32 %142 to double
  %144 = fmul double %143, 1.414000e+00
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %141, double noundef %144)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @.str.3)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef @_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #5
  %150 = trunc i64 %149 to i32
  store i32 %150, ptr %20, align 4, !tbaa !11
  br label %151

151:                                              ; preds = %140
  %152 = load i32, ptr %13, align 4, !tbaa !11
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %13, align 4, !tbaa !11
  br label %26, !llvm.loop !18

154:                                              ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) #1

; 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) #4

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

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

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

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

%"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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10FindMaxMinSt6vectorIP12ImageContentSaIS1_EES3_S3_fRS_IP16CornerDescriptorSaIS5_EEf(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, float noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, float noundef %5) local_unnamed_addr #2 {
  %7 = tail call noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %8 = trunc i64 %7 to i32
  %9 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %10 = icmp sgt i32 %8, 3
  br i1 %10, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %6
  %11 = add i64 %7, 4294967294
  %wide.trip.count59 = and i64 %11, 4294967295
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %._crit_edge46
  %indvars.iv56 = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next57.pre-phi, %._crit_edge46 ]
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv56) #4
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv56) #4
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %18 = add i32 %14, -5
  %19 = icmp sgt i32 %14, 10
  br i1 %19, label %.preheader.lr.ph, label %.lr.ph.._crit_edge46_crit_edge

.lr.ph.._crit_edge46_crit_edge:                   ; preds = %.lr.ph
  %.pre = add nuw nsw i64 %indvars.iv56, 1
  br label %._crit_edge46

.preheader.lr.ph:                                 ; preds = %.lr.ph
  %20 = icmp sgt i32 %17, 10
  %21 = add nsw i64 %indvars.iv56, -1
  %22 = add nuw nsw i64 %indvars.iv56, 1
  %23 = add nuw nsw i64 %indvars.iv56, 2
  br i1 %20, label %.preheader.us.preheader, label %._crit_edge46

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %24 = add nsw i32 %17, -5
  %wide.trip.count54 = zext nneg i32 %18 to i64
  %wide.trip.count = zext i32 %24 to i64
  %25 = trunc nuw nsw i64 %indvars.iv56 to i32
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv51 = phi i64 [ 5, %.preheader.us.preheader ], [ %indvars.iv.next52, %._crit_edge.us ]
  %26 = trunc nuw nsw i64 %indvars.iv51 to i32
  br label %27

27:                                               ; preds = %.preheader.us, %62
  %indvars.iv = phi i64 [ 5, %.preheader.us ], [ %indvars.iv.next, %62 ]
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv56) #4
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv51
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds float, ptr %33, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !12
  %36 = tail call noundef float @_ZSt4fabsf(float noundef %35)
  %37 = fcmp ogt float %36, %5
  br i1 %37, label %38, label %62

38:                                               ; preds = %27
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv56) #4
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = trunc nuw nsw i64 %indvars.iv to i32
  %42 = tail call noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef %35, ptr noundef %40, i32 noundef %26, i32 noundef %41, i32 noundef 0, float noundef 1.500000e+00)
  %.not.us = icmp eq i32 %42, 0
  br i1 %.not.us, label %62, label %43

43:                                               ; preds = %38
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %21) #4
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = tail call noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef %35, ptr noundef %45, i32 noundef %26, i32 noundef %41, i32 noundef -1, float noundef 1.500000e+00)
  %.not42.us = icmp eq i32 %46, 0
  br i1 %.not42.us, label %62, label %47

47:                                               ; preds = %43
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %22) #4
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = tail call noundef i32 @_Z11LocalMaxMinfP12ImageContentiiif(float noundef %35, ptr noundef %49, i32 noundef %26, i32 noundef %41, i32 noundef 1, float noundef 1.500000e+00)
  %.not43.us = icmp eq i32 %50, 0
  br i1 %.not43.us, label %62, label %51

51:                                               ; preds = %47
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv56) #4
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv56) #4
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv56) #4
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %23) #4
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %23) #4
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  tail call void @_Z14InterpKeyPointiP12ImageContentS0_S0_S0_S0_iifRSt6vectorIP16CornerDescriptorSaIS3_EE(i32 noundef %25, ptr noundef %53, ptr noundef %55, ptr noundef %57, ptr noundef %59, ptr noundef %61, i32 noundef %26, i32 noundef %41, float noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  br label %62

62:                                               ; preds = %51, %47, %43, %38, %27
  %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 %27, !llvm.loop !14

._crit_edge.us:                                   ; preds = %62
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next52, %wide.trip.count54
  br i1 %exitcond55.not, label %._crit_edge46, label %.preheader.us, !llvm.loop !16

._crit_edge46:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %.lr.ph.._crit_edge46_crit_edge
  %indvars.iv.next57.pre-phi = phi i64 [ %.pre, %.lr.ph.._crit_edge46_crit_edge ], [ %22, %.preheader.lr.ph ], [ %22, %._crit_edge.us ]
  %63 = 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.2)
  %64 = trunc nuw nsw i64 %indvars.iv56 to i32
  %65 = uitofp nneg i32 %64 to double
  %66 = fmul double %65, 1.414000e+00
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %63, double noundef %66)
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @.str.3)
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %70 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %exitcond60.not = icmp eq i64 %indvars.iv.next57.pre-phi, %wide.trip.count59
  br i1 %exitcond60.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %._crit_edge46, %6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; 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 #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 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 #2 align 2

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

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 = { 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 = { 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 = { 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, !6, i64 16}
!10 = !{!"_ZTS12ImageContent", !11, i64 0, !11, i64 4, !11, i64 8, !11, 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}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


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