; 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::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator" = type { %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::Array.70" = type { i64, i64, ptr }
%"struct.std::pair.65" = type { %"class.JPH::Ref", %"struct.DebugRendererImp::Instances" }
%"class.JPH::Ref" = type { ptr }
%"struct.DebugRendererImp::Instances" = type { %"class.JPH::Array.52", %"class.JPH::Array.55", %"class.JPH::Array.55" }
%"class.JPH::Array.52" = type { i64, i64, ptr }
%"class.JPH::Array.55" = type { i64, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16DebugRendererImp8ClearMapERN3JPH12UnorderedMapINS0_3RefINS0_13DebugRenderer8GeometryEEENS_9InstancesENS0_4HashIS5_EESt8equal_toIS5_EEE(ptr noundef nonnull align 16 dereferenceable(816) %0, ptr noundef nonnull align 8 dereferenceable(28) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Array.70", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  call void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %17, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %18)
          to label %19 unwind label %26

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(28) %20)
          to label %21 unwind label %30

21:                                               ; preds = %19
  br label %22

22:                                               ; preds = %58, %21
  %23 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %24 unwind label %30

24:                                               ; preds = %22
  br i1 %23, label %34, label %25

25:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %61

26:                                               ; preds = %2
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %8, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %9, align 4
  br label %60

30:                                               ; preds = %56, %22, %19
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %8, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %9, align 4
  br label %59

34:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %35 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %36 unwind label %46

36:                                               ; preds = %34
  store ptr %35, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.std::pair.65", ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds %"struct.DebugRendererImp::Instances", ptr %38, i32 0, i32 0
  %40 = invoke noundef zeroext i1 @_ZNK3JPH5ArrayIN16DebugRendererImp19InstanceWithLODInfoENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %41 unwind label %46

41:                                               ; preds = %36
  br i1 %40, label %42, label %50

42:                                               ; preds = %41
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.std::pair.65", ptr %43, i32 0, i32 0
  invoke void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %46

45:                                               ; preds = %42
  br label %55

46:                                               ; preds = %50, %42, %36, %34
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %59

50:                                               ; preds = %41
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.std::pair.65", ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %"struct.DebugRendererImp::Instances", ptr %52, i32 0, i32 0
  invoke void @_ZN3JPH5ArrayIN16DebugRendererImp19InstanceWithLODInfoENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %54 unwind label %46

54:                                               ; preds = %50
  br label %55

55:                                               ; preds = %54, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %56

56:                                               ; preds = %55
  %57 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %58 unwind label %30

58:                                               ; preds = %56
  br label %22

59:                                               ; preds = %46, %30
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %60

60:                                               ; preds = %59, %26
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %97

61:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %64 unwind label %73

64:                                               ; preds = %61
  store ptr %63, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = invoke noundef ptr @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
          to label %67 unwind label %77

67:                                               ; preds = %64
  store ptr %66, ptr %14, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %87, %67
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = icmp ne ptr %69, %70
  br i1 %71, label %81, label %72

72:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %96

73:                                               ; preds = %61
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %8, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %9, align 4
  br label %95

77:                                               ; preds = %64
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %8, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %9, align 4
  br label %94

81:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %82, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = invoke noundef i32 @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5eraseERKS4_(ptr noundef nonnull align 8 dereferenceable(28) %83, ptr noundef nonnull align 8 dereferenceable(8) %84)
          to label %86 unwind label %90

86:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.JPH::Ref", ptr %88, i32 1
  store ptr %89, ptr %13, align 8, !tbaa !5
  br label %68

90:                                               ; preds = %81
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %8, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %94

94:                                               ; preds = %90, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %95

95:                                               ; preds = %94, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %97

96:                                               ; preds = %72
  call void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  ret void

97:                                               ; preds = %95, %60
  call void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %8, align 8
  %100 = load i32, ptr %9, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5eraseERKS4_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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


; 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::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator" = type { %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::Array.70" = type { i64, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16DebugRendererImp8ClearMapERN3JPH12UnorderedMapINS0_3RefINS0_13DebugRenderer8GeometryEEENS_9InstancesENS0_4HashIS5_EESt8equal_toIS5_EEE(ptr nocapture noundef nonnull readnone align 16 dereferenceable(816) %0, ptr noundef nonnull align 8 dereferenceable(28) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Array.70", align 8
  %4 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  %5 = alloca %"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  invoke void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %6 unwind label %12

6:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  invoke void @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::Ref<JPH::DebugRenderer::Geometry>, std::pair<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::UnorderedMapDetail<JPH::Ref<JPH::DebugRenderer::Geometry>, DebugRendererImp::Instances>, JPH::Hash<JPH::Ref<JPH::DebugRenderer::Geometry>>, std::equal_to<JPH::Ref<JPH::DebugRenderer::Geometry>>>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %6, %23
  %7 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEneERKSH_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %8 unwind label %.loopexit

8:                                                ; preds = %.preheader
  br i1 %7, label %14, label %9

9:                                                ; preds = %8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %10 = call noundef ptr @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %11 = call noundef ptr @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not23 = icmp eq ptr %10, %11
  br i1 %.not23, label %._crit_edge, label %.lr.ph

12:                                               ; preds = %2
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %26

.loopexit:                                        ; preds = %.preheader, %23
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %25

.loopexit.split-lp:                               ; preds = %6
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %25

14:                                               ; preds = %8
  %15 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
          to label %16 unwind label %20

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  %18 = call noundef zeroext i1 @_ZNK3JPH5ArrayIN16DebugRendererImp19InstanceWithLODInfoENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  br i1 %18, label %19, label %22

19:                                               ; preds = %16
  invoke void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %23 unwind label %20

20:                                               ; preds = %22, %19, %14
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %25

22:                                               ; preds = %16
  invoke void @_ZN3JPH5ArrayIN16DebugRendererImp19InstanceWithLODInfoENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %23 unwind label %20

23:                                               ; preds = %22, %19
  %24 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseISF_NSF_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
          to label %.preheader unwind label %.loopexit

25:                                               ; preds = %.loopexit, %.loopexit.split-lp, %20
  %.pn = phi { ptr, i32 } [ %21, %20 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %26

26:                                               ; preds = %25, %12
  %.pn.pn = phi { ptr, i32 } [ %.pn, %25 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %32

._crit_edge:                                      ; preds = %28, %9
  call void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void

.lr.ph:                                           ; preds = %9, %28
  %.01924 = phi ptr [ %29, %28 ], [ %10, %9 ]
  %27 = invoke noundef i32 @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5eraseERKS4_(ptr noundef nonnull align 8 dereferenceable(28) %1, ptr noundef nonnull align 8 dereferenceable(8) %.01924)
          to label %28 unwind label %30

28:                                               ; preds = %.lr.ph
  %29 = getelementptr inbounds i8, ptr %.01924, i64 8
  %.not = icmp eq ptr %29, %11
  br i1 %.not, label %._crit_edge, label %.lr.ph

30:                                               ; preds = %.lr.ph
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %32

32:                                               ; preds = %30, %26
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %26 ], [ %31, %30 ]
  call void @_ZN3JPH5ArrayINS_3RefINS_13DebugRenderer8GeometryEEENS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EE5eraseERKS4_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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


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