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

; 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.Triangle = type { %"struct.std::array.7", %"struct.std::array.9", %class.Vec3D }
%"struct.std::array.7" = type { [3 x %class.Vec4D] }
%class.Vec4D = type { %"struct.std::array.8" }
%"struct.std::array.8" = type { [4 x double] }
%"struct.std::array.9" = type { [3 x %class.Vec3D] }
%class.Vec3D = type { %"struct.std::array.6" }
%"struct.std::array.6" = type { [3 x double] }
%"struct.TriangleMesh::IntersectionInformation" = type { %class.Vec3D, %class.Vec3D, double, %"class.std::shared_ptr.14", i8, %class.Triangle }
%"class.std::shared_ptr.14" = type { %"class.std::__shared_ptr.15" }
%"class.std::__shared_ptr.15" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.Matrix4x4 = type { %"struct.std::array.10" }
%"struct.std::array.10" = type { [4 x %"struct.std::array.8"] }
%"class.std::shared_ptr.11" = type { %"class.std::__shared_ptr.12" }
%"class.std::__shared_ptr.12" = type { ptr, %"class.std::__shared_count" }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }
%"struct.Triangle::IntersectionInformation" = type <{ %class.Vec3D, %class.Vec3D, double, i8, [7 x i8] }>

; 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

declare void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind writable sret(%class.Triangle) align 8, ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(128)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TriangleMesh9intersectERK5Vec3DS2_(ptr dead_on_unwind noalias writable sret(%"struct.TriangleMesh::IntersectionInformation") align 8 %0, ptr noundef nonnull align 8 dereferenceable(121) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca %class.Vec3D, align 8
  %11 = alloca double, align 8
  %12 = alloca %class.Vec3D, align 8
  %13 = alloca %class.Triangle, align 8
  %14 = alloca %class.Matrix4x4, align 8
  %15 = alloca %"class.std::shared_ptr.11", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.Matrix4x4, align 8
  %19 = alloca %"class.std::shared_ptr.11", 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.Vec4D, align 8
  %26 = alloca %class.Vec3D, align 8
  %27 = alloca %class.Vec4D, align 8
  %28 = alloca %class.Vec4D, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca %class.Vec3D, align 8
  %35 = alloca %"struct.Triangle::IntersectionInformation", align 8
  %36 = alloca %class.Vec3D, align 8
  %37 = alloca %class.Vec3D, align 8
  %38 = alloca %class.Vec4D, align 8
  %39 = alloca %class.Vec4D, align 8
  %40 = alloca %class.Vec3D, align 8
  %41 = alloca %class.Vec3D, align 8
  %42 = alloca double, align 8
  %43 = alloca %class.Vec3D, align 8
  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 ptr %3, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #8
  store i8 0, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %45 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  store double %45, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.start.p0(i64 192, ptr %13) #8
  call void @_ZN8TriangleC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %13) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.11") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %44)
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8 %14, ptr noundef nonnull align 8 dereferenceable(192) %46)
          to label %47 unwind label %64

47:                                               ; preds = %4
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.11") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %44)
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8 %18, ptr noundef nonnull align 8 dereferenceable(192) %48)
          to label %49 unwind label %68

49:                                               ; preds = %47
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %51)
  call void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @_ZNK9Matrix4x4mlERK5Vec3D(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %22, ptr noundef nonnull align 8 dereferenceable(128) %18, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %52)
  call void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %24, ptr noundef nonnull align 8 dereferenceable(128) %18, ptr noundef nonnull align 8 dereferenceable(32) %25)
  call void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(32) %24)
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %53)
  call void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %27, ptr noundef nonnull align 8 dereferenceable(128) %18, ptr noundef nonnull align 8 dereferenceable(32) %28)
  call void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12TriangleMesh9trianglesEv(ptr noundef nonnull align 8 dereferenceable(121) %44)
  store ptr %54, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %55 = load ptr, ptr %29, align 8, !tbaa !5
  %56 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #8
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %30, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %58 = load ptr, ptr %29, align 8, !tbaa !5
  %59 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.17", ptr %31, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  br label %61

61:                                               ; preds = %103, %49
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %62, label %72, label %63

63:                                               ; preds = %61
  store i32 2, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %105

64:                                               ; preds = %4
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %16, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %17, align 4
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %125

68:                                               ; preds = %47
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %16, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %17, align 4
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %124

72:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %73 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  store ptr %73, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  %74 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZNK8Triangle4normEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %34, ptr noundef nonnull align 8 dereferenceable(192) %74)
  %75 = call noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %22)
  %76 = fcmp ogt double %75, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  br i1 %76, label %77, label %78

77:                                               ; preds = %72
  store i32 3, ptr %32, align 4
  br label %100

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #8
  %79 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZNK8Triangle9intersectERK5Vec3DS2_(ptr dead_on_unwind writable sret(%"struct.Triangle::IntersectionInformation") align 8 %35, ptr noundef nonnull align 8 dereferenceable(192) %79, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %26)
  %80 = getelementptr inbounds %"struct.Triangle::IntersectionInformation", ptr %35, i32 0, i32 3
  %81 = load i8, ptr %80, align 8, !tbaa !13, !range !17, !noundef !18
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %99

83:                                               ; preds = %78
  %84 = getelementptr inbounds %"struct.Triangle::IntersectionInformation", ptr %35, i32 0, i32 2
  %85 = load double, ptr %84, align 8, !tbaa !19
  %86 = fptosi double %85 to i32
  %87 = call i32 @llvm.abs.i32(i32 %86, i1 true)
  %88 = load double, ptr %11, align 8, !tbaa !11
  %89 = fptosi double %88 to i32
  %90 = call i32 @llvm.abs.i32(i32 %89, i1 true)
  %91 = icmp slt i32 %87, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %83
  %93 = getelementptr inbounds %"struct.Triangle::IntersectionInformation", ptr %35, i32 0, i32 2
  %94 = load double, ptr %93, align 8, !tbaa !19
  store double %94, ptr %11, align 8, !tbaa !11
  %95 = getelementptr inbounds %"struct.Triangle::IntersectionInformation", ptr %35, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %95, i64 24, i1 false), !tbaa.struct !20
  store i8 1, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #8
  %96 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZNK8Triangle4normEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %36, ptr noundef nonnull align 8 dereferenceable(192) %96)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %36, i64 24, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  %97 = load ptr, ptr %33, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %97, i64 192, i1 false), !tbaa.struct !22
  br label %98

98:                                               ; preds = %92, %83
  br label %99

99:                                               ; preds = %98, %78
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #8
  store i32 0, ptr %32, align 4
  br label %100

100:                                              ; preds = %99, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  %101 = load i32, ptr %32, align 4
  switch i32 %101, label %131 [
    i32 0, label %102
    i32 3, label %103
  ]

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102, %100
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br label %61

105:                                              ; preds = %63
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #8
  call void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %39, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %38, ptr noundef nonnull align 8 dereferenceable(128) %14, ptr noundef nonnull align 8 dereferenceable(32) %39)
  call void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(32) %38)
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #8
  call void @_ZNK9Matrix4x4mlERK5Vec3D(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %41, ptr noundef nonnull align 8 dereferenceable(128) %14, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %40, ptr noundef nonnull align 8 dereferenceable(24) %41)
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #8
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %43, ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %106)
  %107 = call noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  store double %107, ptr %42, align 8, !tbaa !11
  %108 = getelementptr inbounds %"struct.TriangleMesh::IntersectionInformation", ptr %0, i32 0, i32 0
  call void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(24) %37)
  %109 = getelementptr inbounds %"struct.TriangleMesh::IntersectionInformation", ptr %0, i32 0, i32 1
  call void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(24) %40)
  %110 = getelementptr inbounds %"struct.TriangleMesh::IntersectionInformation", ptr %0, i32 0, i32 2
  %111 = load double, ptr %42, align 8, !tbaa !11
  store double %111, ptr %110, align 8, !tbaa !23
  %112 = getelementptr inbounds %"struct.TriangleMesh::IntersectionInformation", ptr %0, i32 0, i32 3
  %113 = getelementptr inbounds i8, ptr %44, i64 16
  call void @_ZNSt23enable_shared_from_thisI12TriangleMeshE16shared_from_thisEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.14") align 8 %112, ptr noundef nonnull align 8 dereferenceable(16) %113)
  %114 = getelementptr inbounds %"struct.TriangleMesh::IntersectionInformation", ptr %0, i32 0, i32 4
  %115 = load i8, ptr %9, align 1, !tbaa !9, !range !17, !noundef !18
  %116 = trunc i8 %115 to i1
  %117 = zext i1 %116 to i8
  store i8 %117, ptr %114, align 8, !tbaa !31
  %118 = getelementptr inbounds %"struct.TriangleMesh::IntersectionInformation", ptr %0, i32 0, i32 5
  invoke void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind writable sret(%class.Triangle) align 8 %118, ptr noundef nonnull align 8 dereferenceable(192) %13, ptr noundef nonnull align 8 dereferenceable(128) %14)
          to label %119 unwind label %120

119:                                              ; preds = %105
  store i32 1, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  ret void

120:                                              ; preds = %105
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %16, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %17, align 4
  call void @_ZNSt12__shared_ptrI12TriangleMeshLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %112) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br label %124

124:                                              ; preds = %120, %68
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #8
  br label %125

125:                                              ; preds = %124, %64
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %16, align 8
  %128 = load i32, ptr %17, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130

131:                                              ; preds = %100
  unreachable
}

; 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 nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #2 align 2

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

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

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

declare void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind noalias writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) #4 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

declare void @_ZNK8Triangle9intersectERK5Vec3DS2_(ptr dead_on_unwind writable sret(%"struct.Triangle::IntersectionInformation") align 8, ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #6

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 56}
!14 = !{!"_ZTSN8Triangle23IntersectionInformationE", !15, i64 0, !15, i64 24, !12, i64 48, !10, i64 56}
!15 = !{!"_ZTS5Vec3D", !16, i64 0}
!16 = !{!"_ZTSSt5arrayIdLm3EE", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!14, !12, i64 48}
!20 = !{i64 0, i64 24, !21}
!21 = !{!7, !7, i64 0}
!22 = !{i64 0, i64 96, !21, i64 96, i64 72, !21, i64 168, i64 24, !21}
!23 = !{!24, !12, i64 48}
!24 = !{!"_ZTSN12TriangleMesh23IntersectionInformationE", !15, i64 0, !15, i64 24, !12, i64 48, !25, i64 56, !10, i64 72, !28, i64 80}
!25 = !{!"_ZTSSt10shared_ptrI12TriangleMeshE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrI12TriangleMeshLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !27, i64 8}
!27 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!28 = !{!"_ZTS8Triangle", !29, i64 0, !30, i64 96, !15, i64 168}
!29 = !{!"_ZTSSt5arrayI5Vec4DLm3EE", !7, i64 0}
!30 = !{!"_ZTSSt5arrayI5Vec3DLm3EE", !7, i64 0}
!31 = !{!24, !10, i64 72}


; 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.Triangle = type { %"struct.std::array.7", %"struct.std::array.9", %class.Vec3D }
%"struct.std::array.7" = type { [3 x %class.Vec4D] }
%class.Vec4D = type { %"struct.std::array.8" }
%"struct.std::array.8" = type { [4 x double] }
%"struct.std::array.9" = type { [3 x %class.Vec3D] }
%class.Vec3D = type { %"struct.std::array.6" }
%"struct.std::array.6" = type { [3 x double] }
%"struct.TriangleMesh::IntersectionInformation" = type { %class.Vec3D, %class.Vec3D, double, %"class.std::shared_ptr.14", i8, %class.Triangle }
%"class.std::shared_ptr.14" = type { %"class.std::__shared_ptr.15" }
%"class.std::__shared_ptr.15" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.Matrix4x4 = type { %"struct.std::array.10" }
%"struct.std::array.10" = type { [4 x %"struct.std::array.8"] }
%"class.std::shared_ptr.11" = type { %"class.std::__shared_ptr.12" }
%"class.std::__shared_ptr.12" = type { ptr, %"class.std::__shared_count" }
%"class.__gnu_cxx::__normal_iterator.17" = type { ptr }
%"struct.Triangle::IntersectionInformation" = type <{ %class.Vec3D, %class.Vec3D, double, i8, [7 x i8] }>

; 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

declare void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind writable sret(%class.Triangle) align 8, ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TriangleMesh9intersectERK5Vec3DS2_(ptr dead_on_unwind noalias writable sret(%"struct.TriangleMesh::IntersectionInformation") align 8 %0, ptr noundef nonnull align 8 dereferenceable(121) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.Vec3D, align 8
  %6 = alloca %class.Vec3D, align 8
  %7 = alloca %class.Triangle, align 8
  %8 = alloca %class.Matrix4x4, align 8
  %9 = alloca %"class.std::shared_ptr.11", align 8
  %10 = alloca %class.Matrix4x4, align 8
  %11 = alloca %"class.std::shared_ptr.11", 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.Vec4D, align 8
  %17 = alloca %class.Vec4D, align 8
  %18 = alloca %class.Vec3D, align 8
  %19 = alloca %class.Vec4D, align 8
  %20 = alloca %class.Vec4D, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.17", align 8
  %23 = alloca %class.Vec3D, align 8
  %24 = alloca %"struct.Triangle::IntersectionInformation", align 8
  %25 = alloca %class.Vec3D, align 8
  %26 = alloca %class.Vec3D, align 8
  %27 = alloca %class.Vec4D, align 8
  %28 = alloca %class.Vec4D, align 8
  %29 = alloca %class.Vec3D, align 8
  %30 = alloca %class.Vec3D, align 8
  %31 = alloca %class.Vec3D, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %32 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN5Vec3DC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %7) #8
  call void @_ZN8TriangleC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %7) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.11") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4x4) align 8 %8, ptr noundef nonnull align 8 dereferenceable(192) %33)
          to label %34 unwind label %51

34:                                               ; preds = %4
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  call void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.11") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %35 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4x4) align 8 %10, ptr noundef nonnull align 8 dereferenceable(192) %35)
          to label %36 unwind label %53

36:                                               ; preds = %34
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @_ZNK9Matrix4x4mlERK5Vec3D(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %10, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #8
  call void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %16, ptr noundef nonnull align 8 dereferenceable(128) %10, ptr noundef nonnull align 8 dereferenceable(32) %17)
  call void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(32) %16)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #8
  call void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %3)
  call void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %19, ptr noundef nonnull align 8 dereferenceable(128) %10, ptr noundef nonnull align 8 dereferenceable(32) %20)
  call void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #8
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12TriangleMesh9trianglesEv(ptr noundef nonnull align 8 dereferenceable(121) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %38 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  store ptr %38, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %39 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  store ptr %39, ptr %22, align 8
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %36
  %41 = getelementptr inbounds i8, ptr %24, i64 56
  %42 = getelementptr inbounds i8, ptr %24, i64 48
  br label %55

._crit_edge.loopexit:                             ; preds = %73
  %43 = and i8 %.2, 1
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %36
  %.0.lcssa = phi i8 [ 0, %36 ], [ %43, %._crit_edge.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #8
  call void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %27, ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 8 dereferenceable(32) %28)
  call void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #8
  call void @_ZNK9Matrix4x4mlERK5Vec3D(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %30, ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @_ZNK5Vec3D10normalizedEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %30)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #8
  call void @_ZNK5Vec3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %44 = call noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  call void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %26)
  %45 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %29)
  %46 = getelementptr inbounds i8, ptr %0, i64 48
  store double %44, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = getelementptr inbounds i8, ptr %1, i64 16
  call void @_ZNSt23enable_shared_from_thisI12TriangleMeshE16shared_from_thisEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.14") align 8 %47, ptr noundef nonnull align 8 dereferenceable(16) %48)
  %49 = getelementptr inbounds i8, ptr %0, i64 72
  store i8 %.0.lcssa, ptr %49, align 8, !tbaa !20
  %50 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind nonnull writable sret(%class.Triangle) align 8 %50, ptr noundef nonnull align 8 dereferenceable(192) %7, ptr noundef nonnull align 8 dereferenceable(128) %8)
          to label %76 unwind label %77

51:                                               ; preds = %4
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %80

53:                                               ; preds = %34
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %79

55:                                               ; preds = %.lr.ph, %73
  %.026 = phi i8 [ 0, %.lr.ph ], [ %.2, %73 ]
  %.01625 = phi double [ %32, %.lr.ph ], [ %.218, %73 ]
  %56 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #8
  call void @_ZNK8Triangle4normEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %23, ptr noundef nonnull align 8 dereferenceable(192) %56)
  %57 = call noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %14)
  %58 = fcmp ogt double %57, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  br i1 %58, label %73, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #8
  call void @_ZNK8Triangle9intersectERK5Vec3DS2_(ptr dead_on_unwind nonnull writable sret(%"struct.Triangle::IntersectionInformation") align 8 %24, ptr noundef nonnull align 8 dereferenceable(192) %56, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %18)
  %60 = load i8, ptr %41, align 8, !tbaa !21, !range !23, !noundef !24
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %62, label %72

62:                                               ; preds = %59
  %63 = load double, ptr %42, align 8, !tbaa !25
  %64 = insertelement <2 x double> poison, double %63, i64 0
  %65 = insertelement <2 x double> %64, double %.01625, i64 1
  %66 = fptosi <2 x double> %65 to <2 x i32>
  %67 = call <2 x i32> @llvm.abs.v2i32(<2 x i32> %66, i1 true)
  %68 = extractelement <2 x i32> %67, i64 0
  %69 = extractelement <2 x i32> %67, i64 1
  %70 = icmp ult i32 %68, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %62
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %24, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #8
  call void @_ZNK8Triangle4normEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %25, ptr noundef nonnull align 8 dereferenceable(192) %56)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %25, i64 24, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(192) %7, ptr noundef nonnull align 8 dereferenceable(192) %56, i64 192, i1 false), !tbaa.struct !28
  br label %72

72:                                               ; preds = %62, %71, %59
  %.117 = phi double [ %63, %71 ], [ %.01625, %62 ], [ %.01625, %59 ]
  %.1 = phi i8 [ 1, %71 ], [ %.026, %62 ], [ %.026, %59 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #8
  br label %73

73:                                               ; preds = %55, %72
  %.218 = phi double [ %.117, %72 ], [ %.01625, %55 ]
  %.2 = phi i8 [ %.1, %72 ], [ %.026, %55 ]
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %75, label %55, label %._crit_edge.loopexit

76:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  ret void

77:                                               ; preds = %._crit_edge
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI12TriangleMeshLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  br label %79

79:                                               ; preds = %77, %53
  %.pn = phi { ptr, i32 } [ %78, %77 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #8
  br label %80

80:                                               ; preds = %79, %51
  %.pn.pn = phi { ptr, i32 } [ %.pn, %79 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn.pn
}

; 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 nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() local_unnamed_addr #2 align 2

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

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

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

declare void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind noalias writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

declare void @_ZNK8Triangle9intersectERK5Vec3DS2_(ptr dead_on_unwind writable sret(%"struct.Triangle::IntersectionInformation") align 8, ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.abs.v2i32(<2 x i32>, i1 immarg) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 48}
!6 = !{!"_ZTSN12TriangleMesh23IntersectionInformationE", !7, i64 0, !7, i64 24, !11, i64 48, !12, i64 56, !16, i64 72, !17, i64 80}
!7 = !{!"_ZTS5Vec3D", !8, i64 0}
!8 = !{!"_ZTSSt5arrayIdLm3EE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"_ZTSSt10shared_ptrI12TriangleMeshE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrI12TriangleMeshLN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!"_ZTS8Triangle", !18, i64 0, !19, i64 96, !7, i64 168}
!18 = !{!"_ZTSSt5arrayI5Vec4DLm3EE", !9, i64 0}
!19 = !{!"_ZTSSt5arrayI5Vec3DLm3EE", !9, i64 0}
!20 = !{!6, !16, i64 72}
!21 = !{!22, !16, i64 56}
!22 = !{!"_ZTSN8Triangle23IntersectionInformationE", !7, i64 0, !7, i64 24, !11, i64 48, !16, i64 56}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!22, !11, i64 48}
!26 = !{i64 0, i64 24, !27}
!27 = !{!9, !9, i64 0}
!28 = !{i64 0, i64 96, !27, i64 96, i64 72, !27, i64 168, i64 24, !27}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass