; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/AffineRegion._c8c042a5 (EER6Matrix)

; 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 }
%class.Segment = type { %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<ChainPoint *, std::allocator<ChainPoint *>>::_Vector_impl" }
%"struct.std::_Vector_base<ChainPoint *, std::allocator<ChainPoint *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ChainPoint *, std::allocator<ChainPoint *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ChainPoint *, std::allocator<ChainPoint *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ChainPoint = type { i32, i32, float, float }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z13getEllipseABCffffR6MatrixRf(float noundef, float noundef, float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15evaluateEllipseP12ImageContentii6MatrixfRS1_RfS3_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17findAffineTangentP12ImageContentS0_iiiiRfSt6vectorIP7SegmentSaIS4_EER6Matrix(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef %7, ptr noundef nonnull align 8 dereferenceable(24) %8) #5 personality ptr @__gxx_personality_v0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca %class.Matrix, align 8
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca float, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca float, align 4
  %54 = alloca float, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca ptr, align 8
  %59 = alloca i32, align 4
  %60 = alloca float, align 4
  %61 = alloca %class.Matrix, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i32 %2, ptr %13, align 4, !tbaa !9
  store i32 %3, ptr %14, align 4, !tbaa !9
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %129, %9
  %63 = load i32, ptr %24, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = call noundef i64 @_ZNKSt6vectorIP7SegmentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %66 = icmp ult i64 %64, %65
  br i1 %66, label %67, label %70

67:                                               ; preds = %62
  %68 = load i32, ptr %22, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br label %70

70:                                               ; preds = %67, %62
  %71 = phi i1 [ false, %62 ], [ %69, %67 ]
  br i1 %71, label %73, label %72

72:                                               ; preds = %70
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %132

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %125, %73
  %75 = load i32, ptr %26, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = load i32, ptr %24, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %78) #7
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.Segment, ptr %80, i32 0, i32 0
  %82 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #7
  %83 = icmp ult i64 %76, %82
  br i1 %83, label %84, label %87

84:                                               ; preds = %74
  %85 = load i32, ptr %22, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br label %87

87:                                               ; preds = %84, %74
  %88 = phi i1 [ false, %74 ], [ %86, %84 ]
  br i1 %88, label %90, label %89

89:                                               ; preds = %87
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %128

90:                                               ; preds = %87
  %91 = load i32, ptr %24, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %92) #7
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.Segment, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %26, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #7
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.ChainPoint, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 4, !tbaa !11
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = icmp eq i32 %101, %102
  br i1 %103, label %104, label %124

104:                                              ; preds = %90
  %105 = load i32, ptr %24, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %106) #7
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.Segment, ptr %108, i32 0, i32 0
  %110 = load i32, ptr %26, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #7
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.ChainPoint, ptr %113, i32 0, i32 1
  %115 = load i32, ptr %114, align 4, !tbaa !14
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = icmp eq i32 %115, %116
  br i1 %117, label %118, label %124

118:                                              ; preds = %104
  store i32 0, ptr %22, align 4, !tbaa !9
  %119 = load i32, ptr %24, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %120) #7
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  store ptr %122, ptr %20, align 8, !tbaa !5
  %123 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %123, ptr %23, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %118, %104, %90
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %26, align 4, !tbaa !9
  %127 = add i32 %126, 1
  store i32 %127, ptr %26, align 4, !tbaa !9
  br label %74, !llvm.loop !15

128:                                              ; preds = %89
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %24, align 4, !tbaa !9
  %131 = add i32 %130, 1
  store i32 %131, ptr %24, align 4, !tbaa !9
  br label %62, !llvm.loop !17

132:                                              ; preds = %72
  store i32 1, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %199, %132
  %134 = load i32, ptr %27, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = call noundef i64 @_ZNKSt6vectorIP7SegmentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %137 = icmp ult i64 %135, %136
  br i1 %137, label %138, label %141

138:                                              ; preds = %133
  %139 = load i32, ptr %22, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br label %141

141:                                              ; preds = %138, %133
  %142 = phi i1 [ false, %133 ], [ %140, %138 ]
  br i1 %142, label %144, label %143

143:                                              ; preds = %141
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %202

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %195, %144
  %146 = load i32, ptr %28, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = load i32, ptr %27, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %149) #7
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.Segment, ptr %151, i32 0, i32 0
  %153 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %152) #7
  %154 = icmp ult i64 %147, %153
  br i1 %154, label %155, label %158

155:                                              ; preds = %145
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br label %158

158:                                              ; preds = %155, %145
  %159 = phi i1 [ false, %145 ], [ %157, %155 ]
  br i1 %159, label %161, label %160

160:                                              ; preds = %158
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %198

161:                                              ; preds = %158
  %162 = load i32, ptr %27, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %163) #7
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = getelementptr inbounds %class.Segment, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %28, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #7
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = getelementptr inbounds %class.ChainPoint, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !11
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = icmp eq i32 %172, %173
  br i1 %174, label %175, label %194

175:                                              ; preds = %161
  %176 = load i32, ptr %27, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %177) #7
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds %class.Segment, ptr %179, i32 0, i32 0
  %181 = load i32, ptr %28, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #7
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = getelementptr inbounds %class.ChainPoint, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !14
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = icmp eq i32 %186, %187
  br i1 %188, label %189, label %194

189:                                              ; preds = %175
  store i32 0, ptr %22, align 4, !tbaa !9
  %190 = load i32, ptr %27, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %191) #7
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  store ptr %193, ptr %21, align 8, !tbaa !5
  br label %194

194:                                              ; preds = %189, %175, %161
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %28, align 4, !tbaa !9
  %197 = add i32 %196, 1
  store i32 %197, ptr %28, align 4, !tbaa !9
  br label %145, !llvm.loop !18

198:                                              ; preds = %160
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %27, align 4, !tbaa !9
  %201 = add i32 %200, 1
  store i32 %201, ptr %27, align 4, !tbaa !9
  br label %133, !llvm.loop !19

202:                                              ; preds = %143
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  store i32 0, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %434

206:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store float 1.000000e+03, ptr %29, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store float 0.000000e+00, ptr %30, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store float 0.000000e+00, ptr %31, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = sub nsw i32 %207, %208
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = sub nsw i32 %210, %211
  %213 = mul nsw i32 %209, %212
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = load i32, ptr %16, align 4, !tbaa !9
  %216 = sub nsw i32 %214, %215
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %16, align 4, !tbaa !9
  %219 = sub nsw i32 %217, %218
  %220 = mul nsw i32 %216, %219
  %221 = add nsw i32 %213, %220
  %222 = sitofp i32 %221 to float
  %223 = call noundef float @_ZSt4sqrtf(float noundef %222)
  store float %223, ptr %40, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #7
  call void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %42, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  store float 1.000000e+01, ptr %47, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 1, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  %224 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %224, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  %225 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %225, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  store float 0x3FE0C15240000000, ptr %54, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  %226 = load i32, ptr %23, align 4, !tbaa !9
  %227 = sub nsw i32 %226, 10
  store i32 %227, ptr %55, align 4, !tbaa !9
  %228 = load i32, ptr %55, align 4, !tbaa !9
  %229 = icmp ult i32 %228, 2
  br i1 %229, label %230, label %231

230:                                              ; preds = %206
  store i32 2, ptr %55, align 4, !tbaa !9
  br label %231

231:                                              ; preds = %230, %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #7
  %232 = load i32, ptr %23, align 4, !tbaa !9
  %233 = add nsw i32 %232, 10
  store i32 %233, ptr %56, align 4, !tbaa !9
  %234 = load i32, ptr %56, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = getelementptr inbounds %class.Segment, ptr %236, i32 0, i32 0
  %238 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %237) #7
  %239 = sub i64 %238, 2
  %240 = icmp ugt i64 %235, %239
  br i1 %240, label %241, label %247

241:                                              ; preds = %231
  %242 = load ptr, ptr %20, align 8, !tbaa !5
  %243 = getelementptr inbounds %class.Segment, ptr %242, i32 0, i32 0
  %244 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #7
  %245 = sub i64 %244, 2
  %246 = trunc i64 %245 to i32
  store i32 %246, ptr %56, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %241, %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  %248 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %248, ptr %57, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %424, %247
  %250 = load i32, ptr %57, align 4, !tbaa !9
  %251 = load i32, ptr %56, align 4, !tbaa !9
  %252 = icmp ult i32 %250, %251
  br i1 %252, label %253, label %256

253:                                              ; preds = %249
  %254 = load i32, ptr %48, align 4, !tbaa !9
  %255 = icmp ne i32 %254, 0
  br label %256

256:                                              ; preds = %253, %249
  %257 = phi i1 [ false, %249 ], [ %255, %253 ]
  br i1 %257, label %259, label %258

258:                                              ; preds = %256
  store i32 14, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  br label %428

259:                                              ; preds = %256
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = getelementptr inbounds %class.Segment, ptr %260, i32 0, i32 0
  %262 = load i32, ptr %57, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %263) #7
  %265 = load ptr, ptr %264, align 8, !tbaa !5
  %266 = getelementptr inbounds %class.ChainPoint, ptr %265, i32 0, i32 0
  %267 = load i32, ptr %266, align 4, !tbaa !11
  store i32 %267, ptr %51, align 4, !tbaa !9
  %268 = load ptr, ptr %20, align 8, !tbaa !5
  %269 = getelementptr inbounds %class.Segment, ptr %268, i32 0, i32 0
  %270 = load i32, ptr %57, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %269, i64 noundef %271) #7
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = getelementptr inbounds %class.ChainPoint, ptr %273, i32 0, i32 1
  %275 = load i32, ptr %274, align 4, !tbaa !14
  store i32 %275, ptr %52, align 4, !tbaa !9
  %276 = load ptr, ptr %20, align 8, !tbaa !5
  %277 = getelementptr inbounds %class.Segment, ptr %276, i32 0, i32 0
  %278 = load i32, ptr %57, align 4, !tbaa !9
  %279 = add i32 %278, 2
  %280 = zext i32 %279 to i64
  %281 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %280) #7
  %282 = load ptr, ptr %281, align 8, !tbaa !5
  %283 = getelementptr inbounds %class.ChainPoint, ptr %282, i32 0, i32 1
  %284 = load i32, ptr %283, align 4, !tbaa !14
  %285 = load ptr, ptr %20, align 8, !tbaa !5
  %286 = getelementptr inbounds %class.Segment, ptr %285, i32 0, i32 0
  %287 = load i32, ptr %57, align 4, !tbaa !9
  %288 = sub i32 %287, 2
  %289 = zext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %286, i64 noundef %289) #7
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  %292 = getelementptr inbounds %class.ChainPoint, ptr %291, i32 0, i32 1
  %293 = load i32, ptr %292, align 4, !tbaa !14
  %294 = sub nsw i32 %284, %293
  %295 = sitofp i32 %294 to float
  store float %295, ptr %30, align 4, !tbaa !20
  %296 = load ptr, ptr %20, align 8, !tbaa !5
  %297 = getelementptr inbounds %class.Segment, ptr %296, i32 0, i32 0
  %298 = load i32, ptr %57, align 4, !tbaa !9
  %299 = add i32 %298, 2
  %300 = zext i32 %299 to i64
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %297, i64 noundef %300) #7
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = getelementptr inbounds %class.ChainPoint, ptr %302, i32 0, i32 0
  %304 = load i32, ptr %303, align 4, !tbaa !11
  %305 = load ptr, ptr %20, align 8, !tbaa !5
  %306 = getelementptr inbounds %class.Segment, ptr %305, i32 0, i32 0
  %307 = load i32, ptr %57, align 4, !tbaa !9
  %308 = sub i32 %307, 2
  %309 = zext i32 %308 to i64
  %310 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %306, i64 noundef %309) #7
  %311 = load ptr, ptr %310, align 8, !tbaa !5
  %312 = getelementptr inbounds %class.ChainPoint, ptr %311, i32 0, i32 0
  %313 = load i32, ptr %312, align 4, !tbaa !11
  %314 = sub nsw i32 %304, %313
  %315 = sitofp i32 %314 to float
  store float %315, ptr %31, align 4, !tbaa !20
  %316 = load float, ptr %31, align 4, !tbaa !20
  %317 = fcmp une float %316, 0.000000e+00
  br i1 %317, label %318, label %322

318:                                              ; preds = %259
  %319 = load float, ptr %30, align 4, !tbaa !20
  %320 = load float, ptr %31, align 4, !tbaa !20
  %321 = fdiv float %319, %320
  store float %321, ptr %29, align 4, !tbaa !20
  br label %323

322:                                              ; preds = %259
  store float 1.000000e+06, ptr %29, align 4, !tbaa !20
  br label %323

323:                                              ; preds = %322, %318
  %324 = load float, ptr %30, align 4, !tbaa !20
  %325 = load float, ptr %31, align 4, !tbaa !20
  %326 = invoke noundef float @_ZSt5atan2ff(float noundef %324, float noundef %325)
          to label %327 unwind label %354

327:                                              ; preds = %323
  %328 = fneg float %326
  store float %328, ptr %32, align 4, !tbaa !20
  %329 = load i32, ptr %52, align 4, !tbaa !9
  %330 = load i32, ptr %14, align 4, !tbaa !9
  %331 = sub nsw i32 %329, %330
  %332 = sitofp i32 %331 to float
  %333 = load i32, ptr %51, align 4, !tbaa !9
  %334 = load i32, ptr %13, align 4, !tbaa !9
  %335 = sub nsw i32 %333, %334
  %336 = sitofp i32 %335 to float
  %337 = invoke noundef float @_ZSt5atan2ff(float noundef %332, float noundef %336)
          to label %338 unwind label %354

338:                                              ; preds = %327
  store float %337, ptr %33, align 4, !tbaa !20
  %339 = load float, ptr %32, align 4, !tbaa !20
  %340 = fneg float %339
  %341 = load float, ptr %33, align 4, !tbaa !20
  %342 = fsub float %340, %341
  %343 = invoke noundef float @_ZSt4fabsf(float noundef %342)
          to label %344 unwind label %354

344:                                              ; preds = %338
  store float %343, ptr %53, align 4, !tbaa !20
  %345 = load float, ptr %53, align 4, !tbaa !20
  %346 = fpext float %345 to double
  %347 = fcmp ogt double %346, 0x400921FB54442D18
  br i1 %347, label %348, label %358

348:                                              ; preds = %344
  %349 = load float, ptr %53, align 4, !tbaa !20
  %350 = fpext float %349 to double
  %351 = fsub double 0x401921FB544486E0, %350
  %352 = call double @llvm.fabs.f64(double %351)
  %353 = fptrunc double %352 to float
  store float %353, ptr %53, align 4, !tbaa !20
  br label %358

354:                                              ; preds = %338, %327, %323
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %58, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %59, align 4
  br label %427

358:                                              ; preds = %348, %344
  %359 = load float, ptr %53, align 4, !tbaa !20
  %360 = fpext float %359 to double
  %361 = fsub double 0x3FF921FB54442D18, %360
  %362 = call double @llvm.fabs.f64(double %361)
  %363 = fptrunc double %362 to float
  store float %363, ptr %53, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  %364 = load float, ptr %40, align 4, !tbaa !20
  %365 = fpext float %364 to double
  %366 = fdiv double %365, 3.000000e+00
  %367 = fptrunc double %366 to float
  store float %367, ptr %60, align 4, !tbaa !20
  br label %368

368:                                              ; preds = %417, %358
  %369 = load float, ptr %60, align 4, !tbaa !20
  %370 = load float, ptr %40, align 4, !tbaa !20
  %371 = fmul float %370, 3.000000e+00
  %372 = fcmp olt float %369, %371
  br i1 %372, label %373, label %380

373:                                              ; preds = %368
  %374 = load float, ptr %53, align 4, !tbaa !20
  %375 = load float, ptr %54, align 4, !tbaa !20
  %376 = fcmp olt float %374, %375
  br i1 %376, label %377, label %380

377:                                              ; preds = %373
  %378 = load i32, ptr %48, align 4, !tbaa !9
  %379 = icmp ne i32 %378, 0
  br label %380

380:                                              ; preds = %377, %373, %368
  %381 = phi i1 [ false, %373 ], [ false, %368 ], [ %379, %377 ]
  br i1 %381, label %383, label %382

382:                                              ; preds = %380
  store i32 17, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  br label %423

383:                                              ; preds = %380
  %384 = load i32, ptr %51, align 4, !tbaa !9
  %385 = load i32, ptr %13, align 4, !tbaa !9
  %386 = sub nsw i32 %384, %385
  %387 = sitofp i32 %386 to float
  %388 = load i32, ptr %52, align 4, !tbaa !9
  %389 = load i32, ptr %14, align 4, !tbaa !9
  %390 = sub nsw i32 %388, %389
  %391 = sitofp i32 %390 to float
  %392 = load float, ptr %29, align 4, !tbaa !20
  %393 = load float, ptr %60, align 4, !tbaa !20
  %394 = invoke noundef i32 @_Z13getEllipseABCffffR6MatrixRf(float noundef %387, float noundef %391, float noundef %392, float noundef %393, ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %395 unwind label %398

395:                                              ; preds = %383
  %396 = icmp ne i32 %394, 0
  br i1 %396, label %402, label %397

397:                                              ; preds = %395
  br label %417

398:                                              ; preds = %402, %383
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %58, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %59, align 4
  br label %422

402:                                              ; preds = %395
  %403 = load ptr, ptr %12, align 8, !tbaa !5
  %404 = load i32, ptr %13, align 4, !tbaa !9
  %405 = load i32, ptr %14, align 4, !tbaa !9
  invoke void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %406 unwind label %398

406:                                              ; preds = %402
  %407 = load float, ptr %41, align 4, !tbaa !20
  %408 = load ptr, ptr %19, align 8, !tbaa !5
  %409 = load ptr, ptr %17, align 8, !tbaa !5
  %410 = invoke noundef i32 @_Z15evaluateEllipseP12ImageContentii6MatrixfRS1_RfS3_(ptr noundef %403, i32 noundef %404, i32 noundef %405, ptr noundef %61, float noundef %407, ptr noundef nonnull align 8 dereferenceable(24) %408, ptr noundef nonnull align 4 dereferenceable(4) %409, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %411 unwind label %412

411:                                              ; preds = %406
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  br label %416

412:                                              ; preds = %406
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %58, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %59, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  br label %422

416:                                              ; preds = %411
  br label %417

417:                                              ; preds = %416, %397
  %418 = load float, ptr %60, align 4, !tbaa !20
  %419 = fpext float %418 to double
  %420 = fmul double %419, 1.100000e+00
  %421 = fptrunc double %420 to float
  store float %421, ptr %60, align 4, !tbaa !20
  br label %368, !llvm.loop !21

422:                                              ; preds = %412, %398
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  br label %427

423:                                              ; preds = %382
  br label %424

424:                                              ; preds = %423
  %425 = load i32, ptr %57, align 4, !tbaa !9
  %426 = add i32 %425, 1
  store i32 %426, ptr %57, align 4, !tbaa !9
  br label %249, !llvm.loop !22

427:                                              ; preds = %422, %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %436

428:                                              ; preds = %258
  %429 = load float, ptr %47, align 4, !tbaa !20
  %430 = fcmp olt float %429, 1.000000e+00
  br i1 %430, label %431, label %432

431:                                              ; preds = %428
  store i32 1, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %433

432:                                              ; preds = %428
  store i32 0, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %433

433:                                              ; preds = %432, %431
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %434

434:                                              ; preds = %433, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %435 = load i32, ptr %10, align 4
  ret i32 %435

436:                                              ; preds = %427
  %437 = load ptr, ptr %58, align 8
  %438 = load i32, ptr %59, align 4
  %439 = insertvalue { ptr, i32 } poison, ptr %437, 0
  %440 = insertvalue { ptr, i32 } %439, i32 %438, 1
  resume { ptr, i32 } %440
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { 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, !10, i64 0}
!12 = !{!"_ZTS10ChainPoint", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 12}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !10, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!13, !13, i64 0}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Matrix = type { ptr, ptr, i32, i32 }

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

; Function Attrs: 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 noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z13getEllipseABCffffR6MatrixRf(float noundef, float noundef, float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15evaluateEllipseP12ImageContentii6MatrixfRS1_RfS3_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z17findAffineTangentP12ImageContentS0_iiiiRfSt6vectorIP7SegmentSaIS4_EER6Matrix(ptr nocapture noundef readnone %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull %7, ptr noundef nonnull align 8 dereferenceable(24) %8) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %10 = alloca float, align 4
  %11 = alloca %class.Matrix, align 8
  %12 = alloca float, align 4
  %13 = alloca %class.Matrix, align 8
  %14 = tail call noundef i64 @_ZNKSt6vectorIP7SegmentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not155 = icmp eq i64 %14, 0
  br i1 %.not155, label %.preheader126, label %.preheader127

.preheader127:                                    ; preds = %9, %._crit_edge
  %15 = phi i64 [ %21, %._crit_edge ], [ 0, %9 ]
  %.0104135 = phi ptr [ %.1105.lcssa, %._crit_edge ], [ undef, %9 ]
  %.0109134 = phi i32 [ %.1110.lcssa, %._crit_edge ], [ 0, %9 ]
  %.0112133 = phi i32 [ %20, %._crit_edge ], [ 0, %9 ]
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15) #7
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %.not156 = icmp eq i64 %18, 0
  br i1 %.not156, label %._crit_edge, label %.lr.ph

.preheader126:                                    ; preds = %._crit_edge, %9
  %.0109.lcssa = phi i32 [ 0, %9 ], [ %.1110.lcssa, %._crit_edge ]
  %.0104.lcssa = phi ptr [ undef, %9 ], [ %.1105.lcssa, %._crit_edge ]
  %19 = tail call noundef i64 @_ZNKSt6vectorIP7SegmentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not157 = icmp eq i64 %19, 0
  br i1 %.not157, label %._crit_edge143, label %.preheader

._crit_edge:                                      ; preds = %44, %.preheader127
  %.1110.lcssa = phi i32 [ %.0109134, %.preheader127 ], [ %.2111, %44 ]
  %.1107.lcssa = phi i32 [ 1, %.preheader127 ], [ %.2108, %44 ]
  %.1105.lcssa = phi ptr [ %.0104135, %.preheader127 ], [ %.2, %44 ]
  %20 = add i32 %.0112133, 1
  %21 = zext i32 %20 to i64
  %22 = tail call noundef i64 @_ZNKSt6vectorIP7SegmentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %23 = icmp ugt i64 %22, %21
  %24 = icmp ne i32 %.1107.lcssa, 0
  %25 = and i1 %24, %23
  br i1 %25, label %.preheader127, label %.preheader126, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader127, %44
  %26 = phi i64 [ %47, %44 ], [ 0, %.preheader127 ]
  %.1105130 = phi ptr [ %.2, %44 ], [ %.0104135, %.preheader127 ]
  %.1110129 = phi i32 [ %.2111, %44 ], [ %.0109134, %.preheader127 ]
  %.0113128 = phi i32 [ %46, %44 ], [ 0, %.preheader127 ]
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15) #7
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %26) #7
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = icmp eq i32 %31, %4
  br i1 %32, label %33, label %44

33:                                               ; preds = %.lr.ph
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15) #7
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %26) #7
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = icmp eq i32 %39, %5
  br i1 %40, label %41, label %44

41:                                               ; preds = %33
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15) #7
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %.lr.ph, %33, %41
  %.2111 = phi i32 [ %.0113128, %41 ], [ %.1110129, %33 ], [ %.1110129, %.lr.ph ]
  %45 = phi i1 [ false, %41 ], [ true, %33 ], [ true, %.lr.ph ]
  %.2108 = phi i32 [ 0, %41 ], [ 1, %33 ], [ 1, %.lr.ph ]
  %.2 = phi ptr [ %43, %41 ], [ %.1105130, %33 ], [ %.1105130, %.lr.ph ]
  %46 = add i32 %.0113128, 1
  %47 = zext i32 %46 to i64
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15) #7
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = icmp ugt i64 %50, %47
  %52 = and i1 %45, %51
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !16

.preheader:                                       ; preds = %.preheader126, %._crit_edge140
  %53 = phi i64 [ %58, %._crit_edge140 ], [ 0, %.preheader126 ]
  %.0114142 = phi i32 [ %57, %._crit_edge140 ], [ 0, %.preheader126 ]
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %53) #7
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %.not158 = icmp eq i64 %56, 0
  br i1 %.not158, label %._crit_edge140, label %.lr.ph139

._crit_edge143:                                   ; preds = %._crit_edge140, %.preheader126
  %.not = icmp eq ptr %.0104.lcssa, null
  br i1 %.not, label %181, label %89

._crit_edge140:                                   ; preds = %80, %.preheader
  %.4.lcssa = phi i32 [ 1, %.preheader ], [ %.5, %80 ]
  %57 = add i32 %.0114142, 1
  %58 = zext i32 %57 to i64
  %59 = tail call noundef i64 @_ZNKSt6vectorIP7SegmentSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %60 = icmp ugt i64 %59, %58
  %61 = icmp ne i32 %.4.lcssa, 0
  %62 = and i1 %61, %60
  br i1 %62, label %.preheader, label %._crit_edge143, !llvm.loop !17

.lr.ph139:                                        ; preds = %.preheader, %80
  %63 = phi i64 [ %83, %80 ], [ 0, %.preheader ]
  %.0115138 = phi i32 [ %82, %80 ], [ 0, %.preheader ]
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %53) #7
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %63) #7
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = icmp eq i32 %68, %2
  br i1 %69, label %70, label %80

70:                                               ; preds = %.lr.ph139
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %53) #7
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %63) #7
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !15
  %77 = icmp eq i32 %76, %3
  br i1 %77, label %78, label %80

78:                                               ; preds = %70
  %79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %53) #7
  br label %80

80:                                               ; preds = %.lr.ph139, %70, %78
  %81 = phi i1 [ false, %78 ], [ true, %70 ], [ true, %.lr.ph139 ]
  %.5 = phi i32 [ 0, %78 ], [ 1, %70 ], [ 1, %.lr.ph139 ]
  %82 = add i32 %.0115138, 1
  %83 = zext i32 %82 to i64
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP7SegmentSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %53) #7
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = icmp ugt i64 %86, %83
  %88 = and i1 %81, %87
  br i1 %88, label %.lr.ph139, label %._crit_edge140, !llvm.loop !18

89:                                               ; preds = %._crit_edge143
  %90 = sub nsw i32 %2, %4
  %91 = mul nsw i32 %90, %90
  %92 = sub nsw i32 %3, %5
  %93 = mul nsw i32 %92, %92
  %94 = add nuw nsw i32 %93, %91
  %95 = uitofp nneg i32 %94 to float
  %96 = tail call noundef float @_ZSt4sqrtf(float noundef %95)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2, i32 noundef 2, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store float 1.000000e+01, ptr %12, align 4, !tbaa !19
  %97 = add i32 %.0109.lcssa, -10
  %spec.store.select = call i32 @llvm.umax.i32(i32 %97, i32 2)
  %98 = add nsw i32 %.0109.lcssa, 10
  %99 = zext i32 %98 to i64
  %100 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa) #7
  %101 = add i64 %100, -2
  %102 = icmp ult i64 %101, %99
  br i1 %102, label %103, label %107

103:                                              ; preds = %89
  %104 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa) #7
  %105 = trunc i64 %104 to i32
  %106 = add i32 %105, -2
  br label %107

107:                                              ; preds = %103, %89
  %.0101 = phi i32 [ %106, %103 ], [ %98, %89 ]
  %108 = icmp ult i32 %spec.store.select, %.0101
  br i1 %108, label %.lr.ph153, label %._crit_edge154

.lr.ph153:                                        ; preds = %107
  %109 = fdiv float %96, 3.000000e+00
  %110 = fmul float %96, 3.000000e+00
  %111 = fcmp olt float %109, %110
  %112 = call i32 @llvm.umax.i32(i32 %97, i32 2)
  %umax = zext i32 %112 to i64
  %113 = add i32 %.0101, %112
  %114 = sub i32 %113, %spec.store.select
  br label %117

._crit_edge154:                                   ; preds = %.critedge, %107
  %115 = load float, ptr %12, align 4, !tbaa !19
  %116 = fcmp olt float %115, 1.000000e+00
  %. = zext i1 %116 to i32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %181

117:                                              ; preds = %.lr.ph153, %.critedge
  %indvars.iv = phi i64 [ %umax, %.lr.ph153 ], [ %indvars.iv.next, %.critedge ]
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa, i64 noundef %indvars.iv) #7
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %119, align 4, !tbaa !11
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa, i64 noundef %indvars.iv) #7
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 4
  %124 = load i32, ptr %123, align 4, !tbaa !15
  %125 = add nuw i64 %indvars.iv, 2
  %126 = and i64 %125, 4294967295
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa, i64 noundef %126) #7
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 4
  %130 = load i32, ptr %129, align 4, !tbaa !15
  %131 = add nsw i64 %indvars.iv, -2
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa, i64 noundef %131) #7
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 4
  %135 = load i32, ptr %134, align 4, !tbaa !15
  %136 = sub nsw i32 %130, %135
  %137 = sitofp i32 %136 to float
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa, i64 noundef %126) #7
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !11
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.0104.lcssa, i64 noundef %131) #7
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = load i32, ptr %142, align 4, !tbaa !11
  %144 = sub nsw i32 %140, %143
  %145 = sitofp i32 %144 to float
  %.not123 = icmp eq i32 %140, %143
  %146 = fdiv float %137, %145
  %.0116 = select i1 %.not123, float 1.000000e+06, float %146
  %147 = call noundef float @_ZSt5atan2ff(float noundef %137, float noundef %145)
  %148 = sub nsw i32 %124, %3
  %149 = sitofp i32 %148 to float
  %150 = sub nsw i32 %120, %2
  %151 = sitofp i32 %150 to float
  %152 = call noundef float @_ZSt5atan2ff(float noundef %149, float noundef %151)
  %153 = fsub float %147, %152
  %154 = call noundef float @_ZSt4fabsf(float noundef %153)
  %155 = fpext float %154 to double
  %156 = fcmp ogt double %155, 0x400921FB54442D18
  %157 = fsub double 0x401921FB544486E0, %155
  %158 = fptrunc double %157 to float
  %159 = call float @llvm.fabs.f32(float %158)
  %.0103 = select i1 %156, float %159, float %154
  %160 = fpext float %.0103 to double
  %161 = fsub double 0x3FF921FB54442D18, %160
  %162 = fptrunc double %161 to float
  %163 = call float @llvm.fabs.f32(float %162)
  %164 = fcmp olt float %163, 0x3FE0C15240000000
  %or.cond144 = select i1 %111, i1 %164, i1 false
  br i1 %or.cond144, label %.lr.ph147.split, label %.critedge

.critedge:                                        ; preds = %175, %117
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %114, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge154, label %117, !llvm.loop !20

.lr.ph147.split:                                  ; preds = %117, %175
  %.0145 = phi float [ %178, %175 ], [ %109, %117 ]
  %165 = invoke noundef i32 @_Z13getEllipseABCffffR6MatrixRf(float noundef %151, float noundef %149, float noundef %.0116, float noundef %.0145, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %166 unwind label %.split

166:                                              ; preds = %.lr.ph147.split
  %.not124 = icmp eq i32 %165, 0
  br i1 %.not124, label %175, label %168

.split:                                           ; preds = %168, %.lr.ph147.split
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %180

168:                                              ; preds = %166
  invoke void @_ZN6MatrixC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %169 unwind label %.split

169:                                              ; preds = %168
  %170 = load float, ptr %10, align 4, !tbaa !19
  %171 = invoke noundef i32 @_Z15evaluateEllipseP12ImageContentii6MatrixfRS1_RfS3_(ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull %13, float noundef %170, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %172 unwind label %173

172:                                              ; preds = %169
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %175

173:                                              ; preds = %169
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %180

175:                                              ; preds = %166, %172
  %176 = fpext float %.0145 to double
  %177 = fmul double %176, 1.100000e+00
  %178 = fptrunc double %177 to float
  %179 = fcmp ogt float %110, %178
  br i1 %179, label %.lr.ph147.split, label %.critedge, !llvm.loop !21

180:                                              ; preds = %.split, %173
  %.pn = phi { ptr, i32 } [ %174, %173 ], [ %167, %.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  resume { ptr, i32 } %.pn

181:                                              ; preds = %._crit_edge143, %._crit_edge154
  %.1 = phi i32 [ %., %._crit_edge154 ], [ 0, %._crit_edge143 ]
  ret i32 %.1
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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 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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS10ChainPoint", !13, i64 0, !13, i64 4, !14, i64 8, !14, i64 12}
!13 = !{!"int", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!12, !13, i64 4}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass