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

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

%class.Ostacolo = type { %"class.std::vector", %"class.std::vector" }
%"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 }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8OstacoloC2EPSt6vectorIP5PuntoSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  call void @_ZNSt6vectorIP5PuntoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %19 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 1
  call void @_ZNSt6vectorIP5PuntoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %22 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP5PuntoSaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %23 unwind label %35

23:                                               ; preds = %2
  %24 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %25 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %26 = icmp ugt i64 %25, 1
  br i1 %26, label %27, label %193

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %182, %27
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %32 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %33 = icmp ult i64 %30, %32
  br i1 %33, label %39, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %192

35:                                               ; preds = %197, %193, %2
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %5, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %6, align 4
  br label %200

39:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %40 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42)
          to label %44 unwind label %86

44:                                               ; preds = %39
  %45 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %45, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %46 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %51 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %52 = urem i64 %49, %51
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %52)
          to label %54 unwind label %90

54:                                               ; preds = %44
  %55 = load ptr, ptr %53, align 8, !tbaa !5
  store ptr %55, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  store double %57, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %58)
  store double %59, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %60)
  store double %61, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %62)
  store double %63, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %64, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %65)
  store double %66, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  store double %68, ptr %16, align 8, !tbaa !11
  br label %69

69:                                               ; preds = %178, %54
  %70 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 1
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %71 unwind label %94

71:                                               ; preds = %69
  %72 = load double, ptr %10, align 8, !tbaa !11
  %73 = load double, ptr %11, align 8, !tbaa !11
  %74 = fcmp oeq double %72, %73
  br i1 %74, label %75, label %107

75:                                               ; preds = %71
  %76 = load double, ptr %12, align 8, !tbaa !11
  %77 = load double, ptr %13, align 8, !tbaa !11
  %78 = fcmp une double %76, %77
  br i1 %78, label %79, label %107

79:                                               ; preds = %75
  %80 = load double, ptr %12, align 8, !tbaa !11
  %81 = load double, ptr %13, align 8, !tbaa !11
  %82 = fcmp olt double %80, %81
  br i1 %82, label %83, label %98

83:                                               ; preds = %79
  %84 = load double, ptr %16, align 8, !tbaa !11
  %85 = fadd double %84, 1.000000e+00
  store double %85, ptr %16, align 8, !tbaa !11
  br label %106

86:                                               ; preds = %39
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %5, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %6, align 4
  br label %191

90:                                               ; preds = %44
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %5, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %6, align 4
  br label %190

94:                                               ; preds = %160, %69
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %5, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %6, align 4
  br label %189

98:                                               ; preds = %79
  %99 = load double, ptr %12, align 8, !tbaa !11
  %100 = load double, ptr %13, align 8, !tbaa !11
  %101 = fcmp ogt double %99, %100
  br i1 %101, label %102, label %105

102:                                              ; preds = %98
  %103 = load double, ptr %16, align 8, !tbaa !11
  %104 = fadd double %103, -1.000000e+00
  store double %104, ptr %16, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %102, %98
  br label %106

106:                                              ; preds = %105, %83
  br label %160

107:                                              ; preds = %75, %71
  %108 = load double, ptr %10, align 8, !tbaa !11
  %109 = load double, ptr %11, align 8, !tbaa !11
  %110 = fcmp une double %108, %109
  br i1 %110, label %111, label %131

111:                                              ; preds = %107
  %112 = load double, ptr %12, align 8, !tbaa !11
  %113 = load double, ptr %13, align 8, !tbaa !11
  %114 = fcmp oeq double %112, %113
  br i1 %114, label %115, label %131

115:                                              ; preds = %111
  %116 = load double, ptr %10, align 8, !tbaa !11
  %117 = load double, ptr %11, align 8, !tbaa !11
  %118 = fcmp olt double %116, %117
  br i1 %118, label %119, label %122

119:                                              ; preds = %115
  %120 = load double, ptr %15, align 8, !tbaa !11
  %121 = fadd double %120, 1.000000e+00
  store double %121, ptr %15, align 8, !tbaa !11
  br label %130

122:                                              ; preds = %115
  %123 = load double, ptr %10, align 8, !tbaa !11
  %124 = load double, ptr %11, align 8, !tbaa !11
  %125 = fcmp ogt double %123, %124
  br i1 %125, label %126, label %129

126:                                              ; preds = %122
  %127 = load double, ptr %15, align 8, !tbaa !11
  %128 = fadd double %127, -1.000000e+00
  store double %128, ptr %15, align 8, !tbaa !11
  br label %129

129:                                              ; preds = %126, %122
  br label %130

130:                                              ; preds = %129, %119
  br label %159

131:                                              ; preds = %111, %107
  %132 = load double, ptr %10, align 8, !tbaa !11
  %133 = load double, ptr %11, align 8, !tbaa !11
  %134 = fcmp olt double %132, %133
  br i1 %134, label %135, label %138

135:                                              ; preds = %131
  %136 = load double, ptr %15, align 8, !tbaa !11
  %137 = fadd double %136, 1.000000e+00
  store double %137, ptr %15, align 8, !tbaa !11
  br label %146

138:                                              ; preds = %131
  %139 = load double, ptr %10, align 8, !tbaa !11
  %140 = load double, ptr %11, align 8, !tbaa !11
  %141 = fcmp ogt double %139, %140
  br i1 %141, label %142, label %145

142:                                              ; preds = %138
  %143 = load double, ptr %15, align 8, !tbaa !11
  %144 = fadd double %143, -1.000000e+00
  store double %144, ptr %15, align 8, !tbaa !11
  br label %145

145:                                              ; preds = %142, %138
  br label %146

146:                                              ; preds = %145, %135
  %147 = load double, ptr %15, align 8, !tbaa !11
  %148 = load double, ptr %10, align 8, !tbaa !11
  %149 = fsub double %147, %148
  %150 = load double, ptr %11, align 8, !tbaa !11
  %151 = load double, ptr %10, align 8, !tbaa !11
  %152 = fsub double %150, %151
  %153 = fdiv double %149, %152
  %154 = load double, ptr %13, align 8, !tbaa !11
  %155 = load double, ptr %12, align 8, !tbaa !11
  %156 = fsub double %154, %155
  %157 = load double, ptr %12, align 8, !tbaa !11
  %158 = call double @llvm.fmuladd.f64(double %153, double %156, double %157)
  store double %158, ptr %16, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %146, %130
  br label %160

160:                                              ; preds = %159, %106
  %161 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
          to label %162 unwind label %94

162:                                              ; preds = %160
  %163 = load double, ptr %15, align 8, !tbaa !11
  %164 = load double, ptr %16, align 8, !tbaa !11
  invoke void @_ZN5PuntoC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %161, double noundef %163, double noundef %164)
          to label %165 unwind label %185

165:                                              ; preds = %162
  store ptr %161, ptr %14, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %167)
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %169)
  %171 = fcmp oeq double %168, %170
  br i1 %171, label %172, label %178

172:                                              ; preds = %166
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %173)
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %175)
  %177 = fcmp oeq double %174, %176
  br label %178

178:                                              ; preds = %172, %166
  %179 = phi i1 [ false, %166 ], [ %177, %172 ]
  %180 = xor i1 %179, true
  br i1 %180, label %69, label %181, !llvm.loop !13

181:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %7, align 4, !tbaa !9
  br label %28, !llvm.loop !15

185:                                              ; preds = %162
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %5, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %161, i64 noundef 16) #8
  br label %189

189:                                              ; preds = %185, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %190

190:                                              ; preds = %189, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %191

191:                                              ; preds = %190, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %200

192:                                              ; preds = %34
  br label %199

193:                                              ; preds = %23
  %194 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 1
  %195 = getelementptr inbounds %class.Ostacolo, ptr %17, i32 0, i32 0
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef 0)
          to label %197 unwind label %35

197:                                              ; preds = %193
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %194, ptr noundef nonnull align 8 dereferenceable(8) %196)
          to label %198 unwind label %35

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198, %192
  ret void

200:                                              ; preds = %191, %35
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %5, align 8
  %203 = load i32, ptr %6, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205
}

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

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

; 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) #1 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)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8OstacoloC2EPSt6vectorIP5PuntoSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  tail call void @_ZNSt6vectorIP5PuntoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt6vectorIP5PuntoSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %5 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP5PuntoSaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %6 unwind label %10

6:                                                ; preds = %2
  %7 = tail call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %8 = icmp ugt i64 %7, 1
  br i1 %8, label %.preheader, label %96

.preheader:                                       ; preds = %6
  %9 = tail call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

10:                                               ; preds = %98, %96, %2
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %99

.lr.ph:                                           ; preds = %.preheader, %.split79.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.split79.us ], [ 0, %.preheader ]
  %12 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv)
          to label %13 unwind label %58

13:                                               ; preds = %.lr.ph
  %14 = load ptr, ptr %12, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %16 = urem i64 %indvars.iv.next, %15
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %16)
          to label %18 unwind label %60

18:                                               ; preds = %13
  %19 = load ptr, ptr %17, align 8, !tbaa !5
  %20 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %21 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %22 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %23 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store ptr %14, ptr %3, align 8, !tbaa !5
  %24 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  %27 = fcmp oeq double %20, %21
  %28 = fcmp une double %22, %23
  %or.cond = and i1 %27, %28
  %29 = fcmp une double %20, %21
  %30 = fcmp oeq double %22, %23
  %or.cond70 = and i1 %29, %30
  %31 = fcmp olt double %20, %21
  %32 = fcmp ogt double %20, %21
  %33 = fsub double %21, %20
  %34 = fsub double %23, %22
  %35 = fcmp olt double %22, %23
  %36 = fcmp ogt double %22, %23
  br i1 %or.cond, label %.critedge.us, label %.critedge

.critedge.us:                                     ; preds = %18, %.critedge.us.backedge
  %.0.us = phi double [ %.1.us, %.critedge.us.backedge ], [ %26, %18 ]
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %37 unwind label %.split73.us

37:                                               ; preds = %.critedge.us
  br i1 %35, label %41, label %38

38:                                               ; preds = %37
  br i1 %36, label %39, label %43

39:                                               ; preds = %38
  %40 = fadd double %.0.us, -1.000000e+00
  br label %43

41:                                               ; preds = %37
  %42 = fadd double %.0.us, 1.000000e+00
  br label %43

43:                                               ; preds = %41, %39, %38
  %.1.us = phi double [ %42, %41 ], [ %40, %39 ], [ %.0.us, %38 ]
  %44 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
          to label %45 unwind label %.split73.us

45:                                               ; preds = %43
  invoke void @_ZN5PuntoC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %44, double noundef %24, double noundef %.1.us)
          to label %46 unwind label %.split75.us

46:                                               ; preds = %45
  store ptr %44, ptr %3, align 8, !tbaa !5
  %47 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %48 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %49 = fcmp oeq double %47, %48
  br i1 %49, label %50, label %.critedge.us.backedge

50:                                               ; preds = %46
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %53 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %54 = fcmp oeq double %52, %53
  br i1 %54, label %.split79.us, label %.critedge.us.backedge

.critedge.us.backedge:                            ; preds = %50, %46
  br label %.critedge.us, !llvm.loop !9

.split73.us:                                      ; preds = %43, %.critedge.us
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %95

.split75.us:                                      ; preds = %45
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %94

.critedge:                                        ; preds = %18, %.critedge.backedge
  %.049 = phi double [ %.2, %.critedge.backedge ], [ %24, %18 ]
  %.0 = phi double [ %.1, %.critedge.backedge ], [ %26, %18 ]
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %57 unwind label %.split73

57:                                               ; preds = %.critedge
  br i1 %or.cond70, label %63, label %69

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

60:                                               ; preds = %13
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %99

.split73:                                         ; preds = %79, %.critedge
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %95

63:                                               ; preds = %57
  br i1 %31, label %64, label %66

64:                                               ; preds = %63
  %65 = fadd double %.049, 1.000000e+00
  br label %79

66:                                               ; preds = %63
  br i1 %32, label %67, label %79

67:                                               ; preds = %66
  %68 = fadd double %.049, -1.000000e+00
  br label %79

69:                                               ; preds = %57
  br i1 %31, label %70, label %72

70:                                               ; preds = %69
  %71 = fadd double %.049, 1.000000e+00
  br label %75

72:                                               ; preds = %69
  br i1 %32, label %73, label %75

73:                                               ; preds = %72
  %74 = fadd double %.049, -1.000000e+00
  br label %75

75:                                               ; preds = %72, %73, %70
  %.150 = phi double [ %71, %70 ], [ %74, %73 ], [ %.049, %72 ]
  %76 = fsub double %.150, %20
  %77 = fdiv double %76, %33
  %78 = call double @llvm.fmuladd.f64(double %77, double %34, double %22)
  br label %79

79:                                               ; preds = %75, %66, %67, %64
  %.2 = phi double [ %65, %64 ], [ %68, %67 ], [ %.049, %66 ], [ %.150, %75 ]
  %.1 = phi double [ %.0, %64 ], [ %.0, %67 ], [ %.0, %66 ], [ %78, %75 ]
  %80 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
          to label %81 unwind label %.split73

81:                                               ; preds = %79
  invoke void @_ZN5PuntoC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %80, double noundef %.2, double noundef %.1)
          to label %82 unwind label %.split75

82:                                               ; preds = %81
  store ptr %80, ptr %3, align 8, !tbaa !5
  %83 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %80)
  %84 = call noundef double @_ZN5Punto4getXEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %85 = fcmp oeq double %83, %84
  br i1 %85, label %86, label %.critedge.backedge

86:                                               ; preds = %82
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %87)
  %89 = call noundef double @_ZN5Punto4getYEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %90 = fcmp oeq double %88, %89
  br i1 %90, label %.split79.us, label %.critedge.backedge

.critedge.backedge:                               ; preds = %86, %82
  br label %.critedge, !llvm.loop !9

.split79.us:                                      ; preds = %86, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %91 = call noundef i64 @_ZNKSt6vectorIP5PuntoSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %92 = icmp ugt i64 %91, %indvars.iv.next
  br i1 %92, label %.lr.ph, label %.loopexit, !llvm.loop !11

.split75:                                         ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %94

94:                                               ; preds = %.split75.us, %.split75
  %.us-phi76 = phi ptr [ %80, %.split75 ], [ %44, %.split75.us ]
  %.us-phi77 = phi { ptr, i32 } [ %93, %.split75 ], [ %56, %.split75.us ]
  call void @_ZdlPvm(ptr noundef nonnull %.us-phi76, i64 noundef 16) #8
  br label %95

95:                                               ; preds = %.split73, %.split73.us, %94
  %.pn = phi { ptr, i32 } [ %.us-phi77, %94 ], [ %62, %.split73 ], [ %55, %.split73.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %99

96:                                               ; preds = %6
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5PuntoSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0)
          to label %98 unwind label %10

98:                                               ; preds = %96
  invoke void @_ZNSt6vectorIP5PuntoSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %.loopexit unwind label %10

.loopexit:                                        ; preds = %.split79.us, %.preheader, %98
  ret void

99:                                               ; preds = %58, %95, %60, %10
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %11, %10 ], [ %59, %58 ], [ %.pn, %95 ], [ %61, %60 ]
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

; 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 #1 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP5PuntoSaIS1_EED2Ev(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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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