; LLVM IR from SimoneTinella/Path-Planning-Robot-over-Voronoi-Diagram :: programma.ll (ZN7Voronoi11CreaVoronoiEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Punto = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Voronoi = type { double, double, %"class.std::vector.0", %"class.std::vector", %"class.std::vector" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Ostacolo *, std::allocator<Ostacolo *>>::_Vector_impl" }
%"struct.std::_Vector_base<Ostacolo *, std::allocator<Ostacolo *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Ostacolo *, std::allocator<Ostacolo *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Ostacolo *, std::allocator<Ostacolo *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Punto *, std::allocator<Punto *>>::_Vector_impl" }
%"struct.std::_Vector_base<Punto *, std::allocator<Punto *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Punto *, std::allocator<Punto *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Punto *, std::allocator<Punto *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZL15dist_tolleranza = external hidden global double, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN8Ostacolo8DistanzaE5PuntoS0_(double, double, double, double) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Voronoi11CreaVoronoiEv(ptr noundef nonnull align 8 dereferenceable(88) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca %class.Punto, align 8
  %16 = alloca %class.Punto, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store double 1.000000e+00, ptr %3, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %215, %1
  %25 = load double, ptr %3, align 8, !tbaa !9
  %26 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 0
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = fsub double %27, 1.000000e+00
  %29 = fcmp olt double %25, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %24
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %218

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %32 = load double, ptr %3, align 8, !tbaa !9
  %33 = fptrunc double %32 to float
  %34 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 0
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fsub double %35, 1.000000e+00
  %37 = fptrunc double %36 to float
  %38 = fdiv float %33, %37
  %39 = fmul float %38, 1.000000e+02
  store float %39, ptr %5, align 4, !tbaa !21
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %41 = load float, ptr %5, align 4, !tbaa !21
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %40, float noundef %41)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %207, %31
  %45 = load double, ptr %6, align 8, !tbaa !9
  %46 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 1
  %47 = load double, ptr %46, align 8, !tbaa !23
  %48 = fsub double %47, 1.000000e+00
  %49 = fcmp olt double %45, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %44
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %214

51:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %52 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #9
  %53 = load double, ptr %6, align 8, !tbaa !9
  %54 = load double, ptr %3, align 8, !tbaa !9
  invoke void @_ZN5PuntoC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %52, double noundef %53, double noundef %54)
          to label %55 unwind label %63

55:                                               ; preds = %51
  store ptr %52, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !24
  br label %56

56:                                               ; preds = %124, %55
  %57 = load i32, ptr %11, align 4, !tbaa !24
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 2
  %60 = call noundef i64 @_ZNKSt6vectorIP8OstacoloSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #8
  %61 = icmp ult i64 %58, %60
  br i1 %61, label %67, label %62

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

63:                                               ; preds = %51
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %8, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %52, i64 noundef 16) #10
  br label %213

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store double 1.000000e+04, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !24
  br label %68

68:                                               ; preds = %118, %67
  %69 = load i32, ptr %13, align 4, !tbaa !24
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 2
  %72 = load i32, ptr %11, align 4, !tbaa !24
  %73 = sext i32 %72 to i64
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8OstacoloSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73)
          to label %75 unwind label %81

75:                                               ; preds = %68
  %76 = load ptr, ptr %74, align 8, !tbaa !5
  %77 = call noundef ptr @_ZN8Ostacolo11getIngombroEv(ptr noundef nonnull align 8 dereferenceable(48) %76)
  %78 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #8
  %79 = icmp ult i64 %70, %78
  br i1 %79, label %85, label %80

80:                                               ; preds = %75
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %122

81:                                               ; preds = %68
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %8, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %9, align 4
  br label %121

85:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %86, i64 16, i1 false), !tbaa.struct !26
  %87 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 2
  %88 = load i32, ptr %11, align 4, !tbaa !24
  %89 = sext i32 %88 to i64
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8OstacoloSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89)
          to label %91 unwind label %113

91:                                               ; preds = %85
  %92 = load ptr, ptr %90, align 8, !tbaa !5
  %93 = call noundef ptr @_ZN8Ostacolo11getIngombroEv(ptr noundef nonnull align 8 dereferenceable(48) %92)
  %94 = load i32, ptr %13, align 4, !tbaa !24
  %95 = sext i32 %94 to i64
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95)
          to label %97 unwind label %113

97:                                               ; preds = %91
  %98 = load ptr, ptr %96, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %98, i64 16, i1 false), !tbaa.struct !26
  %99 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %100 = load double, ptr %99, align 8
  %101 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  %103 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %104 = load double, ptr %103, align 8
  %105 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  %107 = call noundef double @_ZN8Ostacolo8DistanzaE5PuntoS0_(double %100, double %102, double %104, double %106)
  store double %107, ptr %14, align 8, !tbaa !9
  %108 = load double, ptr %14, align 8, !tbaa !9
  %109 = load double, ptr %12, align 8, !tbaa !9
  %110 = fcmp olt double %108, %109
  br i1 %110, label %111, label %117

111:                                              ; preds = %97
  %112 = load double, ptr %14, align 8, !tbaa !9
  store double %112, ptr %12, align 8, !tbaa !9
  br label %117

113:                                              ; preds = %91, %85
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %8, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %121

117:                                              ; preds = %111, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %13, align 4, !tbaa !24
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %13, align 4, !tbaa !24
  br label %68, !llvm.loop !27

121:                                              ; preds = %113, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %131

122:                                              ; preds = %80
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %123 unwind label %127

123:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %11, align 4, !tbaa !24
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %11, align 4, !tbaa !24
  br label %56, !llvm.loop !29

127:                                              ; preds = %122
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %8, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %9, align 4
  br label %131

131:                                              ; preds = %127, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %212

132:                                              ; preds = %62
  %133 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %135 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  %137 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %138 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %137) #8
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %141, ptr %143)
          to label %144 unwind label %183

144:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0)
          to label %146 unwind label %187

146:                                              ; preds = %144
  %147 = load double, ptr %145, align 8, !tbaa !9
  store double %147, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 1)
          to label %149 unwind label %191

149:                                              ; preds = %146
  %150 = load double, ptr %148, align 8, !tbaa !9
  store double %150, ptr %21, align 8, !tbaa !9
  %151 = load double, ptr %21, align 8, !tbaa !9
  %152 = load double, ptr %20, align 8, !tbaa !9
  %153 = fsub double %151, %152
  %154 = call double @llvm.fabs.f64(double %153)
  %155 = load double, ptr @_ZL15dist_tolleranza, align 8, !tbaa !9
  %156 = fcmp ole double %154, %155
  br i1 %156, label %157, label %201

157:                                              ; preds = %149
  %158 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 3
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %159 unwind label %191

159:                                              ; preds = %157
  %160 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 2
  %161 = call noundef i64 @_ZNKSt6vectorIP8OstacoloSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #8
  %162 = icmp ugt i64 %161, 2
  br i1 %162, label %163, label %200

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 2)
          to label %165 unwind label %195

165:                                              ; preds = %163
  %166 = load double, ptr %164, align 8, !tbaa !9
  store double %166, ptr %22, align 8, !tbaa !9
  %167 = load double, ptr %21, align 8, !tbaa !9
  %168 = load double, ptr %22, align 8, !tbaa !9
  %169 = fsub double %167, %168
  %170 = call double @llvm.fabs.f64(double %169)
  %171 = load double, ptr @_ZL15dist_tolleranza, align 8, !tbaa !9
  %172 = fcmp ole double %170, %171
  br i1 %172, label %173, label %199

173:                                              ; preds = %165
  %174 = load double, ptr %22, align 8, !tbaa !9
  %175 = load double, ptr %20, align 8, !tbaa !9
  %176 = fsub double %174, %175
  %177 = call double @llvm.fabs.f64(double %176)
  %178 = load double, ptr @_ZL15dist_tolleranza, align 8, !tbaa !9
  %179 = fcmp ole double %177, %178
  br i1 %179, label %180, label %199

180:                                              ; preds = %173
  %181 = getelementptr inbounds %class.Voronoi, ptr %23, i32 0, i32 4
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %182 unwind label %195

182:                                              ; preds = %180
  br label %199

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

187:                                              ; preds = %144
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %8, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %9, align 4
  br label %211

191:                                              ; preds = %157, %146
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %8, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %9, align 4
  br label %210

195:                                              ; preds = %180, %163
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %8, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %210

199:                                              ; preds = %182, %173, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %200

200:                                              ; preds = %199, %159
  br label %206

201:                                              ; preds = %149
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = icmp eq ptr %202, null
  br i1 %203, label %205, label %204

204:                                              ; preds = %201
  call void @_ZdlPvm(ptr noundef %202, i64 noundef 16) #10
  br label %205

205:                                              ; preds = %204, %201
  br label %206

206:                                              ; preds = %205, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %207

207:                                              ; preds = %206
  %208 = load double, ptr %6, align 8, !tbaa !9
  %209 = fadd double %208, 1.000000e+00
  store double %209, ptr %6, align 8, !tbaa !9
  br label %44, !llvm.loop !30

210:                                              ; preds = %195, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %211

211:                                              ; preds = %210, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %212

212:                                              ; preds = %211, %183, %131
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  br label %213

213:                                              ; preds = %212, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %219

214:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %215

215:                                              ; preds = %214
  %216 = load double, ptr %3, align 8, !tbaa !9
  %217 = fadd double %216, 1.000000e+00
  store double %217, ptr %3, align 8, !tbaa !9
  br label %24, !llvm.loop !31

218:                                              ; preds = %30
  ret void

219:                                              ; preds = %213
  %220 = load ptr, ptr %8, align 8
  %221 = load i32, ptr %9, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) #5

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

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

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

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

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

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

declare void @_ZN5PuntoC1Edd(ptr, double, double)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS7Voronoi", !10, i64 0, !10, i64 8, !13, i64 16, !17, i64 40, !17, i64 64}
!13 = !{!"_ZTSSt6vectorIP8OstacoloSaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIP8OstacoloSaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIP8OstacoloSaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP8OstacoloSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIP5PuntoSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP5PuntoSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP5PuntoSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP5PuntoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = !{!12, !10, i64 8}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZL15dist_tolleranza = external hidden local_unnamed_addr global double, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN8Ostacolo8DistanzaE5PuntoS0_(double, double, double, double) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Voronoi11CreaVoronoiEv(ptr noundef nonnull align 8 dereferenceable(88) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.5", align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = load double, ptr %0, align 8, !tbaa !5
  %7 = fadd double %6, -1.000000e+00
  %8 = fcmp ogt double %7, 1.000000e+00
  br i1 %8, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  br label %13

._crit_edge71:                                    ; preds = %._crit_edge67, %1
  ret void

13:                                               ; preds = %.lr.ph70, %._crit_edge67
  %14 = phi double [ %7, %.lr.ph70 ], [ %27, %._crit_edge67 ]
  %.068 = phi double [ 1.000000e+00, %.lr.ph70 ], [ %25, %._crit_edge67 ]
  %15 = fptrunc double %.068 to float
  %16 = fptrunc double %14 to float
  %17 = fdiv float %15, %16
  %18 = fmul float %17, 1.000000e+02
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %19, float noundef %18)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str.5)
  %22 = load double, ptr %9, align 8, !tbaa !19
  %23 = fadd double %22, -1.000000e+00
  %24 = fcmp ogt double %23, 1.000000e+00
  br i1 %24, label %.lr.ph66, label %._crit_edge67

._crit_edge67:                                    ; preds = %110, %13
  %25 = fadd double %.068, 1.000000e+00
  %26 = load double, ptr %0, align 8, !tbaa !5
  %27 = fadd double %26, -1.000000e+00
  %28 = fcmp olt double %25, %27
  br i1 %28, label %13, label %._crit_edge71, !llvm.loop !20

.lr.ph66:                                         ; preds = %13, %110
  %.02964 = phi double [ %111, %110 ], [ 1.000000e+00, %13 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %29 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #8
  invoke void @_ZN5PuntoC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %29, double noundef %.02964, double noundef %.068)
          to label %30 unwind label %36

30:                                               ; preds = %.lr.ph66
  store ptr %29, ptr %2, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %31 = call noundef i64 @_ZNKSt6vectorIP8OstacoloSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %64, %30
  %32 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %33 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  store ptr %33, ptr %5, align 8
  %34 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %35 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %34) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %32, ptr %35)
          to label %70 unwind label %98

36:                                               ; preds = %.lr.ph66
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 16) #9
  br label %116

.lr.ph:                                           ; preds = %30, %64
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %64 ], [ 0, %30 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store double 1.000000e+04, ptr %4, align 8, !tbaa !23
  br label %38

38:                                               ; preds = %63, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %63 ], [ 0, %.lr.ph ]
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8OstacoloSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv81)
          to label %40 unwind label %46

40:                                               ; preds = %38
  %41 = load ptr, ptr %39, align 8, !tbaa !22
  %42 = call noundef ptr @_ZN8Ostacolo11getIngombroEv(ptr noundef nonnull align 8 dereferenceable(48) %41)
  %43 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
  %44 = icmp ugt i64 %43, %indvars.iv
  br i1 %44, label %48, label %45

45:                                               ; preds = %40
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %64 unwind label %67

46:                                               ; preds = %38
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %69

48:                                               ; preds = %40
  %49 = load ptr, ptr %2, align 8, !tbaa !22
  %.sroa.08.0.copyload = load double, ptr %49, align 8, !tbaa !23
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %49, i64 8
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !23
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8OstacoloSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv81)
          to label %51 unwind label %61

51:                                               ; preds = %48
  %52 = load ptr, ptr %50, align 8, !tbaa !22
  %53 = call noundef ptr @_ZN8Ostacolo11getIngombroEv(ptr noundef nonnull align 8 dereferenceable(48) %52)
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv)
          to label %55 unwind label %61

55:                                               ; preds = %51
  %56 = load ptr, ptr %54, align 8, !tbaa !22
  %.sroa.07.0.copyload = load double, ptr %56, align 8, !tbaa !23
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !23
  %57 = call noundef double @_ZN8Ostacolo8DistanzaE5PuntoS0_(double %.sroa.08.0.copyload, double %.sroa.29.0.copyload, double %.sroa.07.0.copyload, double %.sroa.2.0.copyload)
  %58 = load double, ptr %4, align 8, !tbaa !23
  %59 = fcmp olt double %57, %58
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  store double %57, ptr %4, align 8, !tbaa !23
  br label %63

61:                                               ; preds = %51, %48
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %69

63:                                               ; preds = %60, %55
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %38, !llvm.loop !24

64:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %65 = call noundef i64 @_ZNKSt6vectorIP8OstacoloSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %66 = icmp ugt i64 %65, %indvars.iv.next82
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !25

67:                                               ; preds = %45
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %69

69:                                               ; preds = %46, %61, %67
  %.pn47.pn = phi { ptr, i32 } [ %68, %67 ], [ %62, %61 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %115

70:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
          to label %72 unwind label %100

72:                                               ; preds = %70
  %73 = load double, ptr %71, align 8, !tbaa !23
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1)
          to label %75 unwind label %102

75:                                               ; preds = %72
  %76 = load double, ptr %74, align 8, !tbaa !23
  %77 = fsub double %76, %73
  %78 = call double @llvm.fabs.f64(double %77)
  %79 = load double, ptr @_ZL15dist_tolleranza, align 8, !tbaa !23
  %80 = fcmp ugt double %78, %79
  br i1 %80, label %106, label %81

81:                                               ; preds = %75
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %82 unwind label %102

82:                                               ; preds = %81
  %83 = call noundef i64 @_ZNKSt6vectorIP8OstacoloSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %84 = icmp ugt i64 %83, 2
  br i1 %84, label %85, label %110

85:                                               ; preds = %82
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2)
          to label %87 unwind label %104

87:                                               ; preds = %85
  %88 = load double, ptr %86, align 8, !tbaa !23
  %89 = fsub double %76, %88
  %90 = call double @llvm.fabs.f64(double %89)
  %91 = load double, ptr @_ZL15dist_tolleranza, align 8, !tbaa !23
  %92 = fcmp ugt double %90, %91
  br i1 %92, label %110, label %93

93:                                               ; preds = %87
  %94 = fsub double %88, %73
  %95 = call double @llvm.fabs.f64(double %94)
  %96 = fcmp ugt double %95, %91
  br i1 %96, label %110, label %97

97:                                               ; preds = %93
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %110 unwind label %104

98:                                               ; preds = %._crit_edge
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %115

100:                                              ; preds = %70
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %115

102:                                              ; preds = %81, %72
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %115

104:                                              ; preds = %97, %85
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %115

106:                                              ; preds = %75
  %107 = load ptr, ptr %2, align 8, !tbaa !22
  %108 = icmp eq ptr %107, null
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  call void @_ZdlPvm(ptr noundef nonnull %107, i64 noundef 16) #9
  br label %110

110:                                              ; preds = %87, %93, %97, %106, %109, %82
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  %111 = fadd double %.02964, 1.000000e+00
  %112 = load double, ptr %9, align 8, !tbaa !19
  %113 = fadd double %112, -1.000000e+00
  %114 = fcmp olt double %111, %113
  br i1 %114, label %.lr.ph66, label %._crit_edge67, !llvm.loop !26

115:                                              ; preds = %100, %104, %102, %98, %69
  %.pn47.pn.pn = phi { ptr, i32 } [ %.pn47.pn, %69 ], [ %99, %98 ], [ %101, %100 ], [ %105, %104 ], [ %103, %102 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %116

116:                                              ; preds = %115, %36
  %.pn47.pn.pn.pn = phi { ptr, i32 } [ %.pn47.pn.pn, %115 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn47.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

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

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

declare void @_ZN5PuntoC1Edd(ptr, double, double) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS7Voronoi", !7, i64 0, !7, i64 8, !10, i64 16, !15, i64 40, !15, i64 64}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIP8OstacoloSaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIP8OstacoloSaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIP8OstacoloSaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIP8OstacoloSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIP5PuntoSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIP5PuntoSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP5PuntoSaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP5PuntoSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!6, !7, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !14, i64 0}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}


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