; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (MeshShape)

; 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::UnorderedMap" = type { %"class.JPH::HashTable.base.27", [4 x i8] }
%"class.JPH::HashTable.base.27" = type <{ ptr, ptr, i32, i32, i32 }>
%struct.Edge = type { i32, i32 }
%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator" = type { %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.std::pair.28" = type { %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", i8, [7 x i8] }
%struct.TriangleIndices = type { i32, [2 x i32] }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Vec3" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.33 }
%union.anon.33 = type { <4 x float> }
%"class.JPH::MeshShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array", %"class.JPH::Array.5", %"class.JPH::Array.8", i32, float, i8, i32 }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon, i8, [7 x i8] }>
%union.anon = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.2 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.2 = type { i64, [8 x i8] }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.5" = type { i64, i64, ptr }
%"class.JPH::Array.8" = type { i64, i64, ptr }
%"class.JPH::IndexedTriangle" = type { %"class.JPH::IndexedTriangleNoMaterial", i32, i32 }
%"class.JPH::IndexedTriangleNoMaterial" = type { [3 x i32] }
%"struct.std::pair.31" = type { %struct.Edge, %struct.TriangleIndices }

@.str.9 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [38 x i8], align 1

; 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 noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.JPH::UnorderedMap", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.Edge, align 4
  %17 = alloca %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", align 8
  %18 = alloca %"struct.std::pair.28", align 8
  %19 = alloca %struct.TriangleIndices, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.JPH::AssertLastParam", align 1
  %23 = alloca ptr, align 8
  %24 = alloca %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", align 8
  %25 = alloca %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Plane", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Plane", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca ptr, align 8
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %56, i32 0, i32 5
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fcmp olt float %58, 0.000000e+00
  br i1 %59, label %60, label %81

60:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %61, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call noundef ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  store ptr %63, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = call noundef ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %64)
  store ptr %65, ptr %7, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %77, %60
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = icmp ne ptr %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %80

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %72, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !26
  %76 = or i32 %75, 224
  store i32 %76, ptr %74, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %77

77:                                               ; preds = %71
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %78, i32 1
  store ptr %79, ptr %6, align 8, !tbaa !5
  br label %66

80:                                               ; preds = %70
  br label %576

81:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #8
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = invoke noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %82)
          to label %84 unwind label %96

84:                                               ; preds = %81
  %85 = mul i64 %83, 3
  %86 = trunc i64 %85 to i32
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %9, i32 noundef %86)
          to label %87 unwind label %96

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !29
  br label %88

88:                                               ; preds = %204, %87
  %89 = load i32, ptr %12, align 4, !tbaa !29
  %90 = zext i32 %89 to i64
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = invoke noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91)
          to label %93 unwind label %100

93:                                               ; preds = %88
  %94 = icmp ult i64 %90, %92
  br i1 %94, label %104, label %95

95:                                               ; preds = %93
  store i32 4, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %209

96:                                               ; preds = %84, %81
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %10, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %11, align 4
  br label %577

100:                                              ; preds = %88
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %10, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %11, align 4
  br label %208

104:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i32, ptr %12, align 4, !tbaa !29
  %107 = zext i32 %106 to i64
  %108 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107)
          to label %109 unwind label %114

109:                                              ; preds = %104
  store ptr %108, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !29
  br label %110

110:                                              ; preds = %197, %109
  %111 = load i32, ptr %15, align 4, !tbaa !29
  %112 = icmp ult i32 %111, 3
  br i1 %112, label %118, label %113

113:                                              ; preds = %110
  store i32 7, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %203

114:                                              ; preds = %104
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %10, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %11, align 4
  br label %207

118:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %119, i32 0, i32 0
  %121 = load i32, ptr %15, align 4, !tbaa !29
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [3 x i32], ptr %120, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !29
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %125, i32 0, i32 0
  %127 = load i32, ptr %15, align 4, !tbaa !29
  %128 = add i32 %127, 1
  %129 = urem i32 %128, 3
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [3 x i32], ptr %126, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !29
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef %124, i32 noundef %132)
          to label %133 unwind label %157

133:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  call void @llvm.memset.p0.i64(ptr align 4 %19, i8 0, i64 12, i1 false)
  call void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN15TriangleIndicesC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  invoke void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EE11try_emplaceIJSC_EEESt4pairINS_9HashTableISB_SJ_ISB_SC_ENS_18UnorderedMapDetailISB_SC_EESE_SG_E8iteratorEbERKSB_DpOT_(ptr dead_on_unwind writable sret(%"struct.std::pair.28") align 8 %18, ptr noundef nonnull align 8 dereferenceable(28) %9, ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %134 unwind label %161

134:                                              ; preds = %133
  %135 = getelementptr inbounds %"struct.std::pair.28", ptr %18, i32 0, i32 0
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorC2ERKSM_(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(12) %135)
          to label %136 unwind label %161

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %137 = invoke noundef ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %17)
          to label %138 unwind label %165

138:                                              ; preds = %136
  %139 = getelementptr inbounds %"struct.std::pair.31", ptr %137, i32 0, i32 1
  store ptr %139, ptr %20, align 8, !tbaa !5
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.TriangleIndices, ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 4, !tbaa !30
  %143 = icmp ult i32 %142, 2
  br i1 %143, label %144, label %169

144:                                              ; preds = %138
  %145 = load i32, ptr %12, align 4, !tbaa !29
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.TriangleIndices, ptr %146, i32 0, i32 1
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.TriangleIndices, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 4, !tbaa !30
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [2 x i32], ptr %147, i64 0, i64 %151
  store i32 %145, ptr %152, align 4, !tbaa !29
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.TriangleIndices, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !30
  %156 = add i32 %155, 1
  store i32 %156, ptr %154, align 4, !tbaa !30
  br label %196

157:                                              ; preds = %118
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %10, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %11, align 4
  br label %202

161:                                              ; preds = %134, %133
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %10, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br label %201

165:                                              ; preds = %136
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %10, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %11, align 4
  br label %200

169:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %170 = load i32, ptr %15, align 4, !tbaa !29
  %171 = add i32 %170, 5
  %172 = shl i32 1, %171
  store i32 %172, ptr %21, align 4, !tbaa !29
  br label %173

173:                                              ; preds = %169
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !26
  %177 = load i32, ptr %21, align 4, !tbaa !29
  %178 = and i32 %176, %177
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %188, label %180

180:                                              ; preds = %173
  %181 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.9, i32 noundef 320)
          to label %182 unwind label %184

182:                                              ; preds = %180
  br i1 %181, label %183, label %188

183:                                              ; preds = %182
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !32
  br label %188

184:                                              ; preds = %180
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %200

188:                                              ; preds = %183, %182, %173
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %21, align 4, !tbaa !29
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !26
  %195 = or i32 %194, %191
  store i32 %195, ptr %193, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %196

196:                                              ; preds = %190, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %15, align 4, !tbaa !29
  %199 = add i32 %198, 1
  store i32 %199, ptr %15, align 4, !tbaa !29
  br label %110, !llvm.loop !33

200:                                              ; preds = %184, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %201

201:                                              ; preds = %200, %161
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %202

202:                                              ; preds = %201, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %207

203:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %12, align 4, !tbaa !29
  %206 = add i32 %205, 1
  store i32 %206, ptr %12, align 4, !tbaa !29
  br label %88, !llvm.loop !35

207:                                              ; preds = %202, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %208

208:                                              ; preds = %207, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %577

209:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store ptr %9, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %210 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8 %24, ptr noundef nonnull align 8 dereferenceable(28) %210)
          to label %211 unwind label %218

211:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %212 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8 %25, ptr noundef nonnull align 8 dereferenceable(28) %212)
          to label %213 unwind label %222

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %570, %213
  %215 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEneERKSN_(ptr noundef nonnull align 8 dereferenceable(12) %24, ptr noundef nonnull align 8 dereferenceable(12) %25)
          to label %216 unwind label %222

216:                                              ; preds = %214
  br i1 %215, label %226, label %217

217:                                              ; preds = %216
  store i32 12, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %575

218:                                              ; preds = %209
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %10, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %11, align 4
  br label %574

222:                                              ; preds = %568, %214, %211
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %10, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %11, align 4
  br label %573

226:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %227 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %24)
          to label %228 unwind label %235

228:                                              ; preds = %226
  store ptr %227, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !29
  %229 = load ptr, ptr %26, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.std::pair.31", ptr %229, i32 0, i32 1
  %231 = getelementptr inbounds %struct.TriangleIndices, ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 4, !tbaa !36
  %233 = icmp eq i32 %232, 1
  br i1 %233, label %234, label %239

234:                                              ; preds = %228
  store i32 1, ptr %27, align 4, !tbaa !29
  br label %504

235:                                              ; preds = %226
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %10, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %11, align 4
  br label %572

239:                                              ; preds = %228
  %240 = load ptr, ptr %26, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.std::pair.31", ptr %240, i32 0, i32 1
  %242 = getelementptr inbounds %struct.TriangleIndices, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 4, !tbaa !36
  %244 = icmp eq i32 %243, 2
  br i1 %244, label %245, label %502

245:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = load ptr, ptr %26, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.std::pair.31", ptr %247, i32 0, i32 1
  %249 = getelementptr inbounds %struct.TriangleIndices, ptr %248, i32 0, i32 1
  %250 = getelementptr inbounds [2 x i32], ptr %249, i64 0, i64 0
  %251 = load i32, ptr %250, align 4, !tbaa !29
  %252 = zext i32 %251 to i64
  %253 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %246, i64 noundef %252)
          to label %254 unwind label %443

254:                                              ; preds = %245
  store ptr %253, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = load ptr, ptr %26, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.std::pair.31", ptr %256, i32 0, i32 1
  %258 = getelementptr inbounds %struct.TriangleIndices, ptr %257, i32 0, i32 1
  %259 = getelementptr inbounds [2 x i32], ptr %258, i64 0, i64 1
  %260 = load i32, ptr %259, align 4, !tbaa !29
  %261 = zext i32 %260 to i64
  %262 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %261)
          to label %263 unwind label %447

263:                                              ; preds = %254
  store ptr %262, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %264 = load ptr, ptr %26, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.std::pair.31", ptr %264, i32 0, i32 0
  %266 = load ptr, ptr %28, align 8, !tbaa !5
  %267 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %265, ptr noundef nonnull align 4 dereferenceable(20) %266)
          to label %268 unwind label %451

268:                                              ; preds = %263
  store i32 %267, ptr %30, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %269 = load ptr, ptr %26, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.std::pair.31", ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %29, align 8, !tbaa !5
  %272 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %270, ptr noundef nonnull align 4 dereferenceable(20) %271)
          to label %273 unwind label %455

273:                                              ; preds = %268
  store i32 %272, ptr %31, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %274, i32 0, i32 1
  %276 = load ptr, ptr %28, align 8, !tbaa !5
  %277 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %276, i32 0, i32 0
  %278 = load i32, ptr %30, align 4, !tbaa !29
  %279 = zext i32 %278 to i64
  %280 = getelementptr inbounds [3 x i32], ptr %277, i64 0, i64 %279
  %281 = load i32, ptr %280, align 4, !tbaa !29
  %282 = zext i32 %281 to i64
  %283 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %275, i64 noundef %282)
          to label %284 unwind label %459

284:                                              ; preds = %273
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %283)
          to label %285 unwind label %459

285:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %286, i32 0, i32 1
  %288 = load ptr, ptr %28, align 8, !tbaa !5
  %289 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %288, i32 0, i32 0
  %290 = load i32, ptr %30, align 4, !tbaa !29
  %291 = add i32 %290, 1
  %292 = urem i32 %291, 3
  %293 = zext i32 %292 to i64
  %294 = getelementptr inbounds [3 x i32], ptr %289, i64 0, i64 %293
  %295 = load i32, ptr %294, align 4, !tbaa !29
  %296 = zext i32 %295 to i64
  %297 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %287, i64 noundef %296)
          to label %298 unwind label %463

298:                                              ; preds = %285
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(12) %297)
          to label %299 unwind label %463

299:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %300, i32 0, i32 1
  %302 = load ptr, ptr %28, align 8, !tbaa !5
  %303 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %302, i32 0, i32 0
  %304 = load i32, ptr %30, align 4, !tbaa !29
  %305 = add i32 %304, 2
  %306 = urem i32 %305, 3
  %307 = zext i32 %306 to i64
  %308 = getelementptr inbounds [3 x i32], ptr %303, i64 0, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !29
  %310 = zext i32 %309 to i64
  %311 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %301, i64 noundef %310)
          to label %312 unwind label %467

312:                                              ; preds = %299
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(12) %311)
          to label %313 unwind label %467

313:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !39
  %314 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %315 = load double, ptr %314, align 16
  %316 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %317 = load double, ptr %316, align 8
  %318 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %319 = load double, ptr %318, align 16
  %320 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %321 = load double, ptr %320, align 8
  %322 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %323 = load double, ptr %322, align 16
  %324 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %325 = load double, ptr %324, align 8
  %326 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %315, double %317, double %319, double %321, double %323, double %325)
          to label %327 unwind label %471

327:                                              ; preds = %313
  %328 = getelementptr inbounds %"class.JPH::Plane", ptr %35, i32 0, i32 0
  %329 = getelementptr inbounds %"class.JPH::Vec4", ptr %328, i32 0, i32 0
  %330 = getelementptr inbounds %union.anon.33, ptr %329, i32 0, i32 0
  %331 = getelementptr inbounds { double, double }, ptr %330, i32 0, i32 0
  %332 = extractvalue { double, double } %326, 0
  store double %332, ptr %331, align 16
  %333 = getelementptr inbounds { double, double }, ptr %330, i32 0, i32 1
  %334 = extractvalue { double, double } %326, 1
  store double %334, ptr %333, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  %335 = load ptr, ptr %3, align 8, !tbaa !5
  %336 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %335, i32 0, i32 1
  %337 = load ptr, ptr %29, align 8, !tbaa !5
  %338 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %337, i32 0, i32 0
  %339 = load i32, ptr %31, align 4, !tbaa !29
  %340 = zext i32 %339 to i64
  %341 = getelementptr inbounds [3 x i32], ptr %338, i64 0, i64 %340
  %342 = load i32, ptr %341, align 4, !tbaa !29
  %343 = zext i32 %342 to i64
  %344 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef %343)
          to label %345 unwind label %475

345:                                              ; preds = %327
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(12) %344)
          to label %346 unwind label %475

346:                                              ; preds = %345
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %347 = load ptr, ptr %3, align 8, !tbaa !5
  %348 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %347, i32 0, i32 1
  %349 = load ptr, ptr %29, align 8, !tbaa !5
  %350 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %349, i32 0, i32 0
  %351 = load i32, ptr %31, align 4, !tbaa !29
  %352 = add i32 %351, 1
  %353 = urem i32 %352, 3
  %354 = zext i32 %353 to i64
  %355 = getelementptr inbounds [3 x i32], ptr %350, i64 0, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !29
  %357 = zext i32 %356 to i64
  %358 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %348, i64 noundef %357)
          to label %359 unwind label %479

359:                                              ; preds = %346
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(12) %358)
          to label %360 unwind label %479

360:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  %362 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %361, i32 0, i32 1
  %363 = load ptr, ptr %29, align 8, !tbaa !5
  %364 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %363, i32 0, i32 0
  %365 = load i32, ptr %31, align 4, !tbaa !29
  %366 = add i32 %365, 2
  %367 = urem i32 %366, 3
  %368 = zext i32 %367 to i64
  %369 = getelementptr inbounds [3 x i32], ptr %364, i64 0, i64 %368
  %370 = load i32, ptr %369, align 4, !tbaa !29
  %371 = zext i32 %370 to i64
  %372 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %362, i64 noundef %371)
          to label %373 unwind label %483

373:                                              ; preds = %360
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(12) %372)
          to label %374 unwind label %483

374:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !39
  %375 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %376 = load double, ptr %375, align 16
  %377 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %378 = load double, ptr %377, align 8
  %379 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %380 = load double, ptr %379, align 16
  %381 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %382 = load double, ptr %381, align 8
  %383 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %384 = load double, ptr %383, align 16
  %385 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %386 = load double, ptr %385, align 8
  %387 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %376, double %378, double %380, double %382, double %384, double %386)
          to label %388 unwind label %487

388:                                              ; preds = %374
  %389 = getelementptr inbounds %"class.JPH::Plane", ptr %42, i32 0, i32 0
  %390 = getelementptr inbounds %"class.JPH::Vec4", ptr %389, i32 0, i32 0
  %391 = getelementptr inbounds %union.anon.33, ptr %390, i32 0, i32 0
  %392 = getelementptr inbounds { double, double }, ptr %391, i32 0, i32 0
  %393 = extractvalue { double, double } %387, 0
  store double %393, ptr %392, align 16
  %394 = getelementptr inbounds { double, double }, ptr %391, i32 0, i32 1
  %395 = extractvalue { double, double } %387, 1
  store double %395, ptr %394, align 8
  %396 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %35)
          to label %397 unwind label %487

397:                                              ; preds = %388
  %398 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %399 = getelementptr inbounds %union.anon.14, ptr %398, i32 0, i32 0
  %400 = getelementptr inbounds { double, double }, ptr %399, i32 0, i32 0
  %401 = extractvalue { double, double } %396, 0
  store double %401, ptr %400, align 16
  %402 = getelementptr inbounds { double, double }, ptr %399, i32 0, i32 1
  %403 = extractvalue { double, double } %396, 1
  store double %403, ptr %402, align 8
  %404 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %42)
          to label %405 unwind label %487

405:                                              ; preds = %397
  %406 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %407 = getelementptr inbounds %union.anon.14, ptr %406, i32 0, i32 0
  %408 = getelementptr inbounds { double, double }, ptr %407, i32 0, i32 0
  %409 = extractvalue { double, double } %404, 0
  store double %409, ptr %408, align 16
  %410 = getelementptr inbounds { double, double }, ptr %407, i32 0, i32 1
  %411 = extractvalue { double, double } %404, 1
  store double %411, ptr %410, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !39
  %412 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %413 = load double, ptr %412, align 16
  %414 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %415 = load double, ptr %414, align 8
  %416 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %413, double %415)
          to label %417 unwind label %487

417:                                              ; preds = %405
  %418 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %419 = getelementptr inbounds %union.anon.14, ptr %418, i32 0, i32 0
  %420 = getelementptr inbounds { double, double }, ptr %419, i32 0, i32 0
  %421 = extractvalue { double, double } %416, 0
  store double %421, ptr %420, align 16
  %422 = getelementptr inbounds { double, double }, ptr %419, i32 0, i32 1
  %423 = extractvalue { double, double } %416, 1
  store double %423, ptr %422, align 8
  %424 = load ptr, ptr %3, align 8, !tbaa !5
  %425 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %424, i32 0, i32 5
  %426 = load float, ptr %425, align 4, !tbaa !9
  %427 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %428 = load double, ptr %427, align 16
  %429 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %430 = load double, ptr %429, align 8
  %431 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %432 = load double, ptr %431, align 16
  %433 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %434 = load double, ptr %433, align 8
  %435 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %436 = load double, ptr %435, align 16
  %437 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %438 = load double, ptr %437, align 8
  %439 = invoke noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double %428, double %430, double %432, double %434, double %436, double %438, float noundef %426)
          to label %440 unwind label %487

440:                                              ; preds = %417
  %441 = zext i1 %439 to i64
  %442 = select i1 %439, i32 2, i32 0
  store i32 %442, ptr %27, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %503

443:                                              ; preds = %245
  %444 = landingpad { ptr, i32 }
          cleanup
  %445 = extractvalue { ptr, i32 } %444, 0
  store ptr %445, ptr %10, align 8
  %446 = extractvalue { ptr, i32 } %444, 1
  store i32 %446, ptr %11, align 4
  br label %501

447:                                              ; preds = %254
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %10, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %11, align 4
  br label %500

451:                                              ; preds = %263
  %452 = landingpad { ptr, i32 }
          cleanup
  %453 = extractvalue { ptr, i32 } %452, 0
  store ptr %453, ptr %10, align 8
  %454 = extractvalue { ptr, i32 } %452, 1
  store i32 %454, ptr %11, align 4
  br label %499

455:                                              ; preds = %268
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %10, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %11, align 4
  br label %498

459:                                              ; preds = %284, %273
  %460 = landingpad { ptr, i32 }
          cleanup
  %461 = extractvalue { ptr, i32 } %460, 0
  store ptr %461, ptr %10, align 8
  %462 = extractvalue { ptr, i32 } %460, 1
  store i32 %462, ptr %11, align 4
  br label %497

463:                                              ; preds = %298, %285
  %464 = landingpad { ptr, i32 }
          cleanup
  %465 = extractvalue { ptr, i32 } %464, 0
  store ptr %465, ptr %10, align 8
  %466 = extractvalue { ptr, i32 } %464, 1
  store i32 %466, ptr %11, align 4
  br label %496

467:                                              ; preds = %312, %299
  %468 = landingpad { ptr, i32 }
          cleanup
  %469 = extractvalue { ptr, i32 } %468, 0
  store ptr %469, ptr %10, align 8
  %470 = extractvalue { ptr, i32 } %468, 1
  store i32 %470, ptr %11, align 4
  br label %495

471:                                              ; preds = %313
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %10, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %11, align 4
  br label %494

475:                                              ; preds = %345, %327
  %476 = landingpad { ptr, i32 }
          cleanup
  %477 = extractvalue { ptr, i32 } %476, 0
  store ptr %477, ptr %10, align 8
  %478 = extractvalue { ptr, i32 } %476, 1
  store i32 %478, ptr %11, align 4
  br label %493

479:                                              ; preds = %359, %346
  %480 = landingpad { ptr, i32 }
          cleanup
  %481 = extractvalue { ptr, i32 } %480, 0
  store ptr %481, ptr %10, align 8
  %482 = extractvalue { ptr, i32 } %480, 1
  store i32 %482, ptr %11, align 4
  br label %492

483:                                              ; preds = %373, %360
  %484 = landingpad { ptr, i32 }
          cleanup
  %485 = extractvalue { ptr, i32 } %484, 0
  store ptr %485, ptr %10, align 8
  %486 = extractvalue { ptr, i32 } %484, 1
  store i32 %486, ptr %11, align 4
  br label %491

487:                                              ; preds = %417, %405, %397, %388, %374
  %488 = landingpad { ptr, i32 }
          cleanup
  %489 = extractvalue { ptr, i32 } %488, 0
  store ptr %489, ptr %10, align 8
  %490 = extractvalue { ptr, i32 } %488, 1
  store i32 %490, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  br label %491

491:                                              ; preds = %487, %483
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br label %492

492:                                              ; preds = %491, %479
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  br label %493

493:                                              ; preds = %492, %475
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  br label %494

494:                                              ; preds = %493, %471
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %495

495:                                              ; preds = %494, %467
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %496

496:                                              ; preds = %495, %463
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %497

497:                                              ; preds = %496, %459
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  br label %498

498:                                              ; preds = %497, %455
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %499

499:                                              ; preds = %498, %451
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %500

500:                                              ; preds = %499, %447
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %501

501:                                              ; preds = %500, %443
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %571

502:                                              ; preds = %239
  store i32 2, ptr %27, align 4, !tbaa !29
  br label %503

503:                                              ; preds = %502, %440
  br label %504

504:                                              ; preds = %503, %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  store i32 0, ptr %50, align 4, !tbaa !29
  br label %505

505:                                              ; preds = %562, %504
  %506 = load i32, ptr %50, align 4, !tbaa !29
  %507 = load i32, ptr %27, align 4, !tbaa !29
  %508 = icmp ult i32 %506, %507
  br i1 %508, label %510, label %509

509:                                              ; preds = %505
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %567

510:                                              ; preds = %505
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %511 = load ptr, ptr %26, align 8, !tbaa !5
  %512 = getelementptr inbounds %"struct.std::pair.31", ptr %511, i32 0, i32 1
  %513 = getelementptr inbounds %struct.TriangleIndices, ptr %512, i32 0, i32 1
  %514 = load i32, ptr %50, align 4, !tbaa !29
  %515 = zext i32 %514 to i64
  %516 = getelementptr inbounds [2 x i32], ptr %513, i64 0, i64 %515
  %517 = load i32, ptr %516, align 4, !tbaa !29
  store i32 %517, ptr %51, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %518 = load ptr, ptr %4, align 8, !tbaa !5
  %519 = load i32, ptr %51, align 4, !tbaa !29
  %520 = zext i32 %519 to i64
  %521 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %518, i64 noundef %520)
          to label %522 unwind label %542

522:                                              ; preds = %510
  store ptr %521, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %523 = load ptr, ptr %26, align 8, !tbaa !5
  %524 = getelementptr inbounds %"struct.std::pair.31", ptr %523, i32 0, i32 0
  %525 = load ptr, ptr %52, align 8, !tbaa !5
  %526 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %524, ptr noundef nonnull align 4 dereferenceable(20) %525)
          to label %527 unwind label %546

527:                                              ; preds = %522
  store i32 %526, ptr %53, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %528 = load i32, ptr %53, align 4, !tbaa !29
  %529 = add i32 %528, 5
  %530 = shl i32 1, %529
  store i32 %530, ptr %54, align 4, !tbaa !29
  br label %531

531:                                              ; preds = %527
  %532 = load ptr, ptr %52, align 8, !tbaa !5
  %533 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %532, i32 0, i32 1
  %534 = load i32, ptr %533, align 4, !tbaa !26
  %535 = load i32, ptr %54, align 4, !tbaa !29
  %536 = and i32 %534, %535
  %537 = icmp eq i32 %536, 0
  br i1 %537, label %554, label %538

538:                                              ; preds = %531
  %539 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.9, i32 noundef 373)
          to label %540 unwind label %550

540:                                              ; preds = %538
  br i1 %539, label %541, label %554

541:                                              ; preds = %540
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !41
  br label %554

542:                                              ; preds = %510
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %10, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %11, align 4
  br label %566

546:                                              ; preds = %522
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %10, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %11, align 4
  br label %565

550:                                              ; preds = %538
  %551 = landingpad { ptr, i32 }
          cleanup
  %552 = extractvalue { ptr, i32 } %551, 0
  store ptr %552, ptr %10, align 8
  %553 = extractvalue { ptr, i32 } %551, 1
  store i32 %553, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  br label %565

554:                                              ; preds = %541, %540, %531
  br label %555

555:                                              ; preds = %554
  br label %556

556:                                              ; preds = %555
  %557 = load i32, ptr %54, align 4, !tbaa !29
  %558 = load ptr, ptr %52, align 8, !tbaa !5
  %559 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %558, i32 0, i32 1
  %560 = load i32, ptr %559, align 4, !tbaa !26
  %561 = or i32 %560, %557
  store i32 %561, ptr %559, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %562

562:                                              ; preds = %556
  %563 = load i32, ptr %50, align 4, !tbaa !29
  %564 = add i32 %563, 1
  store i32 %564, ptr %50, align 4, !tbaa !29
  br label %505, !llvm.loop !42

565:                                              ; preds = %550, %546
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %566

566:                                              ; preds = %565, %542
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %571

567:                                              ; preds = %509
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %568

568:                                              ; preds = %567
  %569 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %24)
          to label %570 unwind label %222

570:                                              ; preds = %568
  br label %214

571:                                              ; preds = %566, %501
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %572

572:                                              ; preds = %571, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %573

573:                                              ; preds = %572, %222
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br label %574

574:                                              ; preds = %573, %218
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %577

575:                                              ; preds = %217
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %576

576:                                              ; preds = %575, %80
  ret void

577:                                              ; preds = %574, %208, %96
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %578

578:                                              ; preds = %577
  %579 = load ptr, ptr %10, align 8
  %580 = load i32, ptr %11, align 4
  %581 = insertvalue { ptr, i32 } poison, ptr %579, 0
  %582 = insertvalue { ptr, i32 } %581, i32 %580, 1
  resume { ptr, i32 } %582
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EE11try_emplaceIJSC_EEESt4pairINS_9HashTableISB_SJ_ISB_SC_ENS_18UnorderedMapDetailISB_SC_EESE_SG_E8iteratorEbERKSB_DpOT_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.28") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN15TriangleIndicesC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorC2ERKSM_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZNK3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEneERKSN_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(20)) #4 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double, double, double, double, double, double) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double, double, double, double, double, double, float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #7 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #6 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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

!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, !23, i64 140}
!10 = !{!"_ZTSN3JPH17MeshShapeSettingsE", !11, i64 0, !20, i64 64, !21, i64 88, !22, i64 112, !16, i64 136, !23, i64 140, !24, i64 144, !25, i64 148}
!11 = !{!"_ZTSN3JPH13ShapeSettingsE", !12, i64 0, !13, i64 8, !17, i64 16, !18, i64 24}
!12 = !{!"_ZTSN3JPH18SerializableObjectE"}
!13 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !14, i64 0}
!14 = !{!"_ZTSSt6atomicIjE", !15, i64 0}
!15 = !{!"_ZTSSt13__atomic_baseIjE", !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !7, i64 0, !19, i64 32}
!19 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !7, i64 0}
!20 = !{!"_ZTSN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEE", !17, i64 0, !17, i64 8, !6, i64 16}
!21 = !{!"_ZTSN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEE", !17, i64 0, !17, i64 8, !6, i64 16}
!22 = !{!"_ZTSN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEE", !17, i64 0, !17, i64 8, !6, i64 16}
!23 = !{!"float", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSN3JPH17MeshShapeSettings13EBuildQualityE", !7, i64 0}
!26 = !{!27, !16, i64 12}
!27 = !{!"_ZTSN3JPH15IndexedTriangleE", !28, i64 0, !16, i64 12, !16, i64 16}
!28 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!29 = !{!16, !16, i64 0}
!30 = !{!31, !16, i64 0}
!31 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE15TriangleIndices", !16, i64 0, !7, i64 4}
!32 = !{i64 2158744190}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = !{!37, !16, i64 8}
!37 = !{!"_ZTSSt4pairIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesE", !38, i64 0, !31, i64 8}
!38 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE4Edge", !16, i64 0, !16, i64 4}
!39 = !{i64 0, i64 16, !40}
!40 = !{!7, !7, i64 0}
!41 = !{i64 2158744567}
!42 = distinct !{!42, !34}


; 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::UnorderedMap" = type { %"class.JPH::HashTable.base.27", [4 x i8] }
%"class.JPH::HashTable.base.27" = type <{ ptr, ptr, i32, i32, i32 }>
%struct.Edge = type { i32, i32 }
%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator" = type { %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.std::pair.28" = type { %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", i8, [7 x i8] }
%struct.TriangleIndices = type { i32, [2 x i32] }
%"class.JPH::Vec3" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.33 }
%union.anon.33 = type { <4 x float> }

@.str.9 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [38 x i8], align 1

; 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 noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::UnorderedMap", align 8
  %4 = alloca %struct.Edge, align 4
  %5 = alloca %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", align 8
  %6 = alloca %"struct.std::pair.28", align 8
  %7 = alloca %struct.TriangleIndices, align 4
  %8 = alloca %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", align 8
  %9 = alloca %"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator", align 8
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Plane", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Plane", align 16
  %18 = getelementptr inbounds i8, ptr %0, i64 140
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = fcmp olt float %19, 0.000000e+00
  br i1 %20, label %21, label %28

21:                                               ; preds = %2
  %22 = tail call noundef ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %23 = tail call noundef ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not158 = icmp eq ptr %22, %23
  br i1 %.not158, label %.loopexit, label %.lr.ph161

.lr.ph161:                                        ; preds = %21, %.lr.ph161
  %.0159 = phi ptr [ %27, %.lr.ph161 ], [ %22, %21 ]
  %24 = getelementptr inbounds i8, ptr %.0159, i64 12
  %25 = load i32, ptr %24, align 4, !tbaa !25
  %26 = or i32 %25, 224
  store i32 %26, ptr %24, align 4, !tbaa !25
  %27 = getelementptr inbounds i8, ptr %.0159, i64 20
  %.not = icmp eq ptr %27, %23
  br i1 %.not, label %.loopexit, label %.lr.ph161

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #7
  %29 = call noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %30 = trunc i64 %29 to i32
  %31 = mul i32 %30, 3
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %3, i32 noundef %31)
          to label %.preheader151 unwind label %33

.preheader151:                                    ; preds = %28
  %32 = call noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not162 = icmp eq i64 %32, 0
  br i1 %.not162, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %127, %.preheader151
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %134 unwind label %142

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %302

.lr.ph:                                           ; preds = %.preheader151, %127
  %35 = phi i64 [ %129, %127 ], [ 0, %.preheader151 ]
  %.0118153 = phi i32 [ %128, %127 ], [ 0, %.preheader151 ]
  %36 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %35)
          to label %.preheader150 unwind label %41

.preheader150:                                    ; preds = %.lr.ph
  %37 = getelementptr inbounds i8, ptr %36, i64 12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %38 = load i32, ptr %36, align 4, !tbaa !28
  %39 = getelementptr inbounds i8, ptr %36, i64 4
  %40 = load i32, ptr %39, align 4, !tbaa !28
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %38, i32 noundef %40)
          to label %43 unwind label %55

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %302

43:                                               ; preds = %.preheader150
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, i8 0, i64 12, i1 false)
  call void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN15TriangleIndicesC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  invoke void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EE11try_emplaceIJSC_EEESt4pairINS_9HashTableISB_SJ_ISB_SC_ENS_18UnorderedMapDetailISB_SC_EESE_SG_E8iteratorEbERKSB_DpOT_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.28") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %44 unwind label %57

44:                                               ; preds = %43
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorC2ERKSM_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  %45 = invoke noundef ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %46 unwind label %59

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %45, i64 8
  %48 = load i32, ptr %47, align 4, !tbaa !29
  %49 = icmp ult i32 %48, 2
  br i1 %49, label %50, label %61

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %45, i64 12
  %52 = zext nneg i32 %48 to i64
  %53 = getelementptr inbounds [2 x i32], ptr %51, i64 0, i64 %52
  store i32 %.0118153, ptr %53, align 4, !tbaa !28
  %54 = add nuw nsw i32 %48, 1
  store i32 %54, ptr %47, align 4, !tbaa !29
  br label %74

55:                                               ; preds = %101, %74, %.preheader150
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %133

57:                                               ; preds = %104, %78, %43
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %132

59:                                               ; preds = %105, %79, %44
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %132

61:                                               ; preds = %46
  %62 = load i32, ptr %37, align 4, !tbaa !25
  %63 = and i32 %62, 32
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %71, label %65

65:                                               ; preds = %61
  %66 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 320)
          to label %67 unwind label %69

67:                                               ; preds = %65
  br i1 %66, label %68, label %71

68:                                               ; preds = %67
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !31
  br label %71

69:                                               ; preds = %115, %89, %65
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %132

71:                                               ; preds = %68, %67, %61
  %72 = load i32, ptr %37, align 4, !tbaa !25
  %73 = or i32 %72, 32
  store i32 %73, ptr %37, align 4, !tbaa !25
  br label %74

74:                                               ; preds = %71, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %75 = load i32, ptr %39, align 4, !tbaa !28
  %76 = getelementptr inbounds i8, ptr %36, i64 8
  %77 = load i32, ptr %76, align 4, !tbaa !28
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %75, i32 noundef %77)
          to label %78 unwind label %55

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, i8 0, i64 12, i1 false)
  call void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN15TriangleIndicesC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  invoke void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EE11try_emplaceIJSC_EEESt4pairINS_9HashTableISB_SJ_ISB_SC_ENS_18UnorderedMapDetailISB_SC_EESE_SG_E8iteratorEbERKSB_DpOT_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.28") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %79 unwind label %57

79:                                               ; preds = %78
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorC2ERKSM_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  %80 = invoke noundef ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %81 unwind label %59

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %80, i64 8
  %83 = load i32, ptr %82, align 4, !tbaa !29
  %84 = icmp ult i32 %83, 2
  br i1 %84, label %96, label %85

85:                                               ; preds = %81
  %86 = load i32, ptr %37, align 4, !tbaa !25
  %87 = and i32 %86, 64
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %93, label %89

89:                                               ; preds = %85
  %90 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 320)
          to label %91 unwind label %69

91:                                               ; preds = %89
  br i1 %90, label %92, label %93

92:                                               ; preds = %91
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !31
  br label %93

93:                                               ; preds = %92, %91, %85
  %94 = load i32, ptr %37, align 4, !tbaa !25
  %95 = or i32 %94, 64
  store i32 %95, ptr %37, align 4, !tbaa !25
  br label %101

96:                                               ; preds = %81
  %97 = getelementptr inbounds i8, ptr %80, i64 12
  %98 = zext nneg i32 %83 to i64
  %99 = getelementptr inbounds [2 x i32], ptr %97, i64 0, i64 %98
  store i32 %.0118153, ptr %99, align 4, !tbaa !28
  %100 = add nuw nsw i32 %83, 1
  store i32 %100, ptr %82, align 4, !tbaa !29
  br label %101

101:                                              ; preds = %96, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %102 = load i32, ptr %76, align 4, !tbaa !28
  %103 = load i32, ptr %36, align 4, !tbaa !28
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %102, i32 noundef %103)
          to label %104 unwind label %55

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, i8 0, i64 12, i1 false)
  call void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN15TriangleIndicesC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  invoke void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EE11try_emplaceIJSC_EEESt4pairINS_9HashTableISB_SJ_ISB_SC_ENS_18UnorderedMapDetailISB_SC_EESE_SG_E8iteratorEbERKSB_DpOT_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.28") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %105 unwind label %57

105:                                              ; preds = %104
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorC2ERKSM_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  %106 = invoke noundef ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %107 unwind label %59

107:                                              ; preds = %105
  %108 = getelementptr inbounds i8, ptr %106, i64 8
  %109 = load i32, ptr %108, align 4, !tbaa !29
  %110 = icmp ult i32 %109, 2
  br i1 %110, label %122, label %111

111:                                              ; preds = %107
  %112 = load i32, ptr %37, align 4, !tbaa !25
  %113 = and i32 %112, 128
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %119, label %115

115:                                              ; preds = %111
  %116 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 320)
          to label %117 unwind label %69

117:                                              ; preds = %115
  br i1 %116, label %118, label %119

118:                                              ; preds = %117
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !31
  br label %119

119:                                              ; preds = %118, %117, %111
  %120 = load i32, ptr %37, align 4, !tbaa !25
  %121 = or i32 %120, 128
  store i32 %121, ptr %37, align 4, !tbaa !25
  br label %127

122:                                              ; preds = %107
  %123 = getelementptr inbounds i8, ptr %106, i64 12
  %124 = zext nneg i32 %109 to i64
  %125 = getelementptr inbounds [2 x i32], ptr %123, i64 0, i64 %124
  store i32 %.0118153, ptr %125, align 4, !tbaa !28
  %126 = add nuw nsw i32 %109, 1
  store i32 %126, ptr %108, align 4, !tbaa !29
  br label %127

127:                                              ; preds = %122, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %128 = add i32 %.0118153, 1
  %129 = zext i32 %128 to i64
  %130 = call noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %131 = icmp ugt i64 %130, %129
  br i1 %131, label %.lr.ph, label %._crit_edge, !llvm.loop !32

132:                                              ; preds = %59, %69, %57
  %.pn143.pn = phi { ptr, i32 } [ %58, %57 ], [ %70, %69 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %133

133:                                              ; preds = %132, %55
  %.pn143.pn.pn = phi { ptr, i32 } [ %.pn143.pn, %132 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %302

134:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %134
  %135 = getelementptr inbounds i8, ptr %0, i64 64
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %136 = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %137 = getelementptr inbounds i8, ptr %17, i64 8
  br label %138

138:                                              ; preds = %.preheader, %._crit_edge157
  %139 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEneERKSN_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %140 unwind label %.loopexit149

140:                                              ; preds = %138
  br i1 %139, label %144, label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %.loopexit

142:                                              ; preds = %._crit_edge
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %301

.loopexit149:                                     ; preds = %138, %._crit_edge157
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %300

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

144:                                              ; preds = %140
  %145 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
          to label %146 unwind label %149

146:                                              ; preds = %144
  %147 = getelementptr inbounds i8, ptr %145, i64 8
  %148 = load i32, ptr %147, align 4, !tbaa !34
  switch i32 %148, label %270 [
    i32 1, label %.lr.ph156
    i32 2, label %151
  ]

149:                                              ; preds = %144
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %300

151:                                              ; preds = %146
  %152 = getelementptr inbounds i8, ptr %145, i64 12
  %153 = load i32, ptr %152, align 4, !tbaa !28
  %154 = zext i32 %153 to i64
  %155 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %154)
          to label %156 unwind label %239

156:                                              ; preds = %151
  %157 = getelementptr inbounds i8, ptr %145, i64 16
  %158 = load i32, ptr %157, align 4, !tbaa !28
  %159 = zext i32 %158 to i64
  %160 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %159)
          to label %161 unwind label %241

161:                                              ; preds = %156
  %162 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %145, ptr noundef nonnull align 4 dereferenceable(20) %155)
          to label %163 unwind label %243

163:                                              ; preds = %161
  %164 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %145, ptr noundef nonnull align 4 dereferenceable(20) %160)
          to label %165 unwind label %245

165:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %166 = zext i32 %162 to i64
  %167 = getelementptr inbounds [3 x i32], ptr %155, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !28
  %169 = zext i32 %168 to i64
  %170 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %169)
          to label %171 unwind label %247

171:                                              ; preds = %165
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(12) %170)
          to label %172 unwind label %247

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %173 = add i32 %162, 1
  %174 = urem i32 %173, 3
  %175 = zext nneg i32 %174 to i64
  %176 = getelementptr inbounds [3 x i32], ptr %155, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !28
  %178 = zext i32 %177 to i64
  %179 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %178)
          to label %180 unwind label %249

180:                                              ; preds = %172
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(12) %179)
          to label %181 unwind label %249

181:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %182 = add i32 %162, 2
  %183 = urem i32 %182, 3
  %184 = zext nneg i32 %183 to i64
  %185 = getelementptr inbounds [3 x i32], ptr %155, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !28
  %187 = zext i32 %186 to i64
  %188 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %187)
          to label %189 unwind label %251

189:                                              ; preds = %181
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(12) %188)
          to label %190 unwind label %251

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %.sroa.025.0.copyload = load double, ptr %10, align 16
  %.sroa.226.0.copyload = load double, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !37
  %.sroa.023.0.copyload = load double, ptr %11, align 16
  %.sroa.224.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !37
  %.sroa.021.0.copyload = load double, ptr %12, align 16
  %.sroa.222.0.copyload = load double, ptr %.sroa.222.0..sroa_idx, align 8, !tbaa !37
  %191 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %.sroa.025.0.copyload, double %.sroa.226.0.copyload, double %.sroa.023.0.copyload, double %.sroa.224.0.copyload, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload)
          to label %192 unwind label %253

192:                                              ; preds = %190
  %193 = extractvalue { double, double } %191, 0
  store double %193, ptr %13, align 16
  %194 = extractvalue { double, double } %191, 1
  store double %194, ptr %136, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %195 = zext i32 %164 to i64
  %196 = getelementptr inbounds [3 x i32], ptr %160, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !28
  %198 = zext i32 %197 to i64
  %199 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %198)
          to label %200 unwind label %255

200:                                              ; preds = %192
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(12) %199)
          to label %201 unwind label %255

201:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %202 = add i32 %164, 1
  %203 = urem i32 %202, 3
  %204 = zext nneg i32 %203 to i64
  %205 = getelementptr inbounds [3 x i32], ptr %160, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !28
  %207 = zext i32 %206 to i64
  %208 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %207)
          to label %209 unwind label %257

209:                                              ; preds = %201
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(12) %208)
          to label %210 unwind label %257

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %211 = add i32 %164, 2
  %212 = urem i32 %211, 3
  %213 = zext nneg i32 %212 to i64
  %214 = getelementptr inbounds [3 x i32], ptr %160, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !28
  %216 = zext i32 %215 to i64
  %217 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %216)
          to label %218 unwind label %259

218:                                              ; preds = %210
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(12) %217)
          to label %219 unwind label %259

219:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %.sroa.019.0.copyload = load double, ptr %14, align 16
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !37
  %.sroa.017.0.copyload = load double, ptr %15, align 16
  %.sroa.218.0.copyload = load double, ptr %.sroa.218.0..sroa_idx, align 8, !tbaa !37
  %.sroa.015.0.copyload = load double, ptr %16, align 16
  %.sroa.216.0.copyload = load double, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !37
  %220 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %.sroa.019.0.copyload, double %.sroa.220.0.copyload, double %.sroa.017.0.copyload, double %.sroa.218.0.copyload, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
          to label %221 unwind label %261

221:                                              ; preds = %219
  %222 = extractvalue { double, double } %220, 0
  store double %222, ptr %17, align 16
  %223 = extractvalue { double, double } %220, 1
  store double %223, ptr %137, align 8
  %224 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
          to label %225 unwind label %261

225:                                              ; preds = %221
  %226 = extractvalue { double, double } %224, 0
  %227 = extractvalue { double, double } %224, 1
  %228 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
          to label %229 unwind label %261

229:                                              ; preds = %225
  %.sroa.0.0.copyload = load double, ptr %10, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !37
  %230 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %231 unwind label %261

231:                                              ; preds = %229
  %232 = extractvalue { double, double } %228, 1
  %233 = extractvalue { double, double } %228, 0
  %234 = extractvalue { double, double } %230, 0
  %235 = extractvalue { double, double } %230, 1
  %236 = load float, ptr %18, align 4, !tbaa !5
  %237 = invoke noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double %226, double %227, double %233, double %232, double %234, double %235, float noundef %236)
          to label %238 unwind label %261

238:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br i1 %237, label %.lr.ph156, label %._crit_edge157

239:                                              ; preds = %151
  %240 = landingpad { ptr, i32 }
          cleanup
  br label %300

241:                                              ; preds = %156
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %300

243:                                              ; preds = %161
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %300

245:                                              ; preds = %163
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %300

247:                                              ; preds = %171, %165
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %269

249:                                              ; preds = %180, %172
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %268

251:                                              ; preds = %189, %181
  %252 = landingpad { ptr, i32 }
          cleanup
  br label %267

253:                                              ; preds = %190
  %254 = landingpad { ptr, i32 }
          cleanup
  br label %266

255:                                              ; preds = %200, %192
  %256 = landingpad { ptr, i32 }
          cleanup
  br label %265

257:                                              ; preds = %209, %201
  %258 = landingpad { ptr, i32 }
          cleanup
  br label %264

259:                                              ; preds = %218, %210
  %260 = landingpad { ptr, i32 }
          cleanup
  br label %263

261:                                              ; preds = %231, %229, %225, %221, %219
  %262 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %263

263:                                              ; preds = %261, %259
  %.pn = phi { ptr, i32 } [ %262, %261 ], [ %260, %259 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %264

264:                                              ; preds = %263, %257
  %.pn.pn = phi { ptr, i32 } [ %.pn, %263 ], [ %258, %257 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %265

265:                                              ; preds = %264, %255
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %264 ], [ %256, %255 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %266

266:                                              ; preds = %265, %253
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %265 ], [ %254, %253 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %267

267:                                              ; preds = %266, %251
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %266 ], [ %252, %251 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %268

268:                                              ; preds = %267, %249
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %267 ], [ %250, %249 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %269

269:                                              ; preds = %268, %247
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %268 ], [ %248, %247 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %300

270:                                              ; preds = %146
  br label %.lr.ph156

.lr.ph156:                                        ; preds = %238, %270, %146
  %.0121.ph = phi i64 [ 1, %146 ], [ 2, %270 ], [ 2, %238 ]
  %271 = getelementptr inbounds i8, ptr %145, i64 12
  br label %273

._crit_edge157:                                   ; preds = %297, %238
  %272 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
          to label %138 unwind label %.loopexit149

273:                                              ; preds = %.lr.ph156, %297
  %indvars.iv = phi i64 [ 0, %.lr.ph156 ], [ %indvars.iv.next, %297 ]
  %274 = getelementptr inbounds [2 x i32], ptr %271, i64 0, i64 %indvars.iv
  %275 = load i32, ptr %274, align 4, !tbaa !28
  %276 = zext i32 %275 to i64
  %277 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %276)
          to label %278 unwind label %291

278:                                              ; preds = %273
  %279 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %145, ptr noundef nonnull align 4 dereferenceable(20) %277)
          to label %280 unwind label %293

280:                                              ; preds = %278
  %281 = add i32 %279, 5
  %282 = shl nuw i32 1, %281
  %283 = getelementptr inbounds i8, ptr %277, i64 12
  %284 = load i32, ptr %283, align 4, !tbaa !25
  %285 = and i32 %284, %282
  %286 = icmp eq i32 %285, 0
  br i1 %286, label %297, label %287

287:                                              ; preds = %280
  %288 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 373)
          to label %289 unwind label %295

289:                                              ; preds = %287
  br i1 %288, label %290, label %297

290:                                              ; preds = %289
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !38
  br label %297

291:                                              ; preds = %273
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %300

293:                                              ; preds = %278
  %294 = landingpad { ptr, i32 }
          cleanup
  br label %300

295:                                              ; preds = %287
  %296 = landingpad { ptr, i32 }
          cleanup
  br label %300

297:                                              ; preds = %290, %289, %280
  %298 = load i32, ptr %283, align 4, !tbaa !25
  %299 = or i32 %298, %282
  store i32 %299, ptr %283, align 4, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %.0121.ph
  br i1 %exitcond.not, label %._crit_edge157, label %273, !llvm.loop !39

300:                                              ; preds = %.loopexit149, %.loopexit.split-lp, %149, %291, %295, %293, %239, %243, %269, %245, %241
  %.pn136.pn.pn.pn.pn = phi { ptr, i32 } [ %150, %149 ], [ %240, %239 ], [ %242, %241 ], [ %244, %243 ], [ %.pn.pn.pn.pn.pn.pn.pn, %269 ], [ %246, %245 ], [ %292, %291 ], [ %296, %295 ], [ %294, %293 ], [ %lpad.loopexit, %.loopexit149 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %301

301:                                              ; preds = %300, %142
  %.pn136.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn136.pn.pn.pn.pn, %300 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %302

.loopexit:                                        ; preds = %.lr.ph161, %21, %141
  ret void

302:                                              ; preds = %41, %133, %301, %33
  %.pn143.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn136.pn.pn.pn.pn.pn, %301 ], [ %34, %33 ], [ %.pn143.pn.pn, %133 ], [ %42, %41 ]
  call void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn143.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH12UnorderedMapIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesNS_4HashISB_EESt8equal_toISB_EE11try_emplaceIJSC_EEESt4pairINS_9HashTableISB_SJ_ISB_SC_ENS_18UnorderedMapDetailISB_SC_EESE_SG_E8iteratorEbERKSB_DpOT_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.28") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN15TriangleIndicesC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorC2ERKSM_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<Edge, std::pair<Edge, TriangleIndices>, JPH::UnorderedMapDetail<Edge, TriangleIndices>, JPH::Hash<Edge>, std::equal_to<Edge>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZNK3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEneERKSN_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double, double, double, double, double, double) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double, double, double, double, double, double, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EE12IteratorBaseISL_NSL_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN3JPH9HashTableIZNS_9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS6_EEEEE4EdgeSt4pairISB_ZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesENS_18UnorderedMapDetailISB_SD_EENS_4HashISB_EESt8equal_toISB_EED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) 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 = { 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 #3 = { 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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, !22, i64 140}
!6 = !{!"_ZTSN3JPH17MeshShapeSettingsE", !7, i64 0, !18, i64 64, !20, i64 88, !21, i64 112, !12, i64 136, !22, i64 140, !23, i64 144, !24, i64 148}
!7 = !{!"_ZTSN3JPH13ShapeSettingsE", !8, i64 0, !9, i64 8, !15, i64 16, !16, i64 24}
!8 = !{!"_ZTSN3JPH18SerializableObjectE"}
!9 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !10, i64 0}
!10 = !{!"_ZTSSt6atomicIjE", !11, i64 0}
!11 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !13, i64 0, !17, i64 32}
!17 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !13, i64 0}
!18 = !{!"_ZTSN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEE", !15, i64 0, !15, i64 8, !19, i64 16}
!19 = !{!"any pointer", !13, i64 0}
!20 = !{!"_ZTSN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEE", !15, i64 0, !15, i64 8, !19, i64 16}
!21 = !{!"_ZTSN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEE", !15, i64 0, !15, i64 8, !19, i64 16}
!22 = !{!"float", !13, i64 0}
!23 = !{!"bool", !13, i64 0}
!24 = !{!"_ZTSN3JPH17MeshShapeSettings13EBuildQualityE", !13, i64 0}
!25 = !{!26, !12, i64 12}
!26 = !{!"_ZTSN3JPH15IndexedTriangleE", !27, i64 0, !12, i64 12, !12, i64 16}
!27 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !13, i64 0}
!28 = !{!12, !12, i64 0}
!29 = !{!30, !12, i64 0}
!30 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE15TriangleIndices", !12, i64 0, !13, i64 4}
!31 = !{i64 2158744190}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !12, i64 8}
!35 = !{!"_ZTSSt4pairIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesE", !36, i64 0, !30, i64 8}
!36 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE4Edge", !12, i64 0, !12, i64 4}
!37 = !{!13, !13, i64 0}
!38 = !{i64 2158744567}
!39 = distinct !{!39, !33}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass