; LLVM IR from ThePhysicsGuys/Physics3D :: Physics3D/geometry/shapeCreation.ll (ZN3P3D15polyhedronShapeERKNS_10PolyhedronE)

; 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.P3D::Shape" = type { %"class.P3D::intrusive_ptr", %"class.P3D::DiagonalMatrix" }
%"class.P3D::intrusive_ptr" = type { ptr }
%"class.P3D::DiagonalMatrix" = type { [3 x double] }
%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.P3D::Polyhedron" = type { %"class.P3D::TriangleMesh" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.0", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.0" = type { ptr }
%"struct.P3D::Vector.1" = type { %union.anon.2 }
%union.anon.2 = type { [3 x float] }
%"class.P3D::DiagonalMatrix.4" = type { [3 x float] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEEC2EPS2_b(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i1 noundef zeroext) unnamed_addr #0 align 2

declare void @_ZN3P3D5ShapeC1ENS_13intrusive_ptrIKNS_10ShapeClassEEEddd(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, double noundef, double noundef, double noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D15polyhedronShapeERKNS_10PolyhedronE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Shape") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.P3D::BoundingBoxTemplate", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"class.P3D::DiagonalMatrix", align 8
  %8 = alloca %"class.std::initializer_list", align 8
  %9 = alloca [3 x double], align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.P3D::Polyhedron", align 8
  %12 = alloca %"struct.P3D::Vector.1", align 4
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca { <2 x float>, float }, align 8
  %15 = alloca %"class.P3D::DiagonalMatrix.4", align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca { <2 x float>, float }, align 4
  %19 = alloca { <2 x float>, float }, align 4
  %20 = alloca i1, align 1
  %21 = alloca %"class.P3D::Polyhedron", align 8
  %22 = alloca %"struct.P3D::Vector.1", align 4
  %23 = alloca %"struct.P3D::Vector", align 8
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca %"class.P3D::DiagonalMatrix.4", align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca { <2 x float>, float }, align 4
  %28 = alloca i1, align 1
  %29 = alloca %"class.P3D::Polyhedron", align 8
  %30 = alloca %"struct.P3D::Vector.1", align 4
  %31 = alloca %"struct.P3D::Vector", align 8
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca %"class.P3D::DiagonalMatrix.4", align 4
  %34 = alloca { <2 x float>, float }, align 4
  %35 = alloca { <2 x float>, float }, align 4
  %36 = alloca i1, align 1
  %37 = alloca %"class.P3D::Polyhedron", align 8
  %38 = alloca %"struct.P3D::Vector.1", align 4
  %39 = alloca %"struct.P3D::Vector", align 8
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca %"class.P3D::DiagonalMatrix.4", align 4
  %42 = alloca { <2 x float>, float }, align 4
  %43 = alloca { <2 x float>, float }, align 4
  %44 = alloca i1, align 1
  %45 = alloca %"class.P3D::intrusive_ptr", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #9
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3P3D12TriangleMesh9getBoundsEv(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %46)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  call void @_ZNK3P3D19BoundingBoxTemplateIdE9getCenterEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #9
  %47 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
  %48 = fdiv double 2.000000e+00, %47
  store double %48, ptr %9, align 8, !tbaa !9
  %49 = getelementptr inbounds double, ptr %9, i64 1
  %50 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
  %51 = fdiv double 2.000000e+00, %50
  store double %51, ptr %49, align 8, !tbaa !9
  %52 = getelementptr inbounds double, ptr %9, i64 2
  %53 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
  %54 = fdiv double 2.000000e+00, %53
  store double %54, ptr %52, align 8, !tbaa !9
  %55 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 0
  store ptr %9, ptr %55, align 8, !tbaa !11
  %56 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 1
  store i64 3, ptr %56, align 8, !tbaa !14
  call void @_ZN3P3D14DiagonalMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %57 = call noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef 896)
  br i1 %57, label %58, label %81

58:                                               ; preds = %2
  %59 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #10
  store i1 true, ptr %20, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #9
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %61 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %62 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %12, i32 0, i32 0
  %63 = getelementptr inbounds %union.anon.2, ptr %62, i32 0, i32 0
  store { <2 x float>, float } %61, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 8 %14, i64 12, i1 false)
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %64 unwind label %74

64:                                               ; preds = %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %12, i64 12, i1 false)
  %65 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 0
  %66 = load <2 x float>, ptr %65, align 4
  %67 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 1
  %68 = load float, ptr %67, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %15, i64 12, i1 false)
  %69 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 0
  %70 = load <2 x float>, ptr %69, align 4
  %71 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 1
  %72 = load float, ptr %71, align 4
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %60, <2 x float> %66, float %68, <2 x float> %70, float %72)
          to label %73 unwind label %74

73:                                               ; preds = %64
  call void @_ZN3P3D23PolyhedronShapeClassAVXCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %59, ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  store i1 false, ptr %20, align 1
  store ptr %59, ptr %10, align 8, !tbaa !5
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  br label %156

74:                                               ; preds = %64, %58
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %16, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  %78 = load i1, ptr %20, align 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %74
  call void @_ZdlPvm(ptr noundef %59, i64 noundef 128) #11
  br label %80

80:                                               ; preds = %79, %74
  br label %169

81:                                               ; preds = %2
  %82 = call noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef 6)
  br i1 %82, label %83, label %132

83:                                               ; preds = %81
  %84 = call noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef 32)
  br i1 %84, label %85, label %108

85:                                               ; preds = %83
  %86 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #10
  store i1 true, ptr %28, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #9
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #9
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %88 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %89 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %22, i32 0, i32 0
  %90 = getelementptr inbounds %union.anon.2, ptr %89, i32 0, i32 0
  store { <2 x float>, float } %88, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 8 %24, i64 12, i1 false)
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %91 unwind label %101

91:                                               ; preds = %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %22, i64 12, i1 false)
  %92 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %93 = load <2 x float>, ptr %92, align 4
  %94 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %95 = load float, ptr %94, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %25, i64 12, i1 false)
  %96 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 0
  %97 = load <2 x float>, ptr %96, align 4
  %98 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 1
  %99 = load float, ptr %98, align 4
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %87, <2 x float> %93, float %95, <2 x float> %97, float %99)
          to label %100 unwind label %101

100:                                              ; preds = %91
  call void @_ZN3P3D24PolyhedronShapeClassSSE4CI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %86, ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  store i1 false, ptr %28, align 1
  store ptr %86, ptr %10, align 8, !tbaa !5
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  br label %131

101:                                              ; preds = %91, %85
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %16, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  %105 = load i1, ptr %28, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %101
  call void @_ZdlPvm(ptr noundef %86, i64 noundef 128) #11
  br label %107

107:                                              ; preds = %106, %101
  br label %169

108:                                              ; preds = %83
  %109 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #10
  store i1 true, ptr %36, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %111 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %112 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %30, i32 0, i32 0
  %113 = getelementptr inbounds %union.anon.2, ptr %112, i32 0, i32 0
  store { <2 x float>, float } %111, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 8 %32, i64 12, i1 false)
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %114 unwind label %124

114:                                              ; preds = %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %30, i64 12, i1 false)
  %115 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %116 = load <2 x float>, ptr %115, align 4
  %117 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %33, i64 12, i1 false)
  %119 = getelementptr inbounds { <2 x float>, float }, ptr %35, i32 0, i32 0
  %120 = load <2 x float>, ptr %119, align 4
  %121 = getelementptr inbounds { <2 x float>, float }, ptr %35, i32 0, i32 1
  %122 = load float, ptr %121, align 4
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %110, <2 x float> %116, float %118, <2 x float> %120, float %122)
          to label %123 unwind label %124

123:                                              ; preds = %114
  call void @_ZN3P3D23PolyhedronShapeClassSSECI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %109, ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  store i1 false, ptr %36, align 1
  store ptr %109, ptr %10, align 8, !tbaa !5
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  br label %131

124:                                              ; preds = %114, %108
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %16, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  %128 = load i1, ptr %36, align 1
  br i1 %128, label %129, label %130

129:                                              ; preds = %124
  call void @_ZdlPvm(ptr noundef %109, i64 noundef 128) #11
  br label %130

130:                                              ; preds = %129, %124
  br label %169

131:                                              ; preds = %123, %100
  br label %155

132:                                              ; preds = %81
  %133 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #10
  store i1 true, ptr %44, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #9
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #9
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %39, ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %135 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  %136 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %38, i32 0, i32 0
  %137 = getelementptr inbounds %union.anon.2, ptr %136, i32 0, i32 0
  store { <2 x float>, float } %135, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %137, ptr align 8 %40, i64 12, i1 false)
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %138 unwind label %148

138:                                              ; preds = %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %38, i64 12, i1 false)
  %139 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 0
  %140 = load <2 x float>, ptr %139, align 4
  %141 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 1
  %142 = load float, ptr %141, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %41, i64 12, i1 false)
  %143 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 0
  %144 = load <2 x float>, ptr %143, align 4
  %145 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 1
  %146 = load float, ptr %145, align 4
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %134, <2 x float> %140, float %142, <2 x float> %144, float %146)
          to label %147 unwind label %148

147:                                              ; preds = %138
  call void @_ZN3P3D28PolyhedronShapeClassFallbackCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %133, ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  store i1 false, ptr %44, align 1
  store ptr %133, ptr %10, align 8, !tbaa !5
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  br label %155

148:                                              ; preds = %138, %132
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %16, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  %152 = load i1, ptr %44, align 1
  br i1 %152, label %153, label %154

153:                                              ; preds = %148
  call void @_ZdlPvm(ptr noundef %133, i64 noundef 128) #11
  br label %154

154:                                              ; preds = %153, %148
  br label %169

155:                                              ; preds = %147, %131
  br label %156

156:                                              ; preds = %155, %73
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEEC2EPS2_b(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef %157, i1 noundef zeroext true) #9
  %158 = invoke noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %159 unwind label %165

159:                                              ; preds = %156
  %160 = invoke noundef double @_ZNK3P3D19BoundingBoxTemplateIdE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %161 unwind label %165

161:                                              ; preds = %159
  %162 = invoke noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %163 unwind label %165

163:                                              ; preds = %161
  invoke void @_ZN3P3D5ShapeC1ENS_13intrusive_ptrIKNS_10ShapeClassEEEddd(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %45, double noundef %158, double noundef %160, double noundef %162)
          to label %164 unwind label %165

164:                                              ; preds = %163
  call void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #9
  ret void

165:                                              ; preds = %163, %161, %159, %156
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %16, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %17, align 4
  call void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #9
  br label %169

169:                                              ; preds = %165, %154, %130, %107, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #9
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %16, align 8
  %172 = load i32, ptr %17, align 4
  %173 = insertvalue { ptr, i32 } poison, ptr %171, 0
  %174 = insertvalue { ptr, i32 } %173, i32 %172, 1
  resume { ptr, i32 } %174
}

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

declare void @_ZNK3P3D12TriangleMesh9getBoundsEv(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D19BoundingBoxTemplateIdE9getCenterEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef) #5 align 2

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

declare void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8, ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float, <2 x float>, float) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D23PolyhedronShapeClassAVXCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D24PolyhedronShapeClassSSE4CI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D23PolyhedronShapeClassSSECI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D28PolyhedronShapeClassFallbackCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

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


; 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.P3D::Shape" = type { %"class.P3D::intrusive_ptr", %"class.P3D::DiagonalMatrix" }
%"class.P3D::intrusive_ptr" = type { ptr }
%"class.P3D::DiagonalMatrix" = type { [3 x double] }
%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.P3D::Polyhedron" = type { %"class.P3D::TriangleMesh" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.0", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.0" = type { ptr }
%"class.P3D::DiagonalMatrix.4" = type { [3 x float] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEEC2EPS2_b(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i1 noundef zeroext) unnamed_addr #0 align 2

declare void @_ZN3P3D5ShapeC1ENS_13intrusive_ptrIKNS_10ShapeClassEEEddd(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, double noundef, double noundef, double noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D15polyhedronShapeERKNS_10PolyhedronE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Shape") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.P3D::BoundingBoxTemplate", align 8
  %4 = alloca %"struct.P3D::Vector", align 8
  %5 = alloca %"class.P3D::DiagonalMatrix", align 8
  %6 = alloca %"class.std::initializer_list", align 8
  %7 = alloca [3 x double], align 8
  %8 = alloca %"class.P3D::Polyhedron", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"class.P3D::DiagonalMatrix.4", align 8
  %11 = alloca %"class.P3D::Polyhedron", align 8
  %12 = alloca %"struct.P3D::Vector", align 8
  %13 = alloca %"class.P3D::DiagonalMatrix.4", align 8
  %14 = alloca %"class.P3D::Polyhedron", align 8
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca %"class.P3D::DiagonalMatrix.4", align 8
  %17 = alloca %"class.P3D::Polyhedron", align 8
  %18 = alloca %"struct.P3D::Vector", align 8
  %19 = alloca %"class.P3D::DiagonalMatrix.4", align 8
  %20 = alloca %"class.P3D::intrusive_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #8
  call void @_ZNK3P3D12TriangleMesh9getBoundsEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNK3P3D19BoundingBoxTemplateIdE9getCenterEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  %21 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
  %22 = fdiv double 2.000000e+00, %21
  store double %22, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %7, i64 8
  %24 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
  %25 = fdiv double 2.000000e+00, %24
  store double %25, ptr %23, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %7, i64 16
  %27 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
  %28 = fdiv double 2.000000e+00, %27
  store double %28, ptr %26, align 8, !tbaa !5
  store ptr %7, ptr %6, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 3, ptr %29, align 8, !tbaa !13
  call void @_ZN3P3D14DiagonalMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %30 = call noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef 896)
  br i1 %30, label %31, label %38

31:                                               ; preds = %2
  %32 = call noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %33 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %34 unwind label %36

34:                                               ; preds = %31
  %.fca.1.extract36 = extractvalue { <2 x float>, float } %33, 1
  %.fca.0.extract35 = extractvalue { <2 x float>, float } %33, 0
  %.sroa.030.0.copyload = load <2 x float>, ptr %10, align 8
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.231.0.copyload = load float, ptr %.sroa.231.0..sroa_idx, align 8
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Polyhedron") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %1, <2 x float> %.fca.0.extract35, float %.fca.1.extract36, <2 x float> %.sroa.030.0.copyload, float %.sroa.231.0.copyload)
          to label %35 unwind label %36

35:                                               ; preds = %34
  call void @_ZN3P3D23PolyhedronShapeClassAVXCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %32, ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %62

36:                                               ; preds = %34, %31
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZdlPvm(ptr noundef nonnull %32, i64 noundef 128) #10
  br label %69

38:                                               ; preds = %2
  %39 = call noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef 6)
  br i1 %39, label %40, label %55

40:                                               ; preds = %38
  %41 = call noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef 32)
  %42 = call noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #9
  br i1 %41, label %43, label %49

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %44 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %45 unwind label %47

45:                                               ; preds = %43
  %.fca.1.extract24 = extractvalue { <2 x float>, float } %44, 1
  %.fca.0.extract23 = extractvalue { <2 x float>, float } %44, 0
  %.sroa.019.0.copyload = load <2 x float>, ptr %13, align 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.220.0.copyload = load float, ptr %.sroa.220.0..sroa_idx, align 8
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Polyhedron") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %1, <2 x float> %.fca.0.extract23, float %.fca.1.extract24, <2 x float> %.sroa.019.0.copyload, float %.sroa.220.0.copyload)
          to label %46 unwind label %47

46:                                               ; preds = %45
  call void @_ZN3P3D24PolyhedronShapeClassSSE4CI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %42, ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %62

47:                                               ; preds = %45, %43
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZdlPvm(ptr noundef nonnull %42, i64 noundef 128) #10
  br label %69

49:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %50 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %51 unwind label %53

51:                                               ; preds = %49
  %.fca.1.extract13 = extractvalue { <2 x float>, float } %50, 1
  %.fca.0.extract12 = extractvalue { <2 x float>, float } %50, 0
  %.sroa.08.0.copyload = load <2 x float>, ptr %16, align 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.29.0.copyload = load float, ptr %.sroa.29.0..sroa_idx, align 8
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Polyhedron") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %1, <2 x float> %.fca.0.extract12, float %.fca.1.extract13, <2 x float> %.sroa.08.0.copyload, float %.sroa.29.0.copyload)
          to label %52 unwind label %53

52:                                               ; preds = %51
  call void @_ZN3P3D23PolyhedronShapeClassSSECI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %42, ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  br label %62

53:                                               ; preds = %51, %49
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZdlPvm(ptr noundef nonnull %42, i64 noundef 128) #10
  br label %69

55:                                               ; preds = %38
  %56 = call noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %57 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  invoke void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %58 unwind label %60

58:                                               ; preds = %55
  %.fca.1.extract = extractvalue { <2 x float>, float } %57, 1
  %.fca.0.extract = extractvalue { <2 x float>, float } %57, 0
  %.sroa.0.0.copyload = load <2 x float>, ptr %19, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.2.0.copyload = load float, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Polyhedron") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %1, <2 x float> %.fca.0.extract, float %.fca.1.extract, <2 x float> %.sroa.0.0.copyload, float %.sroa.2.0.copyload)
          to label %59 unwind label %60

59:                                               ; preds = %58
  call void @_ZN3P3D28PolyhedronShapeClassFallbackCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128) %56, ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %62

60:                                               ; preds = %58, %55
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @_ZdlPvm(ptr noundef nonnull %56, i64 noundef 128) #10
  br label %69

62:                                               ; preds = %59, %52, %46, %35
  %.0 = phi ptr [ %32, %35 ], [ %42, %46 ], [ %42, %52 ], [ %56, %59 ]
  call void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEEC2EPS2_b(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull %.0, i1 noundef zeroext true) #8
  %63 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
  %64 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
  %65 = call noundef double @_ZNK3P3D19BoundingBoxTemplateIdE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
  invoke void @_ZN3P3D5ShapeC1ENS_13intrusive_ptrIKNS_10ShapeClassEEEddd(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %20, double noundef %63, double noundef %64, double noundef %65)
          to label %66 unwind label %67

66:                                               ; preds = %62
  call void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  ret void

67:                                               ; preds = %62
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D13intrusive_ptrIKNS_10ShapeClassEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %69

69:                                               ; preds = %60, %53, %47, %36, %67
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %37, %36 ], [ %48, %47 ], [ %54, %53 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn
}

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

declare void @_ZNK3P3D12TriangleMesh9getBoundsEv(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D19BoundingBoxTemplateIdE9getCenterEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3P3D10CPUIDCheck13hasTechnologyEj(i32 noundef) local_unnamed_addr #5 align 2

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

declare void @_ZNK3P3D10Polyhedron19translatedAndScaledENS_6VectorIfLm3EEENS_14DiagonalMatrixIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8, ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float, <2 x float>, float) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D14DiagonalMatrixIfLm3EEC2IdEERKNS0_IT_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D23PolyhedronShapeClassAVXCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D24PolyhedronShapeClassSSE4CI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D23PolyhedronShapeClassSSECI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D28PolyhedronShapeClassFallbackCI2NS_20PolyhedronShapeClassEEONS_10PolyhedronE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass