; LLVM IR from jrouwe/JoltPhysics :: Jolt/Geometry (ConvexHullBuilder)

; 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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::ConvexHullBuilder" = type { ptr, %"class.JPH::Array.2", %"class.JPH::Array.5" }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::Array.5" = type { i64, i64, ptr }
%"class.JPH::ConvexHullBuilder::Face" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Array", ptr, float, i8, [11 x i8] }>
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::ConvexHullBuilder::Edge" = type <{ ptr, ptr, ptr, i32, [4 x i8] }>

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #2 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH17ConvexHullBuilder24GetCenterOfMassAndVolumeERNS_4Vec3ERf(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %2) #7 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca float, align 4
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  %39 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %40 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %41 = getelementptr inbounds %union.anon, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %43 = extractvalue { double, double } %39, 0
  store double %43, ptr %42, align 16
  %44 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %45 = extractvalue { double, double } %39, 1
  store double %45, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %46 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %38, i32 0, i32 1
  store ptr %46, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47)
  store ptr %48, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  store ptr %50, ptr %10, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %66, %3
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = icmp ne ptr %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %69

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %58, ptr %11, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %59, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %60, i64 16, i1 false), !tbaa.struct !9
  %61 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  %65 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %62, double %64)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %66

66:                                               ; preds = %56
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds ptr, ptr %67, i32 1
  store ptr %68, ptr %9, align 8, !tbaa !5
  br label %51

69:                                               ; preds = %55
  %70 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %38, i32 0, i32 1
  %71 = call noundef i64 @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70)
  %72 = uitofp i64 %71 to float
  %73 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %72)
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  store float 0.000000e+00, ptr %74, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %75 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %76 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %75, 0
  store double %79, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %75, 1
  store double %81, ptr %80, align 8
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %83 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %38, i32 0, i32 1
  store ptr %83, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %84)
  store ptr %85, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86)
  store ptr %87, ptr %16, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %242, %69
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = icmp ne ptr %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %245

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  store ptr %95, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %96, i32 0, i32 3
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  store ptr %98, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %99 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %38, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %101, i32 0, i32 3
  %103 = load i32, ptr %102, align 8, !tbaa !23
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %104)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %105, i64 16, i1 false), !tbaa.struct !9
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  store ptr %108, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %109 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %38, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %111, i32 0, i32 3
  %113 = load i32, ptr %112, align 8, !tbaa !23
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %114)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %115, i64 16, i1 false), !tbaa.struct !9
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !26
  store ptr %118, ptr %18, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %237, %93
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %121, i32 0, i32 3
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = icmp ne ptr %120, %123
  br i1 %124, label %125, label %241

125:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %126 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %38, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !19
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 8, !tbaa !23
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %131)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %132, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !9
  %133 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %134, double %136)
  %138 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %139 = getelementptr inbounds %union.anon, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds { double, double }, ptr %139, i32 0, i32 0
  %141 = extractvalue { double, double } %137, 0
  store double %141, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %139, i32 0, i32 1
  %143 = extractvalue { double, double } %137, 1
  store double %143, ptr %142, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !9
  %144 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %145 = load double, ptr %144, align 16
  %146 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %147 = load double, ptr %146, align 8
  %148 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %145, double %147)
  %149 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %150 = getelementptr inbounds %union.anon, ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 0
  %152 = extractvalue { double, double } %148, 0
  store double %152, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 1
  %154 = extractvalue { double, double } %148, 1
  store double %154, ptr %153, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !9
  %155 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %156 = load double, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %158 = load double, ptr %157, align 8
  %159 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %156, double %158)
  %160 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %161 = getelementptr inbounds %union.anon, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds { double, double }, ptr %161, i32 0, i32 0
  %163 = extractvalue { double, double } %159, 0
  store double %163, ptr %162, align 16
  %164 = getelementptr inbounds { double, double }, ptr %161, i32 0, i32 1
  %165 = extractvalue { double, double } %159, 1
  store double %165, ptr %164, align 8
  %166 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %167 = load double, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %169 = load double, ptr %168, align 8
  %170 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %167, double %169)
  %171 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %172 = getelementptr inbounds %union.anon, ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds { double, double }, ptr %172, i32 0, i32 0
  %174 = extractvalue { double, double } %170, 0
  store double %174, ptr %173, align 16
  %175 = getelementptr inbounds { double, double }, ptr %172, i32 0, i32 1
  %176 = extractvalue { double, double } %170, 1
  store double %176, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %178 = load double, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %180 = load double, ptr %179, align 8
  %181 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %178, double %180)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  store float %181, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !9
  %182 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %183 = load double, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  %186 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %183, double %185)
  %187 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %188 = getelementptr inbounds %union.anon, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds { double, double }, ptr %188, i32 0, i32 0
  %190 = extractvalue { double, double } %186, 0
  store double %190, ptr %189, align 16
  %191 = getelementptr inbounds { double, double }, ptr %188, i32 0, i32 1
  %192 = extractvalue { double, double } %186, 1
  store double %192, ptr %191, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !9
  %193 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %194 = load double, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %196 = load double, ptr %195, align 8
  %197 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %194, double %196)
  %198 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %199 = getelementptr inbounds %union.anon, ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 0
  %201 = extractvalue { double, double } %197, 0
  store double %201, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 1
  %203 = extractvalue { double, double } %197, 1
  store double %203, ptr %202, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !9
  %204 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %205 = load double, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %207 = load double, ptr %206, align 8
  %208 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %205, double %207)
  %209 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %210 = getelementptr inbounds %union.anon, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 0
  %212 = extractvalue { double, double } %208, 0
  store double %212, ptr %211, align 16
  %213 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 1
  %214 = extractvalue { double, double } %208, 1
  store double %214, ptr %213, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  %215 = load float, ptr %22, align 4, !tbaa !11
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = load float, ptr %216, align 4, !tbaa !11
  %218 = fadd float %217, %215
  store float %218, ptr %216, align 4, !tbaa !11
  %219 = load float, ptr %22, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !9
  %220 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %221 = load double, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %223 = load double, ptr %222, align 8
  %224 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %219, double %221, double %223)
  %225 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %226 = getelementptr inbounds %union.anon, ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds { double, double }, ptr %226, i32 0, i32 0
  %228 = extractvalue { double, double } %224, 0
  store double %228, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %226, i32 0, i32 1
  %230 = extractvalue { double, double } %224, 1
  store double %230, ptr %229, align 8
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %233 = load double, ptr %232, align 16
  %234 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %235 = load double, ptr %234, align 8
  %236 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %231, double %233, double %235)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %237

237:                                              ; preds = %125
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  %239 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %238, i32 0, i32 1
  %240 = load ptr, ptr %239, align 8, !tbaa !26
  store ptr %240, ptr %18, align 8, !tbaa !5
  br label %119, !llvm.loop !27

241:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %15, align 8, !tbaa !5
  %244 = getelementptr inbounds ptr, ptr %243, i32 1
  store ptr %244, ptr %15, align 8, !tbaa !5
  br label %88

245:                                              ; preds = %92
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = load float, ptr %246, align 4, !tbaa !11
  %248 = fcmp ogt float %247, 0x3E80000000000000
  br i1 %248, label %249, label %255

249:                                              ; preds = %245
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load float, ptr %250, align 4, !tbaa !11
  %252 = fmul float 4.000000e+00, %251
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %253, float noundef %252)
  br label %257

255:                                              ; preds = %245
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %256, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !9
  br label %257

257:                                              ; preds = %255, %249
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = load float, ptr %258, align 4, !tbaa !11
  %260 = fdiv float %259, 6.000000e+00
  store float %260, ptr %258, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 56}
!14 = !{!"_ZTSN3JPH17ConvexHullBuilder4FaceE", !15, i64 0, !15, i64 16, !16, i64 32, !6, i64 56, !12, i64 64, !18, i64 68}
!15 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3JPH5ArrayIiNS_12STLAllocatorIiEEEE", !17, i64 0, !17, i64 8, !6, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSN3JPH17ConvexHullBuilderE", !6, i64 0, !21, i64 8, !22, i64 32}
!21 = !{!"_ZTSN3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEEE", !17, i64 0, !17, i64 8, !6, i64 16}
!22 = !{!"_ZTSN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEEE", !17, i64 0, !17, i64 8, !6, i64 16}
!23 = !{!24, !25, i64 24}
!24 = !{!"_ZTSN3JPH17ConvexHullBuilder4EdgeE", !6, i64 0, !6, i64 8, !6, i64 16, !25, i64 24}
!25 = !{!"int", !7, i64 0}
!26 = !{!24, !6, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; 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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH17ConvexHullBuilder24GetCenterOfMassAndVolumeERNS_4Vec3ERf(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 16 dereferenceable(16) %1, ptr nocapture noundef nonnull align 4 dereferenceable(4) %2) local_unnamed_addr #7 align 2 {
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %12 = tail call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %13 = extractvalue { double, double } %12, 0
  store double %13, ptr %4, align 16
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  %15 = extractvalue { double, double } %12, 1
  store double %15, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = tail call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %18 = tail call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %.not62 = icmp eq ptr %17, %18
  br i1 %.not62, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %3
  %19 = call noundef i64 @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %20 = uitofp i64 %19 to float
  %21 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %20)
  store float 0.000000e+00, ptr %2, align 4, !tbaa !5
  %22 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %23 = extractvalue { double, double } %22, 0
  %24 = extractvalue { double, double } %22, 1
  store double %23, ptr %1, align 16
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  store double %24, ptr %.sroa.437.0..sroa_idx, align 8, !tbaa !9
  %25 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %26 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %.not6071 = icmp eq ptr %25, %26
  br i1 %.not6071, label %._crit_edge75, label %.lr.ph74

.lr.ph74:                                         ; preds = %._crit_edge
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  %28 = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %29 = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %30 = getelementptr inbounds i8, ptr %10, i64 8
  br label %37

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.063 = phi ptr [ %34, %.lr.ph ], [ %17, %3 ]
  %31 = load ptr, ptr %.063, align 8, !tbaa !10
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %.sroa.038.0.copyload = load double, ptr %32, align 16
  %.sroa.239.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 24
  %.sroa.239.0.copyload = load double, ptr %.sroa.239.0..sroa_idx, align 8, !tbaa !9
  %33 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %.sroa.038.0.copyload, double %.sroa.239.0.copyload)
  %34 = getelementptr inbounds i8, ptr %.063, i64 8
  %.not = icmp eq ptr %34, %18
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge75:                                    ; preds = %._crit_edge70, %._crit_edge
  %35 = load float, ptr %2, align 4, !tbaa !5
  %36 = fcmp ogt float %35, 0x3E80000000000000
  br i1 %36, label %89, label %92

37:                                               ; preds = %.lr.ph74, %._crit_edge70
  %.05772 = phi ptr [ %25, %.lr.ph74 ], [ %88, %._crit_edge70 ]
  %38 = load ptr, ptr %.05772, align 8, !tbaa !10
  %39 = getelementptr inbounds i8, ptr %38, i64 56
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %41 = load ptr, ptr %0, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %40, i64 24
  %43 = load i32, ptr %42, align 8, !tbaa !22
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %44)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %45, i64 16, i1 false), !tbaa.struct !25
  %46 = getelementptr inbounds i8, ptr %40, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %48 = load ptr, ptr %0, align 8, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %47, i64 24
  %50 = load i32, ptr %49, align 8, !tbaa !22
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %51)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %52, i64 16, i1 false), !tbaa.struct !25
  %.058.in64 = getelementptr inbounds i8, ptr %47, i64 8
  %.05865 = load ptr, ptr %.058.in64, align 8, !tbaa !26
  %53 = load ptr, ptr %39, align 8, !tbaa !12
  %.not6166 = icmp eq ptr %.05865, %53
  br i1 %.not6166, label %._crit_edge70, label %.lr.ph69

.lr.ph69:                                         ; preds = %37, %.lr.ph69
  %.05867 = phi ptr [ %.058, %.lr.ph69 ], [ %.05865, %37 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %54 = load ptr, ptr %0, align 8, !tbaa !18
  %55 = getelementptr inbounds i8, ptr %.05867, i64 24
  %56 = load i32, ptr %55, align 8, !tbaa !22
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %57)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) %58, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %.sroa.018.0.copyload = load double, ptr %4, align 16
  %.sroa.219.0.copyload = load double, ptr %14, align 8, !tbaa !9
  %59 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %.sroa.018.0.copyload, double %.sroa.219.0.copyload)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %8, align 16
  %61 = extractvalue { double, double } %59, 1
  store double %61, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %.sroa.014.0.copyload = load double, ptr %4, align 16
  %.sroa.215.0.copyload = load double, ptr %14, align 8, !tbaa !9
  %62 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %.sroa.014.0.copyload, double %.sroa.215.0.copyload)
  %63 = extractvalue { double, double } %62, 0
  store double %63, ptr %9, align 16
  %64 = extractvalue { double, double } %62, 1
  store double %64, ptr %28, align 8
  %.sroa.010.0.copyload = load double, ptr %4, align 16
  %.sroa.211.0.copyload = load double, ptr %14, align 8, !tbaa !9
  %65 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  %68 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %66, double %67)
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  %71 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %69, double %70)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %.sroa.07.0.copyload = load double, ptr %6, align 16
  %.sroa.28.0.copyload = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !9
  %72 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %73 = extractvalue { double, double } %72, 0
  store double %73, ptr %11, align 16
  %74 = extractvalue { double, double } %72, 1
  store double %74, ptr %29, align 8
  %.sroa.05.0.copyload = load double, ptr %7, align 16
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !9
  %75 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %76 = extractvalue { double, double } %75, 0
  store double %76, ptr %10, align 16
  %77 = extractvalue { double, double } %75, 1
  store double %77, ptr %30, align 8
  %.sroa.03.0.copyload = load double, ptr %4, align 16
  %.sroa.24.0.copyload = load double, ptr %14, align 8, !tbaa !9
  %78 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload)
  %79 = extractvalue { double, double } %78, 0
  %80 = extractvalue { double, double } %78, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  %81 = load float, ptr %2, align 4, !tbaa !5
  %82 = fadd float %71, %81
  store float %82, ptr %2, align 4, !tbaa !5
  %83 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %71, double %79, double %80)
  %84 = extractvalue { double, double } %83, 0
  %85 = extractvalue { double, double } %83, 1
  %86 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %1, double %84, double %85)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %.058.in = getelementptr inbounds i8, ptr %.05867, i64 8
  %.058 = load ptr, ptr %.058.in, align 8, !tbaa !26
  %87 = load ptr, ptr %39, align 8, !tbaa !12
  %.not61 = icmp eq ptr %.058, %87
  br i1 %.not61, label %._crit_edge70, label %.lr.ph69, !llvm.loop !27

._crit_edge70:                                    ; preds = %.lr.ph69, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %88 = getelementptr inbounds i8, ptr %.05772, i64 8
  %.not60 = icmp eq ptr %88, %26
  br i1 %.not60, label %._crit_edge75, label %37

89:                                               ; preds = %._crit_edge75
  %90 = fmul float %35, 4.000000e+00
  %91 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %1, float noundef %90)
  br label %93

92:                                               ; preds = %._crit_edge75
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !25
  br label %93

93:                                               ; preds = %92, %89
  %94 = load float, ptr %2, align 4, !tbaa !5
  %95 = fdiv float %94, 6.000000e+00
  store float %95, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 56}
!13 = !{!"_ZTSN3JPH17ConvexHullBuilder4FaceE", !14, i64 0, !14, i64 16, !15, i64 32, !11, i64 56, !6, i64 64, !17, i64 68}
!14 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!15 = !{!"_ZTSN3JPH5ArrayIiNS_12STLAllocatorIiEEEE", !16, i64 0, !16, i64 8, !11, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTSN3JPH17ConvexHullBuilderE", !11, i64 0, !20, i64 8, !21, i64 32}
!20 = !{!"_ZTSN3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEEE", !16, i64 0, !16, i64 8, !11, i64 16}
!21 = !{!"_ZTSN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEEE", !16, i64 0, !16, i64 8, !11, i64 16}
!22 = !{!23, !24, i64 24}
!23 = !{!"_ZTSN3JPH17ConvexHullBuilder4EdgeE", !11, i64 0, !11, i64 8, !11, i64 16, !24, i64 24}
!24 = !{!"int", !7, i64 0}
!25 = !{i64 0, i64 16, !9}
!26 = !{!23, !11, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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