; LLVM IR from robotics-upo/Heuristic_path_planners :: include/voro++-0.4.6/src (cell)

; 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.voro::voronoicell_base" = type { ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, double, double, double, double }

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro16voronoicell_base10face_areasERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorIdSaIdEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %291, %2
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 5
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %28 = icmp slt i32 %25, %27
  br i1 %28, label %29, label %294

29:                                               ; preds = %24
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %287, %29
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 8
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr %33, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = icmp slt i32 %31, %37
  br i1 %38, label %39, label %290

39:                                               ; preds = %30
  %40 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %41, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %45, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %49, ptr %8, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp sge i32 %50, 0
  br i1 %51, label %52, label %286

52:                                               ; preds = %39
  store double 0.000000e+00, ptr %5, align 8, !tbaa !16
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sub nsw i32 -1, %53
  %55 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  store i32 %54, ptr %63, align 4, !tbaa !9
  %64 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %65 = load ptr, ptr %64, align 8, !tbaa !15
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 8
  %71 = load ptr, ptr %70, align 8, !tbaa !14
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = add nsw i32 %75, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %69, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %22, i32 noundef %80, i32 noundef %81)
  store i32 %82, ptr %9, align 4, !tbaa !9
  %83 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %88, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !9
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = sub nsw i32 -1, %93
  %95 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %96, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  store i32 %94, ptr %103, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %108, %52
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = icmp ne i32 %105, %106
  br i1 %107, label %108, label %282

108:                                              ; preds = %104
  %109 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 8
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %116, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = add nsw i32 %120, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr %114, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %22, i32 noundef %125, i32 noundef %126)
  store i32 %127, ptr %11, align 4, !tbaa !9
  %128 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %129 = load ptr, ptr %128, align 8, !tbaa !17
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = mul nsw i32 3, %130
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %129, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !16
  %135 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = load i32, ptr %6, align 4, !tbaa !9
  %138 = mul nsw i32 3, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %136, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !16
  %142 = fsub double %134, %141
  store double %142, ptr %12, align 8, !tbaa !16
  %143 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = mul nsw i32 3, %145
  %147 = add nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %144, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !16
  %151 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %152 = load ptr, ptr %151, align 8, !tbaa !17
  %153 = load i32, ptr %6, align 4, !tbaa !9
  %154 = mul nsw i32 3, %153
  %155 = add nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %152, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !16
  %159 = fsub double %150, %158
  store double %159, ptr %13, align 8, !tbaa !16
  %160 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %161 = load ptr, ptr %160, align 8, !tbaa !17
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = mul nsw i32 3, %162
  %164 = add nsw i32 %163, 2
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %161, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !16
  %168 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %169 = load ptr, ptr %168, align 8, !tbaa !17
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = mul nsw i32 3, %170
  %172 = add nsw i32 %171, 2
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %169, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !16
  %176 = fsub double %167, %175
  store double %176, ptr %14, align 8, !tbaa !16
  %177 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %178 = load ptr, ptr %177, align 8, !tbaa !17
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = mul nsw i32 3, %179
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %178, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !16
  %184 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %185 = load ptr, ptr %184, align 8, !tbaa !17
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = mul nsw i32 3, %186
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %185, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !16
  %191 = fsub double %183, %190
  store double %191, ptr %15, align 8, !tbaa !16
  %192 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %193 = load ptr, ptr %192, align 8, !tbaa !17
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = mul nsw i32 3, %194
  %196 = add nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %193, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !16
  %200 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %201 = load ptr, ptr %200, align 8, !tbaa !17
  %202 = load i32, ptr %6, align 4, !tbaa !9
  %203 = mul nsw i32 3, %202
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %201, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !16
  %208 = fsub double %199, %207
  store double %208, ptr %16, align 8, !tbaa !16
  %209 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %210 = load ptr, ptr %209, align 8, !tbaa !17
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = mul nsw i32 3, %211
  %213 = add nsw i32 %212, 2
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %210, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !16
  %217 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 9
  %218 = load ptr, ptr %217, align 8, !tbaa !17
  %219 = load i32, ptr %6, align 4, !tbaa !9
  %220 = mul nsw i32 3, %219
  %221 = add nsw i32 %220, 2
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %218, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !16
  %225 = fsub double %216, %224
  store double %225, ptr %17, align 8, !tbaa !16
  %226 = load double, ptr %13, align 8, !tbaa !16
  %227 = load double, ptr %17, align 8, !tbaa !16
  %228 = load double, ptr %14, align 8, !tbaa !16
  %229 = load double, ptr %16, align 8, !tbaa !16
  %230 = fmul double %228, %229
  %231 = fneg double %230
  %232 = call double @llvm.fmuladd.f64(double %226, double %227, double %231)
  store double %232, ptr %18, align 8, !tbaa !16
  %233 = load double, ptr %14, align 8, !tbaa !16
  %234 = load double, ptr %15, align 8, !tbaa !16
  %235 = load double, ptr %12, align 8, !tbaa !16
  %236 = load double, ptr %17, align 8, !tbaa !16
  %237 = fmul double %235, %236
  %238 = fneg double %237
  %239 = call double @llvm.fmuladd.f64(double %233, double %234, double %238)
  store double %239, ptr %19, align 8, !tbaa !16
  %240 = load double, ptr %12, align 8, !tbaa !16
  %241 = load double, ptr %16, align 8, !tbaa !16
  %242 = load double, ptr %13, align 8, !tbaa !16
  %243 = load double, ptr %15, align 8, !tbaa !16
  %244 = fmul double %242, %243
  %245 = fneg double %244
  %246 = call double @llvm.fmuladd.f64(double %240, double %241, double %245)
  store double %246, ptr %20, align 8, !tbaa !16
  %247 = load double, ptr %18, align 8, !tbaa !16
  %248 = load double, ptr %18, align 8, !tbaa !16
  %249 = load double, ptr %19, align 8, !tbaa !16
  %250 = load double, ptr %19, align 8, !tbaa !16
  %251 = fmul double %249, %250
  %252 = call double @llvm.fmuladd.f64(double %247, double %248, double %251)
  %253 = load double, ptr %20, align 8, !tbaa !16
  %254 = load double, ptr %20, align 8, !tbaa !16
  %255 = call double @llvm.fmuladd.f64(double %253, double %254, double %252)
  %256 = call double @sqrt(double noundef %255) #6
  %257 = load double, ptr %5, align 8, !tbaa !16
  %258 = fadd double %257, %256
  store double %258, ptr %5, align 8, !tbaa !16
  %259 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %259, ptr %8, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %260, ptr %9, align 4, !tbaa !9
  %261 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %262 = load ptr, ptr %261, align 8, !tbaa !15
  %263 = load i32, ptr %8, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds ptr, ptr %262, i64 %264
  %266 = load ptr, ptr %265, align 8, !tbaa !5
  %267 = load i32, ptr %9, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds i32, ptr %266, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !9
  store i32 %270, ptr %10, align 4, !tbaa !9
  %271 = load i32, ptr %10, align 4, !tbaa !9
  %272 = sub nsw i32 -1, %271
  %273 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %22, i32 0, i32 7
  %274 = load ptr, ptr %273, align 8, !tbaa !15
  %275 = load i32, ptr %8, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %274, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = load i32, ptr %9, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i32, ptr %278, i64 %280
  store i32 %272, ptr %281, align 4, !tbaa !9
  br label %104, !llvm.loop !18

282:                                              ; preds = %104
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %284 = load double, ptr %5, align 8, !tbaa !16
  %285 = fmul double 1.250000e-01, %284
  store double %285, ptr %21, align 8, !tbaa !16
  call void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %283, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %286

286:                                              ; preds = %282, %39
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %7, align 4, !tbaa !9
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %7, align 4, !tbaa !9
  br label %30, !llvm.loop !20

290:                                              ; preds = %30
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %6, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %6, align 4, !tbaa !9
  br label %24, !llvm.loop !21

294:                                              ; preds = %24
  call void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  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 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !10, i64 24}
!12 = !{!"_ZTSN4voro16voronoicell_baseE", !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 32}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 48}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro16voronoicell_base10face_areasERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca double, align 8
  tail call void @_ZNSt6vectorIdSaIdEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = icmp sgt i32 %5, 1
  br i1 %6, label %.preheader.lr.ph, label %._crit_edge82

.preheader.lr.ph:                                 ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %.pre = load ptr, ptr %7, align 8, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge80
  %10 = phi i32 [ %5, %.preheader.lr.ph ], [ %111, %._crit_edge80 ]
  %11 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %112, %._crit_edge80 ]
  %12 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %113, %._crit_edge80 ]
  %indvars.iv84 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next85, %._crit_edge80 ]
  %13 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv84
  %14 = load i32, ptr %13, align 4, !tbaa !13
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %.preheader
  %.idx = mul i64 %indvars.iv84, 24
  br label %16

16:                                               ; preds = %.lr.ph79, %105
  %17 = phi ptr [ %11, %.lr.ph79 ], [ %106, %105 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next, %105 ]
  %18 = phi ptr [ %13, %.lr.ph79 ], [ %107, %105 ]
  %19 = load ptr, ptr %8, align 8, !tbaa !14
  %20 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv84
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv
  %23 = load i32, ptr %22, align 4, !tbaa !13
  %24 = icmp sgt i32 %23, -1
  br i1 %24, label %25, label %105

25:                                               ; preds = %16
  %26 = xor i32 %23, -1
  store i32 %26, ptr %22, align 4, !tbaa !13
  %27 = load i32, ptr %18, align 4, !tbaa !13
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = add nsw i32 %27, %28
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %21, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !13
  %33 = call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %32, i32 noundef %23)
  %34 = load ptr, ptr %8, align 8, !tbaa !14
  %35 = zext nneg i32 %23 to i64
  %36 = getelementptr inbounds ptr, ptr %34, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = sext i32 %33 to i64
  %39 = getelementptr inbounds i32, ptr %37, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !13
  %41 = xor i32 %40, -1
  store i32 %41, ptr %39, align 4, !tbaa !13
  %42 = zext i32 %40 to i64
  %.not73 = icmp eq i64 %indvars.iv84, %42
  br i1 %.not73, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25, %.lr.ph
  %43 = phi ptr [ %98, %.lr.ph ], [ %37, %25 ]
  %.077 = phi double [ %94, %.lr.ph ], [ 0.000000e+00, %25 ]
  %.06976 = phi i32 [ %.07174, %.lr.ph ], [ %23, %25 ]
  %.07075 = phi i32 [ %52, %.lr.ph ], [ %33, %25 ]
  %.07174 = phi i32 [ %101, %.lr.ph ], [ %40, %25 ]
  %44 = sext i32 %.06976 to i64
  %45 = load ptr, ptr %7, align 8, !tbaa !12
  %46 = getelementptr inbounds i32, ptr %45, i64 %44
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = add nsw i32 %47, %.07075
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %43, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %51, i32 noundef %.07174)
  %53 = load ptr, ptr %9, align 8, !tbaa !16
  %54 = mul nsw i32 %.06976, 3
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %53, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !17
  %58 = getelementptr inbounds i8, ptr %53, i64 %.idx
  %59 = load double, ptr %58, align 8, !tbaa !17
  %60 = fsub double %57, %59
  %61 = getelementptr i8, ptr %56, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %58, i64 8
  %64 = load double, ptr %63, align 8, !tbaa !17
  %65 = fsub double %62, %64
  %66 = getelementptr i8, ptr %56, i64 16
  %67 = load double, ptr %66, align 8, !tbaa !17
  %68 = getelementptr inbounds i8, ptr %58, i64 16
  %69 = load double, ptr %68, align 8, !tbaa !17
  %70 = fsub double %67, %69
  %71 = mul nsw i32 %.07174, 3
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %53, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !17
  %75 = fsub double %74, %59
  %76 = getelementptr i8, ptr %73, i64 8
  %77 = load double, ptr %76, align 8, !tbaa !17
  %78 = fsub double %77, %64
  %79 = getelementptr i8, ptr %73, i64 16
  %80 = load double, ptr %79, align 8, !tbaa !17
  %81 = fsub double %80, %69
  %82 = fneg double %70
  %83 = fmul double %78, %82
  %84 = call double @llvm.fmuladd.f64(double %65, double %81, double %83)
  %85 = fneg double %60
  %86 = fmul double %81, %85
  %87 = call double @llvm.fmuladd.f64(double %70, double %75, double %86)
  %88 = fneg double %65
  %89 = fmul double %75, %88
  %90 = call double @llvm.fmuladd.f64(double %60, double %78, double %89)
  %91 = fmul double %87, %87
  %92 = call double @llvm.fmuladd.f64(double %84, double %84, double %91)
  %93 = call double @llvm.fmuladd.f64(double %90, double %90, double %92)
  %sqrt = call double @llvm.sqrt.f64(double %93)
  %94 = fadd double %.077, %sqrt
  %95 = load ptr, ptr %8, align 8, !tbaa !14
  %96 = sext i32 %.07174 to i64
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = sext i32 %52 to i64
  %100 = getelementptr inbounds i32, ptr %98, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !13
  %102 = xor i32 %101, -1
  store i32 %102, ptr %100, align 4, !tbaa !13
  %103 = zext i32 %101 to i64
  %.not = icmp eq i64 %indvars.iv84, %103
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %25
  %.0.lcssa = phi double [ 0.000000e+00, %25 ], [ %94, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %104 = fmul double %.0.lcssa, 1.250000e-01
  store double %104, ptr %3, align 8, !tbaa !17
  call void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %.pre89 = load ptr, ptr %7, align 8, !tbaa !12
  br label %105

105:                                              ; preds = %16, %._crit_edge
  %106 = phi ptr [ %17, %16 ], [ %.pre89, %._crit_edge ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %107 = getelementptr inbounds i32, ptr %106, i64 %indvars.iv84
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = sext i32 %108 to i64
  %110 = icmp slt i64 %indvars.iv.next, %109
  br i1 %110, label %16, label %._crit_edge80.loopexit, !llvm.loop !20

._crit_edge80.loopexit:                           ; preds = %105
  %.pre90 = load i32, ptr %4, align 8, !tbaa !5
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit, %.preheader
  %111 = phi i32 [ %.pre90, %._crit_edge80.loopexit ], [ %10, %.preheader ]
  %112 = phi ptr [ %106, %._crit_edge80.loopexit ], [ %11, %.preheader ]
  %113 = phi ptr [ %106, %._crit_edge80.loopexit ], [ %12, %.preheader ]
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %114 = sext i32 %111 to i64
  %115 = icmp slt i64 %indvars.iv.next85, %114
  br i1 %115, label %.preheader, label %._crit_edge82, !llvm.loop !21

._crit_edge82:                                    ; preds = %._crit_edge80, %2
  call void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  ret void
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 24}
!6 = !{!"_ZTSN4voro16voronoicell_baseE", !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 40}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 32}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !10, i64 48}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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