; 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 @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) 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

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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner6setX_YEff(ptr noundef nonnull align 4 dereferenceable(88), float noundef, float noundef) #2 align 2

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

; 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 @_ZSt4sqrtf(float noundef) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) #2

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13getMeanAffineRSt6vectorIP16CornerDescriptorSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) #5 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Matrix, align 8
  %4 = alloca %class.Matrix, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.Matrix, align 8
  %8 = alloca %class.Matrix, align 8
  %9 = alloca %class.Matrix, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca %class.Matrix, align 8
  %20 = alloca %class.Matrix, align 8
  %21 = alloca %class.Matrix, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  call void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  invoke void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
          to label %22 unwind label %33

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

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

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

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0.000000e+00, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store float 0.000000e+00, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 0.000000e+00, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0.000000e+00, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store float 0.000000e+00, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %147, %25
  %27 = load i32, ptr %18, align 4, !tbaa !11
  %28 = zext i32 %27 to i64
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %31 = icmp ult i64 %28, %30
  br i1 %31, label %49, label %32

32:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %154

33:                                               ; preds = %1
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %5, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %6, align 4
  br label %424

37:                                               ; preds = %22
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %5, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %6, align 4
  br label %423

41:                                               ; preds = %23
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %5, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %6, align 4
  br label %422

45:                                               ; preds = %24
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %5, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %6, align 4
  br label %421

49:                                               ; preds = %26
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = load i32, ptr %18, align 4, !tbaa !11
  %52 = zext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #6
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = invoke noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88) %54)
          to label %56 unwind label %150

56:                                               ; preds = %49
  %57 = fpext float %55 to double
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 1, i32 noundef 1)
          to label %59 unwind label %150

59:                                               ; preds = %56
  store double %57, ptr %58, align 8, !tbaa !13
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = load i32, ptr %18, align 4, !tbaa !11
  %62 = zext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #6
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = invoke noundef float @_ZNK6Corner7getMi12Ev(ptr noundef nonnull align 4 dereferenceable(88) %64)
          to label %66 unwind label %150

66:                                               ; preds = %59
  %67 = fpext float %65 to double
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 1, i32 noundef 2)
          to label %69 unwind label %150

69:                                               ; preds = %66
  store double %67, ptr %68, align 8, !tbaa !13
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = load i32, ptr %18, align 4, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #6
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = invoke noundef float @_ZNK6Corner7getMi21Ev(ptr noundef nonnull align 4 dereferenceable(88) %74)
          to label %76 unwind label %150

76:                                               ; preds = %69
  %77 = fpext float %75 to double
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 2, i32 noundef 1)
          to label %79 unwind label %150

79:                                               ; preds = %76
  store double %77, ptr %78, align 8, !tbaa !13
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = load i32, ptr %18, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #6
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = invoke noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88) %84)
          to label %86 unwind label %150

86:                                               ; preds = %79
  %87 = fpext float %85 to double
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 2, i32 noundef 2)
          to label %89 unwind label %150

89:                                               ; preds = %86
  store double %87, ptr %88, align 8, !tbaa !13
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %90 unwind label %150

90:                                               ; preds = %89
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
          to label %92 unwind label %150

92:                                               ; preds = %90
  %93 = load double, ptr %91, align 8, !tbaa !13
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
          to label %95 unwind label %150

95:                                               ; preds = %92
  %96 = load double, ptr %94, align 8, !tbaa !13
  %97 = fdiv double %93, %96
  %98 = load float, ptr %15, align 4, !tbaa !9
  %99 = fpext float %98 to double
  %100 = fadd double %99, %97
  %101 = fptrunc double %100 to float
  store float %101, ptr %15, align 4, !tbaa !9
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = load i32, ptr %18, align 4, !tbaa !11
  %104 = zext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #6
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = invoke noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %106)
          to label %108 unwind label %150

108:                                              ; preds = %95
  %109 = load float, ptr %12, align 4, !tbaa !9
  %110 = fadd float %109, %107
  store float %110, ptr %12, align 4, !tbaa !9
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 1)
          to label %112 unwind label %150

112:                                              ; preds = %108
  %113 = load double, ptr %111, align 8, !tbaa !13
  %114 = call double @acos(double noundef %113) #6
  %115 = fptrunc double %114 to float
  store float %115, ptr %11, align 4, !tbaa !9
  %116 = load float, ptr %11, align 4, !tbaa !9
  %117 = load float, ptr %13, align 4, !tbaa !9
  %118 = fadd float %117, %116
  store float %118, ptr %13, align 4, !tbaa !9
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
          to label %120 unwind label %150

120:                                              ; preds = %112
  %121 = load double, ptr %119, align 8, !tbaa !13
  %122 = call double @acos(double noundef %121) #6
  %123 = fptrunc double %122 to float
  store float %123, ptr %11, align 4, !tbaa !9
  %124 = load float, ptr %11, align 4, !tbaa !9
  %125 = load float, ptr %14, align 4, !tbaa !9
  %126 = fadd float %125, %124
  store float %126, ptr %14, align 4, !tbaa !9
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = load i32, ptr %18, align 4, !tbaa !11
  %129 = zext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #6
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = invoke noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %131)
          to label %133 unwind label %150

133:                                              ; preds = %120
  %134 = load float, ptr %16, align 4, !tbaa !9
  %135 = fadd float %134, %132
  store float %135, ptr %16, align 4, !tbaa !9
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = load i32, ptr %18, align 4, !tbaa !11
  %138 = zext i32 %137 to i64
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #6
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = invoke noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %140)
          to label %142 unwind label %150

142:                                              ; preds = %133
  %143 = load float, ptr %17, align 4, !tbaa !9
  %144 = fadd float %143, %141
  store float %144, ptr %17, align 4, !tbaa !9
  %145 = load float, ptr %10, align 4, !tbaa !9
  %146 = fadd float %145, 1.000000e+00
  store float %146, ptr %10, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %142
  %148 = load i32, ptr %18, align 4, !tbaa !11
  %149 = add i32 %148, 1
  store i32 %149, ptr %18, align 4, !tbaa !11
  br label %26, !llvm.loop !15

150:                                              ; preds = %133, %120, %112, %108, %95, %92, %90, %89, %86, %79, %76, %69, %66, %59, %56, %49
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %5, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %420

154:                                              ; preds = %32
  %155 = load float, ptr %10, align 4, !tbaa !9
  %156 = load float, ptr %12, align 4, !tbaa !9
  %157 = fdiv float %156, %155
  store float %157, ptr %12, align 4, !tbaa !9
  %158 = load float, ptr %10, align 4, !tbaa !9
  %159 = load float, ptr %15, align 4, !tbaa !9
  %160 = fdiv float %159, %158
  store float %160, ptr %15, align 4, !tbaa !9
  %161 = load float, ptr %10, align 4, !tbaa !9
  %162 = load float, ptr %13, align 4, !tbaa !9
  %163 = fdiv float %162, %161
  store float %163, ptr %13, align 4, !tbaa !9
  %164 = load float, ptr %10, align 4, !tbaa !9
  %165 = load float, ptr %14, align 4, !tbaa !9
  %166 = fdiv float %165, %164
  store float %166, ptr %14, align 4, !tbaa !9
  %167 = load float, ptr %10, align 4, !tbaa !9
  %168 = load float, ptr %16, align 4, !tbaa !9
  %169 = fdiv float %168, %167
  store float %169, ptr %16, align 4, !tbaa !9
  %170 = load float, ptr %10, align 4, !tbaa !9
  %171 = load float, ptr %17, align 4, !tbaa !9
  %172 = fdiv float %171, %170
  store float %172, ptr %17, align 4, !tbaa !9
  %173 = load float, ptr %15, align 4, !tbaa !9
  %174 = invoke noundef float @_ZSt4sqrtf(float noundef %173)
          to label %175 unwind label %397

175:                                              ; preds = %154
  %176 = fpext float %174 to double
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
          to label %178 unwind label %397

178:                                              ; preds = %175
  store double %176, ptr %177, align 8, !tbaa !13
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
          to label %180 unwind label %397

180:                                              ; preds = %178
  %181 = load double, ptr %179, align 8, !tbaa !13
  %182 = fdiv double 1.000000e+00, %181
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
          to label %184 unwind label %397

184:                                              ; preds = %180
  store double %182, ptr %183, align 8, !tbaa !13
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 1)
          to label %186 unwind label %397

186:                                              ; preds = %184
  %187 = load double, ptr %185, align 8, !tbaa !13
  %188 = fcmp ogt double %187, 0.000000e+00
  br i1 %188, label %189, label %195

189:                                              ; preds = %186
  %190 = load float, ptr %13, align 4, !tbaa !9
  %191 = invoke noundef float @_ZSt3cosf(float noundef %190)
          to label %192 unwind label %397

192:                                              ; preds = %189
  %193 = invoke noundef float @_ZSt4fabsf(float noundef %191)
          to label %194 unwind label %397

194:                                              ; preds = %192
  br label %202

195:                                              ; preds = %186
  %196 = load float, ptr %13, align 4, !tbaa !9
  %197 = invoke noundef float @_ZSt3cosf(float noundef %196)
          to label %198 unwind label %397

198:                                              ; preds = %195
  %199 = invoke noundef float @_ZSt4fabsf(float noundef %197)
          to label %200 unwind label %397

200:                                              ; preds = %198
  %201 = fneg float %199
  br label %202

202:                                              ; preds = %200, %194
  %203 = phi float [ %193, %194 ], [ %201, %200 ]
  %204 = fpext float %203 to double
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 1)
          to label %206 unwind label %397

206:                                              ; preds = %202
  store double %204, ptr %205, align 8, !tbaa !13
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 2)
          to label %208 unwind label %397

208:                                              ; preds = %206
  %209 = load double, ptr %207, align 8, !tbaa !13
  %210 = fcmp ogt double %209, 0.000000e+00
  br i1 %210, label %211, label %217

211:                                              ; preds = %208
  %212 = load float, ptr %13, align 4, !tbaa !9
  %213 = invoke noundef float @_ZSt3sinf(float noundef %212)
          to label %214 unwind label %397

214:                                              ; preds = %211
  %215 = invoke noundef float @_ZSt4fabsf(float noundef %213)
          to label %216 unwind label %397

216:                                              ; preds = %214
  br label %224

217:                                              ; preds = %208
  %218 = load float, ptr %13, align 4, !tbaa !9
  %219 = invoke noundef float @_ZSt3sinf(float noundef %218)
          to label %220 unwind label %397

220:                                              ; preds = %217
  %221 = invoke noundef float @_ZSt4fabsf(float noundef %219)
          to label %222 unwind label %397

222:                                              ; preds = %220
  %223 = fneg float %221
  br label %224

224:                                              ; preds = %222, %216
  %225 = phi float [ %215, %216 ], [ %223, %222 ]
  %226 = fpext float %225 to double
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 2)
          to label %228 unwind label %397

228:                                              ; preds = %224
  store double %226, ptr %227, align 8, !tbaa !13
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 1)
          to label %230 unwind label %397

230:                                              ; preds = %228
  %231 = load double, ptr %229, align 8, !tbaa !13
  %232 = fcmp ogt double %231, 0.000000e+00
  br i1 %232, label %233, label %239

233:                                              ; preds = %230
  %234 = load float, ptr %13, align 4, !tbaa !9
  %235 = invoke noundef float @_ZSt3sinf(float noundef %234)
          to label %236 unwind label %397

236:                                              ; preds = %233
  %237 = invoke noundef float @_ZSt4fabsf(float noundef %235)
          to label %238 unwind label %397

238:                                              ; preds = %236
  br label %246

239:                                              ; preds = %230
  %240 = load float, ptr %13, align 4, !tbaa !9
  %241 = invoke noundef float @_ZSt3sinf(float noundef %240)
          to label %242 unwind label %397

242:                                              ; preds = %239
  %243 = invoke noundef float @_ZSt4fabsf(float noundef %241)
          to label %244 unwind label %397

244:                                              ; preds = %242
  %245 = fneg float %243
  br label %246

246:                                              ; preds = %244, %238
  %247 = phi float [ %237, %238 ], [ %245, %244 ]
  %248 = fpext float %247 to double
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 1)
          to label %250 unwind label %397

250:                                              ; preds = %246
  store double %248, ptr %249, align 8, !tbaa !13
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 2)
          to label %252 unwind label %397

252:                                              ; preds = %250
  %253 = load double, ptr %251, align 8, !tbaa !13
  %254 = fcmp ogt double %253, 0.000000e+00
  br i1 %254, label %255, label %261

255:                                              ; preds = %252
  %256 = load float, ptr %13, align 4, !tbaa !9
  %257 = invoke noundef float @_ZSt3cosf(float noundef %256)
          to label %258 unwind label %397

258:                                              ; preds = %255
  %259 = invoke noundef float @_ZSt4fabsf(float noundef %257)
          to label %260 unwind label %397

260:                                              ; preds = %258
  br label %268

261:                                              ; preds = %252
  %262 = load float, ptr %13, align 4, !tbaa !9
  %263 = invoke noundef float @_ZSt3cosf(float noundef %262)
          to label %264 unwind label %397

264:                                              ; preds = %261
  %265 = invoke noundef float @_ZSt4fabsf(float noundef %263)
          to label %266 unwind label %397

266:                                              ; preds = %264
  %267 = fneg float %265
  br label %268

268:                                              ; preds = %266, %260
  %269 = phi float [ %259, %260 ], [ %267, %266 ]
  %270 = fpext float %269 to double
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2, i32 noundef 2)
          to label %272 unwind label %397

272:                                              ; preds = %268
  store double %270, ptr %271, align 8, !tbaa !13
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
          to label %274 unwind label %397

274:                                              ; preds = %272
  %275 = load double, ptr %273, align 8, !tbaa !13
  %276 = fcmp ogt double %275, 0.000000e+00
  br i1 %276, label %277, label %283

277:                                              ; preds = %274
  %278 = load float, ptr %14, align 4, !tbaa !9
  %279 = invoke noundef float @_ZSt3cosf(float noundef %278)
          to label %280 unwind label %397

280:                                              ; preds = %277
  %281 = invoke noundef float @_ZSt4fabsf(float noundef %279)
          to label %282 unwind label %397

282:                                              ; preds = %280
  br label %290

283:                                              ; preds = %274
  %284 = load float, ptr %14, align 4, !tbaa !9
  %285 = invoke noundef float @_ZSt3cosf(float noundef %284)
          to label %286 unwind label %397

286:                                              ; preds = %283
  %287 = invoke noundef float @_ZSt4fabsf(float noundef %285)
          to label %288 unwind label %397

288:                                              ; preds = %286
  %289 = fneg float %287
  br label %290

290:                                              ; preds = %288, %282
  %291 = phi float [ %281, %282 ], [ %289, %288 ]
  %292 = fpext float %291 to double
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
          to label %294 unwind label %397

294:                                              ; preds = %290
  store double %292, ptr %293, align 8, !tbaa !13
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 2)
          to label %296 unwind label %397

296:                                              ; preds = %294
  %297 = load double, ptr %295, align 8, !tbaa !13
  %298 = fcmp ogt double %297, 0.000000e+00
  br i1 %298, label %299, label %305

299:                                              ; preds = %296
  %300 = load float, ptr %14, align 4, !tbaa !9
  %301 = invoke noundef float @_ZSt3sinf(float noundef %300)
          to label %302 unwind label %397

302:                                              ; preds = %299
  %303 = invoke noundef float @_ZSt4fabsf(float noundef %301)
          to label %304 unwind label %397

304:                                              ; preds = %302
  br label %312

305:                                              ; preds = %296
  %306 = load float, ptr %14, align 4, !tbaa !9
  %307 = invoke noundef float @_ZSt3sinf(float noundef %306)
          to label %308 unwind label %397

308:                                              ; preds = %305
  %309 = invoke noundef float @_ZSt4fabsf(float noundef %307)
          to label %310 unwind label %397

310:                                              ; preds = %308
  %311 = fneg float %309
  br label %312

312:                                              ; preds = %310, %304
  %313 = phi float [ %303, %304 ], [ %311, %310 ]
  %314 = fpext float %313 to double
  %315 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 2)
          to label %316 unwind label %397

316:                                              ; preds = %312
  store double %314, ptr %315, align 8, !tbaa !13
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 1)
          to label %318 unwind label %397

318:                                              ; preds = %316
  %319 = load double, ptr %317, align 8, !tbaa !13
  %320 = fcmp ogt double %319, 0.000000e+00
  br i1 %320, label %321, label %327

321:                                              ; preds = %318
  %322 = load float, ptr %14, align 4, !tbaa !9
  %323 = invoke noundef float @_ZSt3sinf(float noundef %322)
          to label %324 unwind label %397

324:                                              ; preds = %321
  %325 = invoke noundef float @_ZSt4fabsf(float noundef %323)
          to label %326 unwind label %397

326:                                              ; preds = %324
  br label %334

327:                                              ; preds = %318
  %328 = load float, ptr %14, align 4, !tbaa !9
  %329 = invoke noundef float @_ZSt3sinf(float noundef %328)
          to label %330 unwind label %397

330:                                              ; preds = %327
  %331 = invoke noundef float @_ZSt4fabsf(float noundef %329)
          to label %332 unwind label %397

332:                                              ; preds = %330
  %333 = fneg float %331
  br label %334

334:                                              ; preds = %332, %326
  %335 = phi float [ %325, %326 ], [ %333, %332 ]
  %336 = fpext float %335 to double
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 1)
          to label %338 unwind label %397

338:                                              ; preds = %334
  store double %336, ptr %337, align 8, !tbaa !13
  %339 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
          to label %340 unwind label %397

340:                                              ; preds = %338
  %341 = load double, ptr %339, align 8, !tbaa !13
  %342 = fcmp ogt double %341, 0.000000e+00
  br i1 %342, label %343, label %349

343:                                              ; preds = %340
  %344 = load float, ptr %14, align 4, !tbaa !9
  %345 = invoke noundef float @_ZSt3cosf(float noundef %344)
          to label %346 unwind label %397

346:                                              ; preds = %343
  %347 = invoke noundef float @_ZSt4fabsf(float noundef %345)
          to label %348 unwind label %397

348:                                              ; preds = %346
  br label %356

349:                                              ; preds = %340
  %350 = load float, ptr %14, align 4, !tbaa !9
  %351 = invoke noundef float @_ZSt3cosf(float noundef %350)
          to label %352 unwind label %397

352:                                              ; preds = %349
  %353 = invoke noundef float @_ZSt4fabsf(float noundef %351)
          to label %354 unwind label %397

354:                                              ; preds = %352
  %355 = fneg float %353
  br label %356

356:                                              ; preds = %354, %348
  %357 = phi float [ %347, %348 ], [ %355, %354 ]
  %358 = fpext float %357 to double
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
          to label %360 unwind label %397

360:                                              ; preds = %356
  store double %358, ptr %359, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %361 unwind label %401

361:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %362 unwind label %405

362:                                              ; preds = %361
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%class.Matrix) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %363 unwind label %409

363:                                              ; preds = %362
  %364 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %365 unwind label %413

365:                                              ; preds = %363
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  %366 = load ptr, ptr %2, align 8, !tbaa !5
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %366, i64 noundef 0) #6
  %368 = load ptr, ptr %367, align 8, !tbaa !5
  %369 = load float, ptr %12, align 4, !tbaa !9
  invoke void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %368, float noundef %369)
          to label %370 unwind label %397

370:                                              ; preds = %365
  %371 = load ptr, ptr %2, align 8, !tbaa !5
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %371, i64 noundef 0) #6
  %373 = load ptr, ptr %372, align 8, !tbaa !5
  %374 = load float, ptr %16, align 4, !tbaa !9
  %375 = load float, ptr %17, align 4, !tbaa !9
  invoke void @_ZN6Corner6setX_YEff(ptr noundef nonnull align 4 dereferenceable(88) %373, float noundef %374, float noundef %375)
          to label %376 unwind label %397

376:                                              ; preds = %370
  %377 = load ptr, ptr %2, align 8, !tbaa !5
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %377, i64 noundef 0) #6
  %379 = load ptr, ptr %378, align 8, !tbaa !5
  %380 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 1, i32 noundef 1)
          to label %381 unwind label %397

381:                                              ; preds = %376
  %382 = load double, ptr %380, align 8, !tbaa !13
  %383 = fptrunc double %382 to float
  %384 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 1, i32 noundef 2)
          to label %385 unwind label %397

385:                                              ; preds = %381
  %386 = load double, ptr %384, align 8, !tbaa !13
  %387 = fptrunc double %386 to float
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 2, i32 noundef 1)
          to label %389 unwind label %397

389:                                              ; preds = %385
  %390 = load double, ptr %388, align 8, !tbaa !13
  %391 = fptrunc double %390 to float
  %392 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 2, i32 noundef 2)
          to label %393 unwind label %397

393:                                              ; preds = %389
  %394 = load double, ptr %392, align 8, !tbaa !13
  %395 = fptrunc double %394 to float
  invoke void @_ZN6Corner5setMiEffff(ptr noundef nonnull align 4 dereferenceable(88) %379, float noundef %383, float noundef %387, float noundef %391, float noundef %395)
          to label %396 unwind label %397

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

397:                                              ; preds = %393, %389, %385, %381, %376, %370, %365, %356, %352, %349, %346, %343, %338, %334, %330, %327, %324, %321, %316, %312, %308, %305, %302, %299, %294, %290, %286, %283, %280, %277, %272, %268, %264, %261, %258, %255, %250, %246, %242, %239, %236, %233, %228, %224, %220, %217, %214, %211, %206, %202, %198, %195, %192, %189, %184, %180, %178, %175, %154
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %5, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %6, align 4
  br label %420

401:                                              ; preds = %360
  %402 = landingpad { ptr, i32 }
          cleanup
  %403 = extractvalue { ptr, i32 } %402, 0
  store ptr %403, ptr %5, align 8
  %404 = extractvalue { ptr, i32 } %402, 1
  store i32 %404, ptr %6, align 4
  br label %419

405:                                              ; preds = %361
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %5, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %6, align 4
  br label %418

409:                                              ; preds = %362
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %5, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %6, align 4
  br label %417

413:                                              ; preds = %363
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %5, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %6, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %417

417:                                              ; preds = %413, %409
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %418

418:                                              ; preds = %417, %405
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %419

419:                                              ; preds = %418, %401
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %420

420:                                              ; preds = %419, %397, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %421

421:                                              ; preds = %420, %45
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %422

422:                                              ; preds = %421, %41
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %423

423:                                              ; preds = %422, %37
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %424

424:                                              ; preds = %423, %33
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  br label %425

425:                                              ; preds = %424
  %426 = load ptr, ptr %5, align 8
  %427 = load i32, ptr %6, align 4
  %428 = insertvalue { ptr, i32 } poison, ptr %426, 0
  %429 = insertvalue { ptr, i32 } %428, i32 %427, 1
  resume { ptr, i32 } %429
}

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

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 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !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 @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) 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

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

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

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

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

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

; 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 @_ZSt4sqrtf(float noundef) local_unnamed_addr #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) local_unnamed_addr #2

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13getMeanAffineRSt6vectorIP16CornerDescriptorSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Matrix, align 8
  %3 = alloca %class.Matrix, align 8
  %4 = alloca %class.Matrix, align 8
  %5 = alloca %class.Matrix, align 8
  %6 = alloca %class.Matrix, align 8
  %7 = alloca %class.Matrix, align 8
  %8 = alloca %class.Matrix, align 8
  %9 = alloca %class.Matrix, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  invoke void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
          to label %10 unwind label %96

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

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

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

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

._crit_edge:                                      ; preds = %125, %.preheader
  %.069.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %156, %125 ]
  %.067.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %137, %125 ]
  %.066.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %142, %125 ]
  %.065.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %147, %125 ]
  %.064.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %133, %125 ]
  %.063.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %151, %125 ]
  %.062.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %155, %125 ]
  %14 = fdiv float %.064.lcssa, %.069.lcssa
  %15 = fdiv float %.066.lcssa, %.069.lcssa
  %16 = fdiv float %.065.lcssa, %.069.lcssa
  %17 = call noundef float @_ZSt4sqrtf(float noundef %14)
  %18 = fpext float %17 to double
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
  store double %18, ptr %19, align 8, !tbaa !5
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = fdiv double 1.000000e+00, %21
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
  store double %22, ptr %23, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = fcmp ogt double %25, 0.000000e+00
  %27 = call noundef float @_ZSt3cosf(float noundef %15)
  %28 = call noundef float @_ZSt4fabsf(float noundef %27)
  %29 = fneg float %28
  %30 = select i1 %26, float %28, float %29
  %31 = fpext float %30 to double
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
  store double %31, ptr %32, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 2)
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = fcmp ogt double %34, 0.000000e+00
  %36 = call noundef float @_ZSt3sinf(float noundef %15)
  %37 = call noundef float @_ZSt4fabsf(float noundef %36)
  %38 = fneg float %37
  %39 = select i1 %35, float %37, float %38
  %40 = fpext float %39 to double
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 2)
  store double %40, ptr %41, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 1)
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = fcmp ogt double %43, 0.000000e+00
  %45 = call noundef float @_ZSt3sinf(float noundef %15)
  %46 = call noundef float @_ZSt4fabsf(float noundef %45)
  %47 = fneg float %46
  %48 = select i1 %44, float %46, float %47
  %49 = fpext float %48 to double
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 1)
  store double %49, ptr %50, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = fcmp ogt double %52, 0.000000e+00
  %54 = call noundef float @_ZSt3cosf(float noundef %15)
  %55 = call noundef float @_ZSt4fabsf(float noundef %54)
  %56 = fneg float %55
  %57 = select i1 %53, float %55, float %56
  %58 = fpext float %57 to double
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2, i32 noundef 2)
  store double %58, ptr %59, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 1)
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = fcmp ogt double %61, 0.000000e+00
  %63 = call noundef float @_ZSt3cosf(float noundef %16)
  %64 = call noundef float @_ZSt4fabsf(float noundef %63)
  %65 = fneg float %64
  %66 = select i1 %62, float %64, float %65
  %67 = fpext float %66 to double
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 1)
  store double %67, ptr %68, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 2)
  %70 = load double, ptr %69, align 8, !tbaa !5
  %71 = fcmp ogt double %70, 0.000000e+00
  %72 = call noundef float @_ZSt3sinf(float noundef %16)
  %73 = call noundef float @_ZSt4fabsf(float noundef %72)
  %74 = fneg float %73
  %75 = select i1 %71, float %73, float %74
  %76 = fpext float %75 to double
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 2)
  store double %76, ptr %77, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 1)
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = fcmp ogt double %79, 0.000000e+00
  %81 = call noundef float @_ZSt3sinf(float noundef %16)
  %82 = call noundef float @_ZSt4fabsf(float noundef %81)
  %83 = fneg float %82
  %84 = select i1 %80, float %82, float %83
  %85 = fpext float %84 to double
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 1)
  store double %85, ptr %86, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 2)
  %88 = load double, ptr %87, align 8, !tbaa !5
  %89 = fcmp ogt double %88, 0.000000e+00
  %90 = call noundef float @_ZSt3cosf(float noundef %16)
  %91 = call noundef float @_ZSt4fabsf(float noundef %90)
  %92 = fneg float %91
  %93 = select i1 %89, float %91, float %92
  %94 = fpext float %93 to double
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 2)
  store double %94, ptr %95, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %163 unwind label %189

96:                                               ; preds = %1
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %204

98:                                               ; preds = %10
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %203

100:                                              ; preds = %11
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %202

102:                                              ; preds = %12
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %201

.lr.ph:                                           ; preds = %.preheader, %125
  %104 = phi i64 [ %158, %125 ], [ 0, %.preheader ]
  %.0102 = phi i32 [ %157, %125 ], [ 0, %.preheader ]
  %.062101 = phi float [ %155, %125 ], [ 0.000000e+00, %.preheader ]
  %.063100 = phi float [ %151, %125 ], [ 0.000000e+00, %.preheader ]
  %.06499 = phi float [ %133, %125 ], [ 0.000000e+00, %.preheader ]
  %.06598 = phi float [ %147, %125 ], [ 0.000000e+00, %.preheader ]
  %.06697 = phi float [ %142, %125 ], [ 0.000000e+00, %.preheader ]
  %.06796 = phi float [ %137, %125 ], [ 0.000000e+00, %.preheader ]
  %.06995 = phi float [ %156, %125 ], [ 0.000000e+00, %.preheader ]
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88) %106)
  %108 = fpext float %107 to double
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 1, i32 noundef 1)
  store double %108, ptr %109, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = call noundef float @_ZNK6Corner7getMi12Ev(ptr noundef nonnull align 4 dereferenceable(88) %111)
  %113 = fpext float %112 to double
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 1, i32 noundef 2)
  store double %113, ptr %114, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = call noundef float @_ZNK6Corner7getMi21Ev(ptr noundef nonnull align 4 dereferenceable(88) %116)
  %118 = fpext float %117 to double
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 2, i32 noundef 1)
  store double %118, ptr %119, align 8, !tbaa !5
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = call noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88) %121)
  %123 = fpext float %122 to double
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 2, i32 noundef 2)
  store double %123, ptr %124, align 8, !tbaa !5
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %125 unwind label %161

125:                                              ; preds = %.lr.ph
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1, i32 noundef 1)
  %127 = load double, ptr %126, align 8, !tbaa !5
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2, i32 noundef 2)
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = fdiv double %127, %129
  %131 = fpext float %.06499 to double
  %132 = fadd double %130, %131
  %133 = fptrunc double %132 to float
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %135)
  %137 = fadd float %.06796, %136
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 1)
  %139 = load double, ptr %138, align 8, !tbaa !5
  %140 = call double @acos(double noundef %139) #7
  %141 = fptrunc double %140 to float
  %142 = fadd float %.06697, %141
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 1)
  %144 = load double, ptr %143, align 8, !tbaa !5
  %145 = call double @acos(double noundef %144) #7
  %146 = fptrunc double %145 to float
  %147 = fadd float %.06598, %146
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  %150 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %149)
  %151 = fadd float %.063100, %150
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %104) #7
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %153)
  %155 = fadd float %.062101, %154
  %156 = fadd float %.06995, 1.000000e+00
  %157 = add i32 %.0102, 1
  %158 = zext i32 %157 to i64
  %159 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %160 = icmp ugt i64 %159, %158
  br i1 %160, label %.lr.ph, label %._crit_edge, !llvm.loop !11

161:                                              ; preds = %.lr.ph
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %200

163:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  invoke void @_ZNK6Matrix9transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %164 unwind label %191

164:                                              ; preds = %163
  invoke void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %165 unwind label %193

165:                                              ; preds = %164
  %166 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN6MatrixaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %167 unwind label %195

167:                                              ; preds = %165
  %168 = fdiv float %.062.lcssa, %.069.lcssa
  %169 = fdiv float %.063.lcssa, %.069.lcssa
  %170 = fdiv float %.067.lcssa, %.069.lcssa
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #7
  %172 = load ptr, ptr %171, align 8, !tbaa !9
  call void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %172, float noundef %170)
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #7
  %174 = load ptr, ptr %173, align 8, !tbaa !9
  call void @_ZN6Corner6setX_YEff(ptr noundef nonnull align 4 dereferenceable(88) %174, float noundef %169, float noundef %168)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #7
  %176 = load ptr, ptr %175, align 8, !tbaa !9
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 1, i32 noundef 1)
  %178 = load double, ptr %177, align 8, !tbaa !5
  %179 = fptrunc double %178 to float
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 1, i32 noundef 2)
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = fptrunc double %181 to float
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 2, i32 noundef 1)
  %184 = load double, ptr %183, align 8, !tbaa !5
  %185 = fptrunc double %184 to float
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 2, i32 noundef 2)
  %187 = load double, ptr %186, align 8, !tbaa !5
  %188 = fptrunc double %187 to float
  call void @_ZN6Corner5setMiEffff(ptr noundef nonnull align 4 dereferenceable(88) %176, float noundef %179, float noundef %182, float noundef %185, float noundef %188)
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  ret void

189:                                              ; preds = %._crit_edge
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %199

191:                                              ; preds = %163
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %198

193:                                              ; preds = %164
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %197

195:                                              ; preds = %165
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %197

197:                                              ; preds = %195, %193
  %.pn = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %198

198:                                              ; preds = %197, %191
  %.pn.pn = phi { ptr, i32 } [ %.pn, %197 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %199

199:                                              ; preds = %198, %189
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %198 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %200

200:                                              ; preds = %199, %161
  %.pn82 = phi { ptr, i32 } [ %162, %161 ], [ %.pn.pn.pn, %199 ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %201

201:                                              ; preds = %200, %102
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %200 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %202

202:                                              ; preds = %201, %100
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %201 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %203

203:                                              ; preds = %202, %98
  %.pn82.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn, %202 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %204

204:                                              ; preds = %203, %96
  %.pn82.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn.pn, %203 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn82.pn.pn.pn.pn
}

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

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 = { 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 = { 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 #5 = { 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 #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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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