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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef %7, i32 noundef %8) #3 {
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store i32 %2, ptr %13, align 4, !tbaa !9
  store i32 %3, ptr %14, align 4, !tbaa !9
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = icmp sle i32 %35, 0
  br i1 %36, label %60, label %37

37:                                               ; preds = %9
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = icmp sle i32 %38, 0
  br i1 %39, label %60, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = call noundef i32 @_ZN5image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(16) %46)
  %48 = sub nsw i32 %47, 2
  %49 = icmp sge i32 %41, %48
  br i1 %49, label %60, label %50

50:                                               ; preds = %40
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = call noundef i32 @_ZN5image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  %58 = sub nsw i32 %57, 2
  %59 = icmp sge i32 %51, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %50, %40, %37, %9
  store i1 false, ptr %10, align 1
  br label %511

61:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %66, i32 noundef %68, i32 noundef %69)
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %72, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 1
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %76, i32 noundef %78, i32 noundef %79)
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fsub double %71, %81
  %83 = fdiv double %82, 2.000000e+00
  store double %83, ptr %23, align 8, !tbaa !11
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %88, i32 noundef %89, i32 noundef %91)
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds ptr, ptr %94, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = sub nsw i32 %100, 1
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %98, i32 noundef %99, i32 noundef %101)
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = fsub double %93, %103
  %105 = fdiv double %104, 2.000000e+00
  store double %105, ptr %24, align 8, !tbaa !11
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %106, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %110, i32 noundef %111, i32 noundef %112)
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %119, i32 noundef %120, i32 noundef %121)
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = fsub double %114, %123
  %125 = fdiv double %124, 2.000000e+00
  store double %125, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %126, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %130, i32 noundef %131, i32 noundef %132)
  %134 = load double, ptr %133, align 8, !tbaa !11
  store double %134, ptr %32, align 8, !tbaa !11
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %139, i32 noundef %141, i32 noundef %142)
  %144 = load double, ptr %143, align 8, !tbaa !11
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds ptr, ptr %145, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = sub nsw i32 %150, 1
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %149, i32 noundef %151, i32 noundef %152)
  %154 = load double, ptr %153, align 8, !tbaa !11
  %155 = fadd double %144, %154
  %156 = load double, ptr %32, align 8, !tbaa !11
  %157 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %156, double %155)
  store double %157, ptr %26, align 8, !tbaa !11
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i32, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %162, i32 noundef %163, i32 noundef %165)
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %168, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %13, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %172, i32 noundef %173, i32 noundef %175)
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = fadd double %167, %177
  %179 = load double, ptr %32, align 8, !tbaa !11
  %180 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %179, double %178)
  store double %180, ptr %27, align 8, !tbaa !11
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = sub nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %181, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %186, i32 noundef %187, i32 noundef %188)
  %190 = load double, ptr %189, align 8, !tbaa !11
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds ptr, ptr %191, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = load i32, ptr %12, align 4, !tbaa !9
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %196, i32 noundef %197, i32 noundef %198)
  %200 = load double, ptr %199, align 8, !tbaa !11
  %201 = fadd double %190, %200
  %202 = load double, ptr %32, align 8, !tbaa !11
  %203 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %202, double %201)
  store double %203, ptr %28, align 8, !tbaa !11
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds ptr, ptr %204, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %208, i32 noundef %210, i32 noundef %212)
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds ptr, ptr %215, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = load i32, ptr %12, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = sub nsw i32 %222, 1
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %219, i32 noundef %221, i32 noundef %223)
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = fsub double %214, %225
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds ptr, ptr %227, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = load i32, ptr %12, align 4, !tbaa !9
  %233 = sub nsw i32 %232, 1
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %231, i32 noundef %233, i32 noundef %235)
  %237 = load double, ptr %236, align 8, !tbaa !11
  %238 = fsub double %226, %237
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds ptr, ptr %239, i64 %241
  %243 = load ptr, ptr %242, align 8, !tbaa !5
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = sub nsw i32 %244, 1
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = sub nsw i32 %246, 1
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %243, i32 noundef %245, i32 noundef %247)
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = fadd double %238, %249
  %251 = fdiv double %250, 4.000000e+00
  store double %251, ptr %29, align 8, !tbaa !11
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds ptr, ptr %252, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = add nsw i32 %258, 1
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %257, i32 noundef %259, i32 noundef %260)
  %262 = load double, ptr %261, align 8, !tbaa !11
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = load i32, ptr %14, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds ptr, ptr %263, i64 %266
  %268 = load ptr, ptr %267, align 8, !tbaa !5
  %269 = load i32, ptr %12, align 4, !tbaa !9
  %270 = sub nsw i32 %269, 1
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %268, i32 noundef %270, i32 noundef %271)
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = fsub double %262, %273
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = sub nsw i32 %276, 1
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds ptr, ptr %275, i64 %278
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  %283 = load i32, ptr %13, align 4, !tbaa !9
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %280, i32 noundef %282, i32 noundef %283)
  %285 = load double, ptr %284, align 8, !tbaa !11
  %286 = fsub double %274, %285
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = load i32, ptr %14, align 4, !tbaa !9
  %289 = sub nsw i32 %288, 1
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds ptr, ptr %287, i64 %290
  %292 = load ptr, ptr %291, align 8, !tbaa !5
  %293 = load i32, ptr %12, align 4, !tbaa !9
  %294 = sub nsw i32 %293, 1
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %292, i32 noundef %294, i32 noundef %295)
  %297 = load double, ptr %296, align 8, !tbaa !11
  %298 = fadd double %286, %297
  %299 = fdiv double %298, 4.000000e+00
  store double %299, ptr %30, align 8, !tbaa !11
  %300 = load ptr, ptr %11, align 8, !tbaa !5
  %301 = load i32, ptr %14, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds ptr, ptr %300, i64 %303
  %305 = load ptr, ptr %304, align 8, !tbaa !5
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load i32, ptr %13, align 4, !tbaa !9
  %308 = add nsw i32 %307, 1
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %305, i32 noundef %306, i32 noundef %308)
  %310 = load double, ptr %309, align 8, !tbaa !11
  %311 = load ptr, ptr %11, align 8, !tbaa !5
  %312 = load i32, ptr %14, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds ptr, ptr %311, i64 %314
  %316 = load ptr, ptr %315, align 8, !tbaa !5
  %317 = load i32, ptr %12, align 4, !tbaa !9
  %318 = load i32, ptr %13, align 4, !tbaa !9
  %319 = sub nsw i32 %318, 1
  %320 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %316, i32 noundef %317, i32 noundef %319)
  %321 = load double, ptr %320, align 8, !tbaa !11
  %322 = fsub double %310, %321
  %323 = load ptr, ptr %11, align 8, !tbaa !5
  %324 = load i32, ptr %14, align 4, !tbaa !9
  %325 = sub nsw i32 %324, 1
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds ptr, ptr %323, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = load i32, ptr %12, align 4, !tbaa !9
  %330 = load i32, ptr %13, align 4, !tbaa !9
  %331 = add nsw i32 %330, 1
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %328, i32 noundef %329, i32 noundef %331)
  %333 = load double, ptr %332, align 8, !tbaa !11
  %334 = fsub double %322, %333
  %335 = load ptr, ptr %11, align 8, !tbaa !5
  %336 = load i32, ptr %14, align 4, !tbaa !9
  %337 = sub nsw i32 %336, 1
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds ptr, ptr %335, i64 %338
  %340 = load ptr, ptr %339, align 8, !tbaa !5
  %341 = load i32, ptr %12, align 4, !tbaa !9
  %342 = load i32, ptr %13, align 4, !tbaa !9
  %343 = sub nsw i32 %342, 1
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %340, i32 noundef %341, i32 noundef %343)
  %345 = load double, ptr %344, align 8, !tbaa !11
  %346 = fadd double %334, %345
  %347 = fdiv double %346, 4.000000e+00
  store double %347, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %348 = load double, ptr %26, align 8, !tbaa !11
  %349 = load double, ptr %27, align 8, !tbaa !11
  %350 = fmul double %348, %349
  %351 = load double, ptr %28, align 8, !tbaa !11
  %352 = load double, ptr %26, align 8, !tbaa !11
  %353 = load double, ptr %31, align 8, !tbaa !11
  %354 = fmul double %352, %353
  %355 = load double, ptr %31, align 8, !tbaa !11
  %356 = fmul double %354, %355
  %357 = fneg double %356
  %358 = call double @llvm.fmuladd.f64(double %350, double %351, double %357)
  %359 = load double, ptr %27, align 8, !tbaa !11
  %360 = load double, ptr %30, align 8, !tbaa !11
  %361 = fmul double %359, %360
  %362 = load double, ptr %30, align 8, !tbaa !11
  %363 = fneg double %361
  %364 = call double @llvm.fmuladd.f64(double %363, double %362, double %358)
  %365 = load double, ptr %30, align 8, !tbaa !11
  %366 = fmul double 2.000000e+00, %365
  %367 = load double, ptr %31, align 8, !tbaa !11
  %368 = fmul double %366, %367
  %369 = load double, ptr %29, align 8, !tbaa !11
  %370 = call double @llvm.fmuladd.f64(double %368, double %369, double %364)
  %371 = load double, ptr %28, align 8, !tbaa !11
  %372 = load double, ptr %29, align 8, !tbaa !11
  %373 = fmul double %371, %372
  %374 = load double, ptr %29, align 8, !tbaa !11
  %375 = fneg double %373
  %376 = call double @llvm.fmuladd.f64(double %375, double %374, double %370)
  store double %376, ptr %33, align 8, !tbaa !11
  %377 = load double, ptr %33, align 8, !tbaa !11
  %378 = fcmp une double %377, 0.000000e+00
  br i1 %378, label %379, label %509

379:                                              ; preds = %61
  %380 = load double, ptr %33, align 8, !tbaa !11
  %381 = fdiv double -1.000000e+00, %380
  %382 = load double, ptr %23, align 8, !tbaa !11
  %383 = load double, ptr %27, align 8, !tbaa !11
  %384 = load double, ptr %28, align 8, !tbaa !11
  %385 = load double, ptr %31, align 8, !tbaa !11
  %386 = load double, ptr %31, align 8, !tbaa !11
  %387 = fmul double %385, %386
  %388 = fneg double %387
  %389 = call double @llvm.fmuladd.f64(double %383, double %384, double %388)
  %390 = load double, ptr %24, align 8, !tbaa !11
  %391 = load double, ptr %30, align 8, !tbaa !11
  %392 = load double, ptr %31, align 8, !tbaa !11
  %393 = load double, ptr %28, align 8, !tbaa !11
  %394 = load double, ptr %29, align 8, !tbaa !11
  %395 = fmul double %393, %394
  %396 = fneg double %395
  %397 = call double @llvm.fmuladd.f64(double %391, double %392, double %396)
  %398 = fmul double %390, %397
  %399 = call double @llvm.fmuladd.f64(double %382, double %389, double %398)
  %400 = load double, ptr %25, align 8, !tbaa !11
  %401 = load double, ptr %29, align 8, !tbaa !11
  %402 = load double, ptr %31, align 8, !tbaa !11
  %403 = load double, ptr %27, align 8, !tbaa !11
  %404 = load double, ptr %30, align 8, !tbaa !11
  %405 = fmul double %403, %404
  %406 = fneg double %405
  %407 = call double @llvm.fmuladd.f64(double %401, double %402, double %406)
  %408 = call double @llvm.fmuladd.f64(double %400, double %407, double %399)
  %409 = fmul double %381, %408
  store double %409, ptr %20, align 8, !tbaa !11
  %410 = load double, ptr %33, align 8, !tbaa !11
  %411 = fdiv double -1.000000e+00, %410
  %412 = load double, ptr %23, align 8, !tbaa !11
  %413 = load double, ptr %30, align 8, !tbaa !11
  %414 = load double, ptr %31, align 8, !tbaa !11
  %415 = load double, ptr %28, align 8, !tbaa !11
  %416 = load double, ptr %29, align 8, !tbaa !11
  %417 = fmul double %415, %416
  %418 = fneg double %417
  %419 = call double @llvm.fmuladd.f64(double %413, double %414, double %418)
  %420 = load double, ptr %24, align 8, !tbaa !11
  %421 = load double, ptr %26, align 8, !tbaa !11
  %422 = load double, ptr %28, align 8, !tbaa !11
  %423 = load double, ptr %30, align 8, !tbaa !11
  %424 = load double, ptr %30, align 8, !tbaa !11
  %425 = fmul double %423, %424
  %426 = fneg double %425
  %427 = call double @llvm.fmuladd.f64(double %421, double %422, double %426)
  %428 = fmul double %420, %427
  %429 = call double @llvm.fmuladd.f64(double %412, double %419, double %428)
  %430 = load double, ptr %25, align 8, !tbaa !11
  %431 = load double, ptr %29, align 8, !tbaa !11
  %432 = load double, ptr %30, align 8, !tbaa !11
  %433 = load double, ptr %26, align 8, !tbaa !11
  %434 = load double, ptr %31, align 8, !tbaa !11
  %435 = fmul double %433, %434
  %436 = fneg double %435
  %437 = call double @llvm.fmuladd.f64(double %431, double %432, double %436)
  %438 = call double @llvm.fmuladd.f64(double %430, double %437, double %429)
  %439 = fmul double %411, %438
  store double %439, ptr %21, align 8, !tbaa !11
  %440 = load double, ptr %33, align 8, !tbaa !11
  %441 = fdiv double -1.000000e+00, %440
  %442 = load double, ptr %23, align 8, !tbaa !11
  %443 = load double, ptr %29, align 8, !tbaa !11
  %444 = load double, ptr %31, align 8, !tbaa !11
  %445 = load double, ptr %27, align 8, !tbaa !11
  %446 = load double, ptr %30, align 8, !tbaa !11
  %447 = fmul double %445, %446
  %448 = fneg double %447
  %449 = call double @llvm.fmuladd.f64(double %443, double %444, double %448)
  %450 = load double, ptr %24, align 8, !tbaa !11
  %451 = load double, ptr %29, align 8, !tbaa !11
  %452 = load double, ptr %30, align 8, !tbaa !11
  %453 = load double, ptr %26, align 8, !tbaa !11
  %454 = load double, ptr %31, align 8, !tbaa !11
  %455 = fmul double %453, %454
  %456 = fneg double %455
  %457 = call double @llvm.fmuladd.f64(double %451, double %452, double %456)
  %458 = fmul double %450, %457
  %459 = call double @llvm.fmuladd.f64(double %442, double %449, double %458)
  %460 = load double, ptr %25, align 8, !tbaa !11
  %461 = load double, ptr %26, align 8, !tbaa !11
  %462 = load double, ptr %27, align 8, !tbaa !11
  %463 = load double, ptr %29, align 8, !tbaa !11
  %464 = load double, ptr %29, align 8, !tbaa !11
  %465 = fmul double %463, %464
  %466 = fneg double %465
  %467 = call double @llvm.fmuladd.f64(double %461, double %462, double %466)
  %468 = call double @llvm.fmuladd.f64(double %460, double %467, double %459)
  %469 = fmul double %441, %468
  store double %469, ptr %22, align 8, !tbaa !11
  %470 = load double, ptr %20, align 8, !tbaa !11
  %471 = call noundef double @_Z6absvald(double noundef %470)
  %472 = fcmp olt double %471, 1.000000e+00
  br i1 %472, label %473, label %508

473:                                              ; preds = %379
  %474 = load double, ptr %21, align 8, !tbaa !11
  %475 = call noundef double @_Z6absvald(double noundef %474)
  %476 = fcmp olt double %475, 1.000000e+00
  br i1 %476, label %477, label %508

477:                                              ; preds = %473
  %478 = load double, ptr %22, align 8, !tbaa !11
  %479 = call noundef double @_Z6absvald(double noundef %478)
  %480 = fcmp olt double %479, 1.000000e+00
  br i1 %480, label %481, label %508

481:                                              ; preds = %477
  %482 = load i32, ptr %18, align 4, !tbaa !9
  %483 = sitofp i32 %482 to double
  %484 = load i32, ptr %12, align 4, !tbaa !9
  %485 = sitofp i32 %484 to double
  %486 = load double, ptr %20, align 8, !tbaa !11
  %487 = fadd double %485, %486
  %488 = call double @llvm.fmuladd.f64(double %483, double %487, double 5.000000e-01)
  %489 = load ptr, ptr %15, align 8, !tbaa !5
  store double %488, ptr %489, align 8, !tbaa !11
  %490 = load i32, ptr %18, align 4, !tbaa !9
  %491 = sitofp i32 %490 to double
  %492 = load i32, ptr %13, align 4, !tbaa !9
  %493 = sitofp i32 %492 to double
  %494 = load double, ptr %21, align 8, !tbaa !11
  %495 = fadd double %493, %494
  %496 = call double @llvm.fmuladd.f64(double %491, double %495, double 5.000000e-01)
  %497 = load ptr, ptr %16, align 8, !tbaa !5
  store double %496, ptr %497, align 8, !tbaa !11
  %498 = load i32, ptr %19, align 4, !tbaa !9
  %499 = sitofp i32 %498 to double
  %500 = load i32, ptr %14, align 4, !tbaa !9
  %501 = sitofp i32 %500 to double
  %502 = load double, ptr %22, align 8, !tbaa !11
  %503 = fadd double %501, %502
  %504 = fadd double %503, 1.000000e+00
  %505 = call double @llvm.fmuladd.f64(double %499, double %504, double 1.000000e+00)
  %506 = fmul double 4.000000e-01, %505
  %507 = load ptr, ptr %17, align 8, !tbaa !5
  store double %506, ptr %507, align 8, !tbaa !11
  store i1 true, ptr %10, align 1
  store i32 1, ptr %34, align 4
  br label %510

508:                                              ; preds = %477, %473, %379
  br label %509

509:                                              ; preds = %508, %61
  store i1 false, ptr %10, align 1
  store i32 1, ptr %34, align 4
  br label %510

510:                                              ; preds = %509, %481
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %511

511:                                              ; preds = %510, %60
  %512 = load i1, ptr %10, align 1
  ret i1 %512
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z6absvald(double noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z23interpolationScaleSpacePP5imageiiiRdS2_S2_ii(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %5, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #2 {
  %10 = icmp slt i32 %1, 1
  %11 = icmp slt i32 %2, 1
  %or.cond = or i1 %10, %11
  br i1 %or.cond, label %197, label %12

12:                                               ; preds = %9
  %13 = sext i32 %3 to i64
  %14 = getelementptr inbounds ptr, ptr %0, i64 %13
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = tail call noundef i32 @_ZN5image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %17 = add nsw i32 %16, -2
  %.not = icmp sgt i32 %17, %1
  br i1 %.not, label %18, label %197

18:                                               ; preds = %12
  %19 = load ptr, ptr %14, align 8, !tbaa !5
  %20 = tail call noundef i32 @_ZN5image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = add nsw i32 %20, -2
  %.not194 = icmp sgt i32 %21, %2
  br i1 %.not194, label %22, label %197

22:                                               ; preds = %18
  %23 = load ptr, ptr %14, align 8, !tbaa !5
  %24 = add nuw nsw i32 %1, 1
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef %24, i32 noundef %2)
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  %28 = add nsw i32 %1, -1
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef %28, i32 noundef %2)
  %30 = load double, ptr %29, align 8, !tbaa !9
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = add nuw nsw i32 %2, 1
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %31, i32 noundef %1, i32 noundef %32)
  %34 = load double, ptr %33, align 8, !tbaa !9
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = add nsw i32 %2, -1
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %35, i32 noundef %1, i32 noundef %36)
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %39, i32 noundef %1, i32 noundef %2)
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %42, i32 noundef %1, i32 noundef %2)
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %45, i32 noundef %1, i32 noundef %2)
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %48, i32 noundef %24, i32 noundef %2)
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %51, i32 noundef %28, i32 noundef %2)
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %54, i32 noundef %1, i32 noundef %32)
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %57, i32 noundef %1, i32 noundef %32)
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = insertelement <2 x double> poison, double %50, i64 0
  %61 = insertelement <2 x double> %60, double %56, i64 1
  %62 = insertelement <2 x double> poison, double %53, i64 0
  %63 = insertelement <2 x double> %62, double %59, i64 1
  %64 = fadd <2 x double> %61, %63
  %65 = insertelement <2 x double> poison, double %47, i64 0
  %66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
  %67 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %66, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %64)
  %68 = getelementptr i8, ptr %14, i64 -8
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %69, i32 noundef %1, i32 noundef %2)
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = getelementptr i8, ptr %14, i64 8
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %73, i32 noundef %1, i32 noundef %2)
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = fadd double %71, %75
  %77 = tail call double @llvm.fmuladd.f64(double %47, double -2.000000e+00, double %76)
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %78, i32 noundef %24, i32 noundef %32)
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %81, i32 noundef %24, i32 noundef %36)
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = fsub double %80, %83
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %85, i32 noundef %28, i32 noundef %32)
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = fsub double %84, %87
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %89, i32 noundef %28, i32 noundef %36)
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = fadd double %88, %91
  %93 = fmul double %92, 2.500000e-01
  %94 = load ptr, ptr %72, align 8, !tbaa !5
  %95 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %94, i32 noundef %24, i32 noundef %2)
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = load ptr, ptr %72, align 8, !tbaa !5
  %98 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %97, i32 noundef %28, i32 noundef %2)
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = fsub double %96, %99
  %101 = load ptr, ptr %68, align 8, !tbaa !5
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %101, i32 noundef %24, i32 noundef %2)
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = fsub double %100, %103
  %105 = load ptr, ptr %68, align 8, !tbaa !5
  %106 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %105, i32 noundef %28, i32 noundef %2)
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = fadd double %104, %107
  %109 = fmul double %108, 2.500000e-01
  %110 = load ptr, ptr %72, align 8, !tbaa !5
  %111 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %110, i32 noundef %1, i32 noundef %32)
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = load ptr, ptr %72, align 8, !tbaa !5
  %114 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %113, i32 noundef %1, i32 noundef %36)
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = fsub double %112, %115
  %117 = load ptr, ptr %68, align 8, !tbaa !5
  %118 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %117, i32 noundef %1, i32 noundef %32)
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = fsub double %116, %119
  %121 = load ptr, ptr %68, align 8, !tbaa !5
  %122 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5imageclEii(ptr noundef nonnull align 8 dereferenceable(16) %121, i32 noundef %1, i32 noundef %36)
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = fadd double %120, %123
  %125 = fmul double %124, 2.500000e-01
  %126 = extractelement <2 x double> %67, i64 0
  %127 = extractelement <2 x double> %67, i64 1
  %128 = fmul double %126, %127
  %129 = fneg double %126
  %130 = fmul double %125, %129
  %131 = fmul double %125, %130
  %132 = tail call double @llvm.fmuladd.f64(double %128, double %77, double %131)
  %133 = fneg double %127
  %134 = fmul double %109, %133
  %135 = tail call double @llvm.fmuladd.f64(double %134, double %109, double %132)
  %136 = fmul double %109, 2.000000e+00
  %137 = fmul double %136, %125
  %138 = tail call double @llvm.fmuladd.f64(double %137, double %93, double %135)
  %139 = fneg double %77
  %140 = fmul double %93, %139
  %141 = tail call double @llvm.fmuladd.f64(double %140, double %93, double %138)
  %142 = fcmp une double %141, 0.000000e+00
  br i1 %142, label %143, label %197

143:                                              ; preds = %22
  %144 = fsub double %41, %44
  %145 = fmul double %144, 5.000000e-01
  %146 = fsub double %34, %38
  %147 = fmul double %146, 5.000000e-01
  %148 = fsub double %26, %30
  %149 = fmul double %148, 5.000000e-01
  %150 = fdiv double -1.000000e+00, %141
  %151 = fneg double %125
  %152 = fmul double %125, %151
  %153 = tail call double @llvm.fmuladd.f64(double %127, double %77, double %152)
  %154 = tail call double @llvm.fmuladd.f64(double %109, double %125, double %140)
  %155 = fmul double %147, %154
  %156 = tail call double @llvm.fmuladd.f64(double %149, double %153, double %155)
  %157 = tail call double @llvm.fmuladd.f64(double %93, double %125, double %134)
  %158 = tail call double @llvm.fmuladd.f64(double %145, double %157, double %156)
  %159 = fmul double %158, %150
  %160 = fneg double %109
  %161 = fmul double %109, %160
  %162 = tail call double @llvm.fmuladd.f64(double %126, double %77, double %161)
  %163 = fmul double %147, %162
  %164 = tail call double @llvm.fmuladd.f64(double %149, double %154, double %163)
  %165 = tail call double @llvm.fmuladd.f64(double %93, double %109, double %130)
  %166 = tail call double @llvm.fmuladd.f64(double %145, double %165, double %164)
  %167 = fmul double %166, %150
  %168 = fmul double %147, %165
  %169 = tail call double @llvm.fmuladd.f64(double %149, double %157, double %168)
  %170 = fneg double %93
  %171 = fmul double %93, %170
  %172 = tail call double @llvm.fmuladd.f64(double %126, double %127, double %171)
  %173 = tail call double @llvm.fmuladd.f64(double %145, double %172, double %169)
  %174 = fmul double %173, %150
  %175 = tail call noundef double @_Z6absvald(double noundef %159)
  %176 = fcmp olt double %175, 1.000000e+00
  br i1 %176, label %177, label %197

177:                                              ; preds = %143
  %178 = tail call noundef double @_Z6absvald(double noundef %167)
  %179 = fcmp olt double %178, 1.000000e+00
  br i1 %179, label %180, label %197

180:                                              ; preds = %177
  %181 = tail call noundef double @_Z6absvald(double noundef %174)
  %182 = fcmp olt double %181, 1.000000e+00
  br i1 %182, label %183, label %197

183:                                              ; preds = %180
  %184 = sitofp i32 %7 to double
  %185 = uitofp nneg i32 %1 to double
  %186 = fadd double %159, %185
  %187 = tail call double @llvm.fmuladd.f64(double %184, double %186, double 5.000000e-01)
  store double %187, ptr %4, align 8, !tbaa !9
  %188 = uitofp nneg i32 %2 to double
  %189 = fadd double %167, %188
  %190 = tail call double @llvm.fmuladd.f64(double %184, double %189, double 5.000000e-01)
  store double %190, ptr %5, align 8, !tbaa !9
  %191 = sitofp i32 %8 to double
  %192 = sitofp i32 %3 to double
  %193 = fadd double %174, %192
  %194 = fadd double %193, 1.000000e+00
  %195 = tail call double @llvm.fmuladd.f64(double %191, double %194, double 1.000000e+00)
  %196 = fmul double %195, 4.000000e-01
  store double %196, ptr %6, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %183, %143, %177, %180, %22, %9, %12, %18
  %.1 = phi i1 [ false, %18 ], [ false, %12 ], [ false, %9 ], [ true, %183 ], [ false, %143 ], [ false, %177 ], [ false, %180 ], [ false, %22 ]
  ret i1 %.1
}

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

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

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

; 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>) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass