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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5checkiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11drawCornersP12ImageContentRSt6vectorIP16CornerDescriptorSaIS3_EEPKcf(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, float noundef %3) #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %24 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = invoke noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
          to label %27 unwind label %38

27:                                               ; preds = %4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %28)
          to label %30 unwind label %38

30:                                               ; preds = %27
  invoke void @_ZN12ImageContentC2Ejjf(ptr noundef nonnull align 8 dereferenceable(80) %24, i32 noundef %26, i32 noundef %29, float noundef 0.000000e+00)
          to label %31 unwind label %38

31:                                               ; preds = %30
  store ptr %24, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %32

32:                                               ; preds = %89, %31
  %33 = load i32, ptr %14, align 4, !tbaa !11
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %34)
  %36 = icmp ult i32 %33, %35
  br i1 %36, label %42, label %37

37:                                               ; preds = %32
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %92

38:                                               ; preds = %30, %27, %4
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %12, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %332

42:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %43

43:                                               ; preds = %85, %42
  %44 = load i32, ptr %16, align 4, !tbaa !11
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %45)
  %47 = icmp ult i32 %44, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.ImageContent, ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = load i32, ptr %14, align 4, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i32, ptr %16, align 4, !tbaa !11
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %56, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %84

62:                                               ; preds = %49
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.ImageContent, ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = load i32, ptr %14, align 4, !tbaa !11
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = load i32, ptr %16, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds float, ptr %69, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.ImageContent, ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = load i32, ptr %14, align 4, !tbaa !11
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %16, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds float, ptr %80, i64 %82
  store float %73, ptr %83, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %62, %49
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %16, align 4, !tbaa !11
  %87 = add i32 %86, 1
  store i32 %87, ptr %16, align 4, !tbaa !11
  br label %43, !llvm.loop !15

88:                                               ; preds = %48
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %14, align 4, !tbaa !11
  %91 = add i32 %90, 1
  store i32 %91, ptr %14, align 4, !tbaa !11
  br label %32, !llvm.loop !17

92:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 2, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %322, %92
  %94 = load i32, ptr %20, align 4, !tbaa !11
  %95 = zext i32 %94 to i64
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #8
  %98 = icmp ult i64 %95, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %93
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %325

100:                                              ; preds = %93
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %20, align 4, !tbaa !11
  %103 = zext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #8
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %105)
  %107 = call noundef float @_ZSt4rintf(float noundef %106)
  %108 = fmul float 1.000000e+00, %107
  %109 = fptosi float %108 to i32
  store i32 %109, ptr %17, align 4, !tbaa !11
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load i32, ptr %20, align 4, !tbaa !11
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #8
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %114)
  %116 = fptosi float %115 to i32
  store i32 %116, ptr %9, align 4, !tbaa !11
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %20, align 4, !tbaa !11
  %119 = zext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #8
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %121)
  %123 = fptosi float %122 to i32
  store i32 %123, ptr %10, align 4, !tbaa !11
  store i32 4, ptr %19, align 4, !tbaa !11
  %124 = load i32, ptr %9, align 4, !tbaa !11
  %125 = load i32, ptr %10, align 4, !tbaa !11
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %126)
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %128)
  %130 = load i32, ptr %19, align 4, !tbaa !11
  %131 = call noundef i32 @_Z5checkiiiii(i32 noundef %124, i32 noundef %125, i32 noundef %127, i32 noundef %129, i32 noundef %130)
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %321

133:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 -2, ptr %21, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %164, %133
  %135 = load i32, ptr %21, align 4, !tbaa !11
  %136 = icmp sle i32 %135, 2
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %167

138:                                              ; preds = %134
  %139 = load float, ptr %8, align 4, !tbaa !9
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %class.ImageContent, ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !13
  %143 = load i32, ptr %10, align 4, !tbaa !11
  %144 = load i32, ptr %21, align 4, !tbaa !11
  %145 = add nsw i32 %143, %144
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds ptr, ptr %142, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load i32, ptr %9, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds float, ptr %148, i64 %150
  store float %139, ptr %151, align 4, !tbaa !9
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %class.ImageContent, ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !13
  %155 = load i32, ptr %10, align 4, !tbaa !11
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load i32, ptr %9, align 4, !tbaa !11
  %160 = load i32, ptr %21, align 4, !tbaa !11
  %161 = add nsw i32 %159, %160
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds float, ptr %158, i64 %162
  store float %139, ptr %163, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %138
  %165 = load i32, ptr %21, align 4, !tbaa !11
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %21, align 4, !tbaa !11
  br label %134, !llvm.loop !18

167:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %168 = load i32, ptr %17, align 4, !tbaa !11
  %169 = sub nsw i32 0, %168
  store i32 %169, ptr %22, align 4, !tbaa !11
  br label %170

170:                                              ; preds = %317, %167
  %171 = load i32, ptr %22, align 4, !tbaa !11
  %172 = load i32, ptr %17, align 4, !tbaa !11
  %173 = icmp sle i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %320

175:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %176

176:                                              ; preds = %313, %175
  %177 = load i32, ptr %23, align 4, !tbaa !11
  %178 = load i32, ptr %17, align 4, !tbaa !11
  %179 = icmp sle i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 17, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %316

181:                                              ; preds = %176
  %182 = load i32, ptr %17, align 4, !tbaa !11
  %183 = load i32, ptr %17, align 4, !tbaa !11
  %184 = mul nsw i32 %182, %183
  %185 = load i32, ptr %22, align 4, !tbaa !11
  %186 = load i32, ptr %22, align 4, !tbaa !11
  %187 = mul nsw i32 %185, %186
  %188 = sub nsw i32 %184, %187
  %189 = sitofp i32 %188 to float
  %190 = call noundef float @_ZSt4sqrtf(float noundef %189)
  %191 = call noundef float @_ZSt4rintf(float noundef %190)
  %192 = fptosi float %191 to i32
  store i32 %192, ptr %18, align 4, !tbaa !11
  %193 = load i32, ptr %9, align 4, !tbaa !11
  %194 = load i32, ptr %22, align 4, !tbaa !11
  %195 = add nsw i32 %193, %194
  %196 = load i32, ptr %10, align 4, !tbaa !11
  %197 = load i32, ptr %18, align 4, !tbaa !11
  %198 = add nsw i32 %196, %197
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %199)
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %201)
  %203 = load i32, ptr %19, align 4, !tbaa !11
  %204 = call noundef i32 @_Z5checkiiiii(i32 noundef %195, i32 noundef %198, i32 noundef %200, i32 noundef %202, i32 noundef %203)
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %222

206:                                              ; preds = %181
  %207 = load float, ptr %8, align 4, !tbaa !9
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %class.ImageContent, ptr %208, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !13
  %211 = load i32, ptr %10, align 4, !tbaa !11
  %212 = load i32, ptr %18, align 4, !tbaa !11
  %213 = add nsw i32 %211, %212
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds ptr, ptr %210, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load i32, ptr %9, align 4, !tbaa !11
  %218 = load i32, ptr %22, align 4, !tbaa !11
  %219 = add nsw i32 %217, %218
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds float, ptr %216, i64 %220
  store float %207, ptr %221, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %206, %181
  %223 = load i32, ptr %9, align 4, !tbaa !11
  %224 = load i32, ptr %22, align 4, !tbaa !11
  %225 = add nsw i32 %223, %224
  %226 = load i32, ptr %10, align 4, !tbaa !11
  %227 = load i32, ptr %18, align 4, !tbaa !11
  %228 = sub nsw i32 %226, %227
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %229)
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %231)
  %233 = load i32, ptr %19, align 4, !tbaa !11
  %234 = call noundef i32 @_Z5checkiiiii(i32 noundef %225, i32 noundef %228, i32 noundef %230, i32 noundef %232, i32 noundef %233)
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %252

236:                                              ; preds = %222
  %237 = load float, ptr %8, align 4, !tbaa !9
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = getelementptr inbounds %class.ImageContent, ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !13
  %241 = load i32, ptr %10, align 4, !tbaa !11
  %242 = load i32, ptr %18, align 4, !tbaa !11
  %243 = sub nsw i32 %241, %242
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds ptr, ptr %240, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  %247 = load i32, ptr %9, align 4, !tbaa !11
  %248 = load i32, ptr %22, align 4, !tbaa !11
  %249 = add nsw i32 %247, %248
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds float, ptr %246, i64 %250
  store float %237, ptr %251, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %236, %222
  %253 = load i32, ptr %9, align 4, !tbaa !11
  %254 = load i32, ptr %18, align 4, !tbaa !11
  %255 = add nsw i32 %253, %254
  %256 = load i32, ptr %10, align 4, !tbaa !11
  %257 = load i32, ptr %22, align 4, !tbaa !11
  %258 = add nsw i32 %256, %257
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %259)
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %261)
  %263 = load i32, ptr %19, align 4, !tbaa !11
  %264 = call noundef i32 @_Z5checkiiiii(i32 noundef %255, i32 noundef %258, i32 noundef %260, i32 noundef %262, i32 noundef %263)
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %282

266:                                              ; preds = %252
  %267 = load float, ptr %8, align 4, !tbaa !9
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds %class.ImageContent, ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !13
  %271 = load i32, ptr %10, align 4, !tbaa !11
  %272 = load i32, ptr %22, align 4, !tbaa !11
  %273 = add nsw i32 %271, %272
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds ptr, ptr %270, i64 %274
  %276 = load ptr, ptr %275, align 8, !tbaa !5
  %277 = load i32, ptr %9, align 4, !tbaa !11
  %278 = load i32, ptr %18, align 4, !tbaa !11
  %279 = add nsw i32 %277, %278
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds float, ptr %276, i64 %280
  store float %267, ptr %281, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %266, %252
  %283 = load i32, ptr %9, align 4, !tbaa !11
  %284 = load i32, ptr %18, align 4, !tbaa !11
  %285 = sub nsw i32 %283, %284
  %286 = load i32, ptr %10, align 4, !tbaa !11
  %287 = load i32, ptr %22, align 4, !tbaa !11
  %288 = add nsw i32 %286, %287
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %289)
  %291 = load ptr, ptr %11, align 8, !tbaa !5
  %292 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %291)
  %293 = load i32, ptr %19, align 4, !tbaa !11
  %294 = call noundef i32 @_Z5checkiiiii(i32 noundef %285, i32 noundef %288, i32 noundef %290, i32 noundef %292, i32 noundef %293)
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %312

296:                                              ; preds = %282
  %297 = load float, ptr %8, align 4, !tbaa !9
  %298 = load ptr, ptr %11, align 8, !tbaa !5
  %299 = getelementptr inbounds %class.ImageContent, ptr %298, i32 0, i32 4
  %300 = load ptr, ptr %299, align 8, !tbaa !13
  %301 = load i32, ptr %10, align 4, !tbaa !11
  %302 = load i32, ptr %22, align 4, !tbaa !11
  %303 = add nsw i32 %301, %302
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds ptr, ptr %300, i64 %304
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = load i32, ptr %9, align 4, !tbaa !11
  %308 = load i32, ptr %18, align 4, !tbaa !11
  %309 = sub nsw i32 %307, %308
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds float, ptr %306, i64 %310
  store float %297, ptr %311, align 4, !tbaa !9
  br label %312

312:                                              ; preds = %296, %282
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %23, align 4, !tbaa !11
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %23, align 4, !tbaa !11
  br label %176, !llvm.loop !19

316:                                              ; preds = %180
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %22, align 4, !tbaa !11
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %22, align 4, !tbaa !11
  br label %170, !llvm.loop !20

320:                                              ; preds = %174
  br label %321

321:                                              ; preds = %320, %100
  br label %322

322:                                              ; preds = %321
  %323 = load i32, ptr %20, align 4, !tbaa !11
  %324 = add i32 %323, 1
  store i32 %324, ptr %20, align 4, !tbaa !11
  br label %93, !llvm.loop !21

325:                                              ; preds = %99
  %326 = load ptr, ptr %11, align 8, !tbaa !5
  %327 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80) %326, ptr noundef %327)
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = icmp eq ptr %328, null
  br i1 %329, label %331, label %330

330:                                              ; preds = %325
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %328) #8
  call void @_ZdlPvm(ptr noundef %328, i64 noundef 80) #10
  br label %331

331:                                              ; preds = %330, %325
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  ret void

332:                                              ; preds = %38
  %333 = load ptr, ptr %12, align 8
  %334 = load i32, ptr %13, align 4
  %335 = insertvalue { ptr, i32 } poison, ptr %333, 0
  %336 = insertvalue { ptr, i32 } %335, i32 %334, 1
  resume { ptr, i32 } %336
}

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #6

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTS12ImageContent", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5checkiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11drawCornersP12ImageContentRSt6vectorIP16CornerDescriptorSaIS3_EEPKcf(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, float noundef %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  %6 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %7 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  invoke void @_ZN12ImageContentC2Ejjf(ptr noundef nonnull align 8 dereferenceable(80) %5, i32 noundef %6, i32 noundef %7, float noundef 0.000000e+00)
          to label %.preheader126 unwind label %14

.preheader126:                                    ; preds = %4
  %8 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %.not139 = icmp eq i32 %8, 0
  br i1 %.not139, label %.preheader124, label %.preheader125.lr.ph

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

.preheader125:                                    ; preds = %.preheader125.lr.ph, %._crit_edge
  %indvars.iv144 = phi i64 [ 0, %.preheader125.lr.ph ], [ %indvars.iv.next145, %._crit_edge ]
  %11 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %.not140 = icmp eq i32 %11, 0
  br i1 %.not140, label %._crit_edge, label %.lr.ph

.preheader124:                                    ; preds = %._crit_edge, %.preheader126
  %12 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not141 = icmp eq i64 %12, 0
  br i1 %.not141, label %._crit_edge138, label %.lr.ph137

.lr.ph137:                                        ; preds = %.preheader124
  %13 = getelementptr inbounds i8, ptr %5, i64 16
  br label %34

14:                                               ; preds = %4
  %15 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 80) #9
  resume { ptr, i32 } %15

._crit_edge:                                      ; preds = %30, %.preheader125
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %16 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %17 = zext i32 %16 to i64
  %18 = icmp ult i64 %indvars.iv.next145, %17
  br i1 %18, label %.preheader125, label %.preheader124, !llvm.loop !5

.lr.ph:                                           ; preds = %.preheader125, %30
  %indvars.iv = phi i64 [ %indvars.iv.next, %30 ], [ 0, %.preheader125 ]
  %19 = load ptr, ptr %9, align 8, !tbaa !7
  %20 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv144
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = getelementptr inbounds float, ptr %21, i64 %indvars.iv
  %23 = load float, ptr %22, align 4, !tbaa !14
  %24 = fcmp ogt float %23, 0.000000e+00
  br i1 %24, label %25, label %30

25:                                               ; preds = %.lr.ph
  %26 = load ptr, ptr %10, align 8, !tbaa !7
  %27 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv144
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds float, ptr %28, i64 %indvars.iv
  store float %23, ptr %29, align 4, !tbaa !14
  br label %30

30:                                               ; preds = %.lr.ph, %25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %32 = zext i32 %31 to i64
  %33 = icmp ult i64 %indvars.iv.next, %32
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge138:                                   ; preds = %.loopexit, %.preheader124
  tail call void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef %2)
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 80) #9
  ret void

34:                                               ; preds = %.lr.ph137, %.loopexit
  %35 = phi i64 [ 0, %.lr.ph137 ], [ %145, %.loopexit ]
  %.0111136 = phi i32 [ 0, %.lr.ph137 ], [ %144, %.loopexit ]
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %35) #8
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = tail call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %37)
  %39 = tail call noundef float @_ZSt4rintf(float noundef %38)
  %40 = fptosi float %39 to i32
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %35) #8
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %42)
  %44 = fptosi float %43 to i32
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %35) #8
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %46)
  %48 = fptosi float %47 to i32
  %49 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %50 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %51 = tail call noundef i32 @_Z5checkiiiii(i32 noundef %44, i32 noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef 4)
  %.not = icmp eq i32 %51, 0
  br i1 %.not, label %.loopexit, label %.preheader123

.preheader123:                                    ; preds = %34
  %52 = load ptr, ptr %13, align 8, !tbaa !7
  %53 = sext i32 %44 to i64
  %54 = sext i32 %48 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = getelementptr ptr, ptr %52, i64 %54
  %58 = getelementptr i8, ptr %57, i64 -16
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = getelementptr inbounds float, ptr %59, i64 %53
  store float %3, ptr %60, align 4, !tbaa !14
  %61 = getelementptr float, ptr %56, i64 %53
  %62 = getelementptr i8, ptr %61, i64 -8
  store float %3, ptr %62, align 4, !tbaa !14
  %63 = getelementptr ptr, ptr %52, i64 %54
  %64 = getelementptr i8, ptr %63, i64 -8
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = getelementptr inbounds float, ptr %65, i64 %53
  store float %3, ptr %66, align 4, !tbaa !14
  %67 = getelementptr float, ptr %56, i64 %53
  %68 = getelementptr i8, ptr %67, i64 -4
  store float %3, ptr %68, align 4, !tbaa !14
  %69 = getelementptr inbounds float, ptr %56, i64 %53
  store float %3, ptr %69, align 4, !tbaa !14
  %70 = getelementptr ptr, ptr %52, i64 %54
  %71 = getelementptr i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  %73 = getelementptr inbounds float, ptr %72, i64 %53
  store float %3, ptr %73, align 4, !tbaa !14
  %74 = getelementptr float, ptr %56, i64 %53
  %75 = getelementptr i8, ptr %74, i64 4
  store float %3, ptr %75, align 4, !tbaa !14
  %76 = getelementptr ptr, ptr %52, i64 %54
  %77 = getelementptr i8, ptr %76, i64 16
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = getelementptr inbounds float, ptr %78, i64 %53
  store float %3, ptr %79, align 4, !tbaa !14
  %80 = getelementptr float, ptr %56, i64 %53
  %81 = getelementptr i8, ptr %80, i64 8
  store float %3, ptr %81, align 4, !tbaa !14
  %.not117134 = icmp slt i32 %40, 0
  br i1 %.not117134, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader123
  %82 = sub nsw i32 0, %40
  %83 = add nuw i32 %40, 1
  %84 = sext i32 %82 to i64
  %85 = zext nneg i32 %40 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge133
  %indvars.iv150 = phi i64 [ %84, %.preheader.preheader ], [ %indvars.iv.next151, %._crit_edge133 ]
  %86 = add i64 %indvars.iv150, %85
  %87 = sub i64 %85, %indvars.iv150
  %88 = mul i64 %86, %87
  %89 = trunc i64 %88 to i32
  %90 = sitofp i32 %89 to float
  %91 = add nsw i64 %indvars.iv150, %53
  %92 = add nsw i64 %indvars.iv150, %54
  %93 = trunc nsw i64 %91 to i32
  %94 = trunc nsw i64 %92 to i32
  br label %95

._crit_edge133:                                   ; preds = %142
  %indvars.iv.next151 = add nsw i64 %indvars.iv150, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next151 to i32
  %exitcond155.not = icmp eq i32 %83, %lftr.wideiv
  br i1 %exitcond155.not, label %.loopexit, label %.preheader, !llvm.loop !17

95:                                               ; preds = %.preheader, %142
  %.0131 = phi i32 [ 0, %.preheader ], [ %143, %142 ]
  %96 = tail call noundef float @_ZSt4sqrtf(float noundef %90)
  %97 = tail call noundef float @_ZSt4rintf(float noundef %96)
  %98 = fptosi float %97 to i32
  %99 = add nsw i32 %98, %48
  %100 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %101 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %102 = tail call noundef i32 @_Z5checkiiiii(i32 noundef %93, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef 4)
  %.not119 = icmp eq i32 %102, 0
  br i1 %.not119, label %109, label %103

103:                                              ; preds = %95
  %104 = load ptr, ptr %13, align 8, !tbaa !7
  %105 = sext i32 %99 to i64
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = getelementptr inbounds float, ptr %107, i64 %91
  store float %3, ptr %108, align 4, !tbaa !14
  br label %109

109:                                              ; preds = %103, %95
  %110 = sub nsw i32 %48, %98
  %111 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %112 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %113 = tail call noundef i32 @_Z5checkiiiii(i32 noundef %93, i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef 4)
  %.not120 = icmp eq i32 %113, 0
  br i1 %.not120, label %120, label %114

114:                                              ; preds = %109
  %115 = load ptr, ptr %13, align 8, !tbaa !7
  %116 = sext i32 %110 to i64
  %117 = getelementptr inbounds ptr, ptr %115, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !13
  %119 = getelementptr inbounds float, ptr %118, i64 %91
  store float %3, ptr %119, align 4, !tbaa !14
  br label %120

120:                                              ; preds = %114, %109
  %121 = add nsw i32 %98, %44
  %122 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %123 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %124 = tail call noundef i32 @_Z5checkiiiii(i32 noundef %121, i32 noundef %94, i32 noundef %122, i32 noundef %123, i32 noundef 4)
  %.not121 = icmp eq i32 %124, 0
  br i1 %.not121, label %131, label %125

125:                                              ; preds = %120
  %126 = load ptr, ptr %13, align 8, !tbaa !7
  %127 = getelementptr inbounds ptr, ptr %126, i64 %92
  %128 = load ptr, ptr %127, align 8, !tbaa !13
  %129 = sext i32 %121 to i64
  %130 = getelementptr inbounds float, ptr %128, i64 %129
  store float %3, ptr %130, align 4, !tbaa !14
  br label %131

131:                                              ; preds = %125, %120
  %132 = sub nsw i32 %44, %98
  %133 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %134 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %135 = tail call noundef i32 @_Z5checkiiiii(i32 noundef %132, i32 noundef %94, i32 noundef %133, i32 noundef %134, i32 noundef 4)
  %.not122 = icmp eq i32 %135, 0
  br i1 %.not122, label %142, label %136

136:                                              ; preds = %131
  %137 = load ptr, ptr %13, align 8, !tbaa !7
  %138 = getelementptr inbounds ptr, ptr %137, i64 %92
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  %140 = sext i32 %132 to i64
  %141 = getelementptr inbounds float, ptr %139, i64 %140
  store float %3, ptr %141, align 4, !tbaa !14
  br label %142

142:                                              ; preds = %131, %136
  %143 = add nuw i32 %.0131, 1
  %exitcond.not = icmp eq i32 %.0131, %40
  br i1 %exitcond.not, label %._crit_edge133, label %95, !llvm.loop !18

.loopexit:                                        ; preds = %._crit_edge133, %.preheader123, %34
  %144 = add i32 %.0111136, 1
  %145 = zext i32 %144 to i64
  %146 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %147 = icmp ugt i64 %146, %145
  br i1 %147, label %34, label %._crit_edge138, !llvm.loop !19
}

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !12, i64 16}
!8 = !{!"_ZTS12ImageContent", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !10, i64 0}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}


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