; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/FastDetector._f81600d7 (fastP12ImageContentP16CornerDescriptor)

; 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.Matrix = type { ptr, ptr, 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #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 i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6getMifP12ImageContentP6Matrixiiff(ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, float noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6normDfR6Matrix(ptr noundef nonnull align 8 dereferenceable(24)) #7

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z21findAffineRegion_fastP12ImageContentP16CornerDescriptor(ptr noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.Matrix, align 8
  %10 = alloca %class.Matrix, align 8
  %11 = alloca %class.Matrix, align 8
  %12 = alloca %class.Matrix, align 8
  %13 = alloca %class.Matrix, align 8
  %14 = alloca %class.Matrix, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %class.Matrix, align 8
  %31 = alloca %class.Matrix, align 8
  %32 = alloca %class.Matrix, align 8
  %33 = alloca %class.Matrix, align 8
  %34 = alloca %class.Matrix, align 8
  %35 = alloca i32, align 4
  %36 = alloca %class.Matrix, align 8
  %37 = alloca %class.Matrix, align 8
  %38 = alloca %class.Matrix, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %39 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %39, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %40 unwind label %114

40:                                               ; preds = %2
  store ptr %39, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #9
  call void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %41 unwind label %118

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %42 unwind label %122

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %43 unwind label %126

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #9
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2, i32 noundef 2, double noundef 1.000000e+00)
          to label %44 unwind label %130

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  invoke void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2, i32 noundef 2)
          to label %45 unwind label %134

45:                                               ; preds = %44
  %46 = getelementptr inbounds %class.Matrix, ptr %9, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 1
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds double, ptr %49, i64 1
  store double 1.000000e+00, ptr %50, align 8, !tbaa !12
  %51 = getelementptr inbounds %class.Matrix, ptr %9, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %52, i64 2
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %54, i64 2
  store double 1.000000e+00, ptr %55, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = invoke noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %56)
          to label %58 unwind label %138

58:                                               ; preds = %45
  store float %57, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = invoke noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %59)
          to label %61 unwind label %142

61:                                               ; preds = %58
  store float %60, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 1, ptr %18, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store float 1.000000e+00, ptr %20, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store float 1.000000e+00, ptr %21, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store float 0x3FB99999A0000000, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store float 0x3FB99999A0000000, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store float 0x3F9EB851E0000000, ptr %24, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = invoke noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %62)
          to label %64 unwind label %146

64:                                               ; preds = %61
  store float %63, ptr %25, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %65 = load float, ptr %25, align 4, !tbaa !14
  %66 = fpext float %65 to double
  %67 = fmul double %66, 1.400000e+00
  %68 = fptrunc double %67 to float
  store float %68, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %69 = load float, ptr %25, align 4, !tbaa !14
  %70 = fcmp oge float %69, 3.000000e+00
  br i1 %70, label %71, label %162

71:                                               ; preds = %64
  %72 = load float, ptr %25, align 4, !tbaa !14
  %73 = fpext float %72 to double
  %74 = fdiv double 3.000000e+00, %73
  %75 = fptrunc double %74 to float
  store float %75, ptr %27, align 4, !tbaa !14
  store float 3.000000e+00, ptr %25, align 4, !tbaa !14
  %76 = load float, ptr %25, align 4, !tbaa !14
  %77 = fpext float %76 to double
  %78 = fmul double %77, 1.400000e+00
  %79 = fptrunc double %78 to float
  store float %79, ptr %26, align 4, !tbaa !14
  %80 = load float, ptr %26, align 4, !tbaa !14
  %81 = fpext float %80 to double
  %82 = fmul double 4.500000e+00, %81
  %83 = call double @llvm.rint.f64(double %82)
  %84 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %83, double 1.000000e+00)
  %85 = fptosi double %84 to i32
  store i32 %85, ptr %19, align 4, !tbaa !16
  %86 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #10
          to label %87 unwind label %150

87:                                               ; preds = %71
  %88 = load i32, ptr %19, align 4, !tbaa !16
  %89 = load i32, ptr %19, align 4, !tbaa !16
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %86, i32 noundef %88, i32 noundef %89)
          to label %90 unwind label %154

90:                                               ; preds = %87
  store ptr %86, ptr %29, align 8, !tbaa !5
  %91 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #10
          to label %92 unwind label %150

92:                                               ; preds = %90
  %93 = load i32, ptr %19, align 4, !tbaa !16
  %94 = mul nsw i32 3, %93
  %95 = load i32, ptr %19, align 4, !tbaa !16
  %96 = mul nsw i32 3, %95
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %91, i32 noundef %94, i32 noundef %96)
          to label %97 unwind label %158

97:                                               ; preds = %92
  store ptr %91, ptr %28, align 8, !tbaa !5
  %98 = load ptr, ptr %28, align 8, !tbaa !5
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load float, ptr %15, align 4, !tbaa !14
  %101 = load float, ptr %16, align 4, !tbaa !14
  %102 = load float, ptr %27, align 4, !tbaa !14
  %103 = load float, ptr %27, align 4, !tbaa !14
  %104 = invoke noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80) %98, ptr noundef %99, float noundef %100, float noundef %101, float noundef %102, float noundef %103, float noundef 0.000000e+00)
          to label %105 unwind label %150

105:                                              ; preds = %97
  %106 = load i32, ptr %19, align 4, !tbaa !16
  %107 = mul nsw i32 3, %106
  %108 = ashr i32 %107, 1
  %109 = sitofp i32 %108 to float
  store float %109, ptr %15, align 4, !tbaa !14
  %110 = load i32, ptr %19, align 4, !tbaa !16
  %111 = mul nsw i32 3, %110
  %112 = ashr i32 %111, 1
  %113 = sitofp i32 %112 to float
  store float %113, ptr %16, align 4, !tbaa !14
  br label %183

114:                                              ; preds = %2
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %39, i64 noundef 24) #11
  br label %381

118:                                              ; preds = %40
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  br label %380

122:                                              ; preds = %41
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  br label %379

126:                                              ; preds = %42
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  br label %378

130:                                              ; preds = %43
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  br label %377

134:                                              ; preds = %44
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  br label %376

138:                                              ; preds = %45
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %375

142:                                              ; preds = %58
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  br label %374

146:                                              ; preds = %61
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  br label %373

150:                                              ; preds = %346, %342, %338, %334, %331, %318, %316, %315, %241, %228, %225, %223, %214, %210, %206, %202, %198, %192, %172, %97, %90, %71
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %7, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %8, align 4
  br label %372

154:                                              ; preds = %87
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %7, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %86, i64 noundef 80) #11
  br label %372

158:                                              ; preds = %92
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %7, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %91, i64 noundef 80) #11
  br label %372

162:                                              ; preds = %64
  %163 = load float, ptr %26, align 4, !tbaa !14
  %164 = fpext float %163 to double
  %165 = fmul double 4.500000e+00, %164
  %166 = call double @llvm.rint.f64(double %165)
  %167 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %166, double 1.000000e+00)
  %168 = fptosi double %167 to i32
  store i32 %168, ptr %19, align 4, !tbaa !16
  %169 = load i32, ptr %19, align 4, !tbaa !16
  %170 = icmp slt i32 %169, 25
  br i1 %170, label %171, label %172

171:                                              ; preds = %162
  store i32 25, ptr %19, align 4, !tbaa !16
  br label %172

172:                                              ; preds = %171, %162
  %173 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #10
          to label %174 unwind label %150

174:                                              ; preds = %172
  %175 = load i32, ptr %19, align 4, !tbaa !16
  %176 = load i32, ptr %19, align 4, !tbaa !16
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %173, i32 noundef %175, i32 noundef %176)
          to label %177 unwind label %179

177:                                              ; preds = %174
  store ptr %173, ptr %29, align 8, !tbaa !5
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %178, ptr %28, align 8, !tbaa !5
  br label %183

179:                                              ; preds = %174
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %7, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %173, i64 noundef 80) #11
  br label %372

183:                                              ; preds = %177, %105
  store i32 0, ptr %17, align 4, !tbaa !16
  br label %184

184:                                              ; preds = %301, %183
  %185 = load i32, ptr %17, align 4, !tbaa !16
  %186 = icmp slt i32 %185, 50
  br i1 %186, label %187, label %190

187:                                              ; preds = %184
  %188 = load i32, ptr %18, align 4, !tbaa !16
  %189 = icmp ne i32 %188, 0
  br label %190

190:                                              ; preds = %187, %184
  %191 = phi i1 [ false, %184 ], [ %189, %187 ]
  br i1 %191, label %192, label %304

192:                                              ; preds = %190
  %193 = load ptr, ptr %29, align 8, !tbaa !5
  %194 = load ptr, ptr %28, align 8, !tbaa !5
  %195 = load float, ptr %15, align 4, !tbaa !14
  %196 = load float, ptr %16, align 4, !tbaa !14
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 1, i32 noundef 1)
          to label %198 unwind label %150

198:                                              ; preds = %192
  %199 = load double, ptr %197, align 8, !tbaa !12
  %200 = fptrunc double %199 to float
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 1, i32 noundef 2)
          to label %202 unwind label %150

202:                                              ; preds = %198
  %203 = load double, ptr %201, align 8, !tbaa !12
  %204 = fptrunc double %203 to float
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 2, i32 noundef 1)
          to label %206 unwind label %150

206:                                              ; preds = %202
  %207 = load double, ptr %205, align 8, !tbaa !12
  %208 = fptrunc double %207 to float
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 2, i32 noundef 2)
          to label %210 unwind label %150

210:                                              ; preds = %206
  %211 = load double, ptr %209, align 8, !tbaa !12
  %212 = fptrunc double %211 to float
  %213 = invoke noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %193, ptr noundef %194, float noundef %195, float noundef %196, float noundef %200, float noundef %204, float noundef %208, float noundef %212)
          to label %214 unwind label %150

214:                                              ; preds = %210
  %215 = load ptr, ptr %29, align 8, !tbaa !5
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = load i32, ptr %19, align 4, !tbaa !16
  %218 = ashr i32 %217, 1
  %219 = load i32, ptr %19, align 4, !tbaa !16
  %220 = ashr i32 %219, 1
  %221 = load float, ptr %26, align 4, !tbaa !14
  %222 = load float, ptr %25, align 4, !tbaa !14
  invoke void @_Z6getMifP12ImageContentP6Matrixiiff(ptr noundef %215, ptr noundef %216, i32 noundef %218, i32 noundef %220, float noundef %221, float noundef %222)
          to label %223 unwind label %150

223:                                              ; preds = %214
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %224, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %225 unwind label %150

225:                                              ; preds = %223
  call void @_Z6normDfR6Matrix(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %226 = load float, ptr %22, align 4, !tbaa !14
  store float %226, ptr %23, align 4, !tbaa !14
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1, i32 noundef 1)
          to label %228 unwind label %150

228:                                              ; preds = %225
  %229 = load double, ptr %227, align 8, !tbaa !12
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2, i32 noundef 2)
          to label %231 unwind label %150

231:                                              ; preds = %228
  %232 = load double, ptr %230, align 8, !tbaa !12
  %233 = fdiv double %229, %232
  %234 = fsub double 1.000000e+00, %233
  %235 = fptrunc double %234 to float
  store float %235, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #9
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %236 unwind label %263

236:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %237 unwind label %267

237:                                              ; preds = %236
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %238 unwind label %271

238:                                              ; preds = %237
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %239 unwind label %275

239:                                              ; preds = %238
  %240 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %241 unwind label %279

241:                                              ; preds = %239
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  invoke void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %242 unwind label %150

242:                                              ; preds = %241
  invoke void @_Z6eigenf6MatrixRfS0_(ptr noundef %34, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %243 unwind label %287

243:                                              ; preds = %242
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  %244 = load i32, ptr %17, align 4, !tbaa !16
  %245 = icmp sgt i32 %244, 15
  br i1 %245, label %251, label %246

246:                                              ; preds = %243
  %247 = load float, ptr %21, align 4, !tbaa !14
  %248 = load float, ptr %20, align 4, !tbaa !14
  %249 = fdiv float %247, %248
  %250 = fcmp ogt float %249, 7.000000e+00
  br i1 %250, label %251, label %291

251:                                              ; preds = %246, %243
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = icmp eq ptr %252, null
  br i1 %253, label %258, label %254

254:                                              ; preds = %251
  %255 = load ptr, ptr %252, align 8, !tbaa !17
  %256 = getelementptr inbounds ptr, ptr %255, i64 1
  %257 = load ptr, ptr %256, align 8
  call void %257(ptr noundef nonnull align 8 dereferenceable(24) %252) #9
  br label %258

258:                                              ; preds = %254, %251
  %259 = load ptr, ptr %29, align 8, !tbaa !5
  %260 = icmp eq ptr %259, null
  br i1 %260, label %262, label %261

261:                                              ; preds = %258
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %259) #9
  call void @_ZdlPvm(ptr noundef %259, i64 noundef 80) #11
  br label %262

262:                                              ; preds = %261, %258
  store i32 0, ptr %3, align 4
  store i32 1, ptr %35, align 4
  br label %370

263:                                              ; preds = %231
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %7, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %8, align 4
  br label %286

267:                                              ; preds = %236
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %7, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %8, align 4
  br label %285

271:                                              ; preds = %237
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %7, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %8, align 4
  br label %284

275:                                              ; preds = %238
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %7, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %8, align 4
  br label %283

279:                                              ; preds = %239
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %7, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %8, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  br label %283

283:                                              ; preds = %279, %275
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  br label %284

284:                                              ; preds = %283, %271
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  br label %285

285:                                              ; preds = %284, %267
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  br label %286

286:                                              ; preds = %285, %263
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  br label %372

287:                                              ; preds = %242
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %7, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %8, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  br label %372

291:                                              ; preds = %246
  %292 = load float, ptr %22, align 4, !tbaa !14
  %293 = load float, ptr %24, align 4, !tbaa !14
  %294 = fcmp olt float %292, %293
  br i1 %294, label %295, label %300

295:                                              ; preds = %291
  %296 = load float, ptr %23, align 4, !tbaa !14
  %297 = load float, ptr %24, align 4, !tbaa !14
  %298 = fcmp olt float %296, %297
  br i1 %298, label %299, label %300

299:                                              ; preds = %295
  store i32 0, ptr %18, align 4, !tbaa !16
  br label %300

300:                                              ; preds = %299, %295, %291
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %17, align 4, !tbaa !16
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %17, align 4, !tbaa !16
  br label %184, !llvm.loop !19

304:                                              ; preds = %190
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = icmp eq ptr %305, null
  br i1 %306, label %311, label %307

307:                                              ; preds = %304
  %308 = load ptr, ptr %305, align 8, !tbaa !17
  %309 = getelementptr inbounds ptr, ptr %308, i64 1
  %310 = load ptr, ptr %309, align 8
  call void %310(ptr noundef nonnull align 8 dereferenceable(24) %305) #9
  br label %311

311:                                              ; preds = %307, %304
  %312 = load ptr, ptr %29, align 8, !tbaa !5
  %313 = icmp eq ptr %312, null
  br i1 %313, label %315, label %314

314:                                              ; preds = %311
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %312) #9
  call void @_ZdlPvm(ptr noundef %312, i64 noundef 80) #11
  br label %315

315:                                              ; preds = %314, %311
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %316 unwind label %150

316:                                              ; preds = %315
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1, i32 noundef 1)
          to label %318 unwind label %150

318:                                              ; preds = %316
  %319 = load double, ptr %317, align 8, !tbaa !12
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2, i32 noundef 2)
          to label %321 unwind label %150

321:                                              ; preds = %318
  %322 = load double, ptr %320, align 8, !tbaa !12
  %323 = fdiv double %319, %322
  %324 = fcmp ogt double %323, 7.000000e+00
  br i1 %324, label %325, label %326

325:                                              ; preds = %321
  store i32 0, ptr %3, align 4
  store i32 1, ptr %35, align 4
  br label %370

326:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #9
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %327 unwind label %351

327:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #9
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %38, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %328 unwind label %355

328:                                              ; preds = %327
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %36, ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %329 unwind label %359

329:                                              ; preds = %328
  %330 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %331 unwind label %363

331:                                              ; preds = %329
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #9
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 1, i32 noundef 1)
          to label %334 unwind label %150

334:                                              ; preds = %331
  %335 = load double, ptr %333, align 8, !tbaa !12
  %336 = fptrunc double %335 to float
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 1, i32 noundef 2)
          to label %338 unwind label %150

338:                                              ; preds = %334
  %339 = load double, ptr %337, align 8, !tbaa !12
  %340 = fptrunc double %339 to float
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 2, i32 noundef 1)
          to label %342 unwind label %150

342:                                              ; preds = %338
  %343 = load double, ptr %341, align 8, !tbaa !12
  %344 = fptrunc double %343 to float
  %345 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 2, i32 noundef 2)
          to label %346 unwind label %150

346:                                              ; preds = %342
  %347 = load double, ptr %345, align 8, !tbaa !12
  %348 = fptrunc double %347 to float
  invoke void @_ZN6Corner5setMiEffff(ptr noundef nonnull align 4 dereferenceable(88) %332, float noundef %336, float noundef %340, float noundef %344, float noundef %348)
          to label %349 unwind label %150

349:                                              ; preds = %346
  %350 = load i32, ptr %17, align 4, !tbaa !16
  store i32 %350, ptr %3, align 4
  store i32 1, ptr %35, align 4
  br label %370

351:                                              ; preds = %326
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %7, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %8, align 4
  br label %369

355:                                              ; preds = %327
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %7, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %8, align 4
  br label %368

359:                                              ; preds = %328
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %7, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %8, align 4
  br label %367

363:                                              ; preds = %329
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %7, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %8, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #9
  br label %367

367:                                              ; preds = %363, %359
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #9
  br label %368

368:                                              ; preds = %367, %355
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  br label %369

369:                                              ; preds = %368, %351
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #9
  br label %372

370:                                              ; preds = %349, %325, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  %371 = load i32, ptr %3, align 4
  ret i32 %371

372:                                              ; preds = %369, %287, %286, %179, %158, %154, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %373

373:                                              ; preds = %372, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %374

374:                                              ; preds = %373, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %375

375:                                              ; preds = %374, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %376

376:                                              ; preds = %375, %134
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  br label %377

377:                                              ; preds = %376, %130
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br label %378

378:                                              ; preds = %377, %126
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  br label %379

379:                                              ; preds = %378, %122
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %380

380:                                              ; preds = %379, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  br label %381

381:                                              ; preds = %380, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %382

382:                                              ; preds = %381
  %383 = load ptr, ptr %7, align 8
  %384 = load i32, ptr %8, align 4
  %385 = insertvalue { ptr, i32 } poison, ptr %383, 0
  %386 = insertvalue { ptr, i32 } %385, i32 %384, 1
  resume { ptr, i32 } %386
}

declare void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, double noundef) unnamed_addr #8

declare void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #8

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

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

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) #8

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) #8

declare void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #8

declare void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #8

declare void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #8

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #8

; Function Attrs: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #8

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

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

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

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


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

; Function Attrs: mustprogress 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) 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 i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6normDfR6Matrix(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z21findAffineRegion_fastP12ImageContentP16CornerDescriptor(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Matrix, align 8
  %4 = alloca %class.Matrix, align 8
  %5 = alloca %class.Matrix, align 8
  %6 = alloca %class.Matrix, align 8
  %7 = alloca %class.Matrix, align 8
  %8 = alloca %class.Matrix, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %class.Matrix, align 8
  %12 = alloca %class.Matrix, align 8
  %13 = alloca %class.Matrix, align 8
  %14 = alloca %class.Matrix, align 8
  %15 = alloca %class.Matrix, align 8
  %16 = alloca %class.Matrix, align 8
  %17 = alloca %class.Matrix, align 8
  %18 = alloca %class.Matrix, align 8
  %19 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %20 unwind label %50

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #11
  call void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #11
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %21 unwind label %52

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #11
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %22 unwind label %54

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #11
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %23 unwind label %56

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #11
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 2, double noundef 1.000000e+00)
          to label %24 unwind label %58

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #11
  invoke void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 2, i32 noundef 2)
          to label %25 unwind label %60

25:                                               ; preds = %24
  %26 = getelementptr inbounds i8, ptr %3, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  store double 1.000000e+00, ptr %30, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %27, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store double 1.000000e+00, ptr %33, align 8, !tbaa !12
  %34 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  %35 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store float 1.000000e+00, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #11
  store float 1.000000e+00, ptr %10, align 4, !tbaa !14
  %36 = call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %1)
  %37 = fpext float %36 to double
  %38 = fmul double %37, 1.400000e+00
  %39 = fptrunc double %38 to float
  %40 = fcmp ult float %36, 3.000000e+00
  br i1 %40, label %66, label %41

41:                                               ; preds = %25
  %42 = fdiv float 3.000000e+00, %36
  %43 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #10
          to label %44 unwind label %.loopexit.split-lp

44:                                               ; preds = %41
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %43, i32 noundef 39, i32 noundef 39)
          to label %45 unwind label %62

45:                                               ; preds = %44
  %46 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #10
          to label %47 unwind label %.loopexit.split-lp

47:                                               ; preds = %45
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %46, i32 noundef 117, i32 noundef 117)
          to label %48 unwind label %64

48:                                               ; preds = %47
  %49 = invoke noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_fffff(ptr noundef nonnull align 8 dereferenceable(80) %46, ptr noundef %0, float noundef %34, float noundef %35, float noundef %42, float noundef %42, float noundef 0.000000e+00)
          to label %76 unwind label %.loopexit.split-lp

50:                                               ; preds = %2
  %51 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %19, i64 noundef 24) #12
  br label %186

52:                                               ; preds = %20
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %185

54:                                               ; preds = %21
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %184

56:                                               ; preds = %22
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %183

58:                                               ; preds = %23
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %182

60:                                               ; preds = %24
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %181

.loopexit:                                        ; preds = %78, %92, %93, %107
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %180

.loopexit.split-lp:                               ; preds = %41, %45, %48, %66, %139
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %180

62:                                               ; preds = %44
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %43, i64 noundef 80) #12
  br label %180

64:                                               ; preds = %47
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %46, i64 noundef 80) #12
  br label %180

66:                                               ; preds = %25
  %67 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #10
          to label %68 unwind label %.loopexit.split-lp

68:                                               ; preds = %66
  %69 = fpext float %39 to double
  %70 = fmul double %69, 4.500000e+00
  %71 = call double @llvm.rint.f64(double %70)
  %72 = call double @llvm.fmuladd.f64(double %71, double 2.000000e+00, double 1.000000e+00)
  %73 = fptosi double %72 to i32
  %spec.store.select = call i32 @llvm.smax.i32(i32 %73, i32 25)
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %67, i32 noundef %spec.store.select, i32 noundef %spec.store.select)
          to label %76 unwind label %74

74:                                               ; preds = %68
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %67, i64 noundef 80) #12
  br label %180

76:                                               ; preds = %68, %48
  %.064 = phi float [ 5.800000e+01, %48 ], [ %34, %68 ]
  %.063 = phi float [ 5.800000e+01, %48 ], [ %35, %68 ]
  %.059 = phi i32 [ 39, %48 ], [ %spec.store.select, %68 ]
  %.056 = phi float [ 3.000000e+00, %48 ], [ %36, %68 ]
  %.055 = phi float [ 0x4010CCCCC0000000, %48 ], [ %39, %68 ]
  %.053 = phi ptr [ %46, %48 ], [ %0, %68 ]
  %.0 = phi ptr [ %43, %48 ], [ %67, %68 ]
  %77 = lshr i32 %.059, 1
  br label %78

78:                                               ; preds = %76, %135
  %.058105 = phi float [ 0x3FB99999A0000000, %76 ], [ %101, %135 ]
  %.062104 = phi i32 [ 0, %76 ], [ %138, %135 ]
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
  %80 = load double, ptr %79, align 8, !tbaa !12
  %81 = fptrunc double %80 to float
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 2)
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = fptrunc double %83 to float
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 1)
  %86 = load double, ptr %85, align 8, !tbaa !12
  %87 = fptrunc double %86 to float
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
  %89 = load double, ptr %88, align 8, !tbaa !12
  %90 = fptrunc double %89 to float
  %91 = invoke noundef zeroext i1 @_ZN12ImageContent11interpolateEPS_ffffff(ptr noundef nonnull align 8 dereferenceable(80) %.0, ptr noundef %.053, float noundef %.064, float noundef %.063, float noundef %81, float noundef %84, float noundef %87, float noundef %90)
          to label %92 unwind label %.loopexit

92:                                               ; preds = %78
  invoke void @_Z6getMifP12ImageContentP6Matrixiiff(ptr noundef nonnull %.0, ptr noundef nonnull %19, i32 noundef %77, i32 noundef %77, float noundef %.055, float noundef %.056)
          to label %93 unwind label %.loopexit

93:                                               ; preds = %92
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %94 unwind label %.loopexit

94:                                               ; preds = %93
  call void @_Z6normDfR6Matrix(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
  %96 = load double, ptr %95, align 8, !tbaa !12
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
  %98 = load double, ptr %97, align 8, !tbaa !12
  %99 = fdiv double %96, %98
  %100 = fsub double 1.000000e+00, %99
  %101 = fptrunc double %100 to float
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #11
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %102 unwind label %119

102:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #11
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %103 unwind label %121

103:                                              ; preds = %102
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %104 unwind label %123

104:                                              ; preds = %103
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %105 unwind label %125

105:                                              ; preds = %104
  %106 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %107 unwind label %127

107:                                              ; preds = %105
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #11
  invoke void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %108 unwind label %.loopexit

108:                                              ; preds = %107
  invoke void @_Z6eigenf6MatrixRfS0_(ptr noundef nonnull %15, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %109 unwind label %133

109:                                              ; preds = %108
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #11
  %exitcond = icmp eq i32 %.062104, 16
  br i1 %exitcond, label %115, label %110

110:                                              ; preds = %109
  %111 = load float, ptr %10, align 4, !tbaa !14
  %112 = load float, ptr %9, align 4, !tbaa !14
  %113 = fdiv float %111, %112
  %114 = fcmp ogt float %113, 7.000000e+00
  br i1 %114, label %115, label %135

115:                                              ; preds = %109, %110
  %116 = load ptr, ptr %19, align 8, !tbaa !16
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  %118 = load ptr, ptr %117, align 8
  call void %118(ptr noundef nonnull align 8 dereferenceable(24) %19) #11
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %.0) #11
  call void @_ZdlPvm(ptr noundef nonnull %.0, i64 noundef 80) #12
  br label %179

119:                                              ; preds = %94
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %132

121:                                              ; preds = %102
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %131

123:                                              ; preds = %103
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %130

125:                                              ; preds = %104
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %105
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #11
  br label %129

129:                                              ; preds = %127, %125
  %.pn83 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #11
  br label %130

130:                                              ; preds = %129, %123
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %129 ], [ %124, %123 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  br label %131

131:                                              ; preds = %130, %121
  %.pn83.pn.pn = phi { ptr, i32 } [ %.pn83.pn, %130 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  br label %132

132:                                              ; preds = %131, %119
  %.pn83.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn, %131 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #11
  br label %180

133:                                              ; preds = %108
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #11
  br label %180

135:                                              ; preds = %110
  %136 = fcmp olt float %101, 0x3F9EB851E0000000
  %137 = fcmp olt float %.058105, 0x3F9EB851E0000000
  %or.cond = and i1 %137, %136
  %138 = add nuw nsw i32 %.062104, 1
  br i1 %or.cond, label %139, label %78, !llvm.loop !18

139:                                              ; preds = %135
  %140 = load ptr, ptr %19, align 8, !tbaa !16
  %141 = getelementptr inbounds i8, ptr %140, i64 8
  %142 = load ptr, ptr %141, align 8
  call void %142(ptr noundef nonnull align 8 dereferenceable(24) %19) #11
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %.0) #11
  call void @_ZdlPvm(ptr noundef nonnull %.0, i64 noundef 80) #12
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %143 unwind label %.loopexit.split-lp

143:                                              ; preds = %139
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
  %145 = load double, ptr %144, align 8, !tbaa !12
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
  %147 = load double, ptr %146, align 8, !tbaa !12
  %148 = fdiv double %145, %147
  %149 = fcmp ogt double %148, 7.000000e+00
  br i1 %149, label %179, label %150

150:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #11
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %151 unwind label %168

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #11
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %152 unwind label %170

152:                                              ; preds = %151
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %153 unwind label %172

153:                                              ; preds = %152
  %154 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %155 unwind label %174

155:                                              ; preds = %153
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #11
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
  %157 = load double, ptr %156, align 8, !tbaa !12
  %158 = fptrunc double %157 to float
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 2)
  %160 = load double, ptr %159, align 8, !tbaa !12
  %161 = fptrunc double %160 to float
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 1)
  %163 = load double, ptr %162, align 8, !tbaa !12
  %164 = fptrunc double %163 to float
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
  %166 = load double, ptr %165, align 8, !tbaa !12
  %167 = fptrunc double %166 to float
  call void @_ZN6Corner5setMiEffff(ptr noundef nonnull align 4 dereferenceable(88) %1, float noundef %158, float noundef %161, float noundef %164, float noundef %167)
  br label %179

168:                                              ; preds = %150
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %178

170:                                              ; preds = %151
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %177

172:                                              ; preds = %152
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %176

174:                                              ; preds = %153
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #11
  br label %176

176:                                              ; preds = %174, %172
  %.pn = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #11
  br label %177

177:                                              ; preds = %176, %170
  %.pn.pn = phi { ptr, i32 } [ %.pn, %176 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #11
  br label %178

178:                                              ; preds = %177, %168
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %177 ], [ %169, %168 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #11
  br label %180

179:                                              ; preds = %143, %155, %115
  %.054 = phi i32 [ 0, %115 ], [ %138, %155 ], [ 0, %143 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #11
  ret i32 %.054

180:                                              ; preds = %.loopexit, %.loopexit.split-lp, %178, %133, %132, %74, %64, %62
  %.pn88 = phi { ptr, i32 } [ %134, %133 ], [ %.pn83.pn.pn.pn, %132 ], [ %.pn.pn.pn, %178 ], [ %65, %64 ], [ %63, %62 ], [ %75, %74 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #11
  br label %181

181:                                              ; preds = %180, %60
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %180 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  br label %182

182:                                              ; preds = %181, %58
  %.pn88.pn.pn = phi { ptr, i32 } [ %.pn88.pn, %181 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #11
  br label %183

183:                                              ; preds = %182, %56
  %.pn88.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn, %182 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  br label %184

184:                                              ; preds = %183, %54
  %.pn88.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn.pn, %183 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #11
  br label %185

185:                                              ; preds = %184, %52
  %.pn88.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn.pn.pn, %184 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #11
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #11
  br label %186

186:                                              ; preds = %185, %50
  %.pn88.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn.pn.pn.pn, %185 ], [ %51, %50 ]
  resume { ptr, i32 } %.pn88.pn.pn.pn.pn.pn.pn
}

declare void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, double noundef) unnamed_addr #8

declare void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #8

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

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

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 #8

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 #8

declare void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8

declare void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8

declare void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8

; Function Attrs: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #8

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #9

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass