; LLVM IR from vectozavr/3dzavr :: engine/components/geometry/TriangleMesh.ll (ZN12TriangleMesh5PlaneERK5Vec3DS2_d)

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

%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.Vec3D = type { %"struct.std::array.6" }
%"struct.std::array.6" = type { [3 x double] }
%class.Vec4D = type { %"struct.std::array.8" }
%"struct.std::array.8" = type { [4 x double] }
%class.TriangleMesh = type <{ %class.Component, %"class.std::enable_shared_from_this", %"class.std::vector", %"class.std::shared_ptr", %struct.Bounds, i8, [7 x i8] }>
%class.Component = type { ptr, ptr }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl" }
%"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Bounds = type { %class.Vec3D, %class.Vec3D }
%"class.std::initializer_list" = type { ptr, i64 }
%class.Triangle = type { %"struct.std::array.7", %"struct.std::array.9", %class.Vec3D }
%"struct.std::array.7" = type { [3 x %class.Vec4D] }
%"struct.std::array.9" = type { [3 x %class.Vec3D] }
%"class.std::allocator.3" = type { i8 }

@_ZN6ConstsL16DEFAULT_MATERIALE = external hidden global %"class.std::shared_ptr", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI8TriangleSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12TriangleMesh11setMaterialESt10shared_ptrI8MaterialE(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12TriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(121)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DngEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DmlEd(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DdvEd(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind noalias writable sret(%class.Vec4D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TriangleMesh5PlaneERK5Vec3DS2_d(ptr dead_on_unwind noalias writable sret(%class.TriangleMesh) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i1, align 1
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::shared_ptr", align 8
  %14 = alloca %class.Vec3D, align 8
  %15 = alloca %class.Vec3D, align 8
  %16 = alloca %class.Vec3D, align 8
  %17 = alloca %class.Vec3D, align 8
  %18 = alloca %class.Vec3D, align 8
  %19 = alloca %class.Vec3D, align 8
  %20 = alloca %class.Vec3D, align 8
  %21 = alloca %class.Vec3D, align 8
  %22 = alloca %class.Vec3D, align 8
  %23 = alloca %class.Vec3D, align 8
  %24 = alloca %class.Vec3D, align 8
  %25 = alloca %class.Vec3D, align 8
  %26 = alloca %class.Vec4D, align 8
  %27 = alloca %class.Vec3D, align 8
  %28 = alloca %class.Vec3D, align 8
  %29 = alloca %class.Vec3D, align 8
  %30 = alloca %class.Vec3D, align 8
  %31 = alloca %class.Vec4D, align 8
  %32 = alloca %class.Vec3D, align 8
  %33 = alloca %class.Vec3D, align 8
  %34 = alloca %class.Vec3D, align 8
  %35 = alloca %class.Vec3D, align 8
  %36 = alloca %class.Vec4D, align 8
  %37 = alloca %class.Vec3D, align 8
  %38 = alloca %class.Vec3D, align 8
  %39 = alloca %class.Vec3D, align 8
  %40 = alloca %class.Vec3D, align 8
  %41 = alloca %class.Vec3D, align 8
  %42 = alloca %class.Vec4D, align 8
  %43 = alloca %class.Vec3D, align 8
  %44 = alloca %class.Vec3D, align 8
  %45 = alloca %class.Vec3D, align 8
  %46 = alloca %class.Vec3D, align 8
  %47 = alloca %class.Vec3D, align 8
  %48 = alloca %"class.std::vector", align 8
  %49 = alloca %"class.std::initializer_list", align 8
  %50 = alloca [4 x %class.Triangle], align 8
  %51 = alloca %"struct.std::array.7", align 8
  %52 = alloca %"struct.std::array.9", align 8
  %53 = alloca %"struct.std::array.7", align 8
  %54 = alloca %"struct.std::array.9", align 8
  %55 = alloca %"struct.std::array.7", align 8
  %56 = alloca %"struct.std::array.9", align 8
  %57 = alloca %"struct.std::array.7", align 8
  %58 = alloca %"struct.std::array.9", align 8
  %59 = alloca %"class.std::allocator.3", align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  store i1 false, ptr %9, align 1
  call void @_ZN12TriangleMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(121) %0) #7
  call void @_ZNSt10shared_ptrI8MaterialEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) @_ZN6ConstsL16DEFAULT_MATERIALE) #7
  invoke void @_ZN12TriangleMesh11setMaterialESt10shared_ptrI8MaterialE(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef %10)
          to label %60 unwind label %72

60:                                               ; preds = %4
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  invoke void @_ZNK12TriangleMesh11getMaterialEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(121) %0)
          to label %61 unwind label %76

61:                                               ; preds = %60
  %62 = call noundef ptr @_ZNKSt19__shared_ptr_accessI8MaterialLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZN8Material15setTransparencyEd(ptr noundef nonnull align 8 dereferenceable(73) %62, double noundef 3.000000e-01)
          to label %63 unwind label %80

63:                                               ; preds = %61
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  invoke void @_ZN5Vec3D1iEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %16)
          to label %65 unwind label %85

65:                                               ; preds = %63
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %66 unwind label %85

66:                                               ; preds = %65
  %67 = invoke noundef double @_ZNK5Vec3D3absEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %68 unwind label %85

68:                                               ; preds = %66
  %69 = fcmp ogt double %67, 0x3DA5FD7FE1796495
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  br i1 %69, label %70, label %93

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  invoke void @_ZN5Vec3D1iEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %17)
          to label %71 unwind label %89

71:                                               ; preds = %70
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %17, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %117

72:                                               ; preds = %4
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %300

76:                                               ; preds = %60
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  br label %84

80:                                               ; preds = %61
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %11, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %12, align 4
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %84

84:                                               ; preds = %80, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %300

85:                                               ; preds = %66, %65, %63
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %11, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  br label %297

89:                                               ; preds = %70
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %11, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %297

93:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  invoke void @_ZN5Vec3D1jEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %19)
          to label %95 unwind label %102

95:                                               ; preds = %93
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %96 unwind label %102

96:                                               ; preds = %95
  %97 = invoke noundef double @_ZNK5Vec3D3absEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %98 unwind label %102

98:                                               ; preds = %96
  %99 = fcmp ogt double %97, 0x3DA5FD7FE1796495
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  br i1 %99, label %100, label %110

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  invoke void @_ZN5Vec3D1jEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %20)
          to label %101 unwind label %106

101:                                              ; preds = %100
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %116

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

106:                                              ; preds = %100
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %297

110:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  invoke void @_ZN5Vec3D1kEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %21)
          to label %111 unwind label %112

111:                                              ; preds = %110
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %116

112:                                              ; preds = %110
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %11, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %297

116:                                              ; preds = %111, %101
  br label %117

117:                                              ; preds = %116, %71
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %119 unwind label %218

119:                                              ; preds = %117
  invoke void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %120 unwind label %218

120:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %122 unwind label %222

122:                                              ; preds = %120
  invoke void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %123 unwind label %222

123:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #7
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %125 unwind label %226

125:                                              ; preds = %123
  %126 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %30, double noundef %126)
          to label %127 unwind label %226

127:                                              ; preds = %125
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %29, double noundef 2.000000e+00)
          to label %128 unwind label %226

128:                                              ; preds = %127
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %129 unwind label %226

129:                                              ; preds = %128
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %130 unwind label %226

130:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #7
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #7
  invoke void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %132 unwind label %230

132:                                              ; preds = %130
  %133 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %35, double noundef %133)
          to label %134 unwind label %230

134:                                              ; preds = %132
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %34, double noundef 2.000000e+00)
          to label %135 unwind label %230

135:                                              ; preds = %134
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %136 unwind label %230

136:                                              ; preds = %135
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %137 unwind label %230

137:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #7
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #7
  invoke void @_ZNK5Vec3DngEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %41, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %139 unwind label %234

139:                                              ; preds = %137
  invoke void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %40, ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %140 unwind label %234

140:                                              ; preds = %139
  %141 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %39, ptr noundef nonnull align 8 dereferenceable(24) %40, double noundef %141)
          to label %142 unwind label %234

142:                                              ; preds = %140
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %38, ptr noundef nonnull align 8 dereferenceable(24) %39, double noundef 2.000000e+00)
          to label %143 unwind label %234

143:                                              ; preds = %142
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %138, ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %144 unwind label %234

144:                                              ; preds = %143
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %36, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %145 unwind label %234

145:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #7
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #7
  invoke void @_ZNK5Vec3DngEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %47, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %147 unwind label %238

147:                                              ; preds = %145
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %46, ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %148 unwind label %238

148:                                              ; preds = %147
  %149 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %45, ptr noundef nonnull align 8 dereferenceable(24) %46, double noundef %149)
          to label %150 unwind label %238

150:                                              ; preds = %148
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %44, ptr noundef nonnull align 8 dereferenceable(24) %45, double noundef 2.000000e+00)
          to label %151 unwind label %238

151:                                              ; preds = %150
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %43, ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(24) %44)
          to label %152 unwind label %238

152:                                              ; preds = %151
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %42, ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %153 unwind label %238

153:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 768, ptr %50) #7
  call void @llvm.lifetime.start.p0(i64 96, ptr %51) #7
  %154 = getelementptr inbounds %"struct.std::array.7", ptr %51, i32 0, i32 0
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %154, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %155 unwind label %242

155:                                              ; preds = %153
  %156 = getelementptr inbounds %class.Vec4D, ptr %154, i64 1
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %156, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %157 unwind label %242

157:                                              ; preds = %155
  %158 = getelementptr inbounds %class.Vec4D, ptr %154, i64 2
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %158, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %159 unwind label %242

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 72, ptr %52) #7
  %160 = getelementptr inbounds %"struct.std::array.9", ptr %52, i32 0, i32 0
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %160, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %161 unwind label %246

161:                                              ; preds = %159
  %162 = getelementptr inbounds %class.Vec3D, ptr %160, i64 1
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %162, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %163 unwind label %246

163:                                              ; preds = %161
  %164 = getelementptr inbounds %class.Vec3D, ptr %160, i64 2
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %164, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %165 unwind label %246

165:                                              ; preds = %163
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %50, ptr noundef nonnull align 8 dereferenceable(96) %51, ptr noundef nonnull align 8 dereferenceable(72) %52)
          to label %166 unwind label %246

166:                                              ; preds = %165
  %167 = getelementptr inbounds %class.Triangle, ptr %50, i64 1
  call void @llvm.lifetime.start.p0(i64 96, ptr %53) #7
  %168 = getelementptr inbounds %"struct.std::array.7", ptr %53, i32 0, i32 0
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %168, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %169 unwind label %250

169:                                              ; preds = %166
  %170 = getelementptr inbounds %class.Vec4D, ptr %168, i64 1
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %170, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %171 unwind label %250

171:                                              ; preds = %169
  %172 = getelementptr inbounds %class.Vec4D, ptr %168, i64 2
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %172, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %173 unwind label %250

173:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 72, ptr %54) #7
  %174 = getelementptr inbounds %"struct.std::array.9", ptr %54, i32 0, i32 0
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %174, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %175 unwind label %254

175:                                              ; preds = %173
  %176 = getelementptr inbounds %class.Vec3D, ptr %174, i64 1
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %176, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %177 unwind label %254

177:                                              ; preds = %175
  %178 = getelementptr inbounds %class.Vec3D, ptr %174, i64 2
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %178, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %179 unwind label %254

179:                                              ; preds = %177
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %167, ptr noundef nonnull align 8 dereferenceable(96) %53, ptr noundef nonnull align 8 dereferenceable(72) %54)
          to label %180 unwind label %254

180:                                              ; preds = %179
  %181 = getelementptr inbounds %class.Triangle, ptr %50, i64 2
  call void @llvm.lifetime.start.p0(i64 96, ptr %55) #7
  %182 = getelementptr inbounds %"struct.std::array.7", ptr %55, i32 0, i32 0
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %182, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %183 unwind label %258

183:                                              ; preds = %180
  %184 = getelementptr inbounds %class.Vec4D, ptr %182, i64 1
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %184, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %185 unwind label %258

185:                                              ; preds = %183
  %186 = getelementptr inbounds %class.Vec4D, ptr %182, i64 2
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %186, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %187 unwind label %258

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 72, ptr %56) #7
  %188 = getelementptr inbounds %"struct.std::array.9", ptr %56, i32 0, i32 0
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %188, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %189 unwind label %262

189:                                              ; preds = %187
  %190 = getelementptr inbounds %class.Vec3D, ptr %188, i64 1
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %190, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %191 unwind label %262

191:                                              ; preds = %189
  %192 = getelementptr inbounds %class.Vec3D, ptr %188, i64 2
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %192, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %193 unwind label %262

193:                                              ; preds = %191
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %181, ptr noundef nonnull align 8 dereferenceable(96) %55, ptr noundef nonnull align 8 dereferenceable(72) %56)
          to label %194 unwind label %262

194:                                              ; preds = %193
  %195 = getelementptr inbounds %class.Triangle, ptr %50, i64 3
  call void @llvm.lifetime.start.p0(i64 96, ptr %57) #7
  %196 = getelementptr inbounds %"struct.std::array.7", ptr %57, i32 0, i32 0
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %196, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %197 unwind label %266

197:                                              ; preds = %194
  %198 = getelementptr inbounds %class.Vec4D, ptr %196, i64 1
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %198, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %199 unwind label %266

199:                                              ; preds = %197
  %200 = getelementptr inbounds %class.Vec4D, ptr %196, i64 2
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %200, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %201 unwind label %266

201:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 72, ptr %58) #7
  %202 = getelementptr inbounds %"struct.std::array.9", ptr %58, i32 0, i32 0
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %202, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %203 unwind label %270

203:                                              ; preds = %201
  %204 = getelementptr inbounds %class.Vec3D, ptr %202, i64 1
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %204, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %205 unwind label %270

205:                                              ; preds = %203
  %206 = getelementptr inbounds %class.Vec3D, ptr %202, i64 2
  invoke void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %206, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %207 unwind label %270

207:                                              ; preds = %205
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %195, ptr noundef nonnull align 8 dereferenceable(96) %57, ptr noundef nonnull align 8 dereferenceable(72) %58)
          to label %208 unwind label %270

208:                                              ; preds = %207
  %209 = getelementptr inbounds %"class.std::initializer_list", ptr %49, i32 0, i32 0
  store ptr %50, ptr %209, align 8, !tbaa !13
  %210 = getelementptr inbounds %"class.std::initializer_list", ptr %49, i32 0, i32 1
  store i64 4, ptr %210, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #7
  call void @_ZNSaI8TriangleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #7
  %211 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8
  %213 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 1
  %214 = load i64, ptr %213, align 8
  invoke void @_ZNSt6vectorI8TriangleSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr %212, i64 %214, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %215 unwind label %274

215:                                              ; preds = %208
  invoke void @_ZN12TriangleMesh12setTrianglesEOSt6vectorI8TriangleSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %48)
          to label %216 unwind label %278

216:                                              ; preds = %215
  call void @_ZNSt6vectorI8TriangleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #7
  call void @_ZNSt15__new_allocatorI8TriangleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 768, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #7
  store i1 true, ptr %9, align 1
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  %217 = load i1, ptr %9, align 1
  br i1 %217, label %299, label %298

218:                                              ; preds = %119, %117
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %11, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %296

222:                                              ; preds = %122, %120
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  br label %295

226:                                              ; preds = %129, %128, %127, %125, %123
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %11, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  br label %294

230:                                              ; preds = %136, %135, %134, %132, %130
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %11, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #7
  br label %293

234:                                              ; preds = %144, %143, %142, %140, %139, %137
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %11, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  br label %292

238:                                              ; preds = %152, %151, %150, %148, %147, %145
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %11, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #7
  br label %291

242:                                              ; preds = %157, %155, %153
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %11, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %12, align 4
  br label %290

246:                                              ; preds = %165, %163, %161, %159
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %11, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %12, align 4
  br label %289

250:                                              ; preds = %171, %169, %166
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %11, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %12, align 4
  br label %288

254:                                              ; preds = %179, %177, %175, %173
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %11, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %12, align 4
  br label %287

258:                                              ; preds = %185, %183, %180
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %11, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %12, align 4
  br label %286

262:                                              ; preds = %193, %191, %189, %187
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %11, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %12, align 4
  br label %285

266:                                              ; preds = %199, %197, %194
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %11, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %12, align 4
  br label %284

270:                                              ; preds = %207, %205, %203, %201
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %11, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %12, align 4
  br label %283

274:                                              ; preds = %208
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %11, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %12, align 4
  br label %282

278:                                              ; preds = %215
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %11, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %12, align 4
  call void @_ZNSt6vectorI8TriangleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #7
  br label %282

282:                                              ; preds = %278, %274
  call void @_ZNSt15__new_allocatorI8TriangleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #7
  br label %283

283:                                              ; preds = %282, %270
  call void @llvm.lifetime.end.p0(i64 72, ptr %58) #7
  br label %284

284:                                              ; preds = %283, %266
  call void @llvm.lifetime.end.p0(i64 96, ptr %57) #7
  br label %285

285:                                              ; preds = %284, %262
  call void @llvm.lifetime.end.p0(i64 72, ptr %56) #7
  br label %286

286:                                              ; preds = %285, %258
  call void @llvm.lifetime.end.p0(i64 96, ptr %55) #7
  br label %287

287:                                              ; preds = %286, %254
  call void @llvm.lifetime.end.p0(i64 72, ptr %54) #7
  br label %288

288:                                              ; preds = %287, %250
  call void @llvm.lifetime.end.p0(i64 96, ptr %53) #7
  br label %289

289:                                              ; preds = %288, %246
  call void @llvm.lifetime.end.p0(i64 72, ptr %52) #7
  br label %290

290:                                              ; preds = %289, %242
  call void @llvm.lifetime.end.p0(i64 96, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 768, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #7
  br label %291

291:                                              ; preds = %290, %238
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #7
  br label %292

292:                                              ; preds = %291, %234
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br label %293

293:                                              ; preds = %292, %230
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br label %294

294:                                              ; preds = %293, %226
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  br label %295

295:                                              ; preds = %294, %222
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  br label %296

296:                                              ; preds = %295, %218
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  br label %297

297:                                              ; preds = %296, %112, %106, %102, %89, %85
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %300

298:                                              ; preds = %216
  call void @_ZN12TriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(121) %0) #7
  br label %299

299:                                              ; preds = %298, %216
  ret void

300:                                              ; preds = %297, %84, %72
  call void @_ZN12TriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(121) %0) #7
  br label %301

301:                                              ; preds = %300
  %302 = load ptr, ptr %11, align 8
  %303 = load i32, ptr %12, align 4
  %304 = insertvalue { ptr, i32 } poison, ptr %302, 0
  %305 = insertvalue { ptr, i32 } %304, i32 %303, 1
  resume { ptr, i32 } %305
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK12TriangleMesh11getMaterialEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(121)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI8MaterialLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

declare void @_ZN8Material15setTransparencyEd(ptr noundef nonnull align 8 dereferenceable(73), double noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Vec3D1iEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Vec3D1jEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Vec3D1kEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8) #1 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{i64 0, i64 24, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listI8TriangleE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, 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.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.Vec3D = type { %"struct.std::array.6" }
%"struct.std::array.6" = type { [3 x double] }
%class.Vec4D = type { %"struct.std::array.8" }
%"struct.std::array.8" = type { [4 x double] }
%class.TriangleMesh = type <{ %class.Component, %"class.std::enable_shared_from_this", %"class.std::vector", %"class.std::shared_ptr", %struct.Bounds, i8, [7 x i8] }>
%class.Component = type { ptr, ptr }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl" }
%"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Triangle, std::allocator<Triangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Bounds = type { %class.Vec3D, %class.Vec3D }
%class.Triangle = type { %"struct.std::array.7", %"struct.std::array.9", %class.Vec3D }
%"struct.std::array.7" = type { [3 x %class.Vec4D] }
%"struct.std::array.9" = type { [3 x %class.Vec3D] }
%"class.std::allocator.3" = type { i8 }

@_ZN6ConstsL16DEFAULT_MATERIALE = external hidden global %"class.std::shared_ptr", align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
declare dso_local void @_ZN12TriangleMesh12setTrianglesEOSt6vectorI8TriangleSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

declare void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI8TriangleSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12TriangleMesh11setMaterialESt10shared_ptrI8MaterialE(ptr noundef nonnull align 8 dereferenceable(121), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12TriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(121)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DngEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DmlEd(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DdvEd(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind noalias writable sret(%class.Vec4D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

; 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) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TriangleMesh5PlaneERK5Vec3DS2_d(ptr dead_on_unwind noalias nonnull writable sret(%class.TriangleMesh) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.std::shared_ptr", align 8
  %7 = alloca %class.Vec3D, align 8
  %8 = alloca %class.Vec3D, align 8
  %9 = alloca %class.Vec3D, align 8
  %10 = alloca %class.Vec3D, align 8
  %11 = alloca %class.Vec3D, align 8
  %12 = alloca %class.Vec3D, align 8
  %13 = alloca %class.Vec3D, align 8
  %14 = alloca %class.Vec3D, align 8
  %15 = alloca %class.Vec3D, align 8
  %16 = alloca %class.Vec3D, align 8
  %17 = alloca %class.Vec3D, align 8
  %18 = alloca %class.Vec3D, align 8
  %19 = alloca %class.Vec4D, align 8
  %20 = alloca %class.Vec3D, align 8
  %21 = alloca %class.Vec3D, align 8
  %22 = alloca %class.Vec3D, align 8
  %23 = alloca %class.Vec3D, align 8
  %24 = alloca %class.Vec4D, align 8
  %25 = alloca %class.Vec3D, align 8
  %26 = alloca %class.Vec3D, align 8
  %27 = alloca %class.Vec3D, align 8
  %28 = alloca %class.Vec3D, align 8
  %29 = alloca %class.Vec4D, align 8
  %30 = alloca %class.Vec3D, align 8
  %31 = alloca %class.Vec3D, align 8
  %32 = alloca %class.Vec3D, align 8
  %33 = alloca %class.Vec3D, align 8
  %34 = alloca %class.Vec3D, align 8
  %35 = alloca %class.Vec4D, align 8
  %36 = alloca %class.Vec3D, align 8
  %37 = alloca %class.Vec3D, align 8
  %38 = alloca %class.Vec3D, align 8
  %39 = alloca %class.Vec3D, align 8
  %40 = alloca %class.Vec3D, align 8
  %41 = alloca %"class.std::vector", align 8
  %42 = alloca [4 x %class.Triangle], align 8
  %43 = alloca %"struct.std::array.7", align 8
  %44 = alloca %"struct.std::array.9", align 8
  %45 = alloca %"struct.std::array.7", align 8
  %46 = alloca %"struct.std::array.9", align 8
  %47 = alloca %"struct.std::array.7", align 8
  %48 = alloca %"struct.std::array.9", align 8
  %49 = alloca %"struct.std::array.7", align 8
  %50 = alloca %"struct.std::array.9", align 8
  %51 = alloca %"class.std::allocator.3", align 1
  tail call void @_ZN12TriangleMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(121) %0) #7
  call void @_ZNSt10shared_ptrI8MaterialEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) @_ZN6ConstsL16DEFAULT_MATERIALE) #7
  call void @_ZN12TriangleMesh11setMaterialESt10shared_ptrI8MaterialE(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull %5)
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZNK12TriangleMesh11getMaterialEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(121) %0)
  %52 = call noundef ptr @_ZNKSt19__shared_ptr_accessI8MaterialLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZN8Material15setTransparencyEd(ptr noundef nonnull align 8 dereferenceable(73) %52, double noundef 3.000000e-01)
          to label %53 unwind label %60

53:                                               ; preds = %4
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  invoke void @_ZN5Vec3D1iEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %9)
          to label %54 unwind label %62

54:                                               ; preds = %53
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %55 unwind label %62

55:                                               ; preds = %54
  %56 = call noundef double @_ZNK5Vec3D3absEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %57 = fcmp ogt double %56, 0x3DA5FD7FE1796495
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br i1 %57, label %58, label %66

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  invoke void @_ZN5Vec3D1iEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %10)
          to label %59 unwind label %64

59:                                               ; preds = %58
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %81

60:                                               ; preds = %4
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI8MaterialLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %193

62:                                               ; preds = %54, %53
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %192

64:                                               ; preds = %58
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %192

66:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  invoke void @_ZN5Vec3D1jEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %12)
          to label %67 unwind label %73

67:                                               ; preds = %66
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %68 unwind label %73

68:                                               ; preds = %67
  %69 = call noundef double @_ZNK5Vec3D3absEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %70 = fcmp ogt double %69, 0x3DA5FD7FE1796495
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br i1 %70, label %71, label %77

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  invoke void @_ZN5Vec3D1jEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %13)
          to label %72 unwind label %75

72:                                               ; preds = %71
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %13, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %81

73:                                               ; preds = %67, %66
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %192

75:                                               ; preds = %71
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %192

77:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  invoke void @_ZN5Vec3D1kEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %14)
          to label %78 unwind label %79

78:                                               ; preds = %77
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %14, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %81

79:                                               ; preds = %77
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %192

81:                                               ; preds = %72, %78, %59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %82 unwind label %145

82:                                               ; preds = %81
  invoke void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %83 unwind label %145

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  invoke void @_ZNK5Vec3D5crossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %84 unwind label %147

84:                                               ; preds = %83
  invoke void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %85 unwind label %147

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #7
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %86 unwind label %149

86:                                               ; preds = %85
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %23, double noundef %3)
          to label %87 unwind label %149

87:                                               ; preds = %86
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %22, double noundef 2.000000e+00)
          to label %88 unwind label %149

88:                                               ; preds = %87
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %89 unwind label %149

89:                                               ; preds = %88
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %90 unwind label %149

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #7
  invoke void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %91 unwind label %151

91:                                               ; preds = %90
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %28, double noundef %3)
          to label %92 unwind label %151

92:                                               ; preds = %91
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %27, double noundef 2.000000e+00)
          to label %93 unwind label %151

93:                                               ; preds = %92
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %94 unwind label %151

94:                                               ; preds = %93
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %95 unwind label %151

95:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #7
  invoke void @_ZNK5Vec3DngEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %96 unwind label %153

96:                                               ; preds = %95
  invoke void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %97 unwind label %153

97:                                               ; preds = %96
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %33, double noundef %3)
          to label %98 unwind label %153

98:                                               ; preds = %97
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %32, double noundef 2.000000e+00)
          to label %99 unwind label %153

99:                                               ; preds = %98
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %100 unwind label %153

100:                                              ; preds = %99
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %101 unwind label %153

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %39) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %40) #7
  invoke void @_ZNK5Vec3DngEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %40, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %102 unwind label %155

102:                                              ; preds = %101
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %39, ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %103 unwind label %155

103:                                              ; preds = %102
  invoke void @_ZNK5Vec3DmlEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %38, ptr noundef nonnull align 8 dereferenceable(24) %39, double noundef %3)
          to label %104 unwind label %155

104:                                              ; preds = %103
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %38, double noundef 2.000000e+00)
          to label %105 unwind label %155

105:                                              ; preds = %104
  invoke void @_ZNK5Vec3DplERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %36, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %106 unwind label %155

106:                                              ; preds = %105
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %107 unwind label %155

107:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %41) #7
  call void @llvm.lifetime.start.p0(i64 768, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %43) #7
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %108 unwind label %157

108:                                              ; preds = %107
  %109 = getelementptr inbounds i8, ptr %43, i64 32
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %109, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %110 unwind label %157

110:                                              ; preds = %108
  %111 = getelementptr inbounds i8, ptr %43, i64 64
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %111, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %112 unwind label %157

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %44) #7
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %44, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %113 = getelementptr inbounds i8, ptr %44, i64 24
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %113, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %114 = getelementptr inbounds i8, ptr %44, i64 48
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %114, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %42, ptr noundef nonnull align 8 dereferenceable(96) %43, ptr noundef nonnull align 8 dereferenceable(72) %44)
          to label %115 unwind label %159

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %42, i64 192
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %45) #7
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %117 unwind label %161

117:                                              ; preds = %115
  %118 = getelementptr inbounds i8, ptr %45, i64 32
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %118, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %119 unwind label %161

119:                                              ; preds = %117
  %120 = getelementptr inbounds i8, ptr %45, i64 64
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %120, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %121 unwind label %161

121:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %46) #7
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %46, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %122 = getelementptr inbounds i8, ptr %46, i64 24
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %122, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %123 = getelementptr inbounds i8, ptr %46, i64 48
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %123, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %116, ptr noundef nonnull align 8 dereferenceable(96) %45, ptr noundef nonnull align 8 dereferenceable(72) %46)
          to label %124 unwind label %163

124:                                              ; preds = %121
  %125 = getelementptr inbounds i8, ptr %42, i64 384
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %47) #7
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %126 unwind label %165

126:                                              ; preds = %124
  %127 = getelementptr inbounds i8, ptr %47, i64 32
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %127, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %128 unwind label %165

128:                                              ; preds = %126
  %129 = getelementptr inbounds i8, ptr %47, i64 64
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %129, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %130 unwind label %165

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %48) #7
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %48, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %131 = getelementptr inbounds i8, ptr %48, i64 24
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %131, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %132 = getelementptr inbounds i8, ptr %48, i64 48
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %132, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %125, ptr noundef nonnull align 8 dereferenceable(96) %47, ptr noundef nonnull align 8 dereferenceable(72) %48)
          to label %133 unwind label %167

133:                                              ; preds = %130
  %134 = getelementptr inbounds i8, ptr %42, i64 576
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %49) #7
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %135 unwind label %169

135:                                              ; preds = %133
  %136 = getelementptr inbounds i8, ptr %49, i64 32
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %137 unwind label %169

137:                                              ; preds = %135
  %138 = getelementptr inbounds i8, ptr %49, i64 64
  invoke void @_ZN5Vec4DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %138, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %139 unwind label %169

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %50) #7
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %50, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %140 = getelementptr inbounds i8, ptr %50, i64 24
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %140, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %141 = getelementptr inbounds i8, ptr %50, i64 48
  call void @_ZN5Vec3DC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %141, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 1.000000e+00)
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %134, ptr noundef nonnull align 8 dereferenceable(96) %49, ptr noundef nonnull align 8 dereferenceable(72) %50)
          to label %142 unwind label %171

142:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %51) #7
  call void @_ZNSaI8TriangleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #7
  invoke void @_ZNSt6vectorI8TriangleSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr nonnull %42, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %143 unwind label %173

143:                                              ; preds = %142
  invoke void @_ZN12TriangleMesh12setTrianglesEOSt6vectorI8TriangleSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %41)
          to label %144 unwind label %175

144:                                              ; preds = %143
  call void @_ZNSt6vectorI8TriangleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  call void @_ZNSt15__new_allocatorI8TriangleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %50) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %49) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %48) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %47) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %45) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %44) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  ret void

145:                                              ; preds = %82, %81
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %191

147:                                              ; preds = %84, %83
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %190

149:                                              ; preds = %89, %88, %87, %86, %85
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %189

151:                                              ; preds = %94, %93, %92, %91, %90
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #7
  br label %188

153:                                              ; preds = %100, %99, %98, %97, %96, %95
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #7
  br label %187

155:                                              ; preds = %106, %105, %104, %103, %102, %101
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #7
  br label %186

157:                                              ; preds = %110, %108, %107
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %185

159:                                              ; preds = %112
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %184

161:                                              ; preds = %119, %117, %115
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %183

163:                                              ; preds = %121
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %182

165:                                              ; preds = %128, %126, %124
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %181

167:                                              ; preds = %130
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %180

169:                                              ; preds = %137, %135, %133
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %179

171:                                              ; preds = %139
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %178

173:                                              ; preds = %142
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %177

175:                                              ; preds = %143
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI8TriangleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #7
  br label %177

177:                                              ; preds = %175, %173
  %.pn = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @_ZNSt15__new_allocatorI8TriangleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #7
  br label %178

178:                                              ; preds = %177, %171
  %.pn.pn = phi { ptr, i32 } [ %.pn, %177 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %50) #7
  br label %179

179:                                              ; preds = %178, %169
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %178 ], [ %170, %169 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %49) #7
  br label %180

180:                                              ; preds = %179, %167
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %179 ], [ %168, %167 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %48) #7
  br label %181

181:                                              ; preds = %180, %165
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %180 ], [ %166, %165 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %47) #7
  br label %182

182:                                              ; preds = %181, %163
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %181 ], [ %164, %163 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %46) #7
  br label %183

183:                                              ; preds = %182, %161
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %182 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %45) #7
  br label %184

184:                                              ; preds = %183, %159
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %183 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %44) #7
  br label %185

185:                                              ; preds = %184, %157
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %184 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #7
  br label %186

186:                                              ; preds = %185, %155
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %185 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #7
  br label %187

187:                                              ; preds = %186, %153
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %186 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  br label %188

188:                                              ; preds = %187, %151
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %187 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #7
  br label %189

189:                                              ; preds = %188, %149
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %188 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br label %190

190:                                              ; preds = %189, %147
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %189 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  br label %191

191:                                              ; preds = %190, %145
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %190 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  br label %192

192:                                              ; preds = %191, %79, %75, %73, %64, %62
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %191 ], [ %65, %64 ], [ %76, %75 ], [ %80, %79 ], [ %74, %73 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %193

193:                                              ; preds = %192, %60
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %192 ], [ %61, %60 ]
  call void @_ZN12TriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(121) %0) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK12TriangleMesh11getMaterialEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(121)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI8MaterialLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

declare void @_ZN8Material15setTransparencyEd(ptr noundef nonnull align 8 dereferenceable(73), double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Vec3D1iEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Vec3D1jEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Vec3D1kEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8) local_unnamed_addr #1 align 2

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass