; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer (DebugRendererImp)

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

%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.JPH::DebugRenderer::LOD" = type <{ %"class.JPH::Ref.17", float, [4 x i8] }>
%"class.JPH::DebugRenderer::Geometry" = type { %"class.JPH::RefTarget", %"class.JPH::Array.18", %"class.JPH::AABox" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.18" = type { i64, i64, ptr }

@_ZN3JPHL20sLODDistanceForLevelE = external hidden constant [4 x float], align 16

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef) #4 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8, ptr noundef nonnull align 8 dereferenceable(320), ptr noundef, i32 noundef, ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer31CreateTriangleGeometryForConvexESt8functionIFNS_4Vec3ES2_EE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca %"class.JPH::AABox", align 16
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.JPH::Ref.17", align 8
  %14 = alloca %"class.std::function", align 8
  %15 = alloca %"class.JPH::DebugRenderer::LOD", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 4, ptr %8, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %74, %3
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = icmp sge i32 %18, 1
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %89

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = sub nsw i32 4, %22
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [4 x float], ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 0, i64 %24
  %26 = load float, ptr %25, align 4, !tbaa !11
  store float %26, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %10)
          to label %27 unwind label %45

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  invoke void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %28 unwind label %49

28:                                               ; preds = %27
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = invoke noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
          to label %31 unwind label %53

31:                                               ; preds = %28
  br i1 %30, label %32, label %33

32:                                               ; preds = %31
  br label %34

33:                                               ; preds = %31
  br label %34

34:                                               ; preds = %33, %32
  %35 = phi ptr [ %10, %32 ], [ null, %33 ]
  invoke void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind writable sret(%"class.JPH::Ref.17") align 8 %13, ptr noundef nonnull align 8 dereferenceable(320) %16, ptr noundef %14, i32 noundef %29, ptr noundef %35)
          to label %36 unwind label %53

36:                                               ; preds = %34
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  %37 = invoke noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
          to label %38 unwind label %57

38:                                               ; preds = %36
  br i1 %37, label %39, label %65

39:                                               ; preds = %38
  %40 = invoke noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
          to label %41 unwind label %57

41:                                               ; preds = %39
  invoke void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %40, ptr noundef nonnull align 16 dereferenceable(32) %10)
          to label %42 unwind label %61

42:                                               ; preds = %41
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %40)
          to label %44 unwind label %57

44:                                               ; preds = %42
  br label %65

45:                                               ; preds = %21
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %11, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %12, align 4
  br label %88

49:                                               ; preds = %27
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %11, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %12, align 4
  br label %87

53:                                               ; preds = %34, %28
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %87

57:                                               ; preds = %65, %42, %39, %36
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %11, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %12, align 4
  br label %86

61:                                               ; preds = %41
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  call void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef %40) #7
  br label %86

65:                                               ; preds = %44, %38
  %66 = invoke noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %67 unwind label %57

67:                                               ; preds = %65
  %68 = getelementptr inbounds %"class.JPH::DebugRenderer::Geometry", ptr %66, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %69 = getelementptr inbounds %"class.JPH::DebugRenderer::LOD", ptr %15, i32 0, i32 0
  invoke void @_ZN3JPH3RefINS_16RefTargetVirtualEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %70 unwind label %77

70:                                               ; preds = %67
  %71 = getelementptr inbounds %"class.JPH::DebugRenderer::LOD", ptr %15, i32 0, i32 1
  %72 = load float, ptr %9, align 4, !tbaa !11
  store float %72, ptr %71, align 8, !tbaa !13
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %73 unwind label %81

73:                                               ; preds = %70
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr %8, align 4, !tbaa !9
  br label %17, !llvm.loop !16

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

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

85:                                               ; preds = %81, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %86

86:                                               ; preds = %85, %61, %57
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %87

87:                                               ; preds = %86, %53, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %88

88:                                               ; preds = %87, %45
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %93

89:                                               ; preds = %20
  store i1 true, ptr %7, align 1
  %90 = load i1, ptr %7, align 1
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %92

92:                                               ; preds = %91, %89
  ret void

93:                                               ; preds = %88
  %94 = load ptr, ptr %11, align 8
  %95 = load i32, ptr %12, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { alwaysinline 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 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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN3JPH13DebugRenderer3LODE", !15, i64 0, !12, i64 8}
!15 = !{!"_ZTSN3JPH3RefINS_16RefTargetVirtualEEE", !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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

%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.JPH::DebugRenderer::LOD" = type <{ %"class.JPH::Ref.17", float, [4 x i8] }>

@_ZN3JPHL20sLODDistanceForLevelE = external hidden local_unnamed_addr constant [4 x float], align 16

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8, ptr noundef nonnull align 8 dereferenceable(320), ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer31CreateTriangleGeometryForConvexESt8functionIFNS_4Vec3ES2_EE(ptr dead_on_unwind noalias nonnull writable sret(%"class.JPH::Ref") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::AABox", align 16
  %5 = alloca %"class.JPH::Ref.17", align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %"class.JPH::DebugRenderer::LOD", align 8
  tail call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load float, ptr @_ZN3JPHL20sLODDistanceForLevelE, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %4)
          to label %10 unwind label %20

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %11 unwind label %22

11:                                               ; preds = %10
  %12 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  %13 = select i1 %12, ptr %4, ptr null
  invoke void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %5, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull %6, i32 noundef 4, ptr noundef %13)
          to label %14 unwind label %24

14:                                               ; preds = %11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %15 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  br i1 %15, label %16, label %28

16:                                               ; preds = %14
  %17 = invoke noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
          to label %18 unwind label %26

18:                                               ; preds = %16
  call void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %17, ptr noundef nonnull align 16 dereferenceable(32) %4)
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %17)
          to label %28 unwind label %26

20:                                               ; preds = %64, %48, %32, %3
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %88

22:                                               ; preds = %66, %50, %34, %10
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %87

24:                                               ; preds = %67, %51, %35, %11
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %87

26:                                               ; preds = %74, %72, %58, %56, %42, %40, %18, %16
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %86

28:                                               ; preds = %18, %14
  %29 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZN3JPH3RefINS_16RefTargetVirtualEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %30 unwind label %81

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  store float %9, ptr %8, align 8, !tbaa !9
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %32 unwind label %83

32:                                               ; preds = %30
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %33 = load float, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 4), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %4)
          to label %34 unwind label %20

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %35 unwind label %22

35:                                               ; preds = %34
  %36 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  %37 = select i1 %36, ptr %4, ptr null
  invoke void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %5, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull %6, i32 noundef 3, ptr noundef %37)
          to label %38 unwind label %24

38:                                               ; preds = %35
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %39 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  br i1 %39, label %40, label %44

40:                                               ; preds = %38
  %41 = invoke noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
          to label %42 unwind label %26

42:                                               ; preds = %40
  call void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %41, ptr noundef nonnull align 16 dereferenceable(32) %4)
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %41)
          to label %44 unwind label %26

44:                                               ; preds = %42, %38
  %45 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZN3JPH3RefINS_16RefTargetVirtualEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %46 unwind label %81

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %45, i64 8
  store float %33, ptr %8, align 8, !tbaa !9
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %48 unwind label %83

48:                                               ; preds = %46
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %49 = load float, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 8), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %4)
          to label %50 unwind label %20

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %51 unwind label %22

51:                                               ; preds = %50
  %52 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  %53 = select i1 %52, ptr %4, ptr null
  invoke void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %5, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull %6, i32 noundef 2, ptr noundef %53)
          to label %54 unwind label %24

54:                                               ; preds = %51
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %55 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  br i1 %55, label %56, label %60

56:                                               ; preds = %54
  %57 = invoke noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
          to label %58 unwind label %26

58:                                               ; preds = %56
  call void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %57, ptr noundef nonnull align 16 dereferenceable(32) %4)
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %57)
          to label %60 unwind label %26

60:                                               ; preds = %58, %54
  %61 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZN3JPH3RefINS_16RefTargetVirtualEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %62 unwind label %81

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %61, i64 8
  store float %49, ptr %8, align 8, !tbaa !9
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %64 unwind label %83

64:                                               ; preds = %62
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %65 = load float, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20sLODDistanceForLevelE, i64 12), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %4)
          to label %66 unwind label %20

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  invoke void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %67 unwind label %22

67:                                               ; preds = %66
  %68 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  %69 = select i1 %68, ptr %4, ptr null
  invoke void @_ZN3JPH13DebugRenderer28CreateTriangleBatchForConvexESt8functionIFNS_4Vec3ES2_EEiPNS_5AABoxE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.17") align 8 %5, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull %6, i32 noundef 1, ptr noundef %69)
          to label %70 unwind label %24

70:                                               ; preds = %67
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %71 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef null)
  br i1 %71, label %72, label %76

72:                                               ; preds = %70
  %73 = invoke noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
          to label %74 unwind label %26

74:                                               ; preds = %72
  call void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %73, ptr noundef nonnull align 16 dereferenceable(32) %4)
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %73)
          to label %76 unwind label %26

76:                                               ; preds = %74, %70
  %77 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZN3JPH3RefINS_16RefTargetVirtualEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %78 unwind label %81

78:                                               ; preds = %76
  %79 = getelementptr inbounds i8, ptr %77, i64 8
  store float %65, ptr %8, align 8, !tbaa !9
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %80 unwind label %83

80:                                               ; preds = %78
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  ret void

81:                                               ; preds = %76, %60, %44, %28
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %78, %62, %46, %30
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #6
  br label %85

85:                                               ; preds = %83, %81
  %.pn = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %86

86:                                               ; preds = %85, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %85 ], [ %27, %26 ]
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %87

87:                                               ; preds = %86, %24, %22
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %86 ], [ %25, %24 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %88

88:                                               ; preds = %87, %20
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %87 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { alwaysinline 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 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 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass