; 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 void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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 void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17computeHomographySt6vectorIP16CornerDescriptorSaIS1_EES3_P6Matrix(ptr noundef %0, ptr noundef %1, ptr noundef %2) #7 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %class.Matrix, align 8
  %14 = alloca %class.Matrix, align 8
  %15 = alloca %class.Matrix, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  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 4, ptr %7) #8
  %20 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %21 = trunc i64 %20 to i32
  store i32 %21, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %22 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #9
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = mul nsw i32 %23, 2
  invoke void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %24, i32 noundef 9)
          to label %25 unwind label %31

25:                                               ; preds = %3
  store ptr %22, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %275, %25
  %27 = load i32, ptr %12, align 4, !tbaa !9
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %35, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %278

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %9, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %22, i64 noundef 24) #10
  br label %351

35:                                               ; preds = %26
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = mul nsw i32 2, %36
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %11, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %40) #8
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %42)
  %44 = fpext float %43 to double
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.Matrix, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %47, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %51, i64 1
  store double %44, ptr %52, align 8, !tbaa !13
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %54) #8
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %56)
  %58 = fpext float %57 to double
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.Matrix, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 2
  store double %58, ptr %66, align 8, !tbaa !13
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Matrix, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %69, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 3
  store double 1.000000e+00, ptr %74, align 8, !tbaa !13
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.Matrix, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i64 4
  store double 0.000000e+00, ptr %82, align 8, !tbaa !13
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.Matrix, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 5
  store double 0.000000e+00, ptr %90, align 8, !tbaa !13
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.Matrix, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds double, ptr %97, i64 6
  store double 0.000000e+00, ptr %98, align 8, !tbaa !13
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %100) #8
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %102)
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %105) #8
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %107)
  %109 = fmul float %103, %108
  %110 = fneg float %109
  %111 = fpext float %110 to double
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.Matrix, ptr %112, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !11
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 7
  store double %111, ptr %119, align 8, !tbaa !13
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %121) #8
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %123)
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %126) #8
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %128)
  %130 = fmul float %124, %129
  %131 = fneg float %130
  %132 = fpext float %131 to double
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.Matrix, ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 8
  store double %132, ptr %140, align 8, !tbaa !13
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %142) #8
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %144)
  %146 = fneg float %145
  %147 = fpext float %146 to double
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %class.Matrix, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 9
  store double %147, ptr %155, align 8, !tbaa !13
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %class.Matrix, ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds ptr, ptr %160, i64 %162
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %164, i64 1
  store double 0.000000e+00, ptr %165, align 8, !tbaa !13
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %class.Matrix, ptr %166, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !11
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %168, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 2
  store double 0.000000e+00, ptr %173, align 8, !tbaa !13
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %class.Matrix, ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 3
  store double 0.000000e+00, ptr %181, align 8, !tbaa !13
  %182 = load i32, ptr %12, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %183) #8
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %185)
  %187 = fpext float %186 to double
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.Matrix, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !11
  %191 = load i32, ptr %11, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds ptr, ptr %190, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %194, i64 4
  store double %187, ptr %195, align 8, !tbaa !13
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %197) #8
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %199)
  %201 = fpext float %200 to double
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = getelementptr inbounds %class.Matrix, ptr %202, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !11
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds ptr, ptr %204, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = getelementptr inbounds double, ptr %208, i64 5
  store double %201, ptr %209, align 8, !tbaa !13
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %class.Matrix, ptr %210, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !11
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds ptr, ptr %212, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 6
  store double 1.000000e+00, ptr %217, align 8, !tbaa !13
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %219) #8
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %221)
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %224) #8
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %227 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %226)
  %228 = fmul float %222, %227
  %229 = fneg float %228
  %230 = fpext float %229 to double
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = getelementptr inbounds %class.Matrix, ptr %231, i32 0, i32 1
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds ptr, ptr %233, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = getelementptr inbounds double, ptr %237, i64 7
  store double %230, ptr %238, align 8, !tbaa !13
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %240) #8
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  %243 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %242)
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %245) #8
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  %248 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %247)
  %249 = fmul float %243, %248
  %250 = fneg float %249
  %251 = fpext float %250 to double
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %class.Matrix, ptr %252, i32 0, i32 1
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds ptr, ptr %254, i64 %256
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 8
  store double %251, ptr %259, align 8, !tbaa !13
  %260 = load i32, ptr %12, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %261) #8
  %263 = load ptr, ptr %262, align 8, !tbaa !5
  %264 = call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %263)
  %265 = fneg float %264
  %266 = fpext float %265 to double
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = getelementptr inbounds %class.Matrix, ptr %267, i32 0, i32 1
  %269 = load ptr, ptr %268, align 8, !tbaa !11
  %270 = load i32, ptr %11, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds ptr, ptr %269, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = getelementptr inbounds double, ptr %273, i64 9
  store double %266, ptr %274, align 8, !tbaa !13
  br label %275

275:                                              ; preds = %35
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %12, align 4, !tbaa !9
  br label %26, !llvm.loop !15

278:                                              ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %279 unwind label %287

279:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %280 unwind label %291

280:                                              ; preds = %279
  %281 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %281, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %282 unwind label %295

282:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %283

283:                                              ; preds = %336, %282
  %284 = load i32, ptr %16, align 4, !tbaa !9
  %285 = icmp sle i32 %284, 3
  br i1 %285, label %299, label %286

286:                                              ; preds = %283
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %341

287:                                              ; preds = %278
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %9, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %10, align 4
  br label %350

291:                                              ; preds = %279
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %9, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %10, align 4
  br label %349

295:                                              ; preds = %280
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %9, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %10, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %349

299:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %332, %299
  %301 = load i32, ptr %19, align 4, !tbaa !9
  %302 = icmp sle i32 %301, 3
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %335

304:                                              ; preds = %300
  %305 = getelementptr inbounds %class.Matrix, ptr %15, i32 0, i32 1
  %306 = load ptr, ptr %305, align 8, !tbaa !11
  %307 = load i32, ptr %19, align 4, !tbaa !9
  %308 = load i32, ptr %17, align 4, !tbaa !9
  %309 = add nsw i32 %307, %308
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds ptr, ptr %306, i64 %310
  %312 = load ptr, ptr %311, align 8, !tbaa !5
  %313 = getelementptr inbounds double, ptr %312, i64 9
  %314 = load double, ptr %313, align 8, !tbaa !13
  %315 = getelementptr inbounds %class.Matrix, ptr %15, i32 0, i32 1
  %316 = load ptr, ptr %315, align 8, !tbaa !11
  %317 = getelementptr inbounds ptr, ptr %316, i64 9
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  %319 = getelementptr inbounds double, ptr %318, i64 9
  %320 = load double, ptr %319, align 8, !tbaa !13
  %321 = fdiv double %314, %320
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = getelementptr inbounds %class.Matrix, ptr %322, i32 0, i32 1
  %324 = load ptr, ptr %323, align 8, !tbaa !11
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds ptr, ptr %324, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = load i32, ptr %19, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds double, ptr %328, i64 %330
  store double %321, ptr %331, align 8, !tbaa !13
  br label %332

332:                                              ; preds = %304
  %333 = load i32, ptr %19, align 4, !tbaa !9
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %19, align 4, !tbaa !9
  br label %300, !llvm.loop !17

335:                                              ; preds = %303
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %16, align 4, !tbaa !9
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr %16, align 4, !tbaa !9
  %339 = load i32, ptr %17, align 4, !tbaa !9
  %340 = add nsw i32 %339, 3
  store i32 %340, ptr %17, align 4, !tbaa !9
  br label %283, !llvm.loop !18

341:                                              ; preds = %286
  %342 = load ptr, ptr %8, align 8, !tbaa !5
  %343 = icmp eq ptr %342, null
  br i1 %343, label %348, label %344

344:                                              ; preds = %341
  %345 = load ptr, ptr %342, align 8, !tbaa !19
  %346 = getelementptr inbounds ptr, ptr %345, i64 1
  %347 = load ptr, ptr %346, align 8
  call void %347(ptr noundef nonnull align 8 dereferenceable(24) %342) #8
  br label %348

348:                                              ; preds = %344, %341
  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) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret void

349:                                              ; preds = %295, %291
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %350

350:                                              ; preds = %349, %287
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %351

351:                                              ; preds = %350, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %352

352:                                              ; preds = %351
  %353 = load ptr, ptr %9, align 8
  %354 = load i32, ptr %10, align 4
  %355 = insertvalue { ptr, i32 } poison, ptr %353, 0
  %356 = insertvalue { ptr, i32 } %355, i32 %354, 1
  resume { ptr, i32 } %356
}

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS6Matrix", !6, i64 8, !10, i64 16, !10, i64 20}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}


; 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 void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17computeHomographySt6vectorIP16CornerDescriptorSaIS1_EES3_P6Matrix(ptr noundef nonnull %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Matrix, align 8
  %5 = alloca %class.Matrix, align 8
  %6 = alloca %class.Matrix, align 8
  %7 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %8 = trunc i64 %7 to i32
  %9 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
  %10 = shl nsw i32 %8, 1
  invoke void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %10, i32 noundef 9)
          to label %.preheader80 unwind label %13

.preheader80:                                     ; preds = %3
  %11 = icmp sgt i32 %8, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader80
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  %wide.trip.count = and i64 %7, 2147483647
  br label %15

._crit_edge:                                      ; preds = %15, %.preheader80
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %127 unwind label %204

13:                                               ; preds = %3
  %14 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 24) #11
  br label %212

15:                                               ; preds = %.lr.ph, %15
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %15 ]
  %16 = shl nuw nsw i64 %indvars.iv, 1
  %17 = or disjoint i64 %16, 1
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %19)
  %21 = fpext float %20 to double
  %22 = load ptr, ptr %12, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 %17
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  store double %21, ptr %25, align 8, !tbaa !12
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %27)
  %29 = fpext float %28 to double
  %30 = load ptr, ptr %12, align 8, !tbaa !9
  %31 = getelementptr inbounds ptr, ptr %30, i64 %17
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store double %29, ptr %33, align 8, !tbaa !12
  %34 = getelementptr inbounds i8, ptr %32, i64 24
  store double 1.000000e+00, ptr %34, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %32, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %35, i8 0, i64 24, i1 false)
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %37)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #9
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %40)
  %42 = fneg float %38
  %43 = fmul float %41, %42
  %44 = fpext float %43 to double
  %45 = load ptr, ptr %12, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 %17
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 56
  store double %44, ptr %48, align 8, !tbaa !12
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %50)
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #9
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %53)
  %55 = fneg float %51
  %56 = fmul float %54, %55
  %57 = fpext float %56 to double
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 %17
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 64
  store double %57, ptr %61, align 8, !tbaa !12
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #9
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %63)
  %65 = fneg float %64
  %66 = fpext float %65 to double
  %67 = load ptr, ptr %12, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 %17
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 72
  store double %66, ptr %70, align 8, !tbaa !12
  %71 = add nuw nsw i64 %16, 2
  %72 = getelementptr inbounds ptr, ptr %67, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %74, i8 0, i64 24, i1 false)
  %75 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %76)
  %78 = fpext float %77 to double
  %79 = load ptr, ptr %12, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 %71
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 32
  store double %78, ptr %82, align 8, !tbaa !12
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %84)
  %86 = fpext float %85 to double
  %87 = load ptr, ptr %12, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %87, i64 %71
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 40
  store double %86, ptr %90, align 8, !tbaa !12
  %91 = getelementptr inbounds i8, ptr %89, i64 48
  store double 1.000000e+00, ptr %91, align 8, !tbaa !12
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = tail call noundef float @_ZNK6Corner4getXEv(ptr noundef nonnull align 4 dereferenceable(88) %93)
  %95 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #9
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %96)
  %98 = fneg float %94
  %99 = fmul float %97, %98
  %100 = fpext float %99 to double
  %101 = load ptr, ptr %12, align 8, !tbaa !9
  %102 = getelementptr inbounds ptr, ptr %101, i64 %71
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 56
  store double %100, ptr %104, align 8, !tbaa !12
  %105 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #9
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %106)
  %108 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #9
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %109)
  %111 = fneg float %107
  %112 = fmul float %110, %111
  %113 = fpext float %112 to double
  %114 = load ptr, ptr %12, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %114, i64 %71
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 64
  store double %113, ptr %117, align 8, !tbaa !12
  %118 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #9
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = tail call noundef float @_ZNK6Corner4getYEv(ptr noundef nonnull align 4 dereferenceable(88) %119)
  %121 = fneg float %120
  %122 = fpext float %121 to double
  %123 = load ptr, ptr %12, align 8, !tbaa !9
  %124 = getelementptr inbounds ptr, ptr %123, i64 %71
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 72
  store double %122, ptr %126, align 8, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %15, !llvm.loop !14

127:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  invoke void @_ZN6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %128 unwind label %206

128:                                              ; preds = %127
  invoke void @_ZNK6Matrix3svdERS_S0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %.preheader79 unwind label %208

.preheader79:                                     ; preds = %128
  %129 = getelementptr inbounds i8, ptr %6, i64 8
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds i8, ptr %130, i64 72
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 72
  %134 = getelementptr inbounds i8, ptr %2, i64 8
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = getelementptr inbounds i8, ptr %135, i64 8
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %130, i64 8
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 72
  %141 = load double, ptr %140, align 8, !tbaa !12
  %142 = load double, ptr %133, align 8, !tbaa !12
  %143 = fdiv double %141, %142
  %144 = getelementptr inbounds i8, ptr %137, i64 8
  store double %143, ptr %144, align 8, !tbaa !12
  %145 = getelementptr inbounds i8, ptr %130, i64 16
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i64 72
  %148 = load double, ptr %147, align 8, !tbaa !12
  %149 = load double, ptr %133, align 8, !tbaa !12
  %150 = fdiv double %148, %149
  %151 = getelementptr inbounds i8, ptr %137, i64 16
  store double %150, ptr %151, align 8, !tbaa !12
  %152 = getelementptr inbounds i8, ptr %130, i64 24
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 72
  %155 = load double, ptr %154, align 8, !tbaa !12
  %156 = load double, ptr %133, align 8, !tbaa !12
  %157 = fdiv double %155, %156
  %158 = getelementptr inbounds i8, ptr %137, i64 24
  store double %157, ptr %158, align 8, !tbaa !12
  %159 = getelementptr inbounds i8, ptr %135, i64 16
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %130, i64 32
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 72
  %164 = load double, ptr %163, align 8, !tbaa !12
  %165 = load double, ptr %133, align 8, !tbaa !12
  %166 = fdiv double %164, %165
  %167 = getelementptr inbounds i8, ptr %160, i64 8
  store double %166, ptr %167, align 8, !tbaa !12
  %168 = getelementptr inbounds i8, ptr %130, i64 40
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 72
  %171 = load double, ptr %170, align 8, !tbaa !12
  %172 = load double, ptr %133, align 8, !tbaa !12
  %173 = fdiv double %171, %172
  %174 = getelementptr inbounds i8, ptr %160, i64 16
  store double %173, ptr %174, align 8, !tbaa !12
  %175 = getelementptr inbounds i8, ptr %130, i64 48
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %176, i64 72
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = load double, ptr %133, align 8, !tbaa !12
  %180 = fdiv double %178, %179
  %181 = getelementptr inbounds i8, ptr %160, i64 24
  store double %180, ptr %181, align 8, !tbaa !12
  %182 = getelementptr inbounds i8, ptr %135, i64 24
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %130, i64 56
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %185, i64 72
  %187 = load double, ptr %186, align 8, !tbaa !12
  %188 = load double, ptr %133, align 8, !tbaa !12
  %189 = fdiv double %187, %188
  %190 = getelementptr inbounds i8, ptr %183, i64 8
  store double %189, ptr %190, align 8, !tbaa !12
  %191 = getelementptr inbounds i8, ptr %130, i64 64
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %192, i64 72
  %194 = load double, ptr %193, align 8, !tbaa !12
  %195 = load double, ptr %133, align 8, !tbaa !12
  %196 = fdiv double %194, %195
  %197 = getelementptr inbounds i8, ptr %183, i64 16
  store double %196, ptr %197, align 8, !tbaa !12
  %198 = load double, ptr %133, align 8, !tbaa !12
  %199 = fdiv double %198, %198
  %200 = getelementptr inbounds i8, ptr %183, i64 24
  store double %199, ptr %200, align 8, !tbaa !12
  %201 = load ptr, ptr %9, align 8, !tbaa !16
  %202 = getelementptr inbounds i8, ptr %201, i64 8
  %203 = load ptr, ptr %202, align 8
  call void %203(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  ret void

204:                                              ; preds = %._crit_edge
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %211

206:                                              ; preds = %127
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %210

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

210:                                              ; preds = %208, %206
  %.pn = phi { ptr, i32 } [ %209, %208 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  br label %211

211:                                              ; preds = %210, %204
  %.pn.pn = phi { ptr, i32 } [ %.pn, %210 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  br label %212

212:                                              ; preds = %211, %13
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %211 ], [ %14, %13 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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


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