; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libLocalDesc/surf/keypoint.ll (Z12getKeyPointsP5imagePSt6vectorIP8keyPointSaIS3_EEf)

; 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"

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z12getKeyPointsP5imagePSt6vectorIP8keyPointSaIS3_EEf(ptr noundef %0, ptr noundef %1, float noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca [4 x ptr], align 16
  %11 = alloca [4 x ptr], align 16
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %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
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %41 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13imageIntegralC1EP5image(ptr noundef nonnull align 8 dereferenceable(20) %41, ptr noundef %42)
          to label %43 unwind label %61

43:                                               ; preds = %3
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %44

44:                                               ; preds = %365, %43
  %45 = load i32, ptr %16, align 4, !tbaa !11
  %46 = icmp slt i32 %45, 4
  br i1 %46, label %47, label %368

47:                                               ; preds = %44
  %48 = load i32, ptr %16, align 4, !tbaa !11
  %49 = add nsw i32 %48, 1
  %50 = call noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, i32 noundef %49)
  %51 = fptosi double %50 to i32
  store i32 %51, ptr %28, align 4, !tbaa !11
  %52 = load i32, ptr %16, align 4, !tbaa !11
  %53 = call noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, i32 noundef %52)
  %54 = fptosi double %53 to i32
  store i32 %54, ptr %29, align 4, !tbaa !11
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load i32, ptr %29, align 4, !tbaa !11
  call void @_ZN5image15getSampledImageERiS0_i(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !11
  br label %57

57:                                               ; preds = %80, %47
  %58 = load i32, ptr %33, align 4, !tbaa !11
  %59 = icmp slt i32 %58, 4
  br i1 %59, label %65, label %60

60:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %92

61:                                               ; preds = %3
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 24) #11
  br label %372

65:                                               ; preds = %57
  %66 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
  %67 = load i32, ptr %19, align 4, !tbaa !11
  %68 = load i32, ptr %20, align 4, !tbaa !11
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %66, i32 noundef %67, i32 noundef %68)
          to label %69 unwind label %83

69:                                               ; preds = %65
  %70 = load i32, ptr %33, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %71
  store ptr %66, ptr %72, align 8, !tbaa !5
  %73 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
  %74 = load i32, ptr %19, align 4, !tbaa !11
  %75 = load i32, ptr %20, align 4, !tbaa !11
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %73, i32 noundef %74, i32 noundef %75)
          to label %76 unwind label %87

76:                                               ; preds = %69
  %77 = load i32, ptr %33, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %78
  store ptr %73, ptr %79, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %76
  %81 = load i32, ptr %33, align 4, !tbaa !11
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %33, align 4, !tbaa !11
  br label %57, !llvm.loop !13

83:                                               ; preds = %65
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %66, i64 noundef 16) #11
  br label %91

87:                                               ; preds = %69
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %73, i64 noundef 16) #11
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #9
  br label %372

92:                                               ; preds = %60
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %257, %92
  %94 = load i32, ptr %15, align 4, !tbaa !11
  %95 = icmp slt i32 %94, 4
  br i1 %95, label %96, label %260

96:                                               ; preds = %93
  %97 = load i32, ptr %28, align 4, !tbaa !11
  %98 = load i32, ptr %15, align 4, !tbaa !11
  %99 = add nsw i32 %98, 1
  %100 = mul nsw i32 %97, %99
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %30, align 4, !tbaa !11
  %102 = load i32, ptr %30, align 4, !tbaa !11
  %103 = sub nsw i32 0, %102
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %23, align 4, !tbaa !11
  %105 = load i32, ptr %30, align 4, !tbaa !11
  %106 = mul nsw i32 3, %105
  store i32 %106, ptr %24, align 4, !tbaa !11
  %107 = load i32, ptr %30, align 4, !tbaa !11
  %108 = sub nsw i32 0, %107
  %109 = add nsw i32 %108, 1
  %110 = sdiv i32 %109, 2
  store i32 %110, ptr %26, align 4, !tbaa !11
  %111 = load i32, ptr %30, align 4, !tbaa !11
  %112 = sub nsw i32 0, %111
  %113 = add nsw i32 %112, 1
  %114 = sdiv i32 %113, 2
  %115 = load i32, ptr %30, align 4, !tbaa !11
  %116 = sub nsw i32 %114, %115
  store i32 %116, ptr %25, align 4, !tbaa !11
  %117 = load i32, ptr %30, align 4, !tbaa !11
  %118 = mul nsw i32 2, %117
  %119 = sub nsw i32 %118, 1
  store i32 %119, ptr %27, align 4, !tbaa !11
  %120 = load i32, ptr %30, align 4, !tbaa !11
  %121 = mul nsw i32 6, %120
  %122 = load i32, ptr %30, align 4, !tbaa !11
  %123 = mul nsw i32 2, %122
  %124 = sub nsw i32 %123, 1
  %125 = mul nsw i32 %121, %124
  %126 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %125)
  store double %126, ptr %32, align 8, !tbaa !15
  %127 = load i32, ptr %30, align 4, !tbaa !11
  %128 = mul nsw i32 4, %127
  %129 = load i32, ptr %30, align 4, !tbaa !11
  %130 = mul nsw i32 %128, %129
  %131 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %130)
  store double %131, ptr %31, align 8, !tbaa !15
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %253, %96
  %133 = load i32, ptr %18, align 4, !tbaa !11
  %134 = load i32, ptr %20, align 4, !tbaa !11
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %136, label %256

136:                                              ; preds = %132
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %249, %136
  %138 = load i32, ptr %17, align 4, !tbaa !11
  %139 = load i32, ptr %19, align 4, !tbaa !11
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %141, label %252

141:                                              ; preds = %137
  %142 = load i32, ptr %17, align 4, !tbaa !11
  %143 = load i32, ptr %29, align 4, !tbaa !11
  %144 = mul nsw i32 %142, %143
  store i32 %144, ptr %21, align 4, !tbaa !11
  %145 = load i32, ptr %18, align 4, !tbaa !11
  %146 = load i32, ptr %29, align 4, !tbaa !11
  %147 = mul nsw i32 %145, %146
  store i32 %147, ptr %22, align 4, !tbaa !11
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load i32, ptr %23, align 4, !tbaa !11
  %150 = load i32, ptr %25, align 4, !tbaa !11
  %151 = load i32, ptr %27, align 4, !tbaa !11
  %152 = load i32, ptr %24, align 4, !tbaa !11
  %153 = load i32, ptr %21, align 4, !tbaa !11
  %154 = load i32, ptr %22, align 4, !tbaa !11
  %155 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153, i32 noundef %154)
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = load i32, ptr %23, align 4, !tbaa !11
  %158 = load i32, ptr %26, align 4, !tbaa !11
  %159 = load i32, ptr %27, align 4, !tbaa !11
  %160 = load i32, ptr %30, align 4, !tbaa !11
  %161 = load i32, ptr %21, align 4, !tbaa !11
  %162 = load i32, ptr %22, align 4, !tbaa !11
  %163 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159, i32 noundef %160, i32 noundef %161, i32 noundef %162)
  %164 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %163, double %155)
  store double %164, ptr %12, align 8, !tbaa !15
  %165 = load double, ptr %32, align 8, !tbaa !15
  %166 = load double, ptr %12, align 8, !tbaa !15
  %167 = fdiv double %166, %165
  store double %167, ptr %12, align 8, !tbaa !15
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = load i32, ptr %25, align 4, !tbaa !11
  %170 = load i32, ptr %23, align 4, !tbaa !11
  %171 = load i32, ptr %24, align 4, !tbaa !11
  %172 = load i32, ptr %27, align 4, !tbaa !11
  %173 = load i32, ptr %21, align 4, !tbaa !11
  %174 = load i32, ptr %22, align 4, !tbaa !11
  %175 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load i32, ptr %26, align 4, !tbaa !11
  %178 = load i32, ptr %23, align 4, !tbaa !11
  %179 = load i32, ptr %30, align 4, !tbaa !11
  %180 = load i32, ptr %27, align 4, !tbaa !11
  %181 = load i32, ptr %21, align 4, !tbaa !11
  %182 = load i32, ptr %22, align 4, !tbaa !11
  %183 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %180, i32 noundef %181, i32 noundef %182)
  %184 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %183, double %175)
  store double %184, ptr %14, align 8, !tbaa !15
  %185 = load double, ptr %32, align 8, !tbaa !15
  %186 = load double, ptr %14, align 8, !tbaa !15
  %187 = fdiv double %186, %185
  store double %187, ptr %14, align 8, !tbaa !15
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = load i32, ptr %30, align 4, !tbaa !11
  %190 = load i32, ptr %30, align 4, !tbaa !11
  %191 = load i32, ptr %21, align 4, !tbaa !11
  %192 = load i32, ptr %22, align 4, !tbaa !11
  %193 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %188, i32 noundef 1, i32 noundef 1, i32 noundef %189, i32 noundef %190, i32 noundef %191, i32 noundef %192)
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load i32, ptr %30, align 4, !tbaa !11
  %196 = sub nsw i32 0, %195
  %197 = load i32, ptr %30, align 4, !tbaa !11
  %198 = sub nsw i32 0, %197
  %199 = load i32, ptr %21, align 4, !tbaa !11
  %200 = load i32, ptr %22, align 4, !tbaa !11
  %201 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %194, i32 noundef 0, i32 noundef 0, i32 noundef %196, i32 noundef %198, i32 noundef %199, i32 noundef %200)
  %202 = fadd double %193, %201
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = load i32, ptr %30, align 4, !tbaa !11
  %205 = load i32, ptr %30, align 4, !tbaa !11
  %206 = sub nsw i32 0, %205
  %207 = load i32, ptr %21, align 4, !tbaa !11
  %208 = load i32, ptr %22, align 4, !tbaa !11
  %209 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %203, i32 noundef 1, i32 noundef 0, i32 noundef %204, i32 noundef %206, i32 noundef %207, i32 noundef %208)
  %210 = fadd double %202, %209
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = load i32, ptr %30, align 4, !tbaa !11
  %213 = sub nsw i32 0, %212
  %214 = load i32, ptr %30, align 4, !tbaa !11
  %215 = load i32, ptr %21, align 4, !tbaa !11
  %216 = load i32, ptr %22, align 4, !tbaa !11
  %217 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef %211, i32 noundef 0, i32 noundef 1, i32 noundef %213, i32 noundef %214, i32 noundef %215, i32 noundef %216)
  %218 = fadd double %210, %217
  store double %218, ptr %13, align 8, !tbaa !15
  %219 = load double, ptr %31, align 8, !tbaa !15
  %220 = load double, ptr %13, align 8, !tbaa !15
  %221 = fdiv double %220, %219
  store double %221, ptr %13, align 8, !tbaa !15
  %222 = load double, ptr %12, align 8, !tbaa !15
  %223 = load double, ptr %14, align 8, !tbaa !15
  %224 = load double, ptr %13, align 8, !tbaa !15
  %225 = load double, ptr %13, align 8, !tbaa !15
  %226 = fmul double %224, %225
  %227 = fmul double 8.317000e-01, %226
  %228 = fneg double %227
  %229 = call double @llvm.fmuladd.f64(double %222, double %223, double %228)
  %230 = load i32, ptr %15, align 4, !tbaa !11
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = load i32, ptr %17, align 4, !tbaa !11
  %235 = load i32, ptr %18, align 4, !tbaa !11
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %233, i32 noundef %234, i32 noundef %235)
  store double %229, ptr %236, align 8, !tbaa !15
  %237 = load double, ptr %12, align 8, !tbaa !15
  %238 = load double, ptr %14, align 8, !tbaa !15
  %239 = fadd double %237, %238
  %240 = fcmp ogt double %239, 0.000000e+00
  %241 = uitofp i1 %240 to double
  %242 = load i32, ptr %15, align 4, !tbaa !11
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %243
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = load i32, ptr %17, align 4, !tbaa !11
  %247 = load i32, ptr %18, align 4, !tbaa !11
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %245, i32 noundef %246, i32 noundef %247)
  store double %241, ptr %248, align 8, !tbaa !15
  br label %249

249:                                              ; preds = %141
  %250 = load i32, ptr %17, align 4, !tbaa !11
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %17, align 4, !tbaa !11
  br label %137, !llvm.loop !17

252:                                              ; preds = %137
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %18, align 4, !tbaa !11
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %18, align 4, !tbaa !11
  br label %132, !llvm.loop !18

256:                                              ; preds = %132
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %15, align 4, !tbaa !11
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %15, align 4, !tbaa !11
  br label %93, !llvm.loop !19

260:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  store i32 1, ptr %15, align 4, !tbaa !11
  br label %261

261:                                              ; preds = %338, %260
  %262 = load i32, ptr %15, align 4, !tbaa !11
  %263 = icmp slt i32 %262, 3
  br i1 %263, label %264, label %341

264:                                              ; preds = %261
  %265 = load i32, ptr %28, align 4, !tbaa !11
  %266 = load i32, ptr %15, align 4, !tbaa !11
  %267 = add nsw i32 %266, 1
  %268 = mul nsw i32 %265, %267
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store i32 1, ptr %37, align 4, !tbaa !11
  br label %270

270:                                              ; preds = %334, %264
  %271 = load i32, ptr %37, align 4, !tbaa !11
  %272 = load i32, ptr %20, align 4, !tbaa !11
  %273 = sub nsw i32 %272, 1
  %274 = icmp slt i32 %271, %273
  br i1 %274, label %276, label %275

275:                                              ; preds = %270
  store i32 20, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %337

276:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  store i32 1, ptr %39, align 4, !tbaa !11
  br label %277

277:                                              ; preds = %330, %276
  %278 = load i32, ptr %39, align 4, !tbaa !11
  %279 = load i32, ptr %19, align 4, !tbaa !11
  %280 = sub nsw i32 %279, 1
  %281 = icmp slt i32 %278, %280
  br i1 %281, label %283, label %282

282:                                              ; preds = %277
  store i32 23, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %333

283:                                              ; preds = %277
  %284 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 0
  %285 = load i32, ptr %39, align 4, !tbaa !11
  %286 = load i32, ptr %37, align 4, !tbaa !11
  %287 = load i32, ptr %15, align 4, !tbaa !11
  %288 = load float, ptr %6, align 4, !tbaa !9
  %289 = call noundef zeroext i1 @_Z9isMaximumPP5imageiiif(ptr noundef %284, i32 noundef %285, i32 noundef %286, i32 noundef %287, float noundef %288)
  br i1 %289, label %290, label %329

290:                                              ; preds = %283
  %291 = load i32, ptr %39, align 4, !tbaa !11
  %292 = load i32, ptr %29, align 4, !tbaa !11
  %293 = mul nsw i32 %291, %292
  %294 = sitofp i32 %293 to double
  store double %294, ptr %34, align 8, !tbaa !15
  %295 = load i32, ptr %37, align 4, !tbaa !11
  %296 = load i32, ptr %29, align 4, !tbaa !11
  %297 = mul nsw i32 %295, %296
  %298 = sitofp i32 %297 to double
  store double %298, ptr %35, align 8, !tbaa !15
  %299 = load i32, ptr %28, align 4, !tbaa !11
  %300 = load i32, ptr %15, align 4, !tbaa !11
  %301 = add nsw i32 %300, 1
  %302 = mul nsw i32 %299, %301
  %303 = add nsw i32 %302, 2
  %304 = sitofp i32 %303 to double
  %305 = fmul double 4.000000e-01, %304
  store double %305, ptr %36, align 8, !tbaa !15
  %306 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 0
  %307 = load i32, ptr %39, align 4, !tbaa !11
  %308 = load i32, ptr %37, align 4, !tbaa !11
  %309 = load i32, ptr %15, align 4, !tbaa !11
  %310 = load i32, ptr %29, align 4, !tbaa !11
  %311 = load i32, ptr %28, align 4, !tbaa !11
  %312 = call noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr noundef %306, i32 noundef %307, i32 noundef %308, i32 noundef %309, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36, i32 noundef %310, i32 noundef %311)
  br i1 %312, label %313, label %328

313:                                              ; preds = %290
  %314 = load ptr, ptr %7, align 8, !tbaa !5
  %315 = load double, ptr %34, align 8, !tbaa !15
  %316 = load double, ptr %35, align 8, !tbaa !15
  %317 = load i32, ptr %15, align 4, !tbaa !11
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %318
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = load i32, ptr %39, align 4, !tbaa !11
  %322 = load i32, ptr %37, align 4, !tbaa !11
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %320, i32 noundef %321, i32 noundef %322)
  %324 = load double, ptr %323, align 8, !tbaa !15
  %325 = fcmp une double %324, 0.000000e+00
  %326 = load double, ptr %36, align 8, !tbaa !15
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z11addKeyPointP13imageIntegralddbdPSt6vectorIP8keyPointSaIS3_EE(ptr noundef %314, double noundef %315, double noundef %316, i1 noundef zeroext %325, double noundef %326, ptr noundef %327)
  br label %328

328:                                              ; preds = %313, %290
  br label %329

329:                                              ; preds = %328, %283
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %39, align 4, !tbaa !11
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %39, align 4, !tbaa !11
  br label %277, !llvm.loop !20

333:                                              ; preds = %282
  br label %334

334:                                              ; preds = %333
  %335 = load i32, ptr %37, align 4, !tbaa !11
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %37, align 4, !tbaa !11
  br label %270, !llvm.loop !21

337:                                              ; preds = %275
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %15, align 4, !tbaa !11
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %15, align 4, !tbaa !11
  br label %261, !llvm.loop !22

341:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !11
  br label %342

342:                                              ; preds = %361, %341
  %343 = load i32, ptr %40, align 4, !tbaa !11
  %344 = icmp slt i32 %343, 4
  br i1 %344, label %346, label %345

345:                                              ; preds = %342
  store i32 26, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %364

346:                                              ; preds = %342
  %347 = load i32, ptr %40, align 4, !tbaa !11
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %348
  %350 = load ptr, ptr %349, align 8, !tbaa !5
  %351 = icmp eq ptr %350, null
  br i1 %351, label %353, label %352

352:                                              ; preds = %346
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %350) #9
  call void @_ZdlPvm(ptr noundef %350, i64 noundef 16) #11
  br label %353

353:                                              ; preds = %352, %346
  %354 = load i32, ptr %40, align 4, !tbaa !11
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %355
  %357 = load ptr, ptr %356, align 8, !tbaa !5
  %358 = icmp eq ptr %357, null
  br i1 %358, label %360, label %359

359:                                              ; preds = %353
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %357) #9
  call void @_ZdlPvm(ptr noundef %357, i64 noundef 16) #11
  br label %360

360:                                              ; preds = %359, %353
  br label %361

361:                                              ; preds = %360
  %362 = load i32, ptr %40, align 4, !tbaa !11
  %363 = add nsw i32 %362, 1
  store i32 %363, ptr %40, align 4, !tbaa !11
  br label %342, !llvm.loop !23

364:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %16, align 4, !tbaa !11
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %16, align 4, !tbaa !11
  br label %44, !llvm.loop !24

368:                                              ; preds = %44
  %369 = load ptr, ptr %7, align 8, !tbaa !5
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = call noundef ptr @_Z13getDescriptorP13imageIntegralPSt6vectorIP8keyPointSaIS3_EE(ptr noundef %369, ptr noundef %370)
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret ptr %371

372:                                              ; preds = %91, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %373

373:                                              ; preds = %372
  %374 = load ptr, ptr %8, align 8
  %375 = load i32, ptr %9, align 4
  %376 = insertvalue { ptr, i32 } poison, ptr %374, 0
  %377 = insertvalue { ptr, i32 } %376, i32 %375, 1
  resume { ptr, i32 } %377
}

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

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

declare void @_ZN13imageIntegralC1EP5image(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) #5

declare void @_ZN5image15getSampledImageERiS0_i(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #3

declare void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9isMaximumPP5imageiiif(ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11addKeyPointP13imageIntegralddbdPSt6vectorIP8keyPointSaIS3_EE(ptr noundef, double noundef, double noundef, i1 noundef zeroext, double noundef, ptr noundef) #0

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

declare noundef ptr @_Z13getDescriptorP13imageIntegralPSt6vectorIP8keyPointSaIS3_EE(ptr noundef, ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z12getKeyPointsP5imagePSt6vectorIP8keyPointSaIS3_EEf(ptr noundef %0, ptr noundef %1, float noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca [4 x ptr], align 16
  %5 = alloca [4 x ptr], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN13imageIntegralC1EP5image(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef %0)
          to label %12 unwind label %28

12:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #11
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  %14 = getelementptr inbounds i8, ptr %5, i64 8
  %15 = getelementptr inbounds i8, ptr %4, i64 16
  %16 = getelementptr inbounds i8, ptr %5, i64 16
  %17 = getelementptr inbounds i8, ptr %4, i64 24
  %18 = getelementptr inbounds i8, ptr %5, i64 24
  br label %19

19:                                               ; preds = %12, %222
  %.0142165 = phi i32 [ 0, %12 ], [ %20, %222 ]
  %20 = add nuw nsw i32 %.0142165, 1
  %21 = call noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, i32 noundef %20)
  %22 = fptosi double %21 to i32
  %23 = call noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, i32 noundef %.0142165)
  %24 = fptosi double %23 to i32
  call void @_ZN5image15getSampledImageERiS0_i(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %24)
  %25 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %26, i32 noundef %27)
          to label %30 unwind label %59

28:                                               ; preds = %3
  %29 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 24) #12
  br label %225

30:                                               ; preds = %19
  store ptr %25, ptr %4, align 16, !tbaa !9
  %31 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %31, i32 noundef %32, i32 noundef %33)
          to label %34 unwind label %61

34:                                               ; preds = %30
  store ptr %31, ptr %5, align 16, !tbaa !9
  %35 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %35, i32 noundef %36, i32 noundef %37)
          to label %38 unwind label %59

38:                                               ; preds = %34
  store ptr %35, ptr %13, align 8, !tbaa !9
  %39 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %39, i32 noundef %40, i32 noundef %41)
          to label %42 unwind label %61

42:                                               ; preds = %38
  store ptr %39, ptr %14, align 8, !tbaa !9
  %43 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %44, i32 noundef %45)
          to label %46 unwind label %59

46:                                               ; preds = %42
  store ptr %43, ptr %15, align 16, !tbaa !9
  %47 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %47, i32 noundef %48, i32 noundef %49)
          to label %50 unwind label %61

50:                                               ; preds = %46
  store ptr %47, ptr %16, align 16, !tbaa !9
  %51 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %51, i32 noundef %52, i32 noundef %53)
          to label %54 unwind label %59

54:                                               ; preds = %50
  store ptr %51, ptr %17, align 8, !tbaa !9
  %55 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = load i32, ptr %7, align 4, !tbaa !5
  invoke void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16) %55, i32 noundef %56, i32 noundef %57)
          to label %.preheader152.preheader unwind label %61

.preheader152.preheader:                          ; preds = %54
  store ptr %55, ptr %18, align 8, !tbaa !9
  %58 = zext i32 %22 to i64
  br label %.preheader152

59:                                               ; preds = %50, %42, %34, %19
  %.lcssa = phi ptr [ %25, %19 ], [ %35, %34 ], [ %43, %42 ], [ %51, %50 ]
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %54, %46, %38, %30
  %.lcssa171 = phi ptr [ %31, %30 ], [ %39, %38 ], [ %47, %46 ], [ %55, %54 ]
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %63

63:                                               ; preds = %61, %59
  %.lcssa171.sink = phi ptr [ %.lcssa171, %61 ], [ %.lcssa, %59 ]
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZdlPvm(ptr noundef nonnull %.lcssa171.sink, i64 noundef 16) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  br label %225

.loopexit150:                                     ; preds = %._crit_edge, %.preheader149.lr.ph, %.preheader152
  %64 = phi i32 [ %84, %.preheader152 ], [ %84, %.preheader149.lr.ph ], [ %133, %._crit_edge ]
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %137, label %.preheader152, !llvm.loop !11

.preheader152:                                    ; preds = %.preheader152.preheader, %.loopexit150
  %indvars.iv = phi i64 [ 0, %.preheader152.preheader ], [ %indvars.iv.next, %.loopexit150 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars = trunc i64 %indvars.iv.next to i32
  %65 = mul i64 %indvars.iv.next, %58
  %66 = mul nsw i32 %indvars, %22
  %67 = add i64 %65, 1
  %68 = add nsw i32 %66, 1
  %69 = trunc i64 %65 to i32
  %70 = xor i32 %69, -1
  %71 = sub nsw i32 0, %66
  %72 = sdiv i32 %69, -2
  %73 = trunc i64 %67 to i32
  %74 = sub nsw i32 %72, %73
  %75 = shl nsw i32 %68, 1
  %76 = add nsw i32 %75, -1
  %77 = trunc i64 %67 to i32
  %78 = mul i32 %77, 6
  %79 = mul nsw i32 %78, %76
  %80 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %79)
  %81 = shl nsw i32 %68, 2
  %82 = mul nsw i32 %81, %73
  %83 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %82)
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %.preheader149.lr.ph, label %.loopexit150

.preheader149.lr.ph:                              ; preds = %.preheader152
  %86 = getelementptr inbounds [4 x ptr], ptr %4, i64 0, i64 %indvars.iv
  %87 = getelementptr inbounds [4 x ptr], ptr %5, i64 0, i64 %indvars.iv
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.preheader149.preheader, label %.loopexit150

.preheader149.preheader:                          ; preds = %.preheader149.lr.ph
  %90 = trunc i64 %67 to i32
  %91 = mul i32 %90, 3
  %92 = insertelement <2 x double> poison, double %80, i64 0
  %93 = shufflevector <2 x double> %92, <2 x double> poison, <2 x i32> zeroinitializer
  br label %.preheader149

.preheader149:                                    ; preds = %.preheader149.preheader, %._crit_edge
  %94 = phi i32 [ %133, %._crit_edge ], [ %84, %.preheader149.preheader ]
  %95 = phi i32 [ %134, %._crit_edge ], [ %88, %.preheader149.preheader ]
  %.0144157 = phi i32 [ %135, %._crit_edge ], [ 0, %.preheader149.preheader ]
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader149
  %97 = mul nsw i32 %.0144157, %24
  br label %98

98:                                               ; preds = %.lr.ph, %98
  %.0143156 = phi i32 [ 0, %.lr.ph ], [ %130, %98 ]
  %99 = mul nsw i32 %.0143156, %24
  %100 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef %71, i32 noundef %74, i32 noundef %76, i32 noundef %91, i32 noundef %99, i32 noundef %97)
  %101 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef %71, i32 noundef %72, i32 noundef %76, i32 noundef %73, i32 noundef %99, i32 noundef %97)
  %102 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef %74, i32 noundef %71, i32 noundef %91, i32 noundef %76, i32 noundef %99, i32 noundef %97)
  %103 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef %72, i32 noundef %71, i32 noundef %73, i32 noundef %76, i32 noundef %99, i32 noundef %97)
  %104 = insertelement <2 x double> poison, double %101, i64 0
  %105 = insertelement <2 x double> %104, double %103, i64 1
  %106 = insertelement <2 x double> poison, double %100, i64 0
  %107 = insertelement <2 x double> %106, double %102, i64 1
  %108 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %105, <2 x double> <double -3.000000e+00, double -3.000000e+00>, <2 x double> %107)
  %109 = fdiv <2 x double> %108, %93
  %110 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef 1, i32 noundef 1, i32 noundef %73, i32 noundef %73, i32 noundef %99, i32 noundef %97)
  %111 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef 0, i32 noundef 0, i32 noundef %70, i32 noundef %70, i32 noundef %99, i32 noundef %97)
  %112 = fadd double %110, %111
  %113 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef 1, i32 noundef 0, i32 noundef %73, i32 noundef %70, i32 noundef %99, i32 noundef %97)
  %114 = fadd double %112, %113
  %115 = call noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef nonnull %11, i32 noundef 0, i32 noundef 1, i32 noundef %70, i32 noundef %73, i32 noundef %99, i32 noundef %97)
  %116 = fadd double %114, %115
  %117 = fdiv double %116, %83
  %118 = fmul double %117, %117
  %119 = fmul double %118, -8.317000e-01
  %120 = extractelement <2 x double> %109, i64 0
  %121 = extractelement <2 x double> %109, i64 1
  %122 = call double @llvm.fmuladd.f64(double %120, double %121, double %119)
  %123 = load ptr, ptr %86, align 8, !tbaa !9
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %123, i32 noundef %.0143156, i32 noundef %.0144157)
  store double %122, ptr %124, align 8, !tbaa !13
  %125 = fadd double %120, %121
  %126 = fcmp ogt double %125, 0.000000e+00
  %127 = uitofp i1 %126 to double
  %128 = load ptr, ptr %87, align 8, !tbaa !9
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %128, i32 noundef %.0143156, i32 noundef %.0144157)
  store double %127, ptr %129, align 8, !tbaa !13
  %130 = add nuw nsw i32 %.0143156, 1
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %98, label %._crit_edge.loopexit, !llvm.loop !15

._crit_edge.loopexit:                             ; preds = %98
  %.pre = load i32, ptr %7, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader149
  %133 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %94, %.preheader149 ]
  %134 = phi i32 [ %131, %._crit_edge.loopexit ], [ %95, %.preheader149 ]
  %135 = add nuw nsw i32 %.0144157, 1
  %136 = icmp slt i32 %135, %133
  br i1 %136, label %.preheader149, label %.loopexit150, !llvm.loop !16

137:                                              ; preds = %.loopexit150
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  %138 = icmp sgt i32 %64, 2
  br i1 %138, label %.preheader.lr.ph, label %.preheader151

.loopexit:                                        ; preds = %._crit_edge161
  %139 = icmp sgt i32 %186, 2
  br i1 %139, label %.preheader.lr.ph.1, label %.preheader151

.preheader.lr.ph.1:                               ; preds = %.loopexit
  %.pr = load i32, ptr %6, align 4, !tbaa !5
  %140 = mul i32 %22, 3
  %141 = add i32 %140, 2
  %142 = sitofp i32 %141 to double
  %143 = fmul double %142, 4.000000e-01
  %144 = icmp sgt i32 %.pr, 2
  br i1 %144, label %.preheader.1, label %.preheader151

.preheader.1:                                     ; preds = %.preheader.lr.ph.1, %._crit_edge161.1
  %145 = phi i32 [ %168, %._crit_edge161.1 ], [ %186, %.preheader.lr.ph.1 ]
  %146 = phi i32 [ %169, %._crit_edge161.1 ], [ %.pr, %.preheader.lr.ph.1 ]
  %.0135162.1 = phi i32 [ %170, %._crit_edge161.1 ], [ 1, %.preheader.lr.ph.1 ]
  %147 = icmp sgt i32 %146, 2
  br i1 %147, label %.lr.ph160.1, label %._crit_edge161.1

.lr.ph160.1:                                      ; preds = %.preheader.1
  %148 = mul nsw i32 %.0135162.1, %24
  %149 = sitofp i32 %148 to double
  br label %150

150:                                              ; preds = %163, %.lr.ph160.1
  %.0134159.1 = phi i32 [ 1, %.lr.ph160.1 ], [ %164, %163 ]
  %151 = call noundef zeroext i1 @_Z9isMaximumPP5imageiiif(ptr noundef nonnull %4, i32 noundef %.0134159.1, i32 noundef %.0135162.1, i32 noundef 2, float noundef %2)
  br i1 %151, label %152, label %163

152:                                              ; preds = %150
  %153 = mul nsw i32 %.0134159.1, %24
  %154 = sitofp i32 %153 to double
  store double %154, ptr %8, align 8, !tbaa !13
  store double %149, ptr %9, align 8, !tbaa !13
  store double %143, ptr %10, align 8, !tbaa !13
  %155 = call noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr noundef nonnull %4, i32 noundef %.0134159.1, i32 noundef %.0135162.1, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %24, i32 noundef %22)
  br i1 %155, label %156, label %163

156:                                              ; preds = %152
  %157 = load double, ptr %8, align 8, !tbaa !13
  %158 = load double, ptr %9, align 8, !tbaa !13
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %47, i32 noundef %.0134159.1, i32 noundef %.0135162.1)
  %160 = load double, ptr %159, align 8, !tbaa !13
  %161 = fcmp une double %160, 0.000000e+00
  %162 = load double, ptr %10, align 8, !tbaa !13
  call void @_Z11addKeyPointP13imageIntegralddbdPSt6vectorIP8keyPointSaIS3_EE(ptr noundef nonnull %11, double noundef %157, double noundef %158, i1 noundef zeroext %161, double noundef %162, ptr noundef %1)
  br label %163

163:                                              ; preds = %156, %152, %150
  %164 = add nuw nsw i32 %.0134159.1, 1
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  %167 = icmp slt i32 %164, %166
  br i1 %167, label %150, label %._crit_edge161.loopexit.1, !llvm.loop !18

._crit_edge161.loopexit.1:                        ; preds = %163
  %.pre187 = load i32, ptr %7, align 4, !tbaa !5
  br label %._crit_edge161.1

._crit_edge161.1:                                 ; preds = %._crit_edge161.loopexit.1, %.preheader.1
  %168 = phi i32 [ %.pre187, %._crit_edge161.loopexit.1 ], [ %145, %.preheader.1 ]
  %169 = phi i32 [ %165, %._crit_edge161.loopexit.1 ], [ %146, %.preheader.1 ]
  %170 = add nuw nsw i32 %.0135162.1, 1
  %171 = add nsw i32 %168, -1
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %.preheader.1, label %.preheader151, !llvm.loop !19

.preheader151:                                    ; preds = %._crit_edge161.1, %.preheader.lr.ph, %.loopexit, %.preheader.lr.ph.1, %137
  %173 = load ptr, ptr %4, align 16, !tbaa !9
  %174 = icmp eq ptr %173, null
  br i1 %174, label %210, label %209

.preheader.lr.ph:                                 ; preds = %137
  %175 = shl i32 %22, 1
  %176 = add i32 %175, 2
  %177 = sitofp i32 %176 to double
  %178 = fmul double %177, 4.000000e-01
  %179 = load i32, ptr %6, align 4, !tbaa !5
  %180 = icmp sgt i32 %179, 2
  br i1 %180, label %.preheader, label %.preheader151

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge161
  %181 = phi i32 [ %186, %._crit_edge161 ], [ %64, %.preheader.lr.ph ]
  %182 = phi i32 [ %187, %._crit_edge161 ], [ %179, %.preheader.lr.ph ]
  %.0135162 = phi i32 [ %188, %._crit_edge161 ], [ 1, %.preheader.lr.ph ]
  %183 = icmp sgt i32 %182, 2
  br i1 %183, label %.lr.ph160, label %._crit_edge161

.lr.ph160:                                        ; preds = %.preheader
  %184 = mul nsw i32 %.0135162, %24
  %185 = sitofp i32 %184 to double
  br label %191

._crit_edge161.loopexit:                          ; preds = %204
  %.pre186 = load i32, ptr %7, align 4, !tbaa !5
  br label %._crit_edge161

._crit_edge161:                                   ; preds = %._crit_edge161.loopexit, %.preheader
  %186 = phi i32 [ %.pre186, %._crit_edge161.loopexit ], [ %181, %.preheader ]
  %187 = phi i32 [ %206, %._crit_edge161.loopexit ], [ %182, %.preheader ]
  %188 = add nuw nsw i32 %.0135162, 1
  %189 = add nsw i32 %186, -1
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %.preheader, label %.loopexit, !llvm.loop !19

191:                                              ; preds = %.lr.ph160, %204
  %.0134159 = phi i32 [ 1, %.lr.ph160 ], [ %205, %204 ]
  %192 = call noundef zeroext i1 @_Z9isMaximumPP5imageiiif(ptr noundef nonnull %4, i32 noundef %.0134159, i32 noundef %.0135162, i32 noundef 1, float noundef %2)
  br i1 %192, label %193, label %204

193:                                              ; preds = %191
  %194 = mul nsw i32 %.0134159, %24
  %195 = sitofp i32 %194 to double
  store double %195, ptr %8, align 8, !tbaa !13
  store double %185, ptr %9, align 8, !tbaa !13
  store double %178, ptr %10, align 8, !tbaa !13
  %196 = call noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr noundef nonnull %4, i32 noundef %.0134159, i32 noundef %.0135162, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %24, i32 noundef %22)
  br i1 %196, label %197, label %204

197:                                              ; preds = %193
  %198 = load double, ptr %8, align 8, !tbaa !13
  %199 = load double, ptr %9, align 8, !tbaa !13
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %39, i32 noundef %.0134159, i32 noundef %.0135162)
  %201 = load double, ptr %200, align 8, !tbaa !13
  %202 = fcmp une double %201, 0.000000e+00
  %203 = load double, ptr %10, align 8, !tbaa !13
  call void @_Z11addKeyPointP13imageIntegralddbdPSt6vectorIP8keyPointSaIS3_EE(ptr noundef nonnull %11, double noundef %198, double noundef %199, i1 noundef zeroext %202, double noundef %203, ptr noundef %1)
  br label %204

204:                                              ; preds = %191, %197, %193
  %205 = add nuw nsw i32 %.0134159, 1
  %206 = load i32, ptr %6, align 4, !tbaa !5
  %207 = add nsw i32 %206, -1
  %208 = icmp slt i32 %205, %207
  br i1 %208, label %191, label %._crit_edge161.loopexit, !llvm.loop !18

209:                                              ; preds = %.preheader151
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %173) #11
  call void @_ZdlPvm(ptr noundef nonnull %173, i64 noundef 16) #12
  br label %210

210:                                              ; preds = %209, %.preheader151
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #11
  call void @_ZdlPvm(ptr noundef nonnull %31, i64 noundef 16) #12
  %211 = load ptr, ptr %13, align 8, !tbaa !9
  %212 = icmp eq ptr %211, null
  br i1 %212, label %214, label %213

213:                                              ; preds = %210
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %211) #11
  call void @_ZdlPvm(ptr noundef nonnull %211, i64 noundef 16) #12
  br label %214

214:                                              ; preds = %213, %210
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #11
  call void @_ZdlPvm(ptr noundef nonnull %39, i64 noundef 16) #12
  %215 = load ptr, ptr %15, align 16, !tbaa !9
  %216 = icmp eq ptr %215, null
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %215) #11
  call void @_ZdlPvm(ptr noundef nonnull %215, i64 noundef 16) #12
  br label %218

218:                                              ; preds = %217, %214
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #11
  call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 16) #12
  %219 = load ptr, ptr %17, align 8, !tbaa !9
  %220 = icmp eq ptr %219, null
  br i1 %220, label %222, label %221

221:                                              ; preds = %218
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %219) #11
  call void @_ZdlPvm(ptr noundef nonnull %219, i64 noundef 16) #12
  br label %222

222:                                              ; preds = %221, %218
  call void @_ZN5imageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %55) #11
  call void @_ZdlPvm(ptr noundef nonnull %55, i64 noundef 16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  %exitcond185.not = icmp eq i32 %20, 4
  br i1 %exitcond185.not, label %223, label %19, !llvm.loop !20

223:                                              ; preds = %222
  %224 = call noundef ptr @_Z13getDescriptorP13imageIntegralPSt6vectorIP8keyPointSaIS3_EE(ptr noundef nonnull %11, ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  ret ptr %224

225:                                              ; preds = %63, %28
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %29, %28 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

declare void @_ZN13imageIntegralC1EP5image(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIiiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @_ZN5image15getSampledImageERiS0_i(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #3

declare void @_ZN5imageC1Eii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z19squareConvolutionXYP13imageIntegraliiiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z9isMaximumPP5imageiiif(ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11addKeyPointP13imageIntegralddbdPSt6vectorIP8keyPointSaIS3_EE(ptr noundef, double noundef, double noundef, i1 noundef zeroext, double noundef, ptr noundef) local_unnamed_addr #0

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

declare noundef ptr @_Z13getDescriptorP13imageIntegralPSt6vectorIP8keyPointSaIS3_EE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #9

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { nounwind }
attributes #12 = { 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 = !{!"int", !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 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12, !17}
!20 = distinct !{!20, !12}


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