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

; 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MVision::Vector2D" = type { float, float }
%"class.__gnu_cxx::__normal_iterator.15" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"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::EdgeImage" = type { %class.Debugable, %"class.MVision::Image", i32, %"class.std::vector.0", ptr, %"class.std::vector.5", %"class.std::vector.10" }
%"class.MVision::Image" = type { i32, i32, i32, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<MVision::Vector2D>, std::allocator<std::vector<MVision::Vector2D>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<MVision::Vector2D>, std::allocator<std::vector<MVision::Vector2D>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<MVision::Vector2D>, std::allocator<std::vector<MVision::Vector2D>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<MVision::Vector2D>, std::allocator<std::vector<MVision::Vector2D>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MVision4FRHT6updateESt6vectorINS_8Vector2DESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.10", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.MVision::Vector2D", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8
  %24 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 2
  call void @_ZNSt6vectorIN7MVision6CircleESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %25 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %26)
          to label %28 unwind label %32

28:                                               ; preds = %2
  %29 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %30 = icmp ne i64 %29, 0
  br i1 %30, label %36, label %31

31:                                               ; preds = %28
  store i32 1, ptr %8, align 4
  br label %222

32:                                               ; preds = %2
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %6, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %7, align 4
  br label %226

36:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 150, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %37 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %38)
          to label %40 unwind label %68

40:                                               ; preds = %36
  %41 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %10, align 4, !tbaa !16
  br label %43

43:                                               ; preds = %113, %40
  %44 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %45 = icmp ult i64 %44, 150
  br i1 %45, label %46, label %115

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  invoke void @_ZN7MVision8Vector2DC1Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %47 unwind label %72

47:                                               ; preds = %46
  %48 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %49 = uitofp i64 %48 to double
  %50 = fcmp olt double %49, 1.200000e+02
  br i1 %50, label %54, label %51

51:                                               ; preds = %47
  %52 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %53 = icmp ne i64 %52, 0
  br i1 %53, label %80, label %54

54:                                               ; preds = %51, %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %55 = call i32 @rand() #6
  %56 = load i32, ptr %10, align 4, !tbaa !16
  %57 = srem i32 %55, %56
  store i32 %57, ptr %12, align 4, !tbaa !16
  %58 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %59)
          to label %61 unwind label %76

61:                                               ; preds = %54
  %62 = load i32, ptr %12, align 4, !tbaa !16
  %63 = sext i32 %62 to i64
  %64 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %63)
          to label %65 unwind label %76

65:                                               ; preds = %61
  %66 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %64)
          to label %67 unwind label %76

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %112

68:                                               ; preds = %36
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  br label %225

72:                                               ; preds = %112, %46
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  br label %114

76:                                               ; preds = %65, %61, %54
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %6, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %114

80:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %81 = call i32 @rand() #6
  %82 = sext i32 %81 to i64
  %83 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %84 = urem i64 %82, %83
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %13, align 4, !tbaa !16
  %86 = load i32, ptr %13, align 4, !tbaa !16
  %87 = sext i32 %86 to i64
  %88 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %87)
          to label %89 unwind label %103

89:                                               ; preds = %80
  %90 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %88)
          to label %91 unwind label %103

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %92 = call ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  %94 = load i32, ptr %13, align 4, !tbaa !16
  %95 = sext i32 %94 to i64
  %96 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7MVision8Vector2DESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %95) #6
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision8Vector2DESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.15", ptr %14, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  %100 = invoke ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr %99)
          to label %101 unwind label %107

101:                                              ; preds = %91
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %100, ptr %102, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %112

103:                                              ; preds = %89, %80
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %6, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %7, align 4
  br label %111

107:                                              ; preds = %91
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %6, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %114

112:                                              ; preds = %101, %67
  invoke void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %113 unwind label %72

113:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %43, !llvm.loop !18

114:                                              ; preds = %111, %76, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %225

115:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !16
  br label %116

116:                                              ; preds = %215, %115
  %117 = load i32, ptr %18, align 4, !tbaa !16
  %118 = zext i32 %117 to i64
  %119 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %116
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %221

122:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %123 = load i32, ptr %18, align 4, !tbaa !16
  %124 = zext i32 %123 to i64
  %125 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %124)
          to label %126 unwind label %195

126:                                              ; preds = %122
  store ptr %125, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = invoke noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %127)
          to label %129 unwind label %199

129:                                              ; preds = %126
  %130 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds %"class.MVision::EdgeImage", ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !20
  %134 = sitofp i32 %133 to float
  %135 = fsub float %128, %134
  %136 = invoke noundef float @_ZN7MVision9EdgeImage11edgeingStepEf(float noundef %135)
          to label %137 unwind label %199

137:                                              ; preds = %129
  %138 = fdiv float %136, 2.000000e+00
  %139 = fptosi float %138 to i32
  store i32 %139, ptr %20, align 4, !tbaa !16
  %140 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %141)
          to label %143 unwind label %199

143:                                              ; preds = %137
  %144 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #6
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr %10, align 4, !tbaa !16
  %146 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN7MVision9EdgeImage6refineERKNS_8Vector2DE(ptr noundef nonnull align 8 dereferenceable(128) %147, ptr noundef nonnull align 4 dereferenceable(8) %148)
          to label %149 unwind label %199

149:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %150 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %151)
          to label %153 unwind label %203

153:                                              ; preds = %149
  %154 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %152) #6
  %155 = load i32, ptr %10, align 4, !tbaa !16
  %156 = sext i32 %155 to i64
  %157 = sub i64 %154, %156
  %158 = trunc i64 %157 to i32
  store i32 %158, ptr %21, align 4, !tbaa !16
  %159 = load i32, ptr %21, align 4, !tbaa !16
  %160 = icmp sgt i32 %159, 0
  br i1 %160, label %161, label %211

161:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %162 = call i32 @rand() #6
  %163 = load i32, ptr %21, align 4, !tbaa !16
  %164 = srem i32 %162, %163
  %165 = load i32, ptr %10, align 4, !tbaa !16
  %166 = add nsw i32 %164, %165
  store i32 %166, ptr %22, align 4, !tbaa !16
  %167 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %168)
          to label %170 unwind label %207

170:                                              ; preds = %161
  %171 = load i32, ptr %22, align 4, !tbaa !16
  %172 = sext i32 %171 to i64
  %173 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %172)
          to label %174 unwind label %207

174:                                              ; preds = %170
  %175 = load ptr, ptr %19, align 8, !tbaa !5
  %176 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %175, ptr noundef nonnull align 4 dereferenceable(8) %173)
          to label %177 unwind label %207

177:                                              ; preds = %174
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = invoke noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %178)
          to label %180 unwind label %207

180:                                              ; preds = %177
  %181 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = getelementptr inbounds %"class.MVision::EdgeImage", ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 8, !tbaa !20
  %185 = sitofp i32 %184 to float
  %186 = fsub float %179, %185
  %187 = invoke noundef float @_ZN7MVision9EdgeImage11edgeingStepEf(float noundef %186)
          to label %188 unwind label %207

188:                                              ; preds = %180
  %189 = fdiv float %187, 2.000000e+00
  %190 = fptosi float %189 to i32
  store i32 %190, ptr %20, align 4, !tbaa !16
  %191 = getelementptr inbounds %"class.MVision::FRHT", ptr %23, i32 0, i32 1
  %192 = load ptr, ptr %191, align 8, !tbaa !9
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN7MVision9EdgeImage6refineERKNS_8Vector2DE(ptr noundef nonnull align 8 dereferenceable(128) %192, ptr noundef nonnull align 4 dereferenceable(8) %193)
          to label %194 unwind label %207

194:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %211

195:                                              ; preds = %122
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %6, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %7, align 4
  br label %220

199:                                              ; preds = %143, %137, %129, %126
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %6, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %7, align 4
  br label %219

203:                                              ; preds = %211, %149
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %6, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %7, align 4
  br label %218

207:                                              ; preds = %188, %180, %177, %174, %170, %161
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %6, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %218

211:                                              ; preds = %194, %153
  %212 = load ptr, ptr %19, align 8, !tbaa !5
  %213 = load i32, ptr %20, align 4, !tbaa !16
  invoke void @_ZN7MVision4FRHT10findCircleERKNS_8Vector2DEi(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(8) %212, i32 noundef %213)
          to label %214 unwind label %203

214:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %18, align 4, !tbaa !16
  %217 = add i32 %216, 1
  store i32 %217, ptr %18, align 4, !tbaa !16
  br label %116, !llvm.loop !35

218:                                              ; preds = %207, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %219

219:                                              ; preds = %218, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %220

220:                                              ; preds = %219, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %225

221:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %222

222:                                              ; preds = %221, %31
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  %223 = load i32, ptr %8, align 4
  switch i32 %223, label %232 [
    i32 0, label %224
    i32 1, label %224
  ]

224:                                              ; preds = %222, %222
  ret void

225:                                              ; preds = %220, %114, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %226

226:                                              ; preds = %225, %32
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %6, align 8
  %229 = load i32, ptr %7, align 4
  %230 = insertvalue { ptr, i32 } poison, ptr %228, 0
  %231 = insertvalue { ptr, i32 } %230, i32 %229, 1
  resume { ptr, i32 } %231

232:                                              ; preds = %222
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7MVision8Vector2DC1Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr) #0 align 2

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

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

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

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

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

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

declare void @_ZN7MVision9EdgeImage6refineERKNS_8Vector2DE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(8)) #3

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

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

attributes #0 = { 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 #1 = { 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 willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTSN7MVision4FRHTE", !11, i64 0, !6, i64 16, !12, i64 24}
!11 = !{!"_ZTS9Debugable", !6, i64 8}
!12 = !{!"_ZTSSt6vectorIN7MVision6CircleESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN7MVision6CircleESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !17, i64 40}
!21 = !{!"_ZTSN7MVision9EdgeImageE", !11, i64 0, !22, i64 16, !17, i64 40, !23, i64 48, !6, i64 72, !27, i64 80, !31, i64 104}
!22 = !{!"_ZTSN7MVision5ImageE", !17, i64 0, !17, i64 4, !17, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIiSaIiEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIS_IN7MVision8Vector2DESaIS1_EESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseISt6vectorIN7MVision8Vector2DESaIS2_EESaIS4_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7MVision8Vector2DESaIS2_EESaIS4_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7MVision8Vector2DESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIN7MVision8Vector2DESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = distinct !{!35, !19}


; 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MVision::Vector2D" = type { float, float }
%"class.__gnu_cxx::__normal_iterator.15" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MVision4FRHT6updateESt6vectorINS_8Vector2DESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.10", align 8
  %4 = alloca %"class.MVision::Vector2D", align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt6vectorIN7MVision6CircleESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %10)
  %12 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %.loopexit, label %13

13:                                               ; preds = %2
  %14 = load ptr, ptr %9, align 8, !tbaa !5
  %15 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %14)
  %16 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %17 = trunc i64 %16 to i32
  %18 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %19 = icmp ult i64 %18, 150
  br i1 %19, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %58, %13
  %20 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not42 = icmp eq i64 %20, 0
  br i1 %.not42, label %.loopexit, label %.lr.ph41

.lr.ph:                                           ; preds = %13, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  invoke void @_ZN7MVision8Vector2DC1Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %21 unwind label %35

21:                                               ; preds = %.lr.ph
  %22 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %23 = icmp ult i64 %22, 120
  br i1 %23, label %26, label %24

24:                                               ; preds = %21
  %25 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not34 = icmp eq i64 %25, 0
  br i1 %.not34, label %26, label %39

26:                                               ; preds = %24, %21
  %27 = call i32 @rand() #6
  %28 = srem i32 %27, %17
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %29)
  %31 = sext i32 %28 to i64
  %32 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %31)
          to label %33 unwind label %37

33:                                               ; preds = %26
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %32)
  br label %57

35:                                               ; preds = %57, %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %61

37:                                               ; preds = %26
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %61

39:                                               ; preds = %24
  %40 = call i32 @rand() #6
  %41 = sext i32 %40 to i64
  %42 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %43 = urem i64 %41, %42
  %sext = shl i64 %43, 32
  %44 = ashr exact i64 %sext, 32
  %45 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %44)
          to label %46 unwind label %53

46:                                               ; preds = %39
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %48 = call ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  store ptr %48, ptr %7, align 8
  %49 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7MVision8Vector2DESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %44) #6
  store ptr %49, ptr %6, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7MVision8Vector2DESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %50 = load ptr, ptr %5, align 8
  %51 = invoke ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr %50)
          to label %52 unwind label %55

52:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %57

53:                                               ; preds = %39
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %61

55:                                               ; preds = %46
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %61

57:                                               ; preds = %52, %33
  invoke void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %58 unwind label %35

58:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %59 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %60 = icmp ult i64 %59, 150
  br i1 %60, label %.lr.ph, label %.preheader, !llvm.loop !15

61:                                               ; preds = %53, %55, %37, %35
  %.pn37 = phi { ptr, i32 } [ %36, %35 ], [ %38, %37 ], [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %116

.lr.ph41:                                         ; preds = %.preheader, %111
  %62 = phi i64 [ %113, %111 ], [ 0, %.preheader ]
  %.02840 = phi i32 [ %112, %111 ], [ 0, %.preheader ]
  %63 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62)
          to label %64 unwind label %102

64:                                               ; preds = %.lr.ph41
  %65 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %63)
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 40
  %68 = load i32, ptr %67, align 8, !tbaa !17
  %69 = sitofp i32 %68 to float
  %70 = fsub float %65, %69
  %71 = call noundef float @_ZN7MVision9EdgeImage11edgeingStepEf(float noundef %70)
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %72)
  %74 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #6
  %75 = trunc i64 %74 to i32
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN7MVision9EdgeImage6refineERKNS_8Vector2DE(ptr noundef nonnull align 8 dereferenceable(128) %76, ptr noundef nonnull align 4 dereferenceable(8) %63)
          to label %77 unwind label %104

77:                                               ; preds = %64
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %78)
  %80 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
  %81 = sub i64 %80, %74
  %82 = trunc i64 %81 to i32
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %84, label %110

84:                                               ; preds = %77
  %85 = call i32 @rand() #6
  %86 = srem i32 %85, %82
  %87 = add nsw i32 %86, %75
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7MVision9EdgeImage10edgePointsEv(ptr noundef nonnull align 8 dereferenceable(128) %88)
  %90 = sext i32 %87 to i64
  %91 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %90)
          to label %92 unwind label %108

92:                                               ; preds = %84
  %93 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(8) %91)
  %94 = call noundef float @_ZNK7MVision8Vector2D1yEv(ptr noundef nonnull align 4 dereferenceable(8) %63)
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 40
  %97 = load i32, ptr %96, align 8, !tbaa !17
  %98 = sitofp i32 %97 to float
  %99 = fsub float %94, %98
  %100 = call noundef float @_ZN7MVision9EdgeImage11edgeingStepEf(float noundef %99)
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN7MVision9EdgeImage6refineERKNS_8Vector2DE(ptr noundef nonnull align 8 dereferenceable(128) %101, ptr noundef nonnull align 4 dereferenceable(8) %63)
          to label %110 unwind label %108

102:                                              ; preds = %.lr.ph41
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %116

104:                                              ; preds = %64
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %116

106:                                              ; preds = %110
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %116

108:                                              ; preds = %92, %84
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %116

110:                                              ; preds = %92, %77
  %.027.in.in = phi float [ %71, %77 ], [ %100, %92 ]
  %.027.in = fmul float %.027.in.in, 5.000000e-01
  %.027 = fptosi float %.027.in to i32
  invoke void @_ZN7MVision4FRHT10findCircleERKNS_8Vector2DEi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %63, i32 noundef %.027)
          to label %111 unwind label %106

111:                                              ; preds = %110
  %112 = add i32 %.02840, 1
  %113 = zext i32 %112 to i64
  %114 = call noundef i64 @_ZNKSt6vectorIN7MVision8Vector2DESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %115 = icmp ugt i64 %114, %113
  br i1 %115, label %.lr.ph41, label %.loopexit, !llvm.loop !33

.loopexit:                                        ; preds = %111, %.preheader, %2
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret void

116:                                              ; preds = %102, %106, %108, %104, %61
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %61 ], [ %103, %102 ], [ %105, %104 ], [ %107, %106 ], [ %109, %108 ]
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn37.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7MVision8Vector2DC1Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7MVision8Vector2DaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

declare void @_ZN7MVision9EdgeImage6refineERKNS_8Vector2DE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

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

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

attributes #0 = { 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 #1 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 16}
!6 = !{!"_ZTSN7MVision4FRHTE", !7, i64 0, !8, i64 16, !11, i64 24}
!7 = !{!"_ZTS9Debugable", !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIN7MVision6CircleESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7MVision6CircleESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7MVision6CircleESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !20, i64 40}
!18 = !{!"_ZTSN7MVision9EdgeImageE", !7, i64 0, !19, i64 16, !20, i64 40, !21, i64 48, !8, i64 72, !25, i64 80, !29, i64 104}
!19 = !{!"_ZTSN7MVision5ImageE", !20, i64 0, !20, i64 4, !20, i64 8, !8, i64 16}
!20 = !{!"int", !9, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!25 = !{!"_ZTSSt6vectorIS_IN7MVision8Vector2DESaIS1_EESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseISt6vectorIN7MVision8Vector2DESaIS2_EESaIS4_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7MVision8Vector2DESaIS2_EESaIS4_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7MVision8Vector2DESaIS2_EESaIS4_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!29 = !{!"_ZTSSt6vectorIN7MVision8Vector2DESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!33 = distinct !{!33, !16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass