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

; 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

declare void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP16CornerDescriptorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9getHPointffP6MatrixRfS1_(float noundef, float noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9getAffMatP16CornerDescriptorP6MatrixRS1_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #6

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16CornerDescriptorC2Eff(ptr noundef nonnull align 8 dereferenceable(116), float noundef, float noundef) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20projectAffineCornersRSt6vectorIP16CornerDescriptorSaIS1_EES4_P6Matrix(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #6 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %class.Matrix, align 8
  %12 = alloca %class.Matrix, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %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 = alloca %class.Matrix, align 8
  %20 = alloca %class.Matrix, align 8
  %21 = alloca %class.Matrix, align 8
  %22 = alloca %class.Matrix, align 8
  %23 = alloca %class.Matrix, align 8
  %24 = alloca %class.Matrix, align 8
  %25 = alloca i32, align 4
  %26 = alloca %class.Matrix, align 8
  %27 = alloca %class.Matrix, align 8
  %28 = alloca %class.Matrix, align 8
  %29 = alloca %class.Matrix, 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 %class.Matrix, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %36 unwind label %85

36:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %37 unwind label %89

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %38 unwind label %93

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %39 unwind label %97

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %40 unwind label %101

40:                                               ; preds = %39
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %41)
          to label %43 unwind label %105

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 3, i32 noundef 3)
          to label %45 unwind label %109

45:                                               ; preds = %43
  %46 = load double, ptr %44, align 8, !tbaa !9
  invoke void @_ZNK6MatrixdvEd(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef %46)
          to label %47 unwind label %109

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %49 unwind label %113

49:                                               ; preds = %47
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 1, i32 noundef 1)
          to label %51 unwind label %105

51:                                               ; preds = %49
  %52 = load double, ptr %50, align 8, !tbaa !9
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 1, i32 noundef 1)
          to label %54 unwind label %105

54:                                               ; preds = %51
  store double %52, ptr %53, align 8, !tbaa !9
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 1, i32 noundef 2)
          to label %56 unwind label %105

56:                                               ; preds = %54
  %57 = load double, ptr %55, align 8, !tbaa !9
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 1, i32 noundef 2)
          to label %59 unwind label %105

59:                                               ; preds = %56
  store double %57, ptr %58, align 8, !tbaa !9
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2, i32 noundef 1)
          to label %61 unwind label %105

61:                                               ; preds = %59
  %62 = load double, ptr %60, align 8, !tbaa !9
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 2, i32 noundef 1)
          to label %64 unwind label %105

64:                                               ; preds = %61
  store double %62, ptr %63, align 8, !tbaa !9
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2, i32 noundef 2)
          to label %66 unwind label %105

66:                                               ; preds = %64
  %67 = load double, ptr %65, align 8, !tbaa !9
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 2, i32 noundef 2)
          to label %69 unwind label %105

69:                                               ; preds = %66
  store double %67, ptr %68, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %70 unwind label %118

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %71 unwind label %122

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %72 unwind label %126

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %73 unwind label %130

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %74 unwind label %134

74:                                               ; preds = %73
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %75)
          to label %77 unwind label %138

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %316, %77
  %79 = load i32, ptr %25, align 4, !tbaa !11
  %80 = zext i32 %79 to i64
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #8
  %83 = icmp ult i64 %80, %82
  br i1 %83, label %142, label %84

84:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %394

85:                                               ; preds = %3
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %13, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %14, align 4
  br label %406

89:                                               ; preds = %36
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %13, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %14, align 4
  br label %405

93:                                               ; preds = %37
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %13, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %14, align 4
  br label %404

97:                                               ; preds = %38
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %13, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %14, align 4
  br label %403

101:                                              ; preds = %39
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %13, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %14, align 4
  br label %402

105:                                              ; preds = %66, %64, %61, %59, %56, %54, %51, %49, %40
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  br label %401

109:                                              ; preds = %45, %43
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %13, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %14, align 4
  br label %117

113:                                              ; preds = %47
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %13, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %14, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  br label %401

118:                                              ; preds = %69
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %13, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %14, align 4
  br label %400

122:                                              ; preds = %70
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %13, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %14, align 4
  br label %399

126:                                              ; preds = %71
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %13, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %14, align 4
  br label %398

130:                                              ; preds = %72
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  br label %397

134:                                              ; preds = %73
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %13, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %14, align 4
  br label %396

138:                                              ; preds = %74
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %13, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %14, align 4
  br label %395

142:                                              ; preds = %78
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = load i32, ptr %25, align 4, !tbaa !11
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %145) #8
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  %148 = invoke noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %147)
          to label %149 unwind label %319

149:                                              ; preds = %142
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = load i32, ptr %25, align 4, !tbaa !11
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #8
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = invoke noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %154)
          to label %156 unwind label %319

156:                                              ; preds = %149
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_Z9getHPointffP6MatrixRfS1_(float noundef %148, float noundef %155, ptr noundef %157, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = load i32, ptr %25, align 4, !tbaa !11
  %160 = zext i32 %159 to i64
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #8
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_Z9getAffMatP16CornerDescriptorP6MatrixRS1_(ptr noundef %162, ptr noundef %163, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %164 unwind label %319

164:                                              ; preds = %156
  %165 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #9
          to label %166 unwind label %319

166:                                              ; preds = %164
  %167 = load float, ptr %8, align 4, !tbaa !13
  %168 = load float, ptr %9, align 4, !tbaa !13
  invoke void @_ZN16CornerDescriptorC2Eff(ptr noundef nonnull align 8 dereferenceable(116) %165, float noundef %167, float noundef %168)
          to label %169 unwind label %323

169:                                              ; preds = %166
  store ptr %165, ptr %7, align 8, !tbaa !5
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = load i32, ptr %25, align 4, !tbaa !11
  %172 = zext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %172) #8
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = invoke noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88) %174)
          to label %176 unwind label %319

176:                                              ; preds = %169
  %177 = fpext float %175 to double
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 1, i32 noundef 1)
          to label %179 unwind label %319

179:                                              ; preds = %176
  store double %177, ptr %178, align 8, !tbaa !9
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = load i32, ptr %25, align 4, !tbaa !11
  %182 = zext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #8
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = invoke noundef float @_ZNK6Corner7getMi12Ev(ptr noundef nonnull align 4 dereferenceable(88) %184)
          to label %186 unwind label %319

186:                                              ; preds = %179
  %187 = fpext float %185 to double
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 1, i32 noundef 2)
          to label %189 unwind label %319

189:                                              ; preds = %186
  store double %187, ptr %188, align 8, !tbaa !9
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = load i32, ptr %25, align 4, !tbaa !11
  %192 = zext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %192) #8
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = invoke noundef float @_ZNK6Corner7getMi21Ev(ptr noundef nonnull align 4 dereferenceable(88) %194)
          to label %196 unwind label %319

196:                                              ; preds = %189
  %197 = fpext float %195 to double
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 2, i32 noundef 1)
          to label %199 unwind label %319

199:                                              ; preds = %196
  store double %197, ptr %198, align 8, !tbaa !9
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = load i32, ptr %25, align 4, !tbaa !11
  %202 = zext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #8
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = invoke noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88) %204)
          to label %206 unwind label %319

206:                                              ; preds = %199
  %207 = fpext float %205 to double
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef 2, i32 noundef 2)
          to label %209 unwind label %319

209:                                              ; preds = %206
  store double %207, ptr %208, align 8, !tbaa !9
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %210 unwind label %319

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = load i32, ptr %25, align 4, !tbaa !11
  %213 = zext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef %213) #8
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = invoke noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %215)
          to label %217 unwind label %327

217:                                              ; preds = %210
  %218 = fpext float %216 to double
  invoke void @_ZNK6MatrixmlEd(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %24, double noundef %218)
          to label %219 unwind label %327

219:                                              ; preds = %217
  %220 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %221 unwind label %331

221:                                              ; preds = %219
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %223 unwind label %319

223:                                              ; preds = %221
  %224 = load double, ptr %222, align 8, !tbaa !9
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %226 unwind label %319

226:                                              ; preds = %223
  %227 = load double, ptr %225, align 8, !tbaa !9
  %228 = fmul double %224, %227
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %230 unwind label %319

230:                                              ; preds = %226
  store double %228, ptr %229, align 8, !tbaa !9
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %232 unwind label %319

232:                                              ; preds = %230
  %233 = load double, ptr %231, align 8, !tbaa !9
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %235 unwind label %319

235:                                              ; preds = %232
  %236 = load double, ptr %234, align 8, !tbaa !9
  %237 = fmul double %233, %236
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %239 unwind label %319

239:                                              ; preds = %235
  store double %237, ptr %238, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %240 unwind label %336

240:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %241 unwind label %340

241:                                              ; preds = %240
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %242 unwind label %344

242:                                              ; preds = %241
  %243 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %244 unwind label %348

244:                                              ; preds = %242
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #8
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %245 unwind label %355

245:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #8
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %246 unwind label %359

246:                                              ; preds = %245
  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) %32)
          to label %247 unwind label %363

247:                                              ; preds = %246
  %248 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %249 unwind label %367

249:                                              ; preds = %247
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %250 unwind label %319

250:                                              ; preds = %249
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %252 unwind label %319

252:                                              ; preds = %250
  %253 = load double, ptr %251, align 8, !tbaa !9
  %254 = call double @sqrt(double noundef %253) #8
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %256 unwind label %319

256:                                              ; preds = %252
  store double %254, ptr %255, align 8, !tbaa !9
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %258 unwind label %319

258:                                              ; preds = %256
  %259 = load double, ptr %257, align 8, !tbaa !9
  %260 = call double @sqrt(double noundef %259) #8
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %262 unwind label %319

262:                                              ; preds = %258
  store double %260, ptr %261, align 8, !tbaa !9
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %264 unwind label %319

264:                                              ; preds = %262
  %265 = load double, ptr %263, align 8, !tbaa !9
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %267 unwind label %319

267:                                              ; preds = %264
  %268 = load double, ptr %266, align 8, !tbaa !9
  %269 = fmul double %265, %268
  %270 = call double @sqrt(double noundef %269) #8
  %271 = fptrunc double %270 to float
  store float %271, ptr %10, align 4, !tbaa !13
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %273 unwind label %319

273:                                              ; preds = %267
  %274 = load double, ptr %272, align 8, !tbaa !9
  %275 = load float, ptr %10, align 4, !tbaa !13
  %276 = fpext float %275 to double
  %277 = fdiv double %274, %276
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1, i32 noundef 1)
          to label %279 unwind label %319

279:                                              ; preds = %273
  store double %277, ptr %278, align 8, !tbaa !9
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %281 unwind label %319

281:                                              ; preds = %279
  %282 = load double, ptr %280, align 8, !tbaa !9
  %283 = load float, ptr %10, align 4, !tbaa !13
  %284 = fpext float %283 to double
  %285 = fdiv double %282, %284
  %286 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2, i32 noundef 2)
          to label %287 unwind label %319

287:                                              ; preds = %281
  store double %285, ptr %286, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %288 unwind label %374

288:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %289 unwind label %378

289:                                              ; preds = %288
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %290 unwind label %382

290:                                              ; preds = %289
  %291 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %292 unwind label %386

292:                                              ; preds = %290
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef 1, i32 noundef 1)
          to label %295 unwind label %319

295:                                              ; preds = %292
  %296 = load double, ptr %294, align 8, !tbaa !9
  %297 = fptrunc double %296 to float
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef 1, i32 noundef 2)
          to label %299 unwind label %319

299:                                              ; preds = %295
  %300 = load double, ptr %298, align 8, !tbaa !9
  %301 = fptrunc double %300 to float
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef 2, i32 noundef 1)
          to label %303 unwind label %319

303:                                              ; preds = %299
  %304 = load double, ptr %302, align 8, !tbaa !9
  %305 = fptrunc double %304 to float
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef 2, i32 noundef 2)
          to label %307 unwind label %319

307:                                              ; preds = %303
  %308 = load double, ptr %306, align 8, !tbaa !9
  %309 = fptrunc double %308 to float
  invoke void @_ZN6Corner5setMiEffff(ptr noundef nonnull align 4 dereferenceable(88) %293, float noundef %297, float noundef %301, float noundef %305, float noundef %309)
          to label %310 unwind label %319

310:                                              ; preds = %307
  %311 = load ptr, ptr %7, align 8, !tbaa !5
  %312 = load float, ptr %10, align 4, !tbaa !13
  invoke void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %311, float noundef %312)
          to label %313 unwind label %319

313:                                              ; preds = %310
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP16CornerDescriptorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %314, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %315 unwind label %319

315:                                              ; preds = %313
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr %25, align 4, !tbaa !11
  %318 = add i32 %317, 1
  store i32 %318, ptr %25, align 4, !tbaa !11
  br label %78, !llvm.loop !15

319:                                              ; preds = %313, %310, %307, %303, %299, %295, %292, %281, %279, %273, %267, %264, %262, %258, %256, %252, %250, %249, %235, %232, %230, %226, %223, %221, %209, %206, %199, %196, %189, %186, %179, %176, %169, %164, %156, %149, %142
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %13, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %14, align 4
  br label %393

323:                                              ; preds = %166
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %13, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %165, i64 noundef 120) #10
  br label %393

327:                                              ; preds = %217, %210
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %13, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %14, align 4
  br label %335

331:                                              ; preds = %219
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %13, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %14, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  br label %335

335:                                              ; preds = %331, %327
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  br label %393

336:                                              ; preds = %239
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %13, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %14, align 4
  br label %354

340:                                              ; preds = %240
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %13, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %14, align 4
  br label %353

344:                                              ; preds = %241
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %13, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %14, align 4
  br label %352

348:                                              ; preds = %242
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %13, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %14, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  br label %352

352:                                              ; preds = %348, %344
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  br label %353

353:                                              ; preds = %352, %340
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %354

354:                                              ; preds = %353, %336
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  br label %393

355:                                              ; preds = %244
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %13, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %14, align 4
  br label %373

359:                                              ; preds = %245
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %13, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %14, align 4
  br label %372

363:                                              ; preds = %246
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %13, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %14, align 4
  br label %371

367:                                              ; preds = %247
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %13, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %14, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  br label %371

371:                                              ; preds = %367, %363
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br label %372

372:                                              ; preds = %371, %359
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  br label %373

373:                                              ; preds = %372, %355
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  br label %393

374:                                              ; preds = %287
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %13, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %14, align 4
  br label %392

378:                                              ; preds = %288
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %13, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %14, align 4
  br label %391

382:                                              ; preds = %289
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %13, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %14, align 4
  br label %390

386:                                              ; preds = %290
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %13, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %14, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  br label %390

390:                                              ; preds = %386, %382
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  br label %391

391:                                              ; preds = %390, %378
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  br label %392

392:                                              ; preds = %391, %374
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br label %393

393:                                              ; preds = %392, %373, %354, %335, %323, %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %395

394:                                              ; preds = %84
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %7) #8
  ret void

395:                                              ; preds = %393, %138
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br label %396

396:                                              ; preds = %395, %134
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br label %397

397:                                              ; preds = %396, %130
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %398

398:                                              ; preds = %397, %126
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  br label %399

399:                                              ; preds = %398, %122
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br label %400

400:                                              ; preds = %399, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br label %401

401:                                              ; preds = %400, %117, %105
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %402

402:                                              ; preds = %401, %101
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  br label %403

403:                                              ; preds = %402, %97
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %404

404:                                              ; preds = %403, %93
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %405

405:                                              ; preds = %404, %89
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %406

406:                                              ; preds = %405, %85
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %7) #8
  br label %407

407:                                              ; preds = %406
  %408 = load ptr, ptr %13, align 8
  %409 = load i32, ptr %14, align 4
  %410 = insertvalue { ptr, i32 } poison, ptr %408, 0
  %411 = insertvalue { ptr, i32 } %410, i32 %409, 1
  resume { ptr, i32 } %411
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress 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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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

declare void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9getHPointffP6MatrixRfS1_(float noundef, float noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #8

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16CornerDescriptorC2Eff(ptr noundef nonnull align 8 dereferenceable(116), float noundef, float noundef) unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20projectAffineCornersRSt6vectorIP16CornerDescriptorSaIS1_EES4_P6Matrix(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %class.Matrix, align 8
  %8 = alloca %class.Matrix, align 8
  %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 %class.Matrix, align 8
  %16 = alloca %class.Matrix, align 8
  %17 = alloca %class.Matrix, align 8
  %18 = alloca %class.Matrix, align 8
  %19 = alloca %class.Matrix, align 8
  %20 = alloca %class.Matrix, align 8
  %21 = alloca %class.Matrix, align 8
  %22 = alloca %class.Matrix, align 8
  %23 = alloca %class.Matrix, align 8
  %24 = alloca %class.Matrix, align 8
  %25 = alloca %class.Matrix, align 8
  %26 = alloca %class.Matrix, align 8
  %27 = alloca %class.Matrix, align 8
  %28 = alloca %class.Matrix, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %29 unwind label %60

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %30 unwind label %62

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %31 unwind label %64

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %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 %32 unwind label %66

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %33 unwind label %68

33:                                               ; preds = %32
  %34 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %35 unwind label %70

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 3, i32 noundef 3)
  %37 = load double, ptr %36, align 8, !tbaa !5
  invoke void @_ZNK6MatrixdvEd(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef %37)
          to label %38 unwind label %72

38:                                               ; preds = %35
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %40 unwind label %74

40:                                               ; preds = %38
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 1)
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 1, i32 noundef 1)
  store double %42, ptr %43, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 2)
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 1, i32 noundef 2)
  store double %45, ptr %46, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 1)
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2, i32 noundef 1)
  store double %48, ptr %49, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 2)
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2, i32 noundef 2)
  store double %51, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  invoke void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
          to label %53 unwind label %77

53:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %54 unwind label %79

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %55 unwind label %81

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %56 unwind label %83

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %57 unwind label %85

57:                                               ; preds = %56
  %58 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %.preheader unwind label %87

.preheader:                                       ; preds = %57
  %59 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %.not = icmp eq i64 %59, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %198, %.preheader
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  ret void

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

62:                                               ; preds = %29
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %255

64:                                               ; preds = %30
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %254

66:                                               ; preds = %31
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %253

68:                                               ; preds = %32
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %252

70:                                               ; preds = %33
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %251

72:                                               ; preds = %35
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %38
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  br label %76

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %251

77:                                               ; preds = %40
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %250

79:                                               ; preds = %53
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %249

81:                                               ; preds = %54
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %248

83:                                               ; preds = %55
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %247

85:                                               ; preds = %56
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %246

87:                                               ; preds = %57
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %245

.lr.ph:                                           ; preds = %.preheader, %198
  %89 = phi i64 [ %200, %198 ], [ 0, %.preheader ]
  %.097 = phi i32 [ %199, %198 ], [ 0, %.preheader ]
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %91)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %94)
  call void @_Z9getHPointffP6MatrixRfS1_(float noundef %92, float noundef %95, ptr noundef nonnull %2, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  invoke void @_Z9getAffMatP16CornerDescriptorP6MatrixRS1_(ptr noundef %97, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %98 unwind label %203

98:                                               ; preds = %.lr.ph
  %99 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #10
          to label %100 unwind label %203

100:                                              ; preds = %98
  %101 = load float, ptr %5, align 4, !tbaa !11
  %102 = load float, ptr %6, align 4, !tbaa !11
  invoke void @_ZN16CornerDescriptorC2Eff(ptr noundef nonnull align 8 dereferenceable(116) %99, float noundef %101, float noundef %102)
          to label %103 unwind label %205

103:                                              ; preds = %100
  store ptr %99, ptr %4, align 8, !tbaa !9
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = call noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88) %105)
  %107 = fpext float %106 to double
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1, i32 noundef 1)
  store double %107, ptr %108, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = call noundef float @_ZNK6Corner7getMi12Ev(ptr noundef nonnull align 4 dereferenceable(88) %110)
  %112 = fpext float %111 to double
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1, i32 noundef 2)
  store double %112, ptr %113, align 8, !tbaa !5
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = call noundef float @_ZNK6Corner7getMi21Ev(ptr noundef nonnull align 4 dereferenceable(88) %115)
  %117 = fpext float %116 to double
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2, i32 noundef 1)
  store double %117, ptr %118, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %120 = load ptr, ptr %119, align 8, !tbaa !9
  %121 = call noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88) %120)
  %122 = fpext float %121 to double
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2, i32 noundef 2)
  store double %122, ptr %123, align 8, !tbaa !5
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %124 unwind label %203

124:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %89) #9
  %126 = load ptr, ptr %125, align 8, !tbaa !9
  %127 = call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %126)
  %128 = fpext float %127 to double
  invoke void @_ZNK6MatrixmlEd(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %128)
          to label %129 unwind label %207

129:                                              ; preds = %124
  %130 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %131 unwind label %209

131:                                              ; preds = %129
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = fmul double %133, %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  store double %136, ptr %137, align 8, !tbaa !5
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  %139 = load double, ptr %138, align 8, !tbaa !5
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = fmul double %139, %141
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  store double %142, ptr %143, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #9
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %144 unwind label %212

144:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #9
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %145 unwind label %214

145:                                              ; preds = %144
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %146 unwind label %216

146:                                              ; preds = %145
  %147 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %148 unwind label %218

148:                                              ; preds = %146
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #9
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %149 unwind label %223

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #9
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %150 unwind label %225

150:                                              ; preds = %149
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %151 unwind label %227

151:                                              ; preds = %150
  %152 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %153 unwind label %229

153:                                              ; preds = %151
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %154 unwind label %203

154:                                              ; preds = %153
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  %156 = load double, ptr %155, align 8, !tbaa !5
  %157 = call double @sqrt(double noundef %156) #9
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  store double %157, ptr %158, align 8, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = call double @sqrt(double noundef %160) #9
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  store double %161, ptr %162, align 8, !tbaa !5
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  %164 = load double, ptr %163, align 8, !tbaa !5
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = fmul double %164, %166
  %168 = call double @sqrt(double noundef %167) #9
  %169 = fptrunc double %168 to float
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  %171 = load double, ptr %170, align 8, !tbaa !5
  %172 = fpext float %169 to double
  %173 = fdiv double %171, %172
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 1, i32 noundef 1)
  store double %173, ptr %174, align 8, !tbaa !5
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  %176 = load double, ptr %175, align 8, !tbaa !5
  %177 = fdiv double %176, %172
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef 2, i32 noundef 2)
  store double %177, ptr %178, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #9
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %179 unwind label %234

179:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %180 unwind label %236

180:                                              ; preds = %179
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %181 unwind label %238

181:                                              ; preds = %180
  %182 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %183 unwind label %240

183:                                              ; preds = %181
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  %184 = load ptr, ptr %4, align 8, !tbaa !9
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 1, i32 noundef 1)
  %186 = load double, ptr %185, align 8, !tbaa !5
  %187 = fptrunc double %186 to float
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 1, i32 noundef 2)
  %189 = load double, ptr %188, align 8, !tbaa !5
  %190 = fptrunc double %189 to float
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 2, i32 noundef 1)
  %192 = load double, ptr %191, align 8, !tbaa !5
  %193 = fptrunc double %192 to float
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 2, i32 noundef 2)
  %195 = load double, ptr %194, align 8, !tbaa !5
  %196 = fptrunc double %195 to float
  call void @_ZN6Corner5setMiEffff(ptr noundef nonnull align 4 dereferenceable(88) %184, float noundef %187, float noundef %190, float noundef %193, float noundef %196)
  %197 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %197, float noundef %169)
  invoke void @_ZNSt6vectorIP16CornerDescriptorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %198 unwind label %203

198:                                              ; preds = %183
  %199 = add i32 %.097, 1
  %200 = zext i32 %199 to i64
  %201 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %202 = icmp ugt i64 %201, %200
  br i1 %202, label %.lr.ph, label %._crit_edge, !llvm.loop !13

203:                                              ; preds = %183, %153, %103, %98, %.lr.ph
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %245

205:                                              ; preds = %100
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %99, i64 noundef 120) #11
  br label %245

207:                                              ; preds = %124
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %211

209:                                              ; preds = %129
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  br label %211

211:                                              ; preds = %209, %207
  %.pn55 = phi { ptr, i32 } [ %210, %209 ], [ %208, %207 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  br label %245

212:                                              ; preds = %131
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %222

214:                                              ; preds = %144
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %221

216:                                              ; preds = %145
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %220

218:                                              ; preds = %146
  %219 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  br label %220

220:                                              ; preds = %218, %216
  %.pn57 = phi { ptr, i32 } [ %219, %218 ], [ %217, %216 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  br label %221

221:                                              ; preds = %220, %214
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %220 ], [ %215, %214 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  br label %222

222:                                              ; preds = %221, %212
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %221 ], [ %213, %212 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  br label %245

223:                                              ; preds = %148
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %233

225:                                              ; preds = %149
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %232

227:                                              ; preds = %150
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %231

229:                                              ; preds = %151
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  br label %231

231:                                              ; preds = %229, %227
  %.pn61 = phi { ptr, i32 } [ %230, %229 ], [ %228, %227 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  br label %232

232:                                              ; preds = %231, %225
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %231 ], [ %226, %225 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  br label %233

233:                                              ; preds = %232, %223
  %.pn61.pn.pn = phi { ptr, i32 } [ %.pn61.pn, %232 ], [ %224, %223 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  br label %245

234:                                              ; preds = %154
  %235 = landingpad { ptr, i32 }
          cleanup
  br label %244

236:                                              ; preds = %179
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %243

238:                                              ; preds = %180
  %239 = landingpad { ptr, i32 }
          cleanup
  br label %242

240:                                              ; preds = %181
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  br label %242

242:                                              ; preds = %240, %238
  %.pn65 = phi { ptr, i32 } [ %241, %240 ], [ %239, %238 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  br label %243

243:                                              ; preds = %242, %236
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %242 ], [ %237, %236 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  br label %244

244:                                              ; preds = %243, %234
  %.pn65.pn.pn = phi { ptr, i32 } [ %.pn65.pn, %243 ], [ %235, %234 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  br label %245

245:                                              ; preds = %203, %205, %211, %222, %233, %244, %87
  %.pn69.pn = phi { ptr, i32 } [ %88, %87 ], [ %204, %203 ], [ %.pn65.pn.pn, %244 ], [ %.pn61.pn.pn, %233 ], [ %.pn57.pn.pn, %222 ], [ %.pn55, %211 ], [ %206, %205 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  br label %246

246:                                              ; preds = %245, %85
  %.pn69.pn.pn = phi { ptr, i32 } [ %.pn69.pn, %245 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  br label %247

247:                                              ; preds = %246, %83
  %.pn69.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn, %246 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  br label %248

248:                                              ; preds = %247, %81
  %.pn69.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn, %247 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br label %249

249:                                              ; preds = %248, %79
  %.pn69.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn, %248 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %250

250:                                              ; preds = %249, %77
  %.pn69.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn, %249 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %251

251:                                              ; preds = %250, %76, %70
  %.pn69.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn.pn, %250 ], [ %.pn, %76 ], [ %71, %70 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br label %252

252:                                              ; preds = %251, %68
  %.pn69.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn.pn.pn, %251 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  br label %253

253:                                              ; preds = %252, %66
  %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn.pn.pn.pn, %252 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %254

254:                                              ; preds = %253, %64
  %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn, %253 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %255

255:                                              ; preds = %254, %62
  %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %254 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  br label %256

256:                                              ; preds = %255, %60
  %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %255 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn69.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass