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

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

%class.keyPoint = type <{ double, double, double, double, i8, [7 x i8] }>
%class.descriptor = type { ptr, ptr }
%class.vectorDescriptor = type { double, double, double, double }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z14makeDescriptorP13imageIntegralP8keyPoint(ptr noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.keyPoint, ptr %25, i32 0, i32 2
  %27 = load double, ptr %26, align 8, !tbaa !9
  store double %27, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %28 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
  invoke void @_ZN10descriptorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %29 unwind label %42

29:                                               ; preds = %2
  store ptr %28, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.keyPoint, ptr %30, i32 0, i32 3
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = call double @cos(double noundef %32) #9
  store double %33, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.keyPoint, ptr %34, i32 0, i32 3
  %36 = load double, ptr %35, align 8, !tbaa !14
  %37 = call double @sin(double noundef %36) #9
  store double %37, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store double 0.000000e+00, ptr %11, align 8, !tbaa !13
  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 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !15
  br label %38

38:                                               ; preds = %360, %29
  %39 = load i32, ptr %19, align 4, !tbaa !15
  %40 = icmp slt i32 %39, 4
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %363

42:                                               ; preds = %2
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %28, i64 noundef 16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %426

46:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !15
  br label %47

47:                                               ; preds = %356, %46
  %48 = load i32, ptr %21, align 4, !tbaa !15
  %49 = icmp slt i32 %48, 4
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %359

51:                                               ; preds = %47
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.descriptor, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = load i32, ptr %19, align 4, !tbaa !15
  %56 = mul nsw i32 4, %55
  %57 = load i32, ptr %21, align 4, !tbaa !15
  %58 = add nsw i32 %56, %57
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %class.vectorDescriptor, ptr %54, i64 %59
  %61 = getelementptr inbounds %class.vectorDescriptor, ptr %60, i32 0, i32 0
  store double 0.000000e+00, ptr %61, align 8, !tbaa !19
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.descriptor, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = load i32, ptr %19, align 4, !tbaa !15
  %66 = mul nsw i32 4, %65
  %67 = load i32, ptr %21, align 4, !tbaa !15
  %68 = add nsw i32 %66, %67
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %class.vectorDescriptor, ptr %64, i64 %69
  %71 = getelementptr inbounds %class.vectorDescriptor, ptr %70, i32 0, i32 2
  store double 0.000000e+00, ptr %71, align 8, !tbaa !21
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.descriptor, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !17
  %75 = load i32, ptr %19, align 4, !tbaa !15
  %76 = mul nsw i32 4, %75
  %77 = load i32, ptr %21, align 4, !tbaa !15
  %78 = add nsw i32 %76, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %class.vectorDescriptor, ptr %74, i64 %79
  %81 = getelementptr inbounds %class.vectorDescriptor, ptr %80, i32 0, i32 1
  store double 0.000000e+00, ptr %81, align 8, !tbaa !22
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.descriptor, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = load i32, ptr %19, align 4, !tbaa !15
  %86 = mul nsw i32 4, %85
  %87 = load i32, ptr %21, align 4, !tbaa !15
  %88 = add nsw i32 %86, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %class.vectorDescriptor, ptr %84, i64 %89
  %91 = getelementptr inbounds %class.vectorDescriptor, ptr %90, i32 0, i32 3
  store double 0.000000e+00, ptr %91, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !15
  br label %92

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

95:                                               ; preds = %92
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %260

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !15
  br label %97

97:                                               ; preds = %253, %96
  %98 = load i32, ptr %23, align 4, !tbaa !15
  %99 = icmp slt i32 %98, 5
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %256

101:                                              ; preds = %97
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %class.keyPoint, ptr %102, i32 0, i32 0
  %104 = load double, ptr %103, align 8, !tbaa !24
  %105 = load double, ptr %5, align 8, !tbaa !13
  %106 = load double, ptr %9, align 8, !tbaa !13
  %107 = load i32, ptr %19, align 4, !tbaa !15
  %108 = sub nsw i32 %107, 2
  %109 = mul nsw i32 %108, 5
  %110 = load i32, ptr %22, align 4, !tbaa !15
  %111 = add nsw i32 %109, %110
  %112 = sitofp i32 %111 to double
  %113 = fadd double %112, 5.000000e-01
  %114 = load double, ptr %10, align 8, !tbaa !13
  %115 = load i32, ptr %21, align 4, !tbaa !15
  %116 = sub nsw i32 %115, 2
  %117 = mul nsw i32 %116, 5
  %118 = load i32, ptr %23, align 4, !tbaa !15
  %119 = add nsw i32 %117, %118
  %120 = sitofp i32 %119 to double
  %121 = fadd double %120, 5.000000e-01
  %122 = fmul double %114, %121
  %123 = fneg double %122
  %124 = call double @llvm.fmuladd.f64(double %106, double %113, double %123)
  %125 = call double @llvm.fmuladd.f64(double %105, double %124, double %104)
  store double %125, ptr %12, align 8, !tbaa !13
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %class.keyPoint, ptr %126, i32 0, i32 1
  %128 = load double, ptr %127, align 8, !tbaa !25
  %129 = load double, ptr %5, align 8, !tbaa !13
  %130 = load double, ptr %10, align 8, !tbaa !13
  %131 = load i32, ptr %19, align 4, !tbaa !15
  %132 = sub nsw i32 %131, 2
  %133 = mul nsw i32 %132, 5
  %134 = load i32, ptr %22, align 4, !tbaa !15
  %135 = add nsw i32 %133, %134
  %136 = sitofp i32 %135 to double
  %137 = fadd double %136, 5.000000e-01
  %138 = load double, ptr %9, align 8, !tbaa !13
  %139 = load i32, ptr %21, align 4, !tbaa !15
  %140 = sub nsw i32 %139, 2
  %141 = mul nsw i32 %140, 5
  %142 = load i32, ptr %23, align 4, !tbaa !15
  %143 = add nsw i32 %141, %142
  %144 = sitofp i32 %143 to double
  %145 = fadd double %144, 5.000000e-01
  %146 = fmul double %138, %145
  %147 = call double @llvm.fmuladd.f64(double %130, double %137, double %146)
  %148 = call double @llvm.fmuladd.f64(double %129, double %147, double %128)
  store double %148, ptr %13, align 8, !tbaa !13
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = load double, ptr %12, align 8, !tbaa !13
  %151 = fptosi double %150 to i32
  %152 = load double, ptr %13, align 8, !tbaa !13
  %153 = fptosi double %152 to i32
  %154 = load double, ptr %5, align 8, !tbaa !13
  %155 = call noundef i32 @_Z6froundd(double noundef %154)
  %156 = call noundef i64 @_Z5haarXP13imageIntegraliii(ptr noundef %149, i32 noundef %151, i32 noundef %153, i32 noundef %155)
  %157 = sitofp i64 %156 to double
  store double %157, ptr %17, align 8, !tbaa !13
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = load double, ptr %12, align 8, !tbaa !13
  %160 = fptosi double %159 to i32
  %161 = load double, ptr %13, align 8, !tbaa !13
  %162 = fptosi double %161 to i32
  %163 = load double, ptr %5, align 8, !tbaa !13
  %164 = call noundef i32 @_Z6froundd(double noundef %163)
  %165 = call noundef i64 @_Z5haarYP13imageIntegraliii(ptr noundef %158, i32 noundef %160, i32 noundef %162, i32 noundef %164)
  %166 = sitofp i64 %165 to double
  store double %166, ptr %18, align 8, !tbaa !13
  %167 = load i32, ptr %19, align 4, !tbaa !15
  %168 = sub nsw i32 %167, 2
  %169 = mul nsw i32 %168, 5
  %170 = load i32, ptr %22, align 4, !tbaa !15
  %171 = add nsw i32 %169, %170
  %172 = sitofp i32 %171 to double
  %173 = fadd double %172, 5.000000e-01
  %174 = load i32, ptr %21, align 4, !tbaa !15
  %175 = sub nsw i32 %174, 2
  %176 = mul nsw i32 %175, 5
  %177 = load i32, ptr %23, align 4, !tbaa !15
  %178 = add nsw i32 %176, %177
  %179 = sitofp i32 %178 to double
  %180 = fadd double %179, 5.000000e-01
  %181 = call noundef double @_Z8gaussianddd(double noundef %173, double noundef %180, double noundef 3.300000e+00)
  store double %181, ptr %14, align 8, !tbaa !13
  %182 = load double, ptr %14, align 8, !tbaa !13
  %183 = load double, ptr %17, align 8, !tbaa !13
  %184 = load double, ptr %9, align 8, !tbaa !13
  %185 = load double, ptr %18, align 8, !tbaa !13
  %186 = load double, ptr %10, align 8, !tbaa !13
  %187 = fmul double %185, %186
  %188 = call double @llvm.fmuladd.f64(double %183, double %184, double %187)
  %189 = fmul double %182, %188
  store double %189, ptr %15, align 8, !tbaa !13
  %190 = load double, ptr %14, align 8, !tbaa !13
  %191 = load double, ptr %17, align 8, !tbaa !13
  %192 = fneg double %191
  %193 = load double, ptr %10, align 8, !tbaa !13
  %194 = load double, ptr %18, align 8, !tbaa !13
  %195 = load double, ptr %9, align 8, !tbaa !13
  %196 = fmul double %194, %195
  %197 = call double @llvm.fmuladd.f64(double %192, double %193, double %196)
  %198 = fmul double %190, %197
  store double %198, ptr %16, align 8, !tbaa !13
  %199 = load double, ptr %15, align 8, !tbaa !13
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = getelementptr inbounds %class.descriptor, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !17
  %203 = load i32, ptr %19, align 4, !tbaa !15
  %204 = mul nsw i32 4, %203
  %205 = load i32, ptr %21, align 4, !tbaa !15
  %206 = add nsw i32 %204, %205
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds %class.vectorDescriptor, ptr %202, i64 %207
  %209 = getelementptr inbounds %class.vectorDescriptor, ptr %208, i32 0, i32 0
  %210 = load double, ptr %209, align 8, !tbaa !19
  %211 = fadd double %210, %199
  store double %211, ptr %209, align 8, !tbaa !19
  %212 = load double, ptr %15, align 8, !tbaa !13
  %213 = call noundef double @_Z6absvald(double noundef %212)
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.descriptor, ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !17
  %217 = load i32, ptr %19, align 4, !tbaa !15
  %218 = mul nsw i32 4, %217
  %219 = load i32, ptr %21, align 4, !tbaa !15
  %220 = add nsw i32 %218, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds %class.vectorDescriptor, ptr %216, i64 %221
  %223 = getelementptr inbounds %class.vectorDescriptor, ptr %222, i32 0, i32 2
  %224 = load double, ptr %223, align 8, !tbaa !21
  %225 = fadd double %224, %213
  store double %225, ptr %223, align 8, !tbaa !21
  %226 = load double, ptr %16, align 8, !tbaa !13
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %class.descriptor, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !17
  %230 = load i32, ptr %19, align 4, !tbaa !15
  %231 = mul nsw i32 4, %230
  %232 = load i32, ptr %21, align 4, !tbaa !15
  %233 = add nsw i32 %231, %232
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds %class.vectorDescriptor, ptr %229, i64 %234
  %236 = getelementptr inbounds %class.vectorDescriptor, ptr %235, i32 0, i32 1
  %237 = load double, ptr %236, align 8, !tbaa !22
  %238 = fadd double %237, %226
  store double %238, ptr %236, align 8, !tbaa !22
  %239 = load double, ptr %16, align 8, !tbaa !13
  %240 = call noundef double @_Z6absvald(double noundef %239)
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %class.descriptor, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !17
  %244 = load i32, ptr %19, align 4, !tbaa !15
  %245 = mul nsw i32 4, %244
  %246 = load i32, ptr %21, align 4, !tbaa !15
  %247 = add nsw i32 %245, %246
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds %class.vectorDescriptor, ptr %243, i64 %248
  %250 = getelementptr inbounds %class.vectorDescriptor, ptr %249, i32 0, i32 3
  %251 = load double, ptr %250, align 8, !tbaa !23
  %252 = fadd double %251, %240
  store double %252, ptr %250, align 8, !tbaa !23
  br label %253

253:                                              ; preds = %101
  %254 = load i32, ptr %23, align 4, !tbaa !15
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %23, align 4, !tbaa !15
  br label %97, !llvm.loop !26

256:                                              ; preds = %100
  br label %257

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

260:                                              ; preds = %95
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = getelementptr inbounds %class.descriptor, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !17
  %264 = load i32, ptr %19, align 4, !tbaa !15
  %265 = mul nsw i32 4, %264
  %266 = load i32, ptr %21, align 4, !tbaa !15
  %267 = add nsw i32 %265, %266
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds %class.vectorDescriptor, ptr %263, i64 %268
  %270 = getelementptr inbounds %class.vectorDescriptor, ptr %269, i32 0, i32 2
  %271 = load double, ptr %270, align 8, !tbaa !21
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %class.descriptor, ptr %272, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8, !tbaa !17
  %275 = load i32, ptr %19, align 4, !tbaa !15
  %276 = mul nsw i32 4, %275
  %277 = load i32, ptr %21, align 4, !tbaa !15
  %278 = add nsw i32 %276, %277
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds %class.vectorDescriptor, ptr %274, i64 %279
  %281 = getelementptr inbounds %class.vectorDescriptor, ptr %280, i32 0, i32 2
  %282 = load double, ptr %281, align 8, !tbaa !21
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = getelementptr inbounds %class.descriptor, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !17
  %286 = load i32, ptr %19, align 4, !tbaa !15
  %287 = mul nsw i32 4, %286
  %288 = load i32, ptr %21, align 4, !tbaa !15
  %289 = add nsw i32 %287, %288
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds %class.vectorDescriptor, ptr %285, i64 %290
  %292 = getelementptr inbounds %class.vectorDescriptor, ptr %291, i32 0, i32 3
  %293 = load double, ptr %292, align 8, !tbaa !23
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = getelementptr inbounds %class.descriptor, ptr %294, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !17
  %297 = load i32, ptr %19, align 4, !tbaa !15
  %298 = mul nsw i32 4, %297
  %299 = load i32, ptr %21, align 4, !tbaa !15
  %300 = add nsw i32 %298, %299
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds %class.vectorDescriptor, ptr %296, i64 %301
  %303 = getelementptr inbounds %class.vectorDescriptor, ptr %302, i32 0, i32 3
  %304 = load double, ptr %303, align 8, !tbaa !23
  %305 = fmul double %293, %304
  %306 = call double @llvm.fmuladd.f64(double %271, double %282, double %305)
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = getelementptr inbounds %class.descriptor, ptr %307, i32 0, i32 0
  %309 = load ptr, ptr %308, align 8, !tbaa !17
  %310 = load i32, ptr %19, align 4, !tbaa !15
  %311 = mul nsw i32 4, %310
  %312 = load i32, ptr %21, align 4, !tbaa !15
  %313 = add nsw i32 %311, %312
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds %class.vectorDescriptor, ptr %309, i64 %314
  %316 = getelementptr inbounds %class.vectorDescriptor, ptr %315, i32 0, i32 0
  %317 = load double, ptr %316, align 8, !tbaa !19
  %318 = load ptr, ptr %6, align 8, !tbaa !5
  %319 = getelementptr inbounds %class.descriptor, ptr %318, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8, !tbaa !17
  %321 = load i32, ptr %19, align 4, !tbaa !15
  %322 = mul nsw i32 4, %321
  %323 = load i32, ptr %21, align 4, !tbaa !15
  %324 = add nsw i32 %322, %323
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds %class.vectorDescriptor, ptr %320, i64 %325
  %327 = getelementptr inbounds %class.vectorDescriptor, ptr %326, i32 0, i32 0
  %328 = load double, ptr %327, align 8, !tbaa !19
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  %330 = getelementptr inbounds %class.descriptor, ptr %329, i32 0, i32 0
  %331 = load ptr, ptr %330, align 8, !tbaa !17
  %332 = load i32, ptr %19, align 4, !tbaa !15
  %333 = mul nsw i32 4, %332
  %334 = load i32, ptr %21, align 4, !tbaa !15
  %335 = add nsw i32 %333, %334
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds %class.vectorDescriptor, ptr %331, i64 %336
  %338 = getelementptr inbounds %class.vectorDescriptor, ptr %337, i32 0, i32 1
  %339 = load double, ptr %338, align 8, !tbaa !22
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = getelementptr inbounds %class.descriptor, ptr %340, i32 0, i32 0
  %342 = load ptr, ptr %341, align 8, !tbaa !17
  %343 = load i32, ptr %19, align 4, !tbaa !15
  %344 = mul nsw i32 4, %343
  %345 = load i32, ptr %21, align 4, !tbaa !15
  %346 = add nsw i32 %344, %345
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds %class.vectorDescriptor, ptr %342, i64 %347
  %349 = getelementptr inbounds %class.vectorDescriptor, ptr %348, i32 0, i32 1
  %350 = load double, ptr %349, align 8, !tbaa !22
  %351 = fmul double %339, %350
  %352 = call double @llvm.fmuladd.f64(double %317, double %328, double %351)
  %353 = fadd double %306, %352
  %354 = load double, ptr %11, align 8, !tbaa !13
  %355 = fadd double %354, %353
  store double %355, ptr %11, align 8, !tbaa !13
  br label %356

356:                                              ; preds = %260
  %357 = load i32, ptr %21, align 4, !tbaa !15
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %21, align 4, !tbaa !15
  br label %47, !llvm.loop !29

359:                                              ; preds = %50
  br label %360

360:                                              ; preds = %359
  %361 = load i32, ptr %19, align 4, !tbaa !15
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %19, align 4, !tbaa !15
  br label %38, !llvm.loop !30

363:                                              ; preds = %41
  %364 = load double, ptr %11, align 8, !tbaa !13
  %365 = fptrunc double %364 to float
  %366 = call float @sqrtf(float noundef %365) #9
  %367 = fpext float %366 to double
  store double %367, ptr %11, align 8, !tbaa !13
  %368 = load double, ptr %11, align 8, !tbaa !13
  %369 = fcmp une double %368, 0.000000e+00
  br i1 %369, label %370, label %420

370:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !15
  br label %371

371:                                              ; preds = %416, %370
  %372 = load i32, ptr %24, align 4, !tbaa !15
  %373 = icmp slt i32 %372, 16
  br i1 %373, label %375, label %374

374:                                              ; preds = %371
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %419

375:                                              ; preds = %371
  %376 = load double, ptr %11, align 8, !tbaa !13
  %377 = load ptr, ptr %6, align 8, !tbaa !5
  %378 = getelementptr inbounds %class.descriptor, ptr %377, i32 0, i32 0
  %379 = load ptr, ptr %378, align 8, !tbaa !17
  %380 = load i32, ptr %24, align 4, !tbaa !15
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds %class.vectorDescriptor, ptr %379, i64 %381
  %383 = getelementptr inbounds %class.vectorDescriptor, ptr %382, i32 0, i32 0
  %384 = load double, ptr %383, align 8, !tbaa !19
  %385 = fdiv double %384, %376
  store double %385, ptr %383, align 8, !tbaa !19
  %386 = load double, ptr %11, align 8, !tbaa !13
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = getelementptr inbounds %class.descriptor, ptr %387, i32 0, i32 0
  %389 = load ptr, ptr %388, align 8, !tbaa !17
  %390 = load i32, ptr %24, align 4, !tbaa !15
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds %class.vectorDescriptor, ptr %389, i64 %391
  %393 = getelementptr inbounds %class.vectorDescriptor, ptr %392, i32 0, i32 2
  %394 = load double, ptr %393, align 8, !tbaa !21
  %395 = fdiv double %394, %386
  store double %395, ptr %393, align 8, !tbaa !21
  %396 = load double, ptr %11, align 8, !tbaa !13
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  %398 = getelementptr inbounds %class.descriptor, ptr %397, i32 0, i32 0
  %399 = load ptr, ptr %398, align 8, !tbaa !17
  %400 = load i32, ptr %24, align 4, !tbaa !15
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds %class.vectorDescriptor, ptr %399, i64 %401
  %403 = getelementptr inbounds %class.vectorDescriptor, ptr %402, i32 0, i32 1
  %404 = load double, ptr %403, align 8, !tbaa !22
  %405 = fdiv double %404, %396
  store double %405, ptr %403, align 8, !tbaa !22
  %406 = load double, ptr %11, align 8, !tbaa !13
  %407 = load ptr, ptr %6, align 8, !tbaa !5
  %408 = getelementptr inbounds %class.descriptor, ptr %407, i32 0, i32 0
  %409 = load ptr, ptr %408, align 8, !tbaa !17
  %410 = load i32, ptr %24, align 4, !tbaa !15
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds %class.vectorDescriptor, ptr %409, i64 %411
  %413 = getelementptr inbounds %class.vectorDescriptor, ptr %412, i32 0, i32 3
  %414 = load double, ptr %413, align 8, !tbaa !23
  %415 = fdiv double %414, %406
  store double %415, ptr %413, align 8, !tbaa !23
  br label %416

416:                                              ; preds = %375
  %417 = load i32, ptr %24, align 4, !tbaa !15
  %418 = add nsw i32 %417, 1
  store i32 %418, ptr %24, align 4, !tbaa !15
  br label %371, !llvm.loop !31

419:                                              ; preds = %374
  br label %420

420:                                              ; preds = %419, %363
  %421 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #10
  %422 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %421, ptr align 8 %422, i64 40, i1 false), !tbaa.struct !32
  %423 = load ptr, ptr %6, align 8, !tbaa !5
  %424 = getelementptr inbounds %class.descriptor, ptr %423, i32 0, i32 1
  store ptr %421, ptr %424, align 8, !tbaa !34
  %425 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  ret ptr %425

426:                                              ; preds = %42
  %427 = load ptr, ptr %7, align 8
  %428 = load i32, ptr %8, align 4
  %429 = insertvalue { ptr, i32 } poison, ptr %427, 0
  %430 = insertvalue { ptr, i32 } %429, i32 %428, 1
  resume { ptr, i32 } %430
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare double @cos(double noundef) #4

; Function Attrs: nounwind
declare double @sin(double noundef) #4

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z8gaussianddd(double noundef, double noundef, double noundef) #7

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 16}
!10 = !{!"_ZTS8keyPoint", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32}
!11 = !{!"double", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS10descriptor", !6, i64 0, !6, i64 8}
!19 = !{!20, !11, i64 0}
!20 = !{!"_ZTS16vectorDescriptor", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!21 = !{!20, !11, i64 16}
!22 = !{!20, !11, i64 8}
!23 = !{!20, !11, i64 24}
!24 = !{!10, !11, i64 0}
!25 = !{!10, !11, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = !{i64 0, i64 8, !13, i64 8, i64 8, !13, i64 16, i64 8, !13, i64 24, i64 8, !13, i64 32, i64 1, !33}
!33 = !{!12, !12, i64 0}
!34 = !{!18, !6, i64 8}


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

%class.vectorDescriptor = type { double, double, double, double }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_Z14makeDescriptorP13imageIntegralP8keyPoint(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 16
  %4 = load double, ptr %3, align 8, !tbaa !5
  %5 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #10
  invoke void @_ZN10descriptorC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %6 unwind label %57

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 24
  %8 = load double, ptr %7, align 8, !tbaa !11
  %9 = tail call double @cos(double noundef %8) #11
  %10 = load double, ptr %7, align 8, !tbaa !11
  %11 = tail call double @sin(double noundef %10) #11
  %12 = fneg double %11
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %.pre.pre = load ptr, ptr %5, align 8, !tbaa !12
  br label %.preheader129

.preheader129:                                    ; preds = %6, %59
  %.pre = phi ptr [ %.pre.pre, %6 ], [ %128, %59 ]
  %indvars.iv140 = phi i64 [ 0, %6 ], [ %indvars.iv.next141, %59 ]
  %.0126134 = phi double [ 0.000000e+00, %6 ], [ %85, %59 ]
  %14 = shl nuw nsw i64 %indvars.iv140, 2
  %15 = trunc i64 %indvars.iv140 to i32
  %16 = mul i32 %15, 5
  %17 = add i32 %16, -10
  br label %60

18:                                               ; preds = %59
  %19 = fptrunc double %85 to float
  %20 = tail call float @sqrtf(float noundef %19) #11
  %21 = fcmp une float %20, 0.000000e+00
  br i1 %21, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %18
  %22 = fpext float %20 to double
  %23 = load ptr, ptr %5, align 8, !tbaa !12
  %broadcast.splatinsert = insertelement <2 x double> poison, double %22, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %.preheader
  %index = phi i64 [ 0, %.preheader ], [ %index.next, %vector.body ]
  %24 = or disjoint i64 %index, 1
  %25 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %index
  %26 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %24
  %27 = load double, ptr %25, align 8, !tbaa !15
  %28 = load double, ptr %26, align 8, !tbaa !15
  %29 = insertelement <2 x double> poison, double %27, i64 0
  %30 = insertelement <2 x double> %29, double %28, i64 1
  %31 = fdiv <2 x double> %30, %broadcast.splat
  %32 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %index, i32 2
  %33 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %24, i32 2
  %34 = load double, ptr %32, align 8, !tbaa !17
  %35 = load double, ptr %33, align 8, !tbaa !17
  %36 = insertelement <2 x double> poison, double %34, i64 0
  %37 = insertelement <2 x double> %36, double %35, i64 1
  %38 = fdiv <2 x double> %37, %broadcast.splat
  %39 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %index, i32 1
  %40 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %24, i32 1
  %41 = load double, ptr %39, align 8, !tbaa !18
  %42 = load double, ptr %40, align 8, !tbaa !18
  %43 = insertelement <2 x double> poison, double %41, i64 0
  %44 = insertelement <2 x double> %43, double %42, i64 1
  %45 = fdiv <2 x double> %44, %broadcast.splat
  %46 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %index, i32 3
  %47 = getelementptr inbounds %class.vectorDescriptor, ptr %23, i64 %24, i32 3
  %48 = load double, ptr %46, align 8, !tbaa !19
  %49 = load double, ptr %47, align 8, !tbaa !19
  %50 = insertelement <2 x double> poison, double %48, i64 0
  %51 = insertelement <2 x double> %50, double %49, i64 1
  %52 = fdiv <2 x double> %51, %broadcast.splat
  %53 = getelementptr inbounds i8, ptr %46, i64 -24
  %54 = shufflevector <2 x double> %31, <2 x double> %45, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %55 = shufflevector <2 x double> %38, <2 x double> %52, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %interleaved.vec = shufflevector <4 x double> %54, <4 x double> %55, <8 x i32> <i32 0, i32 2, i32 4, i32 6, i32 1, i32 3, i32 5, i32 7>
  store <8 x double> %interleaved.vec, ptr %53, align 8, !tbaa !20
  %index.next = add nuw i64 %index, 2
  %56 = icmp eq i64 %index.next, 16
  br i1 %56, label %.loopexit, label %vector.body, !llvm.loop !21

57:                                               ; preds = %2
  %58 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 16) #12
  resume { ptr, i32 } %58

59:                                               ; preds = %70
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next141, 4
  br i1 %exitcond143.not, label %18, label %.preheader129, !llvm.loop !25

60:                                               ; preds = %.preheader129, %70
  %61 = phi ptr [ %.pre, %.preheader129 ], [ %128, %70 ]
  %indvars.iv = phi i64 [ 0, %.preheader129 ], [ %indvars.iv.next, %70 ]
  %.1132 = phi double [ %.0126134, %.preheader129 ], [ %85, %70 ]
  %62 = add nuw nsw i64 %indvars.iv, %14
  %63 = getelementptr inbounds %class.vectorDescriptor, ptr %61, i64 %62
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %63, i8 0, i64 32, i1 false)
  %64 = trunc i64 %indvars.iv to i32
  %65 = mul i32 %64, 5
  %66 = add i32 %65, -10
  br label %.preheader128

.preheader128:                                    ; preds = %60, %86
  %.0123131 = phi i32 [ 0, %60 ], [ %87, %86 ]
  %67 = add nsw i32 %17, %.0123131
  %68 = sitofp i32 %67 to double
  %69 = fadd double %68, 5.000000e-01
  br label %88

70:                                               ; preds = %86
  %71 = getelementptr inbounds %class.vectorDescriptor, ptr %128, i64 %62
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %73 = load double, ptr %72, align 8, !tbaa !17
  %74 = load double, ptr %71, align 8, !tbaa !15
  %75 = getelementptr inbounds i8, ptr %71, i64 8
  %76 = load double, ptr %75, align 8, !tbaa !18
  %77 = insertelement <2 x double> poison, double %131, i64 0
  %78 = insertelement <2 x double> %77, double %76, i64 1
  %79 = fmul <2 x double> %78, %78
  %80 = insertelement <2 x double> poison, double %73, i64 0
  %81 = insertelement <2 x double> %80, double %74, i64 1
  %82 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %81, <2 x double> %79)
  %shift = shufflevector <2 x double> %82, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %83 = fadd <2 x double> %82, %shift
  %84 = extractelement <2 x double> %83, i64 0
  %85 = fadd double %.1132, %84
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond139.not, label %59, label %60, !llvm.loop !26

86:                                               ; preds = %88
  %87 = add nuw nsw i32 %.0123131, 1
  %exitcond137.not = icmp eq i32 %87, 5
  br i1 %exitcond137.not, label %70, label %.preheader128, !llvm.loop !27

88:                                               ; preds = %.preheader128, %88
  %.0122130 = phi i32 [ 0, %.preheader128 ], [ %132, %88 ]
  %89 = load double, ptr %1, align 8, !tbaa !28
  %90 = add nsw i32 %66, %.0122130
  %91 = sitofp i32 %90 to double
  %92 = fadd double %91, 5.000000e-01
  %93 = fmul double %92, %12
  %94 = tail call double @llvm.fmuladd.f64(double %9, double %69, double %93)
  %95 = tail call double @llvm.fmuladd.f64(double %4, double %94, double %89)
  %96 = load double, ptr %13, align 8, !tbaa !29
  %97 = fmul double %9, %92
  %98 = tail call double @llvm.fmuladd.f64(double %11, double %69, double %97)
  %99 = tail call double @llvm.fmuladd.f64(double %4, double %98, double %96)
  %100 = fptosi double %95 to i32
  %101 = fptosi double %99 to i32
  %102 = tail call noundef i32 @_Z6froundd(double noundef %4)
  %103 = tail call noundef i64 @_Z5haarXP13imageIntegraliii(ptr noundef %0, i32 noundef %100, i32 noundef %101, i32 noundef %102)
  %104 = sitofp i64 %103 to double
  %105 = tail call noundef i32 @_Z6froundd(double noundef %4)
  %106 = tail call noundef i64 @_Z5haarYP13imageIntegraliii(ptr noundef %0, i32 noundef %100, i32 noundef %101, i32 noundef %105)
  %107 = sitofp i64 %106 to double
  %108 = tail call noundef double @_Z8gaussianddd(double noundef %69, double noundef %92, double noundef 3.300000e+00)
  %109 = fmul double %11, %107
  %110 = tail call double @llvm.fmuladd.f64(double %104, double %9, double %109)
  %111 = fmul double %108, %110
  %112 = fneg double %104
  %113 = fmul double %9, %107
  %114 = tail call double @llvm.fmuladd.f64(double %112, double %11, double %113)
  %115 = fmul double %108, %114
  %116 = load ptr, ptr %5, align 8, !tbaa !12
  %117 = getelementptr inbounds %class.vectorDescriptor, ptr %116, i64 %62
  %118 = load double, ptr %117, align 8, !tbaa !15
  %119 = fadd double %118, %111
  store double %119, ptr %117, align 8, !tbaa !15
  %120 = tail call noundef double @_Z6absvald(double noundef %111)
  %121 = load ptr, ptr %5, align 8, !tbaa !12
  %122 = getelementptr inbounds %class.vectorDescriptor, ptr %121, i64 %62, i32 1
  %123 = load <2 x double>, ptr %122, align 8, !tbaa !20
  %124 = insertelement <2 x double> poison, double %115, i64 0
  %125 = insertelement <2 x double> %124, double %120, i64 1
  %126 = fadd <2 x double> %125, %123
  store <2 x double> %126, ptr %122, align 8, !tbaa !20
  %127 = tail call noundef double @_Z6absvald(double noundef %115)
  %128 = load ptr, ptr %5, align 8, !tbaa !12
  %129 = getelementptr inbounds %class.vectorDescriptor, ptr %128, i64 %62, i32 3
  %130 = load double, ptr %129, align 8, !tbaa !19
  %131 = fadd double %127, %130
  store double %131, ptr %129, align 8, !tbaa !19
  %132 = add nuw nsw i32 %.0122130, 1
  %exitcond.not = icmp eq i32 %132, 5
  br i1 %exitcond.not, label %86, label %88, !llvm.loop !30

.loopexit:                                        ; preds = %vector.body, %18
  %133 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #10
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %133, ptr noundef nonnull align 8 dereferenceable(40) %1, i64 40, i1 false), !tbaa.struct !31
  %134 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %133, ptr %134, align 8, !tbaa !33
  ret ptr %5
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z5haarXP13imageIntegraliii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z5haarYP13imageIntegraliii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z8gaussianddd(double noundef, double noundef, double noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; 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 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin 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 #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 16}
!6 = !{!"_ZTS8keyPoint", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!6, !7, i64 24}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS10descriptor", !14, i64 0, !14, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTS16vectorDescriptor", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!16, !7, i64 16}
!18 = !{!16, !7, i64 8}
!19 = !{!16, !7, i64 24}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = !{!6, !7, i64 0}
!29 = !{!6, !7, i64 8}
!30 = distinct !{!30, !22}
!31 = !{i64 0, i64 8, !20, i64 8, i64 8, !20, i64 16, i64 8, !20, i64 24, i64 8, !20, i64 32, i64 1, !32}
!32 = !{!10, !10, i64 0}
!33 = !{!13, !14, i64 8}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass