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

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

; 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP16CornerDescriptorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7findMaxP12ImageContentRSt6vectorIP16CornerDescriptorSaIS3_EEffi(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2, float noundef %3, i32 noundef %4) #4 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, 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 ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 5, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %19 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %19, ptr %14, align 4, !tbaa !11
  br label %20

20:                                               ; preds = %198, %5
  %21 = load i32, ptr %14, align 4, !tbaa !11
  %22 = load i32, ptr %13, align 4, !tbaa !11
  %23 = add i32 %21, %22
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %24)
  %26 = icmp ult i32 %23, %25
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %29 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %29, ptr %16, align 4, !tbaa !11
  br label %30

30:                                               ; preds = %194, %28
  %31 = load i32, ptr %16, align 4, !tbaa !11
  %32 = load i32, ptr %13, align 4, !tbaa !11
  %33 = add i32 %31, %32
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %34)
  %36 = icmp ult i32 %33, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %30
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %197

38:                                               ; preds = %30
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.ImageContent, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load i32, ptr %14, align 4, !tbaa !11
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %41, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load i32, ptr %16, align 4, !tbaa !11
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %45, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !9
  store float %49, ptr %12, align 4, !tbaa !9
  %50 = load float, ptr %12, align 4, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %class.ImageContent, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = load i32, ptr %14, align 4, !tbaa !11
  %55 = sub i32 %54, 1
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %53, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = load i32, ptr %16, align 4, !tbaa !11
  %60 = sub i32 %59, 1
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds float, ptr %58, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = fcmp ogt float %50, %63
  br i1 %64, label %65, label %193

65:                                               ; preds = %38
  %66 = load float, ptr %12, align 4, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.ImageContent, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = load i32, ptr %14, align 4, !tbaa !11
  %71 = sub i32 %70, 1
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %69, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = load i32, ptr %16, align 4, !tbaa !11
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %74, i64 %76
  %78 = load float, ptr %77, align 4, !tbaa !9
  %79 = fcmp ogt float %66, %78
  br i1 %79, label %80, label %193

80:                                               ; preds = %65
  %81 = load float, ptr %12, align 4, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.ImageContent, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = load i32, ptr %14, align 4, !tbaa !11
  %86 = sub i32 %85, 1
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %84, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %16, align 4, !tbaa !11
  %91 = add i32 %90, 1
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %89, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = fcmp ogt float %81, %94
  br i1 %95, label %96, label %193

96:                                               ; preds = %80
  %97 = load float, ptr %12, align 4, !tbaa !9
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %class.ImageContent, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = load i32, ptr %14, align 4, !tbaa !11
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i32, ptr %16, align 4, !tbaa !11
  %106 = sub i32 %105, 1
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %104, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !9
  %110 = fcmp ogt float %97, %109
  br i1 %110, label %111, label %193

111:                                              ; preds = %96
  %112 = load float, ptr %12, align 4, !tbaa !9
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.ImageContent, ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %116 = load i32, ptr %14, align 4, !tbaa !11
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %16, align 4, !tbaa !11
  %121 = add i32 %120, 1
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %119, i64 %122
  %124 = load float, ptr %123, align 4, !tbaa !9
  %125 = fcmp ogt float %112, %124
  br i1 %125, label %126, label %193

126:                                              ; preds = %111
  %127 = load float, ptr %12, align 4, !tbaa !9
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.ImageContent, ptr %128, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = load i32, ptr %14, align 4, !tbaa !11
  %132 = add i32 %131, 1
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %130, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i32, ptr %16, align 4, !tbaa !11
  %137 = sub i32 %136, 1
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds float, ptr %135, i64 %138
  %140 = load float, ptr %139, align 4, !tbaa !9
  %141 = fcmp ogt float %127, %140
  br i1 %141, label %142, label %193

142:                                              ; preds = %126
  %143 = load float, ptr %12, align 4, !tbaa !9
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.ImageContent, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = load i32, ptr %14, align 4, !tbaa !11
  %148 = add i32 %147, 1
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds ptr, ptr %146, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = load i32, ptr %16, align 4, !tbaa !11
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  %155 = load float, ptr %154, align 4, !tbaa !9
  %156 = fcmp ogt float %143, %155
  br i1 %156, label %157, label %193

157:                                              ; preds = %142
  %158 = load float, ptr %12, align 4, !tbaa !9
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %class.ImageContent, ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = load i32, ptr %14, align 4, !tbaa !11
  %163 = add i32 %162, 1
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds ptr, ptr %161, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load i32, ptr %16, align 4, !tbaa !11
  %168 = add i32 %167, 1
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %166, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !9
  %172 = fcmp ogt float %158, %171
  br i1 %172, label %173, label %193

173:                                              ; preds = %157
  %174 = load float, ptr %12, align 4, !tbaa !9
  %175 = load float, ptr %8, align 4, !tbaa !9
  %176 = fcmp ogt float %174, %175
  br i1 %176, label %177, label %193

177:                                              ; preds = %173
  %178 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #6
  %179 = load i32, ptr %16, align 4, !tbaa !11
  %180 = uitofp i32 %179 to float
  %181 = load i32, ptr %14, align 4, !tbaa !11
  %182 = uitofp i32 %181 to float
  %183 = load float, ptr %12, align 4, !tbaa !9
  %184 = load float, ptr %9, align 4, !tbaa !9
  invoke void @_ZN16CornerDescriptorC2Effff(ptr noundef nonnull align 8 dereferenceable(116) %178, float noundef %180, float noundef %182, float noundef %183, float noundef %184)
          to label %185 unwind label %189

185:                                              ; preds = %177
  store ptr %178, ptr %11, align 8, !tbaa !5
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = load i32, ptr %10, align 4, !tbaa !11
  call void @_ZN16CornerDescriptor7setTypeEi(ptr noundef nonnull align 8 dereferenceable(116) %186, i32 noundef %187)
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIP16CornerDescriptorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %188, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %193

189:                                              ; preds = %177
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %17, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %178, i64 noundef 120) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %202

193:                                              ; preds = %185, %173, %157, %142, %126, %111, %96, %80, %65, %38
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %16, align 4, !tbaa !11
  %196 = add i32 %195, 1
  store i32 %196, ptr %16, align 4, !tbaa !11
  br label %30, !llvm.loop !15

197:                                              ; preds = %37
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %14, align 4, !tbaa !11
  %200 = add i32 %199, 1
  store i32 %200, ptr %14, align 4, !tbaa !11
  br label %20, !llvm.loop !17

201:                                              ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  ret void

202:                                              ; preds = %189
  %203 = load ptr, ptr %17, align 8
  %204 = load i32, ptr %18, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16CornerDescriptorC2Effff(ptr noundef nonnull align 8 dereferenceable(116), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16CornerDescriptor7setTypeEi(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef) #2 align 2

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 = { 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 }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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: mustprogress 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) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7findMaxP12ImageContentRSt6vectorIP16CornerDescriptorSaIS3_EEffi(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2, float noundef %3, i32 noundef %4) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %7 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %8 = icmp ugt i32 %7, 10
  br i1 %8, label %.preheader.lr.ph, label %._crit_edge58

.preheader.lr.ph:                                 ; preds = %5
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %indvars.iv60 = phi i64 [ 5, %.preheader.lr.ph ], [ %12, %._crit_edge ]
  %10 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %11 = icmp ugt i32 %10, 10
  %12 = add nuw nsw i64 %indvars.iv60, 1
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %13 = trunc nuw i64 %indvars.iv60 to i32
  %14 = uitofp i32 %13 to float
  br label %19

._crit_edge58:                                    ; preds = %._crit_edge, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret void

._crit_edge:                                      ; preds = %71, %.preheader
  %15 = add nuw nsw i64 %indvars.iv60, 6
  %16 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %17 = zext i32 %16 to i64
  %18 = icmp ult i64 %15, %17
  br i1 %18, label %.preheader, label %._crit_edge58, !llvm.loop !5

19:                                               ; preds = %.lr.ph, %71
  %indvars.iv = phi i64 [ 5, %.lr.ph ], [ %indvars.iv.next, %71 ]
  %20 = load ptr, ptr %9, align 8, !tbaa !7
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv60
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds float, ptr %22, i64 %indvars.iv
  %24 = load float, ptr %23, align 4, !tbaa !14
  %25 = getelementptr ptr, ptr %20, i64 %indvars.iv60
  %26 = getelementptr i8, ptr %25, i64 -8
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = add nsw i64 %indvars.iv, -1
  %29 = getelementptr inbounds float, ptr %27, i64 %28
  %30 = load float, ptr %29, align 4, !tbaa !14
  %31 = fcmp ogt float %24, %30
  br i1 %31, label %32, label %71

32:                                               ; preds = %19
  %33 = getelementptr inbounds float, ptr %27, i64 %indvars.iv
  %34 = load float, ptr %33, align 4, !tbaa !14
  %35 = fcmp ogt float %24, %34
  br i1 %35, label %36, label %71

36:                                               ; preds = %32
  %37 = add nuw nsw i64 %indvars.iv, 1
  %38 = getelementptr inbounds float, ptr %27, i64 %37
  %39 = load float, ptr %38, align 4, !tbaa !14
  %40 = fcmp ogt float %24, %39
  br i1 %40, label %41, label %71

41:                                               ; preds = %36
  %42 = getelementptr inbounds float, ptr %22, i64 %28
  %43 = load float, ptr %42, align 4, !tbaa !14
  %44 = fcmp ogt float %24, %43
  br i1 %44, label %45, label %71

45:                                               ; preds = %41
  %46 = getelementptr inbounds float, ptr %22, i64 %37
  %47 = load float, ptr %46, align 4, !tbaa !14
  %48 = fcmp ogt float %24, %47
  br i1 %48, label %49, label %71

49:                                               ; preds = %45
  %50 = getelementptr inbounds ptr, ptr %20, i64 %12
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = getelementptr inbounds float, ptr %51, i64 %28
  %53 = load float, ptr %52, align 4, !tbaa !14
  %54 = fcmp ogt float %24, %53
  br i1 %54, label %55, label %71

55:                                               ; preds = %49
  %56 = getelementptr inbounds float, ptr %51, i64 %indvars.iv
  %57 = load float, ptr %56, align 4, !tbaa !14
  %58 = fcmp ogt float %24, %57
  br i1 %58, label %59, label %71

59:                                               ; preds = %55
  %60 = getelementptr inbounds float, ptr %51, i64 %37
  %61 = load float, ptr %60, align 4, !tbaa !14
  %62 = fcmp ogt float %24, %61
  %63 = fcmp ogt float %24, %2
  %or.cond = and i1 %63, %62
  br i1 %or.cond, label %64, label %71

64:                                               ; preds = %59
  %65 = call noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #6
  %66 = trunc nuw i64 %indvars.iv to i32
  %67 = uitofp i32 %66 to float
  invoke void @_ZN16CornerDescriptorC2Effff(ptr noundef nonnull align 8 dereferenceable(116) %65, float noundef %67, float noundef %14, float noundef %24, float noundef %3)
          to label %68 unwind label %69

68:                                               ; preds = %64
  store ptr %65, ptr %6, align 8, !tbaa !13
  call void @_ZN16CornerDescriptor7setTypeEi(ptr noundef nonnull align 8 dereferenceable(116) %65, i32 noundef %4)
  call void @_ZNSt6vectorIP16CornerDescriptorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %6)
  br label %71

69:                                               ; preds = %64
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %65, i64 noundef 120) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  resume { ptr, i32 } %70

71:                                               ; preds = %19, %32, %36, %41, %45, %49, %55, %59, %68
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %72 = add nuw nsw i64 %indvars.iv, 6
  %73 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %74 = zext i32 %73 to i64
  %75 = icmp ult i64 %72, %74
  br i1 %75, label %19, label %._crit_edge, !llvm.loop !16
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16CornerDescriptorC2Effff(ptr noundef nonnull align 8 dereferenceable(116), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16CornerDescriptor7setTypeEi(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress 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 = { 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 }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !12, i64 16}
!8 = !{!"_ZTS12ImageContent", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !10, i64 0}
!16 = distinct !{!16, !6}


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