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

; 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 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)) #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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 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) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 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) #3 align 2

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

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

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

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

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

30:                                               ; preds = %99, %8
  %31 = load i32, ptr %23, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = call noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %35, label %41

35:                                               ; preds = %30
  %36 = load i32, ptr %23, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = add i32 %37, %38
  %40 = icmp ult i32 %36, %39
  br label %41

41:                                               ; preds = %35, %30
  %42 = phi i1 [ false, %30 ], [ %40, %35 ]
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %102

44:                                               ; preds = %41
  %45 = load float, ptr %15, align 4, !tbaa !11
  %46 = load i32, ptr %23, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %47) #6
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fdiv float %45, %49
  store float %50, ptr %19, align 4, !tbaa !11
  %51 = load float, ptr %16, align 4, !tbaa !11
  %52 = load i32, ptr %23, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %53) #6
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = fdiv float %51, %55
  store float %56, ptr %20, align 4, !tbaa !11
  %57 = load float, ptr %19, align 4, !tbaa !11
  %58 = fcmp ogt float %57, 5.000000e+00
  br i1 %58, label %59, label %98

59:                                               ; preds = %44
  %60 = load float, ptr %19, align 4, !tbaa !11
  %61 = load i32, ptr %23, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %62) #6
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %64)
          to label %66 unwind label %94

66:                                               ; preds = %59
  %67 = sub i32 %65, 5
  %68 = uitofp i32 %67 to float
  %69 = fcmp olt float %60, %68
  br i1 %69, label %70, label %98

70:                                               ; preds = %66
  %71 = load float, ptr %20, align 4, !tbaa !11
  %72 = fcmp ogt float %71, 5.000000e+00
  br i1 %72, label %73, label %98

73:                                               ; preds = %70
  %74 = load float, ptr %20, align 4, !tbaa !11
  %75 = load i32, ptr %23, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %76) #6
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = invoke noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %78)
          to label %80 unwind label %94

80:                                               ; preds = %73
  %81 = sub i32 %79, 5
  %82 = uitofp i32 %81 to float
  %83 = fcmp olt float %74, %82
  br i1 %83, label %84, label %98

84:                                               ; preds = %80
  %85 = load i32, ptr %23, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %86) #6
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load float, ptr %19, align 4, !tbaa !11
  %90 = load float, ptr %20, align 4, !tbaa !11
  %91 = invoke noundef float @_ZN12ImageContent8getValueEff(ptr noundef nonnull align 8 dereferenceable(80) %88, float noundef %89, float noundef %90)
          to label %92 unwind label %94

92:                                               ; preds = %84
  store float %91, ptr %21, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %93 unwind label %94

93:                                               ; preds = %92
  br label %98

94:                                               ; preds = %92, %84, %73, %59
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %24, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  br label %396

98:                                               ; preds = %93, %80, %70, %66, %44
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %23, align 4, !tbaa !9
  %101 = add i32 %100, 1
  store i32 %101, ptr %23, align 4, !tbaa !9
  br label %30, !llvm.loop !13

102:                                              ; preds = %43
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = add i32 %104, 2
  %106 = icmp ult i32 %103, %105
  br i1 %106, label %107, label %110

107:                                              ; preds = %102
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = sub i32 %108, 2
  store i32 %109, ptr %13, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %107, %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = sub i32 %111, %112
  store i32 %113, ptr %26, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %388, %110
  %115 = load i32, ptr %26, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = add i32 %116, %117
  %119 = icmp ult i32 %115, %118
  br i1 %119, label %120, label %126

120:                                              ; preds = %114
  %121 = load i32, ptr %26, align 4, !tbaa !9
  %122 = add i32 %121, 2
  %123 = zext i32 %122 to i64
  %124 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %125 = icmp ult i64 %123, %124
  br label %126

126:                                              ; preds = %120, %114
  %127 = phi i1 [ false, %114 ], [ %125, %120 ]
  br i1 %127, label %129, label %128

128:                                              ; preds = %126
  store i32 5, ptr %27, align 4
  br label %391

129:                                              ; preds = %126
  %130 = load i32, ptr %26, align 4, !tbaa !9
  %131 = sub i32 %130, 1
  %132 = zext i32 %131 to i64
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %132) #6
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = load i32, ptr %26, align 4, !tbaa !9
  %136 = sub i32 %135, 2
  %137 = zext i32 %136 to i64
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %137) #6
  %139 = load float, ptr %138, align 4, !tbaa !11
  %140 = fcmp ogt float %134, %139
  br i1 %140, label %141, label %257

141:                                              ; preds = %129
  %142 = load i32, ptr %26, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %143) #6
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = load i32, ptr %26, align 4, !tbaa !9
  %147 = sub i32 %146, 1
  %148 = zext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %148) #6
  %150 = load float, ptr %149, align 4, !tbaa !11
  %151 = fcmp ogt float %145, %150
  br i1 %151, label %152, label %257

152:                                              ; preds = %141
  %153 = load i32, ptr %26, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %154) #6
  %156 = load float, ptr %155, align 4, !tbaa !11
  %157 = load i32, ptr %26, align 4, !tbaa !9
  %158 = add i32 %157, 1
  %159 = zext i32 %158 to i64
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %159) #6
  %161 = load float, ptr %160, align 4, !tbaa !11
  %162 = fcmp ogt float %156, %161
  br i1 %162, label %163, label %257

163:                                              ; preds = %152
  %164 = load i32, ptr %26, align 4, !tbaa !9
  %165 = add i32 %164, 1
  %166 = zext i32 %165 to i64
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %166) #6
  %168 = load float, ptr %167, align 4, !tbaa !11
  %169 = load i32, ptr %26, align 4, !tbaa !9
  %170 = add 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) %18, i64 noundef %171) #6
  %173 = load float, ptr %172, align 4, !tbaa !11
  %174 = fcmp ogt float %168, %173
  br i1 %174, label %175, label %257

175:                                              ; preds = %163
  %176 = load i32, ptr %26, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %177) #6
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = load float, ptr %22, align 4, !tbaa !11
  %181 = fcmp ogt float %179, %180
  br i1 %181, label %182, label %257

182:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = sub i32 %183, 1
  %185 = zext i32 %184 to i64
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %185) #6
  %187 = load float, ptr %186, align 4, !tbaa !11
  %188 = load i32, ptr %26, align 4, !tbaa !9
  %189 = add i32 %188, 1
  %190 = zext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %190) #6
  %192 = load float, ptr %191, align 4, !tbaa !11
  %193 = fsub float %187, %192
  %194 = fpext float %193 to double
  %195 = fmul double 5.000000e-01, %194
  %196 = load i32, ptr %26, align 4, !tbaa !9
  %197 = sub i32 %196, 1
  %198 = zext i32 %197 to i64
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %198) #6
  %200 = load float, ptr %199, align 4, !tbaa !11
  %201 = load i32, ptr %26, align 4, !tbaa !9
  %202 = add i32 %201, 1
  %203 = zext i32 %202 to i64
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %203) #6
  %205 = load float, ptr %204, align 4, !tbaa !11
  %206 = fadd float %200, %205
  %207 = load i32, ptr %26, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %208) #6
  %210 = load float, ptr %209, align 4, !tbaa !11
  %211 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %210, float %206)
  %212 = fpext float %211 to double
  %213 = fdiv double %195, %212
  %214 = fptrunc double %213 to float
  store float %214, ptr %28, align 4, !tbaa !11
  %215 = load float, ptr %28, align 4, !tbaa !11
  %216 = fcmp ogt float %215, 0.000000e+00
  br i1 %216, label %217, label %235

217:                                              ; preds = %182
  %218 = load i32, ptr %26, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %219) #6
  %221 = load float, ptr %220, align 4, !tbaa !11
  %222 = load float, ptr %28, align 4, !tbaa !11
  %223 = load i32, ptr %26, align 4, !tbaa !9
  %224 = add 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) %1, i64 noundef %225) #6
  %227 = load float, ptr %226, align 4, !tbaa !11
  %228 = load i32, ptr %26, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %229) #6
  %231 = load float, ptr %230, align 4, !tbaa !11
  %232 = fsub float %227, %231
  %233 = call float @llvm.fmuladd.f32(float %222, float %232, float %221)
  %234 = load ptr, ptr %17, align 8, !tbaa !5
  store float %233, ptr %234, align 4, !tbaa !11
  br label %255

235:                                              ; preds = %182
  %236 = load i32, ptr %26, align 4, !tbaa !9
  %237 = sub i32 %236, 1
  %238 = zext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %238) #6
  %240 = load float, ptr %239, align 4, !tbaa !11
  %241 = load float, ptr %28, align 4, !tbaa !11
  %242 = fsub float 1.000000e+00, %241
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %244) #6
  %246 = load float, ptr %245, align 4, !tbaa !11
  %247 = load i32, ptr %26, align 4, !tbaa !9
  %248 = sub i32 %247, 1
  %249 = zext i32 %248 to i64
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %249) #6
  %251 = load float, ptr %250, align 4, !tbaa !11
  %252 = fsub float %246, %251
  %253 = call float @llvm.fmuladd.f32(float %242, float %252, float %240)
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  store float %253, ptr %254, align 4, !tbaa !11
  br label %255

255:                                              ; preds = %235, %217
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %256 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %256, ptr %9, align 4
  store i32 1, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %391

257:                                              ; preds = %175, %163, %152, %141, %129
  %258 = load i32, ptr %26, align 4, !tbaa !9
  %259 = sub i32 %258, 1
  %260 = zext i32 %259 to i64
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %260) #6
  %262 = load float, ptr %261, align 4, !tbaa !11
  %263 = load i32, ptr %26, align 4, !tbaa !9
  %264 = sub i32 %263, 2
  %265 = zext i32 %264 to i64
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %265) #6
  %267 = load float, ptr %266, align 4, !tbaa !11
  %268 = fcmp olt float %262, %267
  br i1 %268, label %269, label %386

269:                                              ; preds = %257
  %270 = load i32, ptr %26, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %271) #6
  %273 = load float, ptr %272, align 4, !tbaa !11
  %274 = load i32, ptr %26, align 4, !tbaa !9
  %275 = sub i32 %274, 1
  %276 = zext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %276) #6
  %278 = load float, ptr %277, align 4, !tbaa !11
  %279 = fcmp olt float %273, %278
  br i1 %279, label %280, label %386

280:                                              ; preds = %269
  %281 = load i32, ptr %26, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %282) #6
  %284 = load float, ptr %283, align 4, !tbaa !11
  %285 = load i32, ptr %26, align 4, !tbaa !9
  %286 = add i32 %285, 1
  %287 = zext i32 %286 to i64
  %288 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %287) #6
  %289 = load float, ptr %288, align 4, !tbaa !11
  %290 = fcmp olt float %284, %289
  br i1 %290, label %291, label %386

291:                                              ; preds = %280
  %292 = load i32, ptr %26, align 4, !tbaa !9
  %293 = add i32 %292, 1
  %294 = zext i32 %293 to i64
  %295 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %294) #6
  %296 = load float, ptr %295, align 4, !tbaa !11
  %297 = load i32, ptr %26, align 4, !tbaa !9
  %298 = add i32 %297, 2
  %299 = zext i32 %298 to i64
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %299) #6
  %301 = load float, ptr %300, align 4, !tbaa !11
  %302 = fcmp olt float %296, %301
  br i1 %302, label %303, label %386

303:                                              ; preds = %291
  %304 = load i32, ptr %26, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %305) #6
  %307 = load float, ptr %306, align 4, !tbaa !11
  %308 = load float, ptr %22, align 4, !tbaa !11
  %309 = fneg float %308
  %310 = fcmp olt float %307, %309
  br i1 %310, label %311, label %386

311:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %312 = load i32, ptr %26, align 4, !tbaa !9
  %313 = sub i32 %312, 1
  %314 = zext i32 %313 to i64
  %315 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %314) #6
  %316 = load float, ptr %315, align 4, !tbaa !11
  %317 = load i32, ptr %26, align 4, !tbaa !9
  %318 = add i32 %317, 1
  %319 = zext i32 %318 to i64
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %319) #6
  %321 = load float, ptr %320, align 4, !tbaa !11
  %322 = fsub float %316, %321
  %323 = fpext float %322 to double
  %324 = fmul double 5.000000e-01, %323
  %325 = load i32, ptr %26, align 4, !tbaa !9
  %326 = sub i32 %325, 1
  %327 = zext i32 %326 to i64
  %328 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %327) #6
  %329 = load float, ptr %328, align 4, !tbaa !11
  %330 = load i32, ptr %26, align 4, !tbaa !9
  %331 = add i32 %330, 1
  %332 = zext i32 %331 to i64
  %333 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %332) #6
  %334 = load float, ptr %333, align 4, !tbaa !11
  %335 = fadd float %329, %334
  %336 = load i32, ptr %26, align 4, !tbaa !9
  %337 = zext i32 %336 to i64
  %338 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %337) #6
  %339 = load float, ptr %338, align 4, !tbaa !11
  %340 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %339, float %335)
  %341 = fpext float %340 to double
  %342 = fdiv double %324, %341
  %343 = fptrunc double %342 to float
  store float %343, ptr %29, align 4, !tbaa !11
  %344 = load float, ptr %29, align 4, !tbaa !11
  %345 = fcmp ogt float %344, 0.000000e+00
  br i1 %345, label %346, label %364

346:                                              ; preds = %311
  %347 = load i32, ptr %26, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %348) #6
  %350 = load float, ptr %349, align 4, !tbaa !11
  %351 = load float, ptr %29, align 4, !tbaa !11
  %352 = load i32, ptr %26, align 4, !tbaa !9
  %353 = add i32 %352, 1
  %354 = zext i32 %353 to i64
  %355 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %354) #6
  %356 = load float, ptr %355, align 4, !tbaa !11
  %357 = load i32, ptr %26, align 4, !tbaa !9
  %358 = zext i32 %357 to i64
  %359 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %358) #6
  %360 = load float, ptr %359, align 4, !tbaa !11
  %361 = fsub float %356, %360
  %362 = call float @llvm.fmuladd.f32(float %351, float %361, float %350)
  %363 = load ptr, ptr %17, align 8, !tbaa !5
  store float %362, ptr %363, align 4, !tbaa !11
  br label %384

364:                                              ; preds = %311
  %365 = load i32, ptr %26, align 4, !tbaa !9
  %366 = sub i32 %365, 1
  %367 = zext i32 %366 to i64
  %368 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %367) #6
  %369 = load float, ptr %368, align 4, !tbaa !11
  %370 = load float, ptr %29, align 4, !tbaa !11
  %371 = fsub float 1.000000e+00, %370
  %372 = load i32, ptr %26, align 4, !tbaa !9
  %373 = zext i32 %372 to i64
  %374 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %373) #6
  %375 = load float, ptr %374, align 4, !tbaa !11
  %376 = load i32, ptr %26, align 4, !tbaa !9
  %377 = sub i32 %376, 1
  %378 = zext i32 %377 to i64
  %379 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %378) #6
  %380 = load float, ptr %379, align 4, !tbaa !11
  %381 = fsub float %375, %380
  %382 = call float @llvm.fmuladd.f32(float %371, float %381, float %369)
  %383 = load ptr, ptr %17, align 8, !tbaa !5
  store float %382, ptr %383, align 4, !tbaa !11
  br label %384

384:                                              ; preds = %364, %346
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %385 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %385, ptr %9, align 4
  store i32 1, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %391

386:                                              ; preds = %303, %291, %280, %269, %257
  br label %387

387:                                              ; preds = %386
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %26, align 4, !tbaa !9
  %390 = add i32 %389, 1
  store i32 %390, ptr %26, align 4, !tbaa !9
  br label %114, !llvm.loop !15

391:                                              ; preds = %384, %255, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %392 = load i32, ptr %27, align 4
  switch i32 %392, label %394 [
    i32 5, label %393
  ]

393:                                              ; preds = %391
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %27, align 4
  br label %394

394:                                              ; preds = %393, %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  %395 = load i32, ptr %9, align 4
  ret i32 %395

396:                                              ; preds = %94
  %397 = load ptr, ptr %24, align 8
  %398 = load i32, ptr %25, align 4
  %399 = insertvalue { ptr, i32 } poison, ptr %397, 0
  %400 = insertvalue { ptr, i32 } %399, i32 %398, 1
  resume { ptr, i32 } %400
}

declare noundef float @_ZN12ImageContent8getValueEff(ptr noundef nonnull align 8 dereferenceable(80), float noundef, float noundef) #5

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 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 #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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #3 align 2

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

; 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 #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9getLapMaxSt6vectorIP12ImageContentSaIS1_EES_IfSaIfEEjjjffRf(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, float noundef %6, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %7) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.std::vector.5", align 8
  %10 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %11 = call noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %12 = icmp ne i64 %11, 0
  %13 = add i32 %4, %2
  %14 = icmp ne i32 %13, 0
  %or.cond102113 = and i1 %14, %12
  br i1 %or.cond102113, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %8
  %15 = zext i32 %13 to i64
  br label %.lr.ph

.critedge:                                        ; preds = %51, %8
  %16 = add i32 %3, 2
  %17 = icmp ugt i32 %16, %2
  %18 = add i32 %2, -2
  %spec.select = select i1 %17, i32 %18, i32 %3
  %19 = sub i32 %2, %spec.select
  %20 = icmp ult i32 %19, %13
  br i1 %20, label %.lr.ph116.preheader, label %.critedge103

.lr.ph116.preheader:                              ; preds = %.critedge
  %21 = zext i32 %19 to i64
  br label %.lr.ph116

.lr.ph:                                           ; preds = %.lr.ph.preheader, %51
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %51 ]
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = fdiv float %5, %23
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #6
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = fdiv float %6, %26
  %28 = fcmp ogt float %24, 5.000000e+00
  br i1 %28, label %29, label %51

29:                                               ; preds = %.lr.ph
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %31)
  %33 = add i32 %32, -5
  %34 = uitofp i32 %33 to float
  %35 = fcmp olt float %24, %34
  %36 = fcmp ogt float %27, 5.000000e+00
  %or.cond = select i1 %35, i1 %36, i1 false
  br i1 %or.cond, label %37, label %51

37:                                               ; preds = %29
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %39)
  %41 = add i32 %40, -5
  %42 = uitofp i32 %41 to float
  %43 = fcmp olt float %27, %42
  br i1 %43, label %44, label %51

44:                                               ; preds = %37
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ImageContentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #6
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = invoke noundef float @_ZN12ImageContent8getValueEff(ptr noundef nonnull align 8 dereferenceable(80) %46, float noundef %24, float noundef %27)
          to label %48 unwind label %49

48:                                               ; preds = %44
  store float %47, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %51 unwind label %49

49:                                               ; preds = %48, %44
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  resume { ptr, i32 } %50

51:                                               ; preds = %.lr.ph, %29, %37, %48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = call noundef i64 @_ZNKSt6vectorIP12ImageContentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %53 = icmp ugt i64 %52, %indvars.iv.next
  %54 = icmp ult i64 %indvars.iv.next, %15
  %or.cond102 = and i1 %54, %53
  br i1 %or.cond102, label %.lr.ph, label %.critedge, !llvm.loop !11

.lr.ph116:                                        ; preds = %.lr.ph116.preheader, %199
  %indvars.iv126 = phi i64 [ %21, %.lr.ph116.preheader ], [ %indvars.iv.next127, %199 ]
  %55 = add nuw i64 %indvars.iv126, 2
  %56 = and i64 %55, 4294967295
  %57 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %58 = icmp ugt i64 %57, %56
  br i1 %58, label %59, label %.critedge103

59:                                               ; preds = %.lr.ph116
  %60 = add nuw i64 %indvars.iv126, 4294967295
  %61 = and i64 %60, 4294967295
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = add nuw i64 %indvars.iv126, 4294967294
  %65 = and i64 %64, 4294967295
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %65) #6
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fcmp ogt float %63, %67
  br i1 %68, label %69, label %131

69:                                               ; preds = %59
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %73 = load float, ptr %72, align 4, !tbaa !5
  %74 = fcmp ogt float %71, %73
  br i1 %74, label %75, label %131

75:                                               ; preds = %69
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = add nuw nsw i64 %indvars.iv126, 1
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %78) #6
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = fcmp ogt float %77, %80
  br i1 %81, label %82, label %131

82:                                               ; preds = %75
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %78) #6
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %56) #6
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = fcmp ogt float %84, %86
  br i1 %87, label %88, label %131

88:                                               ; preds = %82
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %90 = load float, ptr %89, align 4, !tbaa !5
  %91 = fcmp ogt float %90, 1.000000e+01
  br i1 %91, label %92, label %131

92:                                               ; preds = %88
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %78) #6
  %96 = load float, ptr %95, align 4, !tbaa !5
  %97 = fsub float %94, %96
  %98 = fpext float %97 to double
  %99 = fmul double %98, 5.000000e-01
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %101 = load float, ptr %100, align 4, !tbaa !5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %78) #6
  %103 = load float, ptr %102, align 4, !tbaa !5
  %104 = fadd float %101, %103
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %106 = load float, ptr %105, align 4, !tbaa !5
  %107 = call float @llvm.fmuladd.f32(float %106, float -2.000000e+00, float %104)
  %108 = fpext float %107 to double
  %109 = fdiv double %99, %108
  %110 = fptrunc double %109 to float
  %111 = fcmp ogt float %110, 0.000000e+00
  br i1 %111, label %112, label %121

112:                                              ; preds = %92
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %114 = load float, ptr %113, align 4, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %78) #6
  %116 = load float, ptr %115, align 4, !tbaa !5
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %118 = load float, ptr %117, align 4, !tbaa !5
  %119 = fsub float %116, %118
  %120 = call float @llvm.fmuladd.f32(float %110, float %119, float %114)
  br label %.critedge103.sink.split

121:                                              ; preds = %92
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %61) #6
  %123 = load float, ptr %122, align 4, !tbaa !5
  %124 = fsub float 1.000000e+00, %110
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %126 = load float, ptr %125, align 4, !tbaa !5
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %61) #6
  %128 = load float, ptr %127, align 4, !tbaa !5
  %129 = fsub float %126, %128
  %130 = call float @llvm.fmuladd.f32(float %124, float %129, float %123)
  br label %.critedge103.sink.split

131:                                              ; preds = %88, %82, %75, %69, %59
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %133 = load float, ptr %132, align 4, !tbaa !5
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %65) #6
  %135 = load float, ptr %134, align 4, !tbaa !5
  %136 = fcmp olt float %133, %135
  br i1 %136, label %137, label %199

137:                                              ; preds = %131
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %139 = load float, ptr %138, align 4, !tbaa !5
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %141 = load float, ptr %140, align 4, !tbaa !5
  %142 = fcmp olt float %139, %141
  br i1 %142, label %143, label %199

143:                                              ; preds = %137
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %145 = load float, ptr %144, align 4, !tbaa !5
  %146 = add nuw nsw i64 %indvars.iv126, 1
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %146) #6
  %148 = load float, ptr %147, align 4, !tbaa !5
  %149 = fcmp olt float %145, %148
  br i1 %149, label %150, label %199

150:                                              ; preds = %143
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %146) #6
  %152 = load float, ptr %151, align 4, !tbaa !5
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %56) #6
  %154 = load float, ptr %153, align 4, !tbaa !5
  %155 = fcmp olt float %152, %154
  br i1 %155, label %156, label %199

156:                                              ; preds = %150
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %158 = load float, ptr %157, align 4, !tbaa !5
  %159 = fcmp olt float %158, -1.000000e+01
  br i1 %159, label %160, label %199

160:                                              ; preds = %156
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %162 = load float, ptr %161, align 4, !tbaa !5
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %146) #6
  %164 = load float, ptr %163, align 4, !tbaa !5
  %165 = fsub float %162, %164
  %166 = fpext float %165 to double
  %167 = fmul double %166, 5.000000e-01
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61) #6
  %169 = load float, ptr %168, align 4, !tbaa !5
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %146) #6
  %171 = load float, ptr %170, align 4, !tbaa !5
  %172 = fadd float %169, %171
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv126) #6
  %174 = load float, ptr %173, align 4, !tbaa !5
  %175 = call float @llvm.fmuladd.f32(float %174, float -2.000000e+00, float %172)
  %176 = fpext float %175 to double
  %177 = fdiv double %167, %176
  %178 = fptrunc double %177 to float
  %179 = fcmp ogt float %178, 0.000000e+00
  br i1 %179, label %180, label %189

180:                                              ; preds = %160
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %182 = load float, ptr %181, align 4, !tbaa !5
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %146) #6
  %184 = load float, ptr %183, align 4, !tbaa !5
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %186 = load float, ptr %185, align 4, !tbaa !5
  %187 = fsub float %184, %186
  %188 = call float @llvm.fmuladd.f32(float %178, float %187, float %182)
  br label %.critedge103.sink.split

189:                                              ; preds = %160
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %61) #6
  %191 = load float, ptr %190, align 4, !tbaa !5
  %192 = fsub float 1.000000e+00, %178
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #6
  %194 = load float, ptr %193, align 4, !tbaa !5
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %61) #6
  %196 = load float, ptr %195, align 4, !tbaa !5
  %197 = fsub float %194, %196
  %198 = call float @llvm.fmuladd.f32(float %192, float %197, float %191)
  br label %.critedge103.sink.split

199:                                              ; preds = %156, %150, %143, %137, %131
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next127 to i32
  %exitcond.not = icmp eq i32 %13, %lftr.wideiv
  br i1 %exitcond.not, label %.critedge103, label %.lr.ph116, !llvm.loop !13

.critedge103.sink.split:                          ; preds = %180, %189, %112, %121
  %storemerge100.sink = phi float [ %130, %121 ], [ %120, %112 ], [ %198, %189 ], [ %188, %180 ]
  %.1.ph = trunc i64 %indvars.iv126 to i32
  store float %storemerge100.sink, ptr %7, align 4, !tbaa !5
  br label %.critedge103

.critedge103:                                     ; preds = %199, %.lr.ph116, %.critedge103.sink.split, %.critedge
  %.1 = phi i32 [ -1, %.critedge ], [ %.1.ph, %.critedge103.sink.split ], [ -1, %.lr.ph116 ], [ -1, %199 ]
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  ret i32 %.1
}

declare noundef float @_ZN12ImageContent8getValueEff(ptr noundef nonnull align 8 dereferenceable(80), float noundef, float noundef) local_unnamed_addr #5

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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