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

; 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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 }
%class.Punto = type { double, double }
%"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 }
%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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; 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 void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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

; 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
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

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

; 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
define dso_local void @_ZN7Voronoi11getPercorsoE5PuntoS0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.10") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, double %2, double %3, double %4, double %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca %class.Punto, align 8
  %9 = alloca %class.Punto, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %class.Punto, align 8
  %25 = alloca %class.Punto, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %class.Punto, align 8
  %29 = alloca %class.Punto, align 8
  %30 = alloca %"class.std::vector.10", align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %7, align 8
  %32 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  store double %2, ptr %32, align 8
  %33 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  store double %3, ptr %33, align 8
  %34 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %4, ptr %34, align 8
  %35 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %5, ptr %35, align 8
  store ptr %1, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %10, align 8
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i1 false, ptr %11, align 1
  call void @_ZNSt6vectorI5PuntoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %39 unwind label %47

39:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store double 1.000000e+04, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store double 1.000000e+04, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %114, %39
  %41 = load i32, ptr %18, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %class.Voronoi, ptr %36, i32 0, i32 3
  %44 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = icmp ult i64 %42, %44
  br i1 %45, label %51, label %46

46:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %117

47:                                               ; preds = %6
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %12, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %13, align 4
  br label %257

51:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %52 = getelementptr inbounds %class.Voronoi, ptr %36, i32 0, i32 3
  %53 = load i32, ptr %18, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54)
          to label %56 unwind label %102

56:                                               ; preds = %51
  %57 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %57, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %58 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %59 = load ptr, ptr %19, align 8, !tbaa !5
  %60 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  %61 = fsub double %58, %60
  %62 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  %64 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %63)
  %65 = fsub double %62, %64
  %66 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  %69 = fsub double %66, %68
  %70 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %71)
  %73 = fsub double %70, %72
  %74 = fmul double %69, %73
  %75 = call double @llvm.fmuladd.f64(double %61, double %65, double %74)
  %76 = call double @sqrt(double noundef %75) #7
  store double %76, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %77 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %78)
  %80 = fsub double %77, %79
  %81 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  %83 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %82)
  %84 = fsub double %81, %83
  %85 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  %88 = fsub double %85, %87
  %89 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %90)
  %92 = fsub double %89, %91
  %93 = fmul double %88, %92
  %94 = call double @llvm.fmuladd.f64(double %80, double %84, double %93)
  %95 = call double @sqrt(double noundef %94) #7
  store double %95, ptr %21, align 8, !tbaa !9
  %96 = load double, ptr %20, align 8, !tbaa !9
  %97 = load double, ptr %14, align 8, !tbaa !9
  %98 = fcmp olt double %96, %97
  br i1 %98, label %99, label %106

99:                                               ; preds = %56
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %100, ptr %17, align 8, !tbaa !5
  %101 = load double, ptr %20, align 8, !tbaa !9
  store double %101, ptr %14, align 8, !tbaa !9
  br label %106

102:                                              ; preds = %51
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %254

106:                                              ; preds = %99, %56
  %107 = load double, ptr %21, align 8, !tbaa !9
  %108 = load double, ptr %15, align 8, !tbaa !9
  %109 = fcmp olt double %107, %108
  br i1 %109, label %110, label %113

110:                                              ; preds = %106
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %111, ptr %16, align 8, !tbaa !5
  %112 = load double, ptr %21, align 8, !tbaa !9
  store double %112, ptr %15, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %110, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %18, align 4, !tbaa !11
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %18, align 4, !tbaa !11
  br label %40, !llvm.loop !13

117:                                              ; preds = %46
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = icmp eq ptr %118, null
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  store i1 true, ptr %11, align 1
  store i32 1, ptr %22, align 4
  br label %252

121:                                              ; preds = %117
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %125

124:                                              ; preds = %121
  store i1 true, ptr %11, align 1
  store i32 1, ptr %22, align 4
  br label %252

125:                                              ; preds = %121
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %126)
          to label %127 unwind label %138

127:                                              ; preds = %125
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %128)
  %130 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %131 = fcmp oeq double %129, %130
  br i1 %131, label %132, label %142

132:                                              ; preds = %127
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %133)
  %135 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %136 = fcmp oeq double %134, %135
  br i1 %136, label %137, label %142

137:                                              ; preds = %132
  store i1 true, ptr %11, align 1
  store i32 1, ptr %22, align 4
  br label %252

138:                                              ; preds = %125
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  br label %254

142:                                              ; preds = %132, %127
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %143, i64 16, i1 false), !tbaa.struct !15
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %144, i64 16, i1 false), !tbaa.struct !15
  %145 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %146 = load double, ptr %145, align 8
  %147 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %148 = load double, ptr %147, align 8
  %149 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %150 = load double, ptr %149, align 8
  %151 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %152 = load double, ptr %151, align 8
  invoke void @_ZN7Voronoi18getPercorsoVoronoiE5PuntoS0_PSt6vectorIPS0_SaIS2_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %23, ptr noundef nonnull align 8 dereferenceable(88) %36, double %146, double %148, double %150, double %152, ptr noundef null)
          to label %153 unwind label %168

153:                                              ; preds = %142
  %154 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %155 = icmp ugt i64 %154, 0
  br i1 %155, label %156, label %242

156:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0)
          to label %158 unwind label %172

158:                                              ; preds = %156
  %159 = load ptr, ptr %157, align 8, !tbaa !5
  store ptr %159, ptr %26, align 8, !tbaa !5
  %160 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %160)
          to label %161 unwind label %172

161:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 1, ptr %27, align 4, !tbaa !11
  br label %162

162:                                              ; preds = %210, %161
  %163 = load i32, ptr %27, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %166 = icmp ult i64 %164, %165
  br i1 %166, label %176, label %167

167:                                              ; preds = %162
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %213

168:                                              ; preds = %142
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %12, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %13, align 4
  br label %251

172:                                              ; preds = %158, %156
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %12, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %13, align 4
  br label %241

176:                                              ; preds = %162
  %177 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %177, i64 16, i1 false), !tbaa.struct !15
  %178 = load i32, ptr %27, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %179)
          to label %181 unwind label %205

181:                                              ; preds = %176
  %182 = load ptr, ptr %180, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %182, i64 16, i1 false), !tbaa.struct !15
  %183 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %184 = load double, ptr %183, align 8
  %185 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %188 = load double, ptr %187, align 8
  %189 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %190 = load double, ptr %189, align 8
  %191 = call noundef double @_ZN8Ostacolo8DistanzaE5PuntoS0_(double %184, double %186, double %188, double %190)
  %192 = fcmp oge double %191, 5.000000e+00
  br i1 %192, label %193, label %209

193:                                              ; preds = %181
  %194 = load i32, ptr %27, align 4, !tbaa !11
  %195 = sext i32 %194 to i64
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %195)
          to label %197 unwind label %205

197:                                              ; preds = %193
  %198 = load ptr, ptr %196, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %198)
          to label %199 unwind label %205

199:                                              ; preds = %197
  %200 = load i32, ptr %27, align 4, !tbaa !11
  %201 = sext i32 %200 to i64
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %201)
          to label %203 unwind label %205

203:                                              ; preds = %199
  %204 = load ptr, ptr %202, align 8, !tbaa !5
  store ptr %204, ptr %26, align 8, !tbaa !5
  br label %209

205:                                              ; preds = %199, %197, %193, %176
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %241

209:                                              ; preds = %203, %181
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %27, align 4, !tbaa !11
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %27, align 4, !tbaa !11
  br label %162, !llvm.loop !16

213:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #7
  call void @_ZNSt6vectorI5PuntoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %214

214:                                              ; preds = %226, %213
  %215 = load i32, ptr %31, align 4, !tbaa !11
  %216 = sext i32 %215 to i64
  %217 = call noundef i64 @_ZNKSt6vectorI5PuntoSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %218 = icmp ult i64 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %214
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %233

220:                                              ; preds = %214
  %221 = load i32, ptr %31, align 4, !tbaa !11
  %222 = sext i32 %221 to i64
  %223 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5PuntoSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %222)
          to label %224 unwind label %229

224:                                              ; preds = %220
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(16) %223)
          to label %225 unwind label %229

225:                                              ; preds = %224
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %31, align 4, !tbaa !11
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %31, align 4, !tbaa !11
  br label %214, !llvm.loop !17

229:                                              ; preds = %224, %220
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %12, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %240

233:                                              ; preds = %219
  %234 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5PuntoSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %235 unwind label %236

235:                                              ; preds = %233
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %242

236:                                              ; preds = %233
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %12, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %13, align 4
  br label %240

240:                                              ; preds = %236, %229
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #7
  br label %241

241:                                              ; preds = %240, %205, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %250

242:                                              ; preds = %235, %153
  %243 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %243)
          to label %244 unwind label %246

244:                                              ; preds = %242
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %245 unwind label %246

245:                                              ; preds = %244
  store i1 true, ptr %11, align 1
  store i32 1, ptr %22, align 4
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %252

246:                                              ; preds = %244, %242
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %12, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %13, align 4
  br label %250

250:                                              ; preds = %246, %241
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  br label %251

251:                                              ; preds = %250, %168
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %254

252:                                              ; preds = %245, %137, %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %253 = load i1, ptr %11, align 1
  br i1 %253, label %256, label %255

254:                                              ; preds = %251, %138, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %257

255:                                              ; preds = %252
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %256

256:                                              ; preds = %255, %252
  ret void

257:                                              ; preds = %254, %47
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %258

258:                                              ; preds = %257
  %259 = load ptr, ptr %12, align 8
  %260 = load i32, ptr %13, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Voronoi18getPercorsoVoronoiE5PuntoS0_PSt6vectorIPS0_SaIS2_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef) #2 align 2

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

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

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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 }
%class.Punto = type { double, double }
%"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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; 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 void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

; 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
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Voronoi11getPercorsoE5PuntoS0_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.10") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, double %2, double %3, double %4, double %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %class.Punto, align 8
  %8 = alloca %class.Punto, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector.10", align 8
  store double %2, ptr %7, align 8
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  store double %3, ptr %11, align 8
  store double %4, ptr %8, align 8
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  store double %5, ptr %12, align 8
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @_ZNSt6vectorI5PuntoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %.preheader79 unwind label %19

.preheader79:                                     ; preds = %6
  %15 = getelementptr inbounds i8, ptr %1, i64 40
  %16 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %.not96 = icmp eq i64 %16, 0
  br i1 %.not96, label %._crit_edge.thread, label %.lr.ph

._crit_edge:                                      ; preds = %22
  %17 = icmp eq ptr %.164, null
  %18 = icmp eq ptr %.162, null
  %or.cond = select i1 %17, i1 true, i1 %18
  br i1 %or.cond, label %._crit_edge.thread, label %60

19:                                               ; preds = %6
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %122

.lr.ph:                                           ; preds = %.preheader79, %22
  %indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ 0, %.preheader79 ]
  %.05486 = phi double [ %.155, %22 ], [ 1.000000e+04, %.preheader79 ]
  %.05985 = phi double [ %.160, %22 ], [ 1.000000e+04, %.preheader79 ]
  %.06184 = phi ptr [ %.162, %22 ], [ null, %.preheader79 ]
  %.06383 = phi ptr [ %.164, %22 ], [ null, %.preheader79 ]
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv)
          to label %22 unwind label %58

22:                                               ; preds = %.lr.ph
  %23 = load ptr, ptr %21, align 8, !tbaa !5
  %24 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %25 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %26 = fsub double %24, %25
  %27 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %28 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %29 = fsub double %27, %28
  %30 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %31 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %32 = fsub double %30, %31
  %33 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %34 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %35 = fsub double %33, %34
  %36 = fmul double %32, %35
  %37 = call double @llvm.fmuladd.f64(double %26, double %29, double %36)
  %38 = call double @sqrt(double noundef %37) #6
  %39 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %40 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %41 = fsub double %39, %40
  %42 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %43 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %44 = fsub double %42, %43
  %45 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %46 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %47 = fsub double %45, %46
  %48 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %49 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %50 = fsub double %48, %49
  %51 = fmul double %47, %50
  %52 = call double @llvm.fmuladd.f64(double %41, double %44, double %51)
  %53 = call double @sqrt(double noundef %52) #6
  %54 = fcmp olt double %38, %.05486
  %.164 = select i1 %54, ptr %23, ptr %.06383
  %.155 = select i1 %54, double %38, double %.05486
  %55 = fcmp olt double %53, %.05985
  %.162 = select i1 %55, ptr %23, ptr %.06184
  %.160 = select i1 %55, double %53, double %.05985
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %57 = icmp ugt i64 %56, %indvars.iv.next
  br i1 %57, label %.lr.ph, label %._crit_edge, !llvm.loop !9

58:                                               ; preds = %.lr.ph
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %122

60:                                               ; preds = %._crit_edge
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %.164)
          to label %61 unwind label %69

61:                                               ; preds = %60
  %62 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %.164)
  %63 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %64 = fcmp oeq double %62, %63
  br i1 %64, label %65, label %71

65:                                               ; preds = %61
  %66 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %.164)
  %67 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %68 = fcmp oeq double %66, %67
  br i1 %68, label %._crit_edge.thread, label %71

69:                                               ; preds = %60
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %122

71:                                               ; preds = %65, %61
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  %.sroa.013.0.copyload = load double, ptr %.164, align 8, !tbaa !11
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %.164, i64 8
  %.sroa.214.0.copyload = load double, ptr %.sroa.214.0..sroa_idx, align 8, !tbaa !11
  %.sroa.011.0.copyload = load double, ptr %.162, align 8, !tbaa !11
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %.162, i64 8
  %.sroa.212.0.copyload = load double, ptr %.sroa.212.0..sroa_idx, align 8, !tbaa !11
  invoke void @_ZN7Voronoi18getPercorsoVoronoiE5PuntoS0_PSt6vectorIPS0_SaIS2_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(88) %1, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload, ptr noundef null)
          to label %72 unwind label %81

72:                                               ; preds = %71
  %73 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not = icmp eq i64 %73, 0
  br i1 %.not, label %115, label %74

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0)
          to label %76 unwind label %83

76:                                               ; preds = %74
  %77 = load ptr, ptr %75, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %77)
          to label %.preheader unwind label %83

.preheader:                                       ; preds = %76
  %78 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %79 = icmp ugt i64 %78, 1
  br i1 %79, label %.lr.ph90, label %._crit_edge91

._crit_edge91:                                    ; preds = %100, %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorI5PuntoSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %80 = call noundef i64 @_ZNKSt6vectorI5PuntoSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %.not97 = icmp eq i64 %80, 0
  br i1 %.not97, label %._crit_edge95, label %.lr.ph94

81:                                               ; preds = %71
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %121

83:                                               ; preds = %76, %74
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %120

.lr.ph90:                                         ; preds = %.preheader, %100
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %100 ], [ 1, %.preheader ]
  %.05788 = phi ptr [ %.158, %100 ], [ %77, %.preheader ]
  %.sroa.03.0.copyload = load double, ptr %.05788, align 8, !tbaa !11
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %.05788, i64 8
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !11
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv99)
          to label %86 unwind label %98

86:                                               ; preds = %.lr.ph90
  %87 = load ptr, ptr %85, align 8, !tbaa !5
  %.sroa.0.0.copyload = load double, ptr %87, align 8, !tbaa !11
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %87, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !11
  %88 = call noundef double @_ZN8Ostacolo8DistanzaE5PuntoS0_(double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %89 = fcmp ult double %88, 5.000000e+00
  br i1 %89, label %100, label %90

90:                                               ; preds = %86
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv99)
          to label %92 unwind label %98

92:                                               ; preds = %90
  %93 = load ptr, ptr %91, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %93)
          to label %94 unwind label %98

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv99)
          to label %96 unwind label %98

96:                                               ; preds = %94
  %97 = load ptr, ptr %95, align 8, !tbaa !5
  br label %100

98:                                               ; preds = %94, %92, %90, %.lr.ph90
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %120

100:                                              ; preds = %86, %96
  %.158 = phi ptr [ %97, %96 ], [ %.05788, %86 ]
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %101 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %102 = icmp ugt i64 %101, %indvars.iv.next100
  br i1 %102, label %.lr.ph90, label %._crit_edge91, !llvm.loop !13

._crit_edge95:                                    ; preds = %106, %._crit_edge91
  %103 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5PuntoSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %111 unwind label %112

.lr.ph94:                                         ; preds = %._crit_edge91, %106
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %106 ], [ 0, %._crit_edge91 ]
  %104 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI5PuntoSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv102)
          to label %105 unwind label %109

105:                                              ; preds = %.lr.ph94
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(16) %104)
          to label %106 unwind label %109

106:                                              ; preds = %105
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %107 = call noundef i64 @_ZNKSt6vectorI5PuntoSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %108 = icmp ugt i64 %107, %indvars.iv.next103
  br i1 %108, label %.lr.ph94, label %._crit_edge95, !llvm.loop !14

109:                                              ; preds = %105, %.lr.ph94
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %114

111:                                              ; preds = %._crit_edge95
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %115

112:                                              ; preds = %._crit_edge95
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %114

114:                                              ; preds = %112, %109
  %.pn = phi { ptr, i32 } [ %110, %109 ], [ %113, %112 ]
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %120

115:                                              ; preds = %111, %72
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %.162)
          to label %116 unwind label %118

116:                                              ; preds = %115
  invoke void @_ZNSt6vectorI5PuntoSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %117 unwind label %118

117:                                              ; preds = %116
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %._crit_edge.thread

118:                                              ; preds = %116, %115
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %120

120:                                              ; preds = %83, %98, %114, %118
  %.pn72.pn = phi { ptr, i32 } [ %119, %118 ], [ %99, %98 ], [ %.pn, %114 ], [ %84, %83 ]
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %121

121:                                              ; preds = %120, %81
  %.pn72.pn.pn = phi { ptr, i32 } [ %.pn72.pn, %120 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %122

._crit_edge.thread:                               ; preds = %.preheader79, %117, %._crit_edge, %65
  ret void

122:                                              ; preds = %58, %69, %121, %19
  %.pn76.pn = phi { ptr, i32 } [ %20, %19 ], [ %59, %58 ], [ %.pn72.pn.pn, %121 ], [ %70, %69 ]
  call void @_ZNSt6vectorI5PuntoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn76.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Voronoi18getPercorsoVoronoiE5PuntoS0_PSt6vectorIPS0_SaIS2_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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