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

; 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.Corner = type { i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, i32, i32 }

; 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13GradOriImagesP12ImageContentS0_S0_(ptr noundef, ptr noundef, ptr noundef) #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  store i8 0, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %25 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 14
  %26 = load float, ptr %25, align 4, !tbaa !11
  %27 = fpext float %26 to double
  %28 = fmul double 1.414000e+00, %27
  %29 = fptosi double %28 to i32
  %30 = mul nsw i32 2, %29
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %32 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 14
  %33 = load float, ptr %32, align 4, !tbaa !11
  %34 = fptosi float %33 to i32
  %35 = mul nsw i32 2, %34
  %36 = add nsw i32 %35, 1
  %37 = sitofp i32 %36 to float
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %38)
  %40 = uitofp i32 %39 to float
  %41 = fdiv float %37, %40
  store float %41, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store float 0.000000e+00, ptr %10, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store float 0.000000e+00, ptr %11, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %42 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %43 = load float, ptr %42, align 4, !tbaa !17
  %44 = fneg float %43
  %45 = call noundef float @_ZSt3cosf(float noundef %44)
  store float %45, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %46 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %47 = load float, ptr %46, align 4, !tbaa !17
  %48 = fneg float %47
  %49 = call noundef float @_ZSt3sinf(float noundef %48)
  store float %49, ptr %13, align 4, !tbaa !16
  %50 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %51 = load float, ptr %50, align 4, !tbaa !17
  %52 = fpext float %51 to double
  %53 = fcmp ogt double %52, 0x401921FB544486E0
  br i1 %53, label %54, label %55

54:                                               ; preds = %3
  store float 1.000000e+00, ptr %12, align 4, !tbaa !16
  store float 0.000000e+00, ptr %13, align 4, !tbaa !16
  br label %55

55:                                               ; preds = %54, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %56 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 9
  %57 = load float, ptr %56, align 4, !tbaa !18
  %58 = load float, ptr %12, align 4, !tbaa !16
  %59 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 10
  %60 = load float, ptr %59, align 4, !tbaa !19
  %61 = load float, ptr %13, align 4, !tbaa !16
  %62 = fmul float %60, %61
  %63 = fneg float %62
  %64 = call float @llvm.fmuladd.f32(float %57, float %58, float %63)
  store float %64, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %65 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 9
  %66 = load float, ptr %65, align 4, !tbaa !18
  %67 = load float, ptr %13, align 4, !tbaa !16
  %68 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 10
  %69 = load float, ptr %68, align 4, !tbaa !19
  %70 = load float, ptr %12, align 4, !tbaa !16
  %71 = fmul float %69, %70
  %72 = call float @llvm.fmuladd.f32(float %66, float %67, float %71)
  store float %72, ptr %15, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %73 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 11
  %74 = load float, ptr %73, align 4, !tbaa !20
  %75 = load float, ptr %12, align 4, !tbaa !16
  %76 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 12
  %77 = load float, ptr %76, align 4, !tbaa !21
  %78 = load float, ptr %13, align 4, !tbaa !16
  %79 = fmul float %77, %78
  %80 = fneg float %79
  %81 = call float @llvm.fmuladd.f32(float %74, float %75, float %80)
  store float %81, ptr %16, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %82 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 11
  %83 = load float, ptr %82, align 4, !tbaa !20
  %84 = load float, ptr %13, align 4, !tbaa !16
  %85 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 12
  %86 = load float, ptr %85, align 4, !tbaa !21
  %87 = load float, ptr %12, align 4, !tbaa !16
  %88 = fmul float %86, %87
  %89 = call float @llvm.fmuladd.f32(float %83, float %84, float %88)
  store float %89, ptr %17, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store ptr null, ptr %18, align 8, !tbaa !5
  %90 = load float, ptr %9, align 4, !tbaa !16
  %91 = fpext float %90 to double
  %92 = fcmp ogt double %91, 4.000000e-01
  br i1 %92, label %93, label %175

93:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %94 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %95 = load i32, ptr %8, align 4, !tbaa !15
  %96 = load i32, ptr %8, align 4, !tbaa !15
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %94, i32 noundef %95, i32 noundef %96)
          to label %97 unwind label %165

97:                                               ; preds = %93
  store ptr %94, ptr %19, align 8, !tbaa !5
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !22
  %102 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 2
  %103 = load float, ptr %102, align 4, !tbaa !23
  %104 = load float, ptr %14, align 4, !tbaa !16
  %105 = load float, ptr %15, align 4, !tbaa !16
  %106 = load float, ptr %16, align 4, !tbaa !16
  %107 = load float, ptr %17, align 4, !tbaa !16
  %108 = call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %98, ptr noundef %99, float noundef %101, float noundef %103, float noundef %104, float noundef %105, float noundef %106, float noundef %107)
  %109 = zext i1 %108 to i32
  %110 = load i8, ptr %7, align 1, !tbaa !9, !range !24, !noundef !25
  %111 = trunc i8 %110 to i1
  %112 = zext i1 %111 to i32
  %113 = or i32 %112, %109
  %114 = icmp ne i32 %113, 0
  %115 = zext i1 %114 to i8
  store i8 %115, ptr %7, align 1, !tbaa !9
  %116 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %117 = load i32, ptr %8, align 4, !tbaa !15
  %118 = load i32, ptr %8, align 4, !tbaa !15
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %116, i32 noundef %117, i32 noundef %118)
          to label %119 unwind label %169

119:                                              ; preds = %97
  store ptr %116, ptr %18, align 8, !tbaa !5
  %120 = load i32, ptr %8, align 4, !tbaa !15
  %121 = ashr i32 %120, 1
  %122 = sitofp i32 %121 to float
  store float %122, ptr %10, align 4, !tbaa !16
  %123 = load i32, ptr %8, align 4, !tbaa !15
  %124 = ashr i32 %123, 1
  %125 = sitofp i32 %124 to float
  store float %125, ptr %11, align 4, !tbaa !16
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = load float, ptr %9, align 4, !tbaa !16
  %129 = fpext float %128 to double
  %130 = fmul double 1.500000e+00, %129
  %131 = fptrunc double %130 to float
  call void @_Z6smoothP12ImageContentS0_f(ptr noundef %126, ptr noundef %127, float noundef %131)
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = icmp eq ptr %132, null
  br i1 %133, label %135, label %134

134:                                              ; preds = %119
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %132) #8
  call void @_ZdlPvm(ptr noundef %132, i64 noundef 80) #10
  br label %135

135:                                              ; preds = %134, %119
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = load float, ptr %10, align 4, !tbaa !16
  %139 = load float, ptr %11, align 4, !tbaa !16
  %140 = load float, ptr %9, align 4, !tbaa !16
  %141 = fpext float %140 to double
  %142 = fdiv double 1.000000e+00, %141
  %143 = fptrunc double %142 to float
  %144 = load float, ptr %9, align 4, !tbaa !16
  %145 = fpext float %144 to double
  %146 = fdiv double 1.000000e+00, %145
  %147 = fptrunc double %146 to float
  %148 = call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80) %136, ptr noundef %137, float noundef %138, float noundef %139, float noundef %143, float noundef %147, float noundef 0.000000e+00)
  %149 = zext i1 %148 to i32
  %150 = load i8, ptr %7, align 1, !tbaa !9, !range !24, !noundef !25
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i32
  %153 = or i32 %152, %149
  %154 = icmp ne i32 %153, 0
  %155 = zext i1 %154 to i8
  store i8 %155, ptr %7, align 1, !tbaa !9
  %156 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %157 = load float, ptr %156, align 4, !tbaa !17
  %158 = fpext float %157 to double
  %159 = fcmp olt double %158, 0x401921FB544486E0
  br i1 %159, label %160, label %173

160:                                              ; preds = %135
  %161 = load ptr, ptr %18, align 8, !tbaa !5
  %162 = icmp eq ptr %161, null
  br i1 %162, label %164, label %163

163:                                              ; preds = %160
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %161) #8
  call void @_ZdlPvm(ptr noundef %161, i64 noundef 80) #10
  br label %164

164:                                              ; preds = %163, %160
  br label %173

165:                                              ; preds = %93
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %20, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %94, i64 noundef 80) #10
  br label %174

169:                                              ; preds = %97
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %20, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %116, i64 noundef 80) #10
  br label %174

173:                                              ; preds = %164, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %206

174:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %357

175:                                              ; preds = %55
  %176 = load float, ptr %9, align 4, !tbaa !16
  %177 = load float, ptr %14, align 4, !tbaa !16
  %178 = fmul float %177, %176
  store float %178, ptr %14, align 4, !tbaa !16
  %179 = load float, ptr %9, align 4, !tbaa !16
  %180 = load float, ptr %15, align 4, !tbaa !16
  %181 = fmul float %180, %179
  store float %181, ptr %15, align 4, !tbaa !16
  %182 = load float, ptr %9, align 4, !tbaa !16
  %183 = load float, ptr %16, align 4, !tbaa !16
  %184 = fmul float %183, %182
  store float %184, ptr %16, align 4, !tbaa !16
  %185 = load float, ptr %9, align 4, !tbaa !16
  %186 = load float, ptr %17, align 4, !tbaa !16
  %187 = fmul float %186, %185
  store float %187, ptr %17, align 4, !tbaa !16
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 1
  %191 = load float, ptr %190, align 4, !tbaa !22
  %192 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 2
  %193 = load float, ptr %192, align 4, !tbaa !23
  %194 = load float, ptr %14, align 4, !tbaa !16
  %195 = load float, ptr %15, align 4, !tbaa !16
  %196 = load float, ptr %16, align 4, !tbaa !16
  %197 = load float, ptr %17, align 4, !tbaa !16
  %198 = call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %188, ptr noundef %189, float noundef %191, float noundef %193, float noundef %194, float noundef %195, float noundef %196, float noundef %197)
  %199 = zext i1 %198 to i32
  %200 = load i8, ptr %7, align 1, !tbaa !9, !range !24, !noundef !25
  %201 = trunc i8 %200 to i1
  %202 = zext i1 %201 to i32
  %203 = or i32 %202, %199
  %204 = icmp ne i32 %203, 0
  %205 = zext i1 %204 to i8
  store i8 %205, ptr %7, align 1, !tbaa !9
  br label %206

206:                                              ; preds = %175, %173
  %207 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %208 = load float, ptr %207, align 4, !tbaa !17
  %209 = fpext float %208 to double
  %210 = fcmp ogt double %209, 0x401921FB544486E0
  br i1 %210, label %211, label %354

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %212 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %213)
          to label %215 unwind label %275

215:                                              ; preds = %211
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %216)
          to label %218 unwind label %275

218:                                              ; preds = %215
  invoke void @_ZN12ImageContentC2Ejj(ptr noundef nonnull align 8 dereferenceable(80) %212, i32 noundef %214, i32 noundef %217)
          to label %219 unwind label %275

219:                                              ; preds = %218
  store ptr %212, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %220 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %221)
          to label %223 unwind label %279

223:                                              ; preds = %219
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %224)
          to label %226 unwind label %279

226:                                              ; preds = %223
  invoke void @_ZN12ImageContentC2Ejj(ptr noundef nonnull align 8 dereferenceable(80) %220, i32 noundef %222, i32 noundef %225)
          to label %227 unwind label %279

227:                                              ; preds = %226
  store ptr %220, ptr %23, align 8, !tbaa !5
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = load ptr, ptr %22, align 8, !tbaa !5
  %230 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_Z13GradOriImagesP12ImageContentS0_S0_(ptr noundef %228, ptr noundef %229, ptr noundef %230)
  %231 = load ptr, ptr %22, align 8, !tbaa !5
  %232 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN6Corner16computeHistAngleEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %24, ptr noundef %231, ptr noundef %232)
  %233 = load ptr, ptr %22, align 8, !tbaa !5
  %234 = icmp eq ptr %233, null
  br i1 %234, label %236, label %235

235:                                              ; preds = %227
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %233) #8
  call void @_ZdlPvm(ptr noundef %233, i64 noundef 80) #10
  br label %236

236:                                              ; preds = %235, %227
  %237 = load ptr, ptr %23, align 8, !tbaa !5
  %238 = icmp eq ptr %237, null
  br i1 %238, label %240, label %239

239:                                              ; preds = %236
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %237) #8
  call void @_ZdlPvm(ptr noundef %237, i64 noundef 80) #10
  br label %240

240:                                              ; preds = %239, %236
  %241 = load float, ptr %9, align 4, !tbaa !16
  %242 = fpext float %241 to double
  %243 = fcmp ogt double %242, 4.000000e-01
  br i1 %243, label %244, label %283

244:                                              ; preds = %240
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = load float, ptr %10, align 4, !tbaa !16
  %248 = load float, ptr %11, align 4, !tbaa !16
  %249 = load float, ptr %9, align 4, !tbaa !16
  %250 = fpext float %249 to double
  %251 = fdiv double 1.000000e+00, %250
  %252 = fptrunc double %251 to float
  %253 = load float, ptr %9, align 4, !tbaa !16
  %254 = fpext float %253 to double
  %255 = fdiv double 1.000000e+00, %254
  %256 = fptrunc double %255 to float
  %257 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %258 = load float, ptr %257, align 4, !tbaa !17
  %259 = fmul float -1.800000e+02, %258
  %260 = fpext float %259 to double
  %261 = fdiv double %260, 0x400921FB54442D18
  %262 = fptrunc double %261 to float
  %263 = call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80) %245, ptr noundef %246, float noundef %247, float noundef %248, float noundef %252, float noundef %256, float noundef %262)
  %264 = zext i1 %263 to i32
  %265 = load i8, ptr %7, align 1, !tbaa !9, !range !24, !noundef !25
  %266 = trunc i8 %265 to i1
  %267 = zext i1 %266 to i32
  %268 = or i32 %267, %264
  %269 = icmp ne i32 %268, 0
  %270 = zext i1 %269 to i8
  store i8 %270, ptr %7, align 1, !tbaa !9
  %271 = load ptr, ptr %18, align 8, !tbaa !5
  %272 = icmp eq ptr %271, null
  br i1 %272, label %274, label %273

273:                                              ; preds = %244
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %271) #8
  call void @_ZdlPvm(ptr noundef %271, i64 noundef 80) #10
  br label %274

274:                                              ; preds = %273, %244
  br label %352

275:                                              ; preds = %218, %215, %211
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %20, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %212, i64 noundef 80) #10
  br label %353

279:                                              ; preds = %226, %223, %219
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %20, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %220, i64 noundef 80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %353

283:                                              ; preds = %240
  %284 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %285 = load float, ptr %284, align 4, !tbaa !17
  %286 = fneg float %285
  %287 = call noundef float @_ZSt3cosf(float noundef %286)
  store float %287, ptr %12, align 4, !tbaa !16
  %288 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 19
  %289 = load float, ptr %288, align 4, !tbaa !17
  %290 = fneg float %289
  %291 = call noundef float @_ZSt3sinf(float noundef %290)
  store float %291, ptr %13, align 4, !tbaa !16
  %292 = load float, ptr %9, align 4, !tbaa !16
  %293 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 9
  %294 = load float, ptr %293, align 4, !tbaa !18
  %295 = load float, ptr %12, align 4, !tbaa !16
  %296 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 10
  %297 = load float, ptr %296, align 4, !tbaa !19
  %298 = load float, ptr %13, align 4, !tbaa !16
  %299 = fmul float %297, %298
  %300 = fneg float %299
  %301 = call float @llvm.fmuladd.f32(float %294, float %295, float %300)
  %302 = fmul float %292, %301
  store float %302, ptr %14, align 4, !tbaa !16
  %303 = load float, ptr %9, align 4, !tbaa !16
  %304 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 9
  %305 = load float, ptr %304, align 4, !tbaa !18
  %306 = load float, ptr %13, align 4, !tbaa !16
  %307 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 10
  %308 = load float, ptr %307, align 4, !tbaa !19
  %309 = load float, ptr %12, align 4, !tbaa !16
  %310 = fmul float %308, %309
  %311 = call float @llvm.fmuladd.f32(float %305, float %306, float %310)
  %312 = fmul float %303, %311
  store float %312, ptr %15, align 4, !tbaa !16
  %313 = load float, ptr %9, align 4, !tbaa !16
  %314 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 11
  %315 = load float, ptr %314, align 4, !tbaa !20
  %316 = load float, ptr %12, align 4, !tbaa !16
  %317 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 12
  %318 = load float, ptr %317, align 4, !tbaa !21
  %319 = load float, ptr %13, align 4, !tbaa !16
  %320 = fmul float %318, %319
  %321 = fneg float %320
  %322 = call float @llvm.fmuladd.f32(float %315, float %316, float %321)
  %323 = fmul float %313, %322
  store float %323, ptr %16, align 4, !tbaa !16
  %324 = load float, ptr %9, align 4, !tbaa !16
  %325 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 11
  %326 = load float, ptr %325, align 4, !tbaa !20
  %327 = load float, ptr %13, align 4, !tbaa !16
  %328 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 12
  %329 = load float, ptr %328, align 4, !tbaa !21
  %330 = load float, ptr %12, align 4, !tbaa !16
  %331 = fmul float %329, %330
  %332 = call float @llvm.fmuladd.f32(float %326, float %327, float %331)
  %333 = fmul float %324, %332
  store float %333, ptr %17, align 4, !tbaa !16
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = load ptr, ptr %5, align 8, !tbaa !5
  %336 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 1
  %337 = load float, ptr %336, align 4, !tbaa !22
  %338 = getelementptr inbounds %class.Corner, ptr %24, i32 0, i32 2
  %339 = load float, ptr %338, align 4, !tbaa !23
  %340 = load float, ptr %14, align 4, !tbaa !16
  %341 = load float, ptr %15, align 4, !tbaa !16
  %342 = load float, ptr %16, align 4, !tbaa !16
  %343 = load float, ptr %17, align 4, !tbaa !16
  %344 = call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %334, ptr noundef %335, float noundef %337, float noundef %339, float noundef %340, float noundef %341, float noundef %342, float noundef %343)
  %345 = zext i1 %344 to i32
  %346 = load i8, ptr %7, align 1, !tbaa !9, !range !24, !noundef !25
  %347 = trunc i8 %346 to i1
  %348 = zext i1 %347 to i32
  %349 = or i32 %348, %345
  %350 = icmp ne i32 %349, 0
  %351 = zext i1 %350 to i8
  store i8 %351, ptr %7, align 1, !tbaa !9
  br label %352

352:                                              ; preds = %283, %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %354

353:                                              ; preds = %279, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %357

354:                                              ; preds = %352, %206
  %355 = load i8, ptr %7, align 1, !tbaa !9, !range !24, !noundef !25
  %356 = trunc i8 %355 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  ret i1 %356

357:                                              ; preds = %353, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %358

358:                                              ; preds = %357
  %359 = load ptr, ptr %20, align 8
  %360 = load i32, ptr %21, align 4
  %361 = insertvalue { ptr, i32 } poison, ptr %359, 0
  %362 = insertvalue { ptr, i32 } %361, i32 %360, 1
  resume { ptr, i32 } %362
}

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

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

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

declare noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #7

declare void @_Z6smoothP12ImageContentS0_f(ptr noundef, ptr noundef, float noundef) #7

declare noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Corner16computeHistAngleEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88), ptr noundef, ptr noundef) #3 align 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 = { 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 #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 56}
!12 = !{!"_ZTS6Corner", !13, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !13, i64 68, !13, i64 72, !14, i64 76, !13, i64 80, !13, i64 84}
!13 = !{!"int", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!12, !14, i64 76}
!18 = !{!12, !14, i64 36}
!19 = !{!12, !14, i64 40}
!20 = !{!12, !14, i64 44}
!21 = !{!12, !14, i64 48}
!22 = !{!12, !14, i64 4}
!23 = !{!12, !14, i64 8}
!24 = !{i8 0, i8 2}
!25 = !{}


; 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 float @llvm.fmuladd.f32(float, float, float) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13GradOriImagesP12ImageContentS0_S0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef %1, ptr noundef nonnull %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = load float, ptr %4, align 4, !tbaa !5
  %6 = fpext float %5 to double
  %7 = fmul double %6, 1.414000e+00
  %8 = fptosi double %7 to i32
  %9 = shl nsw i32 %8, 1
  %10 = or disjoint i32 %9, 1
  %11 = fptosi float %5 to i32
  %12 = shl nsw i32 %11, 1
  %13 = or disjoint i32 %12, 1
  %14 = sitofp i32 %13 to float
  %15 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %16 = uitofp i32 %15 to float
  %17 = fdiv float %14, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 76
  %19 = load float, ptr %18, align 4, !tbaa !11
  %20 = fneg float %19
  %21 = tail call noundef float @_ZSt3cosf(float noundef %20)
  %22 = load float, ptr %18, align 4, !tbaa !11
  %23 = fneg float %22
  %24 = tail call noundef float @_ZSt3sinf(float noundef %23)
  %25 = load float, ptr %18, align 4, !tbaa !11
  %26 = fpext float %25 to double
  %27 = fcmp ogt double %26, 0x401921FB544486E0
  %.0102 = select i1 %27, float 1.000000e+00, float %21
  %.0101 = select i1 %27, float 0.000000e+00, float %24
  %28 = getelementptr inbounds i8, ptr %0, i64 36
  %29 = load float, ptr %28, align 4, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = load float, ptr %30, align 4, !tbaa !13
  %32 = fneg float %31
  %33 = fmul float %.0101, %32
  %34 = tail call float @llvm.fmuladd.f32(float %29, float %.0102, float %33)
  %35 = fmul float %31, %.0102
  %36 = tail call float @llvm.fmuladd.f32(float %29, float %.0101, float %35)
  %37 = getelementptr inbounds i8, ptr %0, i64 44
  %38 = load float, ptr %37, align 4, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %0, i64 48
  %40 = load float, ptr %39, align 4, !tbaa !15
  %41 = fneg float %40
  %42 = fmul float %.0101, %41
  %43 = tail call float @llvm.fmuladd.f32(float %38, float %.0102, float %42)
  %44 = fmul float %.0102, %40
  %45 = tail call float @llvm.fmuladd.f32(float %38, float %.0101, float %44)
  %46 = fpext float %17 to double
  %47 = fcmp ogt double %46, 4.000000e-01
  br i1 %47, label %48, label %71

48:                                               ; preds = %3
  %49 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %49, i32 noundef %10, i32 noundef %10)
          to label %50 unwind label %67

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %0, i64 4
  %52 = load float, ptr %51, align 4, !tbaa !16
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load float, ptr %53, align 4, !tbaa !17
  %55 = tail call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %49, ptr noundef %1, float noundef %52, float noundef %54, float noundef %34, float noundef %36, float noundef %43, float noundef %45)
  %56 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %56, i32 noundef %10, i32 noundef %10)
          to label %57 unwind label %69

57:                                               ; preds = %50
  %58 = sitofp i32 %8 to float
  %59 = fmul float %17, 1.500000e+00
  tail call void @_Z6smoothP12ImageContentS0_f(ptr noundef nonnull %49, ptr noundef nonnull %56, float noundef %59)
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %49) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %49, i64 noundef 80) #9
  %60 = fdiv float 1.000000e+00, %17
  %61 = tail call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull %56, float noundef %58, float noundef %58, float noundef %60, float noundef %60, float noundef 0.000000e+00)
  %62 = or i1 %55, %61
  %63 = load float, ptr %18, align 4, !tbaa !11
  %64 = fpext float %63 to double
  %65 = fcmp olt double %64, 0x401921FB544486E0
  br i1 %65, label %66, label %81

66:                                               ; preds = %57
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %56) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %56, i64 noundef 80) #9
  br label %81

67:                                               ; preds = %48
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %140

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %140

71:                                               ; preds = %3
  %72 = fmul float %17, %34
  %73 = fmul float %17, %36
  %74 = fmul float %17, %43
  %75 = fmul float %17, %45
  %76 = getelementptr inbounds i8, ptr %0, i64 4
  %77 = load float, ptr %76, align 4, !tbaa !16
  %78 = getelementptr inbounds i8, ptr %0, i64 8
  %79 = load float, ptr %78, align 4, !tbaa !17
  %80 = tail call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef %1, float noundef %77, float noundef %79, float noundef %72, float noundef %73, float noundef %74, float noundef %75)
  br label %81

81:                                               ; preds = %57, %66, %71
  %.0100 = phi ptr [ null, %71 ], [ %56, %66 ], [ %56, %57 ]
  %.092 = phi float [ 0.000000e+00, %71 ], [ %58, %66 ], [ %58, %57 ]
  %.0.in = phi i1 [ %80, %71 ], [ %62, %66 ], [ %62, %57 ]
  %82 = load float, ptr %18, align 4, !tbaa !11
  %83 = fpext float %82 to double
  %84 = fcmp ogt double %83, 0x401921FB544486E0
  br i1 %84, label %85, label %139

85:                                               ; preds = %81
  %86 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  %87 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %88 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  invoke void @_ZN12ImageContentC2Ejj(ptr noundef nonnull align 8 dereferenceable(80) %86, i32 noundef %87, i32 noundef %88)
          to label %89 unwind label %104

89:                                               ; preds = %85
  %90 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  %91 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %92 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  invoke void @_ZN12ImageContentC2Ejj(ptr noundef nonnull align 8 dereferenceable(80) %90, i32 noundef %91, i32 noundef %92)
          to label %93 unwind label %106

93:                                               ; preds = %89
  tail call void @_Z13GradOriImagesP12ImageContentS0_S0_(ptr noundef nonnull %2, ptr noundef nonnull %86, ptr noundef nonnull %90)
  tail call void @_ZN6Corner16computeHistAngleEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef nonnull %86, ptr noundef nonnull %90)
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %86) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %86, i64 noundef 80) #9
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %90) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %90, i64 noundef 80) #9
  br i1 %47, label %94, label %108

94:                                               ; preds = %93
  %95 = fdiv float 1.000000e+00, %17
  %96 = load float, ptr %18, align 4, !tbaa !11
  %97 = fmul float %96, -1.800000e+02
  %98 = fpext float %97 to double
  %99 = fdiv double %98, 0x400921FB54442D18
  %100 = fptrunc double %99 to float
  %101 = tail call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef %.0100, float noundef %.092, float noundef %.092, float noundef %95, float noundef %95, float noundef %100)
  %102 = icmp eq ptr %.0100, null
  br i1 %102, label %138, label %103

103:                                              ; preds = %94
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %.0100) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %.0100, i64 noundef 80) #9
  br label %138

104:                                              ; preds = %85
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %140

106:                                              ; preds = %89
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %140

108:                                              ; preds = %93
  %109 = load float, ptr %18, align 4, !tbaa !11
  %110 = fneg float %109
  %111 = tail call noundef float @_ZSt3cosf(float noundef %110)
  %112 = load float, ptr %18, align 4, !tbaa !11
  %113 = fneg float %112
  %114 = tail call noundef float @_ZSt3sinf(float noundef %113)
  %115 = load float, ptr %28, align 4, !tbaa !12
  %116 = load float, ptr %30, align 4, !tbaa !13
  %117 = fneg float %116
  %118 = fmul float %114, %117
  %119 = tail call float @llvm.fmuladd.f32(float %115, float %111, float %118)
  %120 = fmul float %17, %119
  %121 = fmul float %111, %116
  %122 = tail call float @llvm.fmuladd.f32(float %115, float %114, float %121)
  %123 = fmul float %17, %122
  %124 = load float, ptr %37, align 4, !tbaa !14
  %125 = load float, ptr %39, align 4, !tbaa !15
  %126 = fneg float %125
  %127 = fmul float %114, %126
  %128 = tail call float @llvm.fmuladd.f32(float %124, float %111, float %127)
  %129 = fmul float %17, %128
  %130 = fmul float %111, %125
  %131 = tail call float @llvm.fmuladd.f32(float %124, float %114, float %130)
  %132 = fmul float %17, %131
  %133 = getelementptr inbounds i8, ptr %0, i64 4
  %134 = load float, ptr %133, align 4, !tbaa !16
  %135 = getelementptr inbounds i8, ptr %0, i64 8
  %136 = load float, ptr %135, align 4, !tbaa !17
  %137 = tail call noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef %1, float noundef %134, float noundef %136, float noundef %120, float noundef %123, float noundef %129, float noundef %132)
  br label %138

138:                                              ; preds = %94, %103, %108
  %.pn109 = phi i1 [ %101, %94 ], [ %101, %103 ], [ %137, %108 ]
  %.1.in = or i1 %.0.in, %.pn109
  br label %139

139:                                              ; preds = %138, %81
  %.2.in = phi i1 [ %.1.in, %138 ], [ %.0.in, %81 ]
  ret i1 %.2.in

140:                                              ; preds = %104, %106, %67, %69
  %.sink = phi ptr [ %86, %104 ], [ %90, %106 ], [ %49, %67 ], [ %56, %69 ]
  %.pn106.pn = phi { ptr, i32 } [ %105, %104 ], [ %107, %106 ], [ %68, %67 ], [ %70, %69 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 80) #9
  resume { ptr, i32 } %.pn106.pn
}

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

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

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

declare noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #6

declare void @_Z6smoothP12ImageContentS0_f(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #6

declare noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Corner16computeHistAngleEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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 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 allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 56}
!6 = !{!"_ZTS6Corner", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 68, !7, i64 72, !10, i64 76, !7, i64 80, !7, i64 84}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!6, !10, i64 76}
!12 = !{!6, !10, i64 36}
!13 = !{!6, !10, i64 40}
!14 = !{!6, !10, i64 44}
!15 = !{!6, !10, i64 48}
!16 = !{!6, !10, i64 4}
!17 = !{!6, !10, i64 8}


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