; LLVM IR from ArefMq/SoccerBallDetection :: src/modules/FRHT.ll (ZN7MVision4FRHT10findCircleERKNS_8Vector2DEi)

; 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::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.21" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }
%"class.MVision::Vector2D" = type { float, float }
%"class.MVision::FRHT::SearchCell" = type { i32, %"class.MVision::Vector2D" }
%"class.MVision::FRHT" = type { %class.Debugable, ptr, %"class.std::vector" }
%class.Debugable = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MVision::Circle, std::allocator<MVision::Circle>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::Circle, std::allocator<MVision::Circle>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::Circle, std::allocator<MVision::Circle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::Circle, std::allocator<MVision::Circle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MVision::Image::Pixel" = type { i8, i8, i8 }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MVision4FRHT10findCircleERKNS_8Vector2DEi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.16", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %17 = alloca %"class.MVision::Vector2D", align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %19 = alloca %"class.MVision::FRHT::SearchCell", align 4
  %20 = alloca %"class.MVision::Vector2D", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = invoke noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %24 unwind label %40

24:                                               ; preds = %3
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = sitofp i32 %25 to float
  %27 = fsub float %23, %26
  %28 = fptosi float %27 to i32
  store i32 %28, ptr %8, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %189, %24
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = sitofp i32 %30 to float
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = invoke noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %34 unwind label %40

34:                                               ; preds = %29
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = sitofp i32 %35 to float
  %37 = fadd float %33, %36
  %38 = fcmp olt float %31, %37
  br i1 %38, label %44, label %39

39:                                               ; preds = %34
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %193

40:                                               ; preds = %29, %3
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %9, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %10, align 4
  br label %192

44:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = invoke noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %47 unwind label %63

47:                                               ; preds = %44
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = sitofp i32 %48 to float
  %50 = fsub float %46, %49
  %51 = fptosi float %50 to i32
  store i32 %51, ptr %12, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %179, %47
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = sitofp i32 %53 to float
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = invoke noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %55)
          to label %57 unwind label %63

57:                                               ; preds = %52
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = sitofp i32 %58 to float
  %60 = fadd float %56, %59
  %61 = fcmp olt float %54, %60
  br i1 %61, label %67, label %62

62:                                               ; preds = %57
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %188

63:                                               ; preds = %90, %81, %73, %52, %44
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  br label %187

67:                                               ; preds = %57
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = icmp slt i32 %68, 0
  br i1 %69, label %89, label %70

70:                                               ; preds = %67
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 0
  br i1 %72, label %89, label %73

73:                                               ; preds = %70
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = getelementptr inbounds %"class.MVision::FRHT", ptr %21, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %78 = invoke noundef i32 @_ZNK7MVision5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %77)
          to label %79 unwind label %63

79:                                               ; preds = %73
  %80 = icmp sge i32 %74, %78
  br i1 %80, label %89, label %81

81:                                               ; preds = %79
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = getelementptr inbounds %"class.MVision::FRHT", ptr %21, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  %86 = invoke noundef i32 @_ZNK7MVision5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %85)
          to label %87 unwind label %63

87:                                               ; preds = %81
  %88 = icmp sge i32 %82, %86
  br i1 %88, label %89, label %90

89:                                               ; preds = %87, %79, %70, %67
  br label %179

90:                                               ; preds = %87
  %91 = getelementptr inbounds %"class.MVision::FRHT", ptr %21, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  %94 = load i32, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = invoke noundef nonnull align 1 dereferenceable(3) ptr @_ZN7MVision5Image8getPixelEjj(ptr noundef nonnull align 8 dereferenceable(24) %93, i32 noundef %94, i32 noundef %95)
          to label %97 unwind label %63

97:                                               ; preds = %90
  %98 = getelementptr inbounds %"class.MVision::Image::Pixel", ptr %96, i32 0, i32 0
  %99 = load i8, ptr %98, align 1, !tbaa !18
  %100 = zext i8 %99 to i32
  %101 = icmp slt i32 %100, 127
  br i1 %101, label %102, label %103

102:                                              ; preds = %97
  br label %179

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = sitofp i32 %104 to float
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = invoke noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %106)
          to label %108 unwind label %140

108:                                              ; preds = %103
  %109 = fsub float %105, %107
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = sitofp i32 %110 to float
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = invoke noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %112)
          to label %114 unwind label %140

114:                                              ; preds = %108
  %115 = fsub float %111, %113
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = sitofp i32 %116 to float
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = invoke noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %118)
          to label %120 unwind label %140

120:                                              ; preds = %114
  %121 = fsub float %117, %119
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = sitofp i32 %122 to float
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = invoke noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %124)
          to label %126 unwind label %140

126:                                              ; preds = %120
  %127 = fsub float %123, %125
  %128 = fmul float %121, %127
  %129 = call float @llvm.fmuladd.f32(float %109, float %115, float %128)
  %130 = fpext float %129 to double
  %131 = call double @sqrt(double noundef %130) #8
  %132 = fptosi double %131 to i32
  store i32 %132, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %133 = call ptr @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %15, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %135

135:                                              ; preds = %165, %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %136 = call ptr @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %16, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPKN7MVision4FRHT10SearchCellEPS3_St6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSA_IT0_SC_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %138, label %144, label %139

139:                                              ; preds = %135
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %168

140:                                              ; preds = %120, %114, %108, %103
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %186

144:                                              ; preds = %135
  %145 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %146 = getelementptr inbounds %"class.MVision::FRHT::SearchCell", ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !20
  %148 = load i32, ptr %13, align 4, !tbaa !9
  %149 = icmp eq i32 %147, %148
  br i1 %149, label %150, label %164

150:                                              ; preds = %144
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %153 = getelementptr inbounds %"class.MVision::FRHT::SearchCell", ptr %152, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = sitofp i32 %154 to float
  %156 = load i32, ptr %8, align 4, !tbaa !9
  %157 = sitofp i32 %156 to float
  invoke void @_ZN7MVision8Vector2DC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %155, float noundef %157)
          to label %158 unwind label %160

158:                                              ; preds = %150
  invoke void @_ZN7MVision4FRHT11checkCircleERKNS_8Vector2DES3_S3_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 4 dereferenceable(8) %151, ptr noundef nonnull align 4 dereferenceable(8) %153, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %159 unwind label %160

159:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %164

160:                                              ; preds = %158, %150
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %186

164:                                              ; preds = %159, %144
  br label %165

165:                                              ; preds = %164
  %166 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #8
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %18, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  br label %135, !llvm.loop !24

168:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  %169 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = sitofp i32 %170 to float
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = sitofp i32 %172 to float
  invoke void @_ZN7MVision8Vector2DC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %171, float noundef %173)
          to label %174 unwind label %182

174:                                              ; preds = %168
  invoke void @_ZN7MVision4FRHT10SearchCellC2EiRKNS_8Vector2DE(ptr noundef nonnull align 4 dereferenceable(12) %19, i32 noundef %169, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %175 unwind label %182

175:                                              ; preds = %174
  invoke void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %176 unwind label %182

176:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = add nsw i32 %177, 2
  store i32 %178, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %179

179:                                              ; preds = %176, %102, %89
  %180 = load i32, ptr %12, align 4, !tbaa !9
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %12, align 4, !tbaa !9
  br label %52, !llvm.loop !26

182:                                              ; preds = %175, %174, %168
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %9, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  br label %186

186:                                              ; preds = %182, %160, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %187

187:                                              ; preds = %186, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %192

188:                                              ; preds = %62
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %8, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %8, align 4, !tbaa !9
  br label %29, !llvm.loop !27

192:                                              ; preds = %187, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %194

193:                                              ; preds = %39
  call void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  ret void

194:                                              ; preds = %192
  %195 = load ptr, ptr %9, align 8
  %196 = load i32, ptr %10, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

declare noundef i32 @_ZNK7MVision5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(24)) #4

declare noundef i32 @_ZNK7MVision5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPKN7MVision4FRHT10SearchCellEPS3_St6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSA_IT0_SC_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7MVision4FRHT11checkCircleERKNS_8Vector2DES3_S3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #7 align 2

declare void @_ZN7MVision8Vector2DC1Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7MVision4FRHT10SearchCellC2EiRKNS_8Vector2DE(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { 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 = { 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 #4 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTSN7MVision4FRHTE", !13, i64 0, !6, i64 16, !14, i64 24}
!13 = !{!"_ZTS9Debugable", !6, i64 8}
!14 = !{!"_ZTSSt6vectorIN7MVision6CircleESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7MVision6CircleESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTSN7MVision5Image5PixelE", !7, i64 0, !7, i64 1, !7, i64 2}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTSN7MVision4FRHT10SearchCellE", !10, i64 0, !22, i64 4}
!22 = !{!"_ZTSN7MVision8Vector2DE", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}


; 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::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::FRHT::SearchCell, std::allocator<MVision::FRHT::SearchCell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.21" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }
%"class.MVision::Vector2D" = type { float, float }
%"class.MVision::FRHT::SearchCell" = type { i32, %"class.MVision::Vector2D" }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MVision4FRHT10findCircleERKNS_8Vector2DEi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.16", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %8 = alloca %"class.MVision::Vector2D", align 4
  %9 = alloca %"class.MVision::FRHT::SearchCell", align 4
  %10 = alloca %"class.MVision::Vector2D", align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %11 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %12 = sitofp i32 %2 to float
  %13 = fsub float %11, %12
  %14 = fptosi float %13 to i32
  %15 = sitofp i32 %14 to float
  %16 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %17 = fadd float %16, %12
  %18 = fcmp ogt float %17, %15
  br i1 %18, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %3
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  br label %20

._crit_edge57:                                    ; preds = %._crit_edge53, %3
  call void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  ret void

20:                                               ; preds = %.lr.ph56, %._crit_edge53
  %.054 = phi i32 [ %14, %.lr.ph56 ], [ %28, %._crit_edge53 ]
  %21 = call noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %22 = fsub float %21, %12
  %23 = fptosi float %22 to i32
  %24 = sitofp i32 %23 to float
  %25 = call noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %26 = fadd float %25, %12
  %27 = fcmp ogt float %26, %24
  br i1 %27, label %.lr.ph52, label %._crit_edge53

._crit_edge53:                                    ; preds = %89, %20
  %.1.lcssa = phi i32 [ %.054, %20 ], [ %.2, %89 ]
  %28 = add nsw i32 %.1.lcssa, 1
  %29 = sitofp i32 %28 to float
  %30 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %31 = fadd float %30, %12
  %32 = fcmp ogt float %31, %29
  br i1 %32, label %20, label %._crit_edge57, !llvm.loop !5

33:                                               ; preds = %43, %38
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %97

.lr.ph52:                                         ; preds = %20, %89
  %35 = phi float [ %91, %89 ], [ %24, %20 ]
  %.150 = phi i32 [ %.2, %89 ], [ %.054, %20 ]
  %.03949 = phi i32 [ %90, %89 ], [ %23, %20 ]
  %36 = icmp slt i32 %.03949, 0
  %37 = icmp slt i32 %.150, 0
  %or.cond = select i1 %36, i1 true, i1 %37
  br i1 %or.cond, label %89, label %38

38:                                               ; preds = %.lr.ph52
  %39 = load ptr, ptr %19, align 8, !tbaa !7
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %41 = invoke noundef i32 @_ZNK7MVision5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %42 unwind label %33

42:                                               ; preds = %38
  %.not = icmp slt i32 %.03949, %41
  br i1 %.not, label %43, label %89

43:                                               ; preds = %42
  %44 = load ptr, ptr %19, align 8, !tbaa !7
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = invoke noundef i32 @_ZNK7MVision5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %47 unwind label %33

47:                                               ; preds = %43
  %.not43 = icmp slt i32 %.150, %46
  br i1 %.not43, label %48, label %89

48:                                               ; preds = %47
  %49 = load ptr, ptr %19, align 8, !tbaa !7
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZN7MVision5Image8getPixelEjj(ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef %.03949, i32 noundef %.150)
  %52 = load i8, ptr %51, align 1, !tbaa !17
  %53 = icmp ult i8 %52, 127
  br i1 %53, label %89, label %54

54:                                               ; preds = %48
  %55 = call noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %56 = fsub float %35, %55
  %57 = call noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %58 = fsub float %35, %57
  %59 = uitofp nneg i32 %.150 to float
  %60 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %61 = fsub float %59, %60
  %62 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %63 = fsub float %59, %62
  %64 = fmul float %61, %63
  %65 = call float @llvm.fmuladd.f32(float %56, float %58, float %64)
  %66 = fpext float %65 to double
  %67 = call double @sqrt(double noundef %66) #8
  %68 = fptosi double %67 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %69 = call ptr @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %69, ptr %6, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %70 = call ptr @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %70, ptr %7, align 8
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPKN7MVision4FRHT10SearchCellEPS3_St6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSA_IT0_SC_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %71, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %82, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  invoke void @_ZN7MVision8Vector2DC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %35, float noundef %59)
          to label %86 unwind label %95

.lr.ph:                                           ; preds = %54, %82
  %72 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %73 = load i32, ptr %72, align 4, !tbaa !19
  %74 = icmp eq i32 %73, %68
  br i1 %74, label %75, label %82

75:                                               ; preds = %.lr.ph
  %76 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  invoke void @_ZN7MVision8Vector2DC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %35, float noundef %59)
          to label %77 unwind label %80

77:                                               ; preds = %75
  %78 = getelementptr inbounds i8, ptr %76, i64 4
  invoke void @_ZN7MVision4FRHT11checkCircleERKNS_8Vector2DES3_S3_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %78, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %79 unwind label %80

79:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %82

80:                                               ; preds = %77, %75
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %97

82:                                               ; preds = %.lr.ph, %79
  %83 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %84 = call ptr @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %84, ptr %7, align 8
  %85 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPKN7MVision4FRHT10SearchCellEPS3_St6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSA_IT0_SC_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %85, label %.lr.ph, label %._crit_edge, !llvm.loop !24

86:                                               ; preds = %._crit_edge
  call void @_ZN7MVision4FRHT10SearchCellC2EiRKNS_8Vector2DE(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %68, ptr noundef nonnull align 4 dereferenceable(8) %10)
  invoke void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %87 unwind label %95

87:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  %88 = add nuw nsw i32 %.150, 2
  br label %89

89:                                               ; preds = %48, %.lr.ph52, %42, %47, %87
  %.2 = phi i32 [ %.150, %.lr.ph52 ], [ %.150, %42 ], [ %.150, %47 ], [ %.150, %48 ], [ %88, %87 ]
  %90 = add nsw i32 %.03949, 1
  %91 = sitofp i32 %90 to float
  %92 = call noundef float @_ZNK7MVision8Vector2D1xEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %93 = fadd float %92, %12
  %94 = fcmp ogt float %93, %91
  br i1 %94, label %.lr.ph52, label %._crit_edge53, !llvm.loop !25

95:                                               ; preds = %86, %._crit_edge
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %97

97:                                               ; preds = %80, %95, %33
  %.pn.pn = phi { ptr, i32 } [ %34, %33 ], [ %81, %80 ], [ %96, %95 ]
  call void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

declare noundef i32 @_ZNK7MVision5Image5widthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

declare noundef i32 @_ZNK7MVision5Image6heightEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPKN7MVision4FRHT10SearchCellEPS3_St6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNSA_IT0_SC_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

declare void @_ZN7MVision8Vector2DC1Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision4FRHT10SearchCellESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7MVision4FRHT10SearchCellC2EiRKNS_8Vector2DE(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7MVision4FRHT10SearchCellESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !10, i64 16}
!8 = !{!"_ZTSN7MVision4FRHTE", !9, i64 0, !10, i64 16, !13, i64 24}
!9 = !{!"_ZTS9Debugable", !10, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSSt6vectorIN7MVision6CircleESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN7MVision6CircleESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!18, !11, i64 0}
!18 = !{!"_ZTSN7MVision5Image5PixelE", !11, i64 0, !11, i64 1, !11, i64 2}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN7MVision4FRHT10SearchCellE", !21, i64 0, !22, i64 4}
!21 = !{!"int", !11, i64 0}
!22 = !{!"_ZTSN7MVision8Vector2DE", !23, i64 0, !23, i64 4}
!23 = !{!"float", !11, i64 0}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6}


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