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

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }
%class.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1

; 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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #8

declare void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8drawLineP12ImageContentiiiif(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) #9

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9drawPatchP7SegmentS0_6Matrixiifii(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, i32 noundef %6, i32 noundef %7) #3 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store float %5, ptr %14, align 4, !tbaa !11
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %12, align 4, !tbaa !9
  %28 = sub nsw i32 %26, %27
  %29 = sitofp i32 %28 to float
  %30 = load i32, ptr %15, align 4, !tbaa !9
  %31 = load i32, ptr %12, align 4, !tbaa !9
  %32 = sub nsw i32 %30, %31
  %33 = sitofp i32 %32 to float
  %34 = load i32, ptr %16, align 4, !tbaa !9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = sub nsw i32 %34, %35
  %37 = load i32, ptr %16, align 4, !tbaa !9
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = sub nsw i32 %37, %38
  %40 = mul nsw i32 %36, %39
  %41 = sitofp i32 %40 to float
  %42 = call float @llvm.fmuladd.f32(float %29, float %33, float %41)
  %43 = call noundef float @_ZSt4sqrtf(float noundef %42)
  %44 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %43, float 1.000000e+00)
  %45 = fptosi float %44 to i32
  store i32 %45, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %46 = load i32, ptr %17, align 4, !tbaa !9
  %47 = ashr i32 %46, 1
  store i32 %47, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %48 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #11
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN12ImageContentC2Ejjf(ptr noundef nonnull align 8 dereferenceable(80) %48, i32 noundef %49, i32 noundef %50, float noundef 0.000000e+00)
          to label %51 unwind label %104

51:                                               ; preds = %8
  store ptr %48, ptr %19, align 8, !tbaa !5
  %52 = load ptr, ptr %19, align 8, !tbaa !5
  %53 = load i32, ptr %18, align 4, !tbaa !9
  %54 = load i32, ptr %18, align 4, !tbaa !9
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = add nsw i32 %55, %56
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = sub nsw i32 %57, %58
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = add nsw i32 %60, %61
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = sub nsw i32 %62, %63
  call void @_Z8drawLineP12ImageContentiiiif(ptr noundef %52, i32 noundef %53, i32 noundef %54, i32 noundef %59, i32 noundef %64, float noundef 1.000000e+02)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.26)
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = add nsw i32 %66, %67
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = sub nsw i32 %68, %69
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %65, i32 noundef %70)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.27)
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = add nsw i32 %73, %74
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = sub nsw i32 %75, %76
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %72, i32 noundef %77)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = load i32, ptr %18, align 4, !tbaa !9
  %83 = load float, ptr %14, align 4, !tbaa !11
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 1)
  %85 = load double, ptr %84, align 8, !tbaa !13
  %86 = fptrunc double %85 to float
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 2)
  %88 = load double, ptr %87, align 8, !tbaa !13
  %89 = fptrunc double %88 to float
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 1)
  %91 = load double, ptr %90, align 8, !tbaa !13
  %92 = fptrunc double %91 to float
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 2)
  %94 = load double, ptr %93, align 8, !tbaa !13
  %95 = fptrunc double %94 to float
  call void @_Z14displayEllipseP12ImageContentiiffffff(ptr noundef %80, i32 noundef %81, i32 noundef %82, float noundef %83, float noundef %86, float noundef %89, float noundef %92, float noundef %95, float noundef 1.000000e+02)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %158, %51
  %97 = load i32, ptr %24, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.Segment, ptr %99, i32 0, i32 0
  %101 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #10
  %102 = icmp ult i64 %98, %101
  br i1 %102, label %108, label %103

103:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  br label %161

104:                                              ; preds = %8
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %20, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %48, i64 noundef 80) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %260

108:                                              ; preds = %96
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %class.Segment, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %24, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #10
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds %class.ChainPoint, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !15
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = sub nsw i32 %116, %117
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = add nsw i32 %118, %119
  store i32 %120, ptr %22, align 4, !tbaa !9
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.Segment, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %24, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #10
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds %class.ChainPoint, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !17
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = sub nsw i32 %128, %129
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = add nsw i32 %130, %131
  store i32 %132, ptr %23, align 4, !tbaa !9
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %135, label %157

135:                                              ; preds = %108
  %136 = load i32, ptr %22, align 4, !tbaa !9
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %139, label %157

139:                                              ; preds = %135
  %140 = load i32, ptr %23, align 4, !tbaa !9
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %142, label %157

142:                                              ; preds = %139
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %146, label %157

146:                                              ; preds = %142
  %147 = load ptr, ptr %19, align 8, !tbaa !5
  %148 = getelementptr inbounds %class.ImageContent, ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !18
  %150 = load i32, ptr %23, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds ptr, ptr %149, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = load i32, ptr %22, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %153, i64 %155
  store float 2.550000e+02, ptr %156, align 4, !tbaa !11
  br label %157

157:                                              ; preds = %146, %142, %139, %135, %108
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %24, align 4, !tbaa !9
  %160 = add i32 %159, 1
  store i32 %160, ptr %24, align 4, !tbaa !9
  br label %96, !llvm.loop !20

161:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %220, %161
  %163 = load i32, ptr %25, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = getelementptr inbounds %class.Segment, ptr %165, i32 0, i32 0
  %167 = call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #10
  %168 = icmp ult i64 %164, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %223

170:                                              ; preds = %162
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.Segment, ptr %171, i32 0, i32 0
  %173 = load i32, ptr %25, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #10
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = getelementptr inbounds %class.ChainPoint, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 4, !tbaa !15
  %179 = load i32, ptr %12, align 4, !tbaa !9
  %180 = sub nsw i32 %178, %179
  %181 = load i32, ptr %18, align 4, !tbaa !9
  %182 = add nsw i32 %180, %181
  store i32 %182, ptr %22, align 4, !tbaa !9
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = getelementptr inbounds %class.Segment, ptr %183, i32 0, i32 0
  %185 = load i32, ptr %25, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #10
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.ChainPoint, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !17
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = sub nsw i32 %190, %191
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = add nsw i32 %192, %193
  store i32 %194, ptr %23, align 4, !tbaa !9
  %195 = load i32, ptr %22, align 4, !tbaa !9
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %197, label %219

197:                                              ; preds = %170
  %198 = load i32, ptr %22, align 4, !tbaa !9
  %199 = load i32, ptr %17, align 4, !tbaa !9
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %201, label %219

201:                                              ; preds = %197
  %202 = load i32, ptr %23, align 4, !tbaa !9
  %203 = icmp sgt i32 %202, 0
  br i1 %203, label %204, label %219

204:                                              ; preds = %201
  %205 = load i32, ptr %23, align 4, !tbaa !9
  %206 = load i32, ptr %17, align 4, !tbaa !9
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %208, label %219

208:                                              ; preds = %204
  %209 = load ptr, ptr %19, align 8, !tbaa !5
  %210 = getelementptr inbounds %class.ImageContent, ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !18
  %212 = load i32, ptr %23, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load i32, ptr %22, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds float, ptr %215, i64 %217
  store float 2.550000e+02, ptr %218, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %208, %204, %201, %197, %170
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %25, align 4, !tbaa !9
  %222 = add i32 %221, 1
  store i32 %222, ptr %25, align 4, !tbaa !9
  br label %162, !llvm.loop !22

223:                                              ; preds = %169
  %224 = load ptr, ptr %19, align 8, !tbaa !5
  %225 = getelementptr inbounds %class.ImageContent, ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !18
  %227 = load i32, ptr %18, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load i32, ptr %18, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds float, ptr %230, i64 %232
  store float 1.800000e+02, ptr %233, align 4, !tbaa !11
  %234 = load ptr, ptr %19, align 8, !tbaa !5
  %235 = getelementptr inbounds %class.ImageContent, ptr %234, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !18
  %237 = load i32, ptr %18, align 4, !tbaa !9
  %238 = load i32, ptr %16, align 4, !tbaa !9
  %239 = add nsw i32 %237, %238
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = sub nsw i32 %239, %240
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds ptr, ptr %236, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = load i32, ptr %18, align 4, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = add nsw i32 %245, %246
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = sub nsw i32 %247, %248
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds float, ptr %244, i64 %250
  store float 1.500000e+02, ptr %251, align 4, !tbaa !11
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80) %252, ptr noundef @.str.28)
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.29)
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %255 = call i32 @getchar()
  %256 = load ptr, ptr %19, align 8, !tbaa !5
  %257 = icmp eq ptr %256, null
  br i1 %257, label %259, label %258

258:                                              ; preds = %223
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %256) #10
  call void @_ZdlPvm(ptr noundef %256, i64 noundef 80) #12
  br label %259

259:                                              ; preds = %258, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  ret void

260:                                              ; preds = %104
  %261 = load ptr, ptr %20, align 8
  %262 = load i32, ptr %21, align 4
  %263 = insertvalue { ptr, i32 } poison, ptr %261, 0
  %264 = insertvalue { ptr, i32 } %263, i32 %262, 1
  resume { ptr, i32 } %264
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Ejjf(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #9 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) #9 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @getchar() #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS10ChainPoint", !10, i64 0, !10, i64 4, !12, i64 8, !12, i64 12}
!17 = !{!16, !10, i64 4}
!18 = !{!19, !6, i64 16}
!19 = !{!"_ZTS12ImageContent", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

declare i32 @__gxx_personality_v0(...)

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

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

; 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: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7

declare void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8drawLineP12ImageContentiiiif(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9drawPatchP7SegmentS0_6Matrixiifii(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %9 = sub i32 %6, %3
  %10 = sitofp i32 %9 to float
  %11 = sub i32 %7, %4
  %12 = mul nsw i32 %11, %11
  %13 = uitofp nneg i32 %12 to float
  %14 = tail call float @llvm.fmuladd.f32(float %10, float %10, float %13)
  %15 = tail call noundef float @_ZSt4sqrtf(float noundef %14)
  %16 = tail call float @llvm.fmuladd.f32(float %15, float 1.000000e+01, float 1.000000e+00)
  %17 = fptosi float %16 to i32
  %18 = ashr i32 %17, 1
  %19 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #10
  invoke void @_ZN12ImageContentC2Ejjf(ptr noundef nonnull align 8 dereferenceable(80) %19, i32 noundef %17, i32 noundef %17, float noundef 0.000000e+00)
          to label %20 unwind label %44

20:                                               ; preds = %8
  %21 = add i32 %9, %18
  %22 = add i32 %11, %18
  tail call void @_Z8drawLineP12ImageContentiiiif(ptr noundef nonnull %19, i32 noundef %18, i32 noundef %18, i32 noundef %21, i32 noundef %22, float noundef 1.000000e+02)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.26)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef %21)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.27)
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %22)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 1)
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = fptrunc double %29 to float
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1, i32 noundef 2)
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fptrunc double %32 to float
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 1)
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = fptrunc double %35 to float
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2, i32 noundef 2)
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = fptrunc double %38 to float
  tail call void @_Z14displayEllipseP12ImageContentiiffffff(ptr noundef nonnull %19, i32 noundef %18, i32 noundef %18, float noundef %5, float noundef %30, float noundef %33, float noundef %36, float noundef %39, float noundef 1.000000e+02)
  %40 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %.not = icmp eq i64 %40, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %20
  %41 = getelementptr inbounds i8, ptr %19, i64 16
  br label %46

.preheader:                                       ; preds = %71, %20
  %42 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %.not100 = icmp eq i64 %42, 0
  br i1 %.not100, label %._crit_edge, label %.lr.ph99

.lr.ph99:                                         ; preds = %.preheader
  %43 = getelementptr inbounds i8, ptr %19, i64 16
  br label %90

44:                                               ; preds = %8
  %45 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %19, i64 noundef 80) #12
  resume { ptr, i32 } %45

46:                                               ; preds = %.lr.ph, %71
  %47 = phi i64 [ 0, %.lr.ph ], [ %73, %71 ]
  %.08697 = phi i32 [ 0, %.lr.ph ], [ %72, %71 ]
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %47) #11
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = load i32, ptr %49, align 4, !tbaa !11
  %51 = sub nsw i32 %50, %3
  %52 = add nsw i32 %51, %18
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %47) #11
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %54, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %57 = sub nsw i32 %56, %4
  %58 = add nsw i32 %57, %18
  %59 = icmp sgt i32 %52, 0
  br i1 %59, label %60, label %71

60:                                               ; preds = %46
  %61 = icmp slt i32 %52, %17
  %62 = icmp sgt i32 %58, 0
  %or.cond = select i1 %61, i1 %62, i1 false
  %63 = icmp slt i32 %58, %17
  %or.cond94 = select i1 %or.cond, i1 %63, i1 false
  br i1 %or.cond94, label %64, label %71

64:                                               ; preds = %60
  %65 = load ptr, ptr %41, align 8, !tbaa !16
  %66 = zext nneg i32 %58 to i64
  %67 = getelementptr inbounds ptr, ptr %65, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = zext nneg i32 %52 to i64
  %70 = getelementptr inbounds float, ptr %68, i64 %69
  store float 2.550000e+02, ptr %70, align 4, !tbaa !18
  br label %71

71:                                               ; preds = %46, %60, %64
  %72 = add i32 %.08697, 1
  %73 = zext i32 %72 to i64
  %74 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %75 = icmp ugt i64 %74, %73
  br i1 %75, label %46, label %.preheader, !llvm.loop !19

._crit_edge:                                      ; preds = %115, %.preheader
  %76 = getelementptr inbounds i8, ptr %19, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  %78 = sext i32 %18 to i64
  %79 = getelementptr inbounds ptr, ptr %77, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds float, ptr %80, i64 %78
  store float 1.800000e+02, ptr %81, align 4, !tbaa !18
  %82 = sext i32 %22 to i64
  %83 = getelementptr inbounds ptr, ptr %77, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = sext i32 %21 to i64
  %86 = getelementptr inbounds float, ptr %84, i64 %85
  store float 1.500000e+02, ptr %86, align 4, !tbaa !18
  tail call void @_ZN12ImageContent5writeEPKc(ptr noundef nonnull align 8 dereferenceable(80) %19, ptr noundef nonnull @.str.28)
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.29)
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %89 = tail call i32 @getchar()
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #11
  tail call void @_ZdlPvm(ptr noundef nonnull %19, i64 noundef 80) #12
  ret void

90:                                               ; preds = %.lr.ph99, %115
  %91 = phi i64 [ 0, %.lr.ph99 ], [ %117, %115 ]
  %.098 = phi i32 [ 0, %.lr.ph99 ], [ %116, %115 ]
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %91) #11
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = sub nsw i32 %94, %3
  %96 = add nsw i32 %95, %18
  %97 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10ChainPointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %91) #11
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  %100 = load i32, ptr %99, align 4, !tbaa !15
  %101 = sub nsw i32 %100, %4
  %102 = add nsw i32 %101, %18
  %103 = icmp sgt i32 %96, 0
  br i1 %103, label %104, label %115

104:                                              ; preds = %90
  %105 = icmp slt i32 %96, %17
  %106 = icmp sgt i32 %102, 0
  %or.cond3 = select i1 %105, i1 %106, i1 false
  %107 = icmp slt i32 %102, %17
  %or.cond95 = select i1 %or.cond3, i1 %107, i1 false
  br i1 %or.cond95, label %108, label %115

108:                                              ; preds = %104
  %109 = load ptr, ptr %43, align 8, !tbaa !16
  %110 = zext nneg i32 %102 to i64
  %111 = getelementptr inbounds ptr, ptr %109, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = zext nneg i32 %96 to i64
  %114 = getelementptr inbounds float, ptr %112, i64 %113
  store float 2.550000e+02, ptr %114, align 4, !tbaa !18
  br label %115

115:                                              ; preds = %90, %104, %108
  %116 = add i32 %.098, 1
  %117 = zext i32 %116 to i64
  %118 = tail call noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %119 = icmp ugt i64 %118, %117
  br i1 %119, label %90, label %._crit_edge, !llvm.loop !21
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Ejjf(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP10ChainPointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8 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 #8 align 2

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @getchar() local_unnamed_addr #9

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !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 = !{!17, !10, i64 16}
!17 = !{!"_ZTS12ImageContent", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!18 = !{!14, !14, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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