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

; 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::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88)) #1 align 2

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4rintf(float noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88), float noundef) #1 align 2

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

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

declare noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #8

declare noundef float @_Z7dXX_YYfiiP12ImageContentf(i32 noundef, i32 noundef, ptr noundef, float noundef) #8

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Corner6isExtrEv(ptr noundef nonnull align 4 dereferenceable(88)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner6setMinEv(ptr noundef nonnull align 4 dereferenceable(88)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner6setMaxEv(ptr noundef nonnull align 4 dereferenceable(88)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z14searchDerScaleP12ImageContentP16CornerDescriptor(ptr noundef %0, ptr noundef %1) #7 personality ptr @__gxx_personality_v0 {
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector.1", align 8
  %7 = alloca %"class.std::vector.1", align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = invoke noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %27)
          to label %29 unwind label %60

29:                                               ; preds = %2
  store float %28, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = invoke noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %30)
          to label %32 unwind label %64

32:                                               ; preds = %29
  store float %31, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = invoke noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %33)
          to label %35 unwind label %68

35:                                               ; preds = %32
  store float %34, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = invoke noundef i32 @_ZNK6Corner6isExtrEv(ptr noundef nonnull align 4 dereferenceable(88) %36)
          to label %38 unwind label %72

38:                                               ; preds = %35
  store i32 %37, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 41, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %39 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #10
          to label %40 unwind label %76

40:                                               ; preds = %38
  %41 = load i32, ptr %14, align 4, !tbaa !11
  %42 = load i32, ptr %14, align 4, !tbaa !11
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %39, i32 noundef %41, i32 noundef %42)
          to label %43 unwind label %80

43:                                               ; preds = %40
  store ptr %39, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %44 = load i32, ptr %14, align 4, !tbaa !11
  %45 = sub nsw i32 %44, 1
  %46 = sdiv i32 %45, 6
  %47 = sitofp i32 %46 to float
  store float %47, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %48 = load float, ptr %12, align 4, !tbaa !9
  %49 = fpext float %48 to double
  %50 = fmul double 5.000000e-01, %49
  %51 = fptrunc double %50 to float
  store float %51, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %52 = load float, ptr %12, align 4, !tbaa !9
  %53 = fmul float 2.000000e+00, %52
  store float %53, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %54 = load float, ptr %18, align 4, !tbaa !9
  store float %54, ptr %20, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %126, %43
  %56 = load float, ptr %20, align 4, !tbaa !9
  %57 = load float, ptr %19, align 4, !tbaa !9
  %58 = fcmp olt float %56, %57
  br i1 %58, label %84, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %140

60:                                               ; preds = %2
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  br label %301

64:                                               ; preds = %29
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  br label %300

68:                                               ; preds = %32
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %9, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %10, align 4
  br label %299

72:                                               ; preds = %35
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %298

76:                                               ; preds = %38
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  br label %297

80:                                               ; preds = %40
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %39, i64 noundef 80) #11
  br label %297

84:                                               ; preds = %55
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %85 unwind label %131

85:                                               ; preds = %84
  %86 = load float, ptr %20, align 4, !tbaa !9
  %87 = fmul float 3.000000e+00, %86
  %88 = invoke noundef float @_ZSt4rintf(float noundef %87)
          to label %89 unwind label %131

89:                                               ; preds = %85
  %90 = fpext float %88 to double
  %91 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %90, double 1.000000e+00)
  %92 = load i32, ptr %14, align 4, !tbaa !11
  %93 = sitofp i32 %92 to float
  %94 = fpext float %93 to double
  %95 = fdiv double %91, %94
  %96 = fptrunc double %95 to float
  store float %96, ptr %16, align 4, !tbaa !9
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load float, ptr %8, align 4, !tbaa !9
  %100 = fptosi float %99 to i32
  %101 = sitofp i32 %100 to float
  %102 = load float, ptr %11, align 4, !tbaa !9
  %103 = fptosi float %102 to i32
  %104 = sitofp i32 %103 to float
  %105 = load float, ptr %16, align 4, !tbaa !9
  %106 = load float, ptr %16, align 4, !tbaa !9
  %107 = invoke noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %97, ptr noundef %98, float noundef %101, float noundef %104, float noundef %105, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %106)
          to label %108 unwind label %131

108:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %109 = load float, ptr %17, align 4, !tbaa !9
  %110 = load float, ptr %17, align 4, !tbaa !9
  %111 = fmul float %109, %110
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %112)
          to label %114 unwind label %135

114:                                              ; preds = %108
  %115 = lshr i32 %113, 1
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = invoke noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %116)
          to label %118 unwind label %135

118:                                              ; preds = %114
  %119 = lshr i32 %117, 1
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = load float, ptr %17, align 4, !tbaa !9
  %122 = invoke noundef float @_Z7dXX_YYfiiP12ImageContentf(i32 noundef %115, i32 noundef %119, ptr noundef %120, float noundef %121)
          to label %123 unwind label %135

123:                                              ; preds = %118
  %124 = fmul float %111, %122
  store float %124, ptr %21, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %125 unwind label %135

125:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %126

126:                                              ; preds = %125
  %127 = load float, ptr %20, align 4, !tbaa !9
  %128 = fpext float %127 to double
  %129 = fmul double %128, 1.100000e+00
  %130 = fptrunc double %129 to float
  store float %130, ptr %20, align 4, !tbaa !9
  br label %55, !llvm.loop !13

131:                                              ; preds = %89, %85, %84
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %139

135:                                              ; preds = %123, %118, %114, %108
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %139

139:                                              ; preds = %135, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %296

140:                                              ; preds = %59
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = icmp eq ptr %141, null
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %141) #9
  call void @_ZdlPvm(ptr noundef %141, i64 noundef 80) #11
  br label %144

144:                                              ; preds = %143, %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store float 0.000000e+00, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store float 1.000000e+02, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 -1, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 2, ptr %25, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %271, %144
  %146 = load i32, ptr %25, align 4, !tbaa !11
  %147 = zext i32 %146 to i64
  %148 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %149 = icmp ult i64 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %274

151:                                              ; preds = %145
  %152 = load i32, ptr %13, align 4, !tbaa !11
  %153 = icmp eq i32 %152, -1
  br i1 %153, label %157, label %154

154:                                              ; preds = %151
  %155 = load i32, ptr %13, align 4, !tbaa !11
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %212

157:                                              ; preds = %154, %151
  %158 = load i32, ptr %25, align 4, !tbaa !11
  %159 = zext i32 %158 to i64
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %159) #9
  %161 = load float, ptr %160, align 4, !tbaa !9
  %162 = load i32, ptr %25, align 4, !tbaa !11
  %163 = sub i32 %162, 1
  %164 = zext i32 %163 to i64
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %164) #9
  %166 = load float, ptr %165, align 4, !tbaa !9
  %167 = fcmp ogt float %161, %166
  br i1 %167, label %168, label %212

168:                                              ; preds = %157
  %169 = load i32, ptr %25, align 4, !tbaa !11
  %170 = sub i32 %169, 2
  %171 = zext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %171) #9
  %173 = load float, ptr %172, align 4, !tbaa !9
  %174 = load i32, ptr %25, align 4, !tbaa !11
  %175 = sub i32 %174, 1
  %176 = zext i32 %175 to i64
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %176) #9
  %178 = load float, ptr %177, align 4, !tbaa !9
  %179 = fcmp ogt float %173, %178
  br i1 %179, label %180, label %212

180:                                              ; preds = %168
  %181 = load i32, ptr %25, align 4, !tbaa !11
  %182 = sub i32 %181, 1
  %183 = zext i32 %182 to i64
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %183) #9
  %185 = load float, ptr %184, align 4, !tbaa !9
  %186 = load float, ptr %12, align 4, !tbaa !9
  %187 = fdiv float %185, %186
  %188 = fsub float 1.000000e+00, %187
  %189 = invoke noundef float @_ZSt4fabsf(float noundef %188)
          to label %190 unwind label %208

190:                                              ; preds = %180
  %191 = load float, ptr %23, align 4, !tbaa !9
  %192 = fcmp olt float %189, %191
  br i1 %192, label %193, label %212

193:                                              ; preds = %190
  %194 = load i32, ptr %25, align 4, !tbaa !11
  %195 = sub i32 %194, 1
  %196 = zext i32 %195 to i64
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %196) #9
  %198 = load float, ptr %197, align 4, !tbaa !9
  %199 = load float, ptr %12, align 4, !tbaa !9
  %200 = fdiv float %198, %199
  %201 = fsub float 1.000000e+00, %200
  %202 = invoke noundef float @_ZSt4fabsf(float noundef %201)
          to label %203 unwind label %208

203:                                              ; preds = %193
  store float %202, ptr %23, align 4, !tbaa !9
  %204 = load i32, ptr %25, align 4, !tbaa !11
  %205 = sub i32 %204, 1
  store i32 %205, ptr %24, align 4, !tbaa !11
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN6Corner6setMinEv(ptr noundef nonnull align 4 dereferenceable(88) %206)
          to label %207 unwind label %208

207:                                              ; preds = %203
  br label %270

208:                                              ; preds = %264, %254, %241, %203, %193, %180
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %9, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %295

212:                                              ; preds = %190, %168, %157, %154
  %213 = load i32, ptr %13, align 4, !tbaa !11
  %214 = icmp eq i32 %213, 1
  br i1 %214, label %218, label %215

215:                                              ; preds = %212
  %216 = load i32, ptr %13, align 4, !tbaa !11
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %269

218:                                              ; preds = %215, %212
  %219 = load i32, ptr %25, align 4, !tbaa !11
  %220 = zext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %220) #9
  %222 = load float, ptr %221, align 4, !tbaa !9
  %223 = load i32, ptr %25, align 4, !tbaa !11
  %224 = sub i32 %223, 1
  %225 = zext i32 %224 to i64
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %225) #9
  %227 = load float, ptr %226, align 4, !tbaa !9
  %228 = fcmp olt float %222, %227
  br i1 %228, label %229, label %269

229:                                              ; preds = %218
  %230 = load i32, ptr %25, align 4, !tbaa !11
  %231 = sub i32 %230, 2
  %232 = zext i32 %231 to i64
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %232) #9
  %234 = load float, ptr %233, align 4, !tbaa !9
  %235 = load i32, ptr %25, align 4, !tbaa !11
  %236 = sub i32 %235, 1
  %237 = zext i32 %236 to i64
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %237) #9
  %239 = load float, ptr %238, align 4, !tbaa !9
  %240 = fcmp olt float %234, %239
  br i1 %240, label %241, label %269

241:                                              ; preds = %229
  %242 = load i32, ptr %25, align 4, !tbaa !11
  %243 = sub i32 %242, 1
  %244 = zext i32 %243 to i64
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %244) #9
  %246 = load float, ptr %245, align 4, !tbaa !9
  %247 = load float, ptr %12, align 4, !tbaa !9
  %248 = fdiv float %246, %247
  %249 = fsub float 1.000000e+00, %248
  %250 = invoke noundef float @_ZSt4fabsf(float noundef %249)
          to label %251 unwind label %208

251:                                              ; preds = %241
  %252 = load float, ptr %23, align 4, !tbaa !9
  %253 = fcmp olt float %250, %252
  br i1 %253, label %254, label %269

254:                                              ; preds = %251
  %255 = load i32, ptr %25, align 4, !tbaa !11
  %256 = sub i32 %255, 1
  %257 = zext i32 %256 to i64
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %257) #9
  %259 = load float, ptr %258, align 4, !tbaa !9
  %260 = load float, ptr %12, align 4, !tbaa !9
  %261 = fdiv float %259, %260
  %262 = fsub float 1.000000e+00, %261
  %263 = invoke noundef float @_ZSt4fabsf(float noundef %262)
          to label %264 unwind label %208

264:                                              ; preds = %254
  store float %263, ptr %23, align 4, !tbaa !9
  %265 = load i32, ptr %25, align 4, !tbaa !11
  %266 = sub i32 %265, 1
  store i32 %266, ptr %24, align 4, !tbaa !11
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN6Corner6setMaxEv(ptr noundef nonnull align 4 dereferenceable(88) %267)
          to label %268 unwind label %208

268:                                              ; preds = %264
  br label %269

269:                                              ; preds = %268, %251, %229, %218, %215
  br label %270

270:                                              ; preds = %269, %207
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %25, align 4, !tbaa !11
  %273 = add i32 %272, 1
  store i32 %273, ptr %25, align 4, !tbaa !11
  br label %145, !llvm.loop !15

274:                                              ; preds = %150
  %275 = load i32, ptr %24, align 4, !tbaa !11
  %276 = icmp sgt i32 %275, 0
  br i1 %276, label %277, label %292

277:                                              ; preds = %274
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = load i32, ptr %24, align 4, !tbaa !11
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %280) #9
  %282 = load float, ptr %281, align 4, !tbaa !9
  invoke void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %278, float noundef %282)
          to label %283 unwind label %288

283:                                              ; preds = %277
  %284 = load i32, ptr %24, align 4, !tbaa !11
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %285) #9
  %287 = load float, ptr %286, align 4, !tbaa !9
  store float %287, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %293

288:                                              ; preds = %277
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %9, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %10, align 4
  br label %295

292:                                              ; preds = %274
  store float 0.000000e+00, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %293

293:                                              ; preds = %292, %283
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  %294 = load float, ptr %3, align 4
  ret float %294

295:                                              ; preds = %288, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %296

296:                                              ; preds = %295, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %297

297:                                              ; preds = %296, %80, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %298

298:                                              ; preds = %297, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %299

299:                                              ; preds = %298, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %300

300:                                              ; preds = %299, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %301

301:                                              ; preds = %300, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  br label %302

302:                                              ; preds = %301
  %303 = load ptr, ptr %9, align 8
  %304 = load i32, ptr %10, align 4
  %305 = insertvalue { ptr, i32 } poison, ptr %303, 0
  %306 = insertvalue { ptr, i32 } %305, i32 %304, 1
  resume { ptr, i32 } %306
}

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { 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 #8 = { "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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress 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 float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

; 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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4rintf(float noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88), float noundef) local_unnamed_addr #1 align 2

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

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

declare noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #8

declare noundef float @_Z7dXX_YYfiiP12ImageContentf(i32 noundef, i32 noundef, ptr noundef, float noundef) local_unnamed_addr #8

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Corner6isExtrEv(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner6setMinEv(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner6setMaxEv(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z14searchDerScaleP12ImageContentP16CornerDescriptor(ptr noundef %0, ptr noundef %1) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.1", align 8
  %4 = alloca %"class.std::vector.1", align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %7 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  %8 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  %9 = call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  %10 = call noundef i32 @_ZNK6Corner6isExtrEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  %11 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #10
          to label %12 unwind label %24

12:                                               ; preds = %2
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %11, i32 noundef 41, i32 noundef 41)
          to label %13 unwind label %26

13:                                               ; preds = %12
  %14 = fmul float %9, 5.000000e-01
  %15 = fmul float %9, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store float %14, ptr %5, align 4, !tbaa !5
  %16 = fcmp olt float %14, %15
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %13
  %17 = fptosi float %7 to i32
  %18 = sitofp i32 %17 to float
  %19 = fptosi float %8 to i32
  %20 = sitofp i32 %19 to float
  br label %28

._crit_edge:                                      ; preds = %46, %13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 80) #11
  %21 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %22 = icmp ugt i64 %21, 2
  br i1 %22, label %.lr.ph77, label %._crit_edge78.thread

.lr.ph77:                                         ; preds = %._crit_edge
  %23 = add i32 %10, 1
  %or.cond = icmp ult i32 %23, 2
  %or.cond3 = icmp ult i32 %10, 2
  br label %58

24:                                               ; preds = %2
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %130

26:                                               ; preds = %12
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 80) #11
  br label %130

28:                                               ; preds = %.lr.ph, %46
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %29 unwind label %52

29:                                               ; preds = %28
  %30 = load float, ptr %5, align 4, !tbaa !5
  %31 = fmul float %30, 3.000000e+00
  %32 = call noundef float @_ZSt4rintf(float noundef %31)
  %33 = fpext float %32 to double
  %34 = call double @llvm.fmuladd.f64(double %33, double 2.000000e+00, double 1.000000e+00)
  %35 = fdiv double %34, 4.100000e+01
  %36 = fptrunc double %35 to float
  %37 = invoke noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %11, ptr noundef %0, float noundef %18, float noundef %20, float noundef %36, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %36)
          to label %38 unwind label %52

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %39 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %40 = lshr i32 %39, 1
  %41 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %42 = lshr i32 %41, 1
  %43 = invoke noundef float @_Z7dXX_YYfiiP12ImageContentf(i32 noundef %40, i32 noundef %42, ptr noundef nonnull %11, float noundef 6.000000e+00)
          to label %44 unwind label %54

44:                                               ; preds = %38
  %45 = fmul float %43, 3.600000e+01
  store float %45, ptr %6, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %46 unwind label %54

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %47 = load float, ptr %5, align 4, !tbaa !5
  %48 = fpext float %47 to double
  %49 = fmul double %48, 1.100000e+00
  %50 = fptrunc double %49 to float
  store float %50, ptr %5, align 4, !tbaa !5
  %51 = fcmp ogt float %15, %50
  br i1 %51, label %28, label %._crit_edge, !llvm.loop !9

52:                                               ; preds = %29, %28
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %44, %38
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %130

._crit_edge78:                                    ; preds = %119
  %57 = icmp sgt i32 %.1, 0
  br i1 %57, label %124, label %._crit_edge78.thread

58:                                               ; preds = %.lr.ph77, %119
  %59 = phi i64 [ 2, %.lr.ph77 ], [ %121, %119 ]
  %.075 = phi i32 [ 2, %.lr.ph77 ], [ %120, %119 ]
  %.06274 = phi i32 [ -1, %.lr.ph77 ], [ %.1, %119 ]
  %.06373 = phi float [ 1.000000e+02, %.lr.ph77 ], [ %.164, %119 ]
  br i1 %or.cond, label %60, label %89

60:                                               ; preds = %58
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %59) #9
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = add i32 %.075, -1
  %64 = zext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %64) #9
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fcmp ogt float %62, %66
  br i1 %67, label %68, label %89

68:                                               ; preds = %60
  %69 = add i32 %.075, -2
  %70 = zext i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %70) #9
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %64) #9
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = fcmp ogt float %72, %74
  br i1 %75, label %76, label %89

76:                                               ; preds = %68
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %64) #9
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = fdiv float %78, %9
  %80 = fsub float 1.000000e+00, %79
  %81 = call noundef float @_ZSt4fabsf(float noundef %80)
  %82 = fcmp olt float %81, %.06373
  br i1 %82, label %83, label %89

83:                                               ; preds = %76
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %64) #9
  %85 = load float, ptr %84, align 4, !tbaa !5
  %86 = fdiv float %85, %9
  %87 = fsub float 1.000000e+00, %86
  %88 = call noundef float @_ZSt4fabsf(float noundef %87)
  call void @_ZN6Corner6setMinEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  br label %119

89:                                               ; preds = %58, %76, %68, %60
  br i1 %or.cond3, label %90, label %119

90:                                               ; preds = %89
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %59) #9
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = add i32 %.075, -1
  %94 = zext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %94) #9
  %96 = load float, ptr %95, align 4, !tbaa !5
  %97 = fcmp olt float %92, %96
  br i1 %97, label %98, label %119

98:                                               ; preds = %90
  %99 = add i32 %.075, -2
  %100 = zext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %100) #9
  %102 = load float, ptr %101, align 4, !tbaa !5
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %94) #9
  %104 = load float, ptr %103, align 4, !tbaa !5
  %105 = fcmp olt float %102, %104
  br i1 %105, label %106, label %119

106:                                              ; preds = %98
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %94) #9
  %108 = load float, ptr %107, align 4, !tbaa !5
  %109 = fdiv float %108, %9
  %110 = fsub float 1.000000e+00, %109
  %111 = call noundef float @_ZSt4fabsf(float noundef %110)
  %112 = fcmp olt float %111, %.06373
  br i1 %112, label %113, label %119

113:                                              ; preds = %106
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %94) #9
  %115 = load float, ptr %114, align 4, !tbaa !5
  %116 = fdiv float %115, %9
  %117 = fsub float 1.000000e+00, %116
  %118 = call noundef float @_ZSt4fabsf(float noundef %117)
  call void @_ZN6Corner6setMaxEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  br label %119

119:                                              ; preds = %83, %89, %113, %106, %98, %90
  %.164 = phi float [ %88, %83 ], [ %118, %113 ], [ %.06373, %106 ], [ %.06373, %98 ], [ %.06373, %90 ], [ %.06373, %89 ]
  %.1 = phi i32 [ %63, %83 ], [ %93, %113 ], [ %.06274, %106 ], [ %.06274, %98 ], [ %.06274, %90 ], [ %.06274, %89 ]
  %120 = add i32 %.075, 1
  %121 = zext i32 %120 to i64
  %122 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %123 = icmp ugt i64 %122, %121
  br i1 %123, label %58, label %._crit_edge78, !llvm.loop !11

124:                                              ; preds = %._crit_edge78
  %125 = zext nneg i32 %.1 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %125) #9
  %127 = load float, ptr %126, align 4, !tbaa !5
  call void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %1, float noundef %127)
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %125) #9
  %129 = load float, ptr %128, align 4, !tbaa !5
  br label %._crit_edge78.thread

._crit_edge78.thread:                             ; preds = %._crit_edge, %._crit_edge78, %124
  %.065 = phi float [ %129, %124 ], [ 0.000000e+00, %._crit_edge78 ], [ 0.000000e+00, %._crit_edge ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  ret float %.065

130:                                              ; preds = %56, %26, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %56 ], [ %27, %26 ], [ %25, %24 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn.pn
}

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

attributes #0 = { mustprogress 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { 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 #8 = { "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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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