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

; 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::Vec3" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::TaperedCapsuleShape" = type <{ %"class.JPH::ConvexShape.base", [4 x i8], %"class.JPH::Vec3", float, float, float, float, float, float, float, [4 x i8] }>
%"class.JPH::ConvexShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::RefConst", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.3", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.3" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::TaperedCapsuleShapeSettings" = type { %"class.JPH::ConvexShapeSettings.base", float, float, float }
%"class.JPH::ConvexShapeSettings.base" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::RefConst", float }>
%"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" }
%"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] }

@_ZTVN3JPH19TaperedCapsuleShapeE = external dso_local unnamed_addr constant { [38 x ptr] }, align 8
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [40 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH27TaperedCapsuleShapeSettings8IsSphereEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH19TaperedCapsuleShapeC2ERKNS_27TaperedCapsuleShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(33) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"struct.JPH::AssertLastParam", align 1
  %11 = alloca %"struct.JPH::AssertLastParam", align 1
  %12 = alloca %"class.JPH::Ref", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3JPH11ConvexShapeC2ENS_13EShapeSubTypeERKNS_19ConvexShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(44) %13, i8 noundef zeroext 4, ptr noundef nonnull align 8 dereferenceable(76) %14, ptr noundef nonnull align 8 dereferenceable(33) %15)
  store ptr getelementptr inbounds inrange(-16, 288) ({ [38 x ptr] }, ptr @_ZTVN3JPH19TaperedCapsuleShapeE, i32 0, i32 0, i32 2), ptr %13, align 16, !tbaa !9
  %16 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 2
  %17 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %18 unwind label %44

18:                                               ; preds = %3
  %19 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %20 = getelementptr inbounds %union.anon.6, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %22 = extractvalue { double, double } %17, 0
  store double %22, ptr %21, align 16
  %23 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %24 = extractvalue { double, double } %17, 1
  store double %24, ptr %23, align 8
  %25 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.JPH::TaperedCapsuleShapeSettings", ptr %26, i32 0, i32 2
  %28 = load float, ptr %27, align 8, !tbaa !11
  store float %28, ptr %25, align 16, !tbaa !25
  %29 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 4
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.JPH::TaperedCapsuleShapeSettings", ptr %30, i32 0, i32 3
  %32 = load float, ptr %31, align 4, !tbaa !33
  store float %32, ptr %29, align 4, !tbaa !34
  %33 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 5
  store float 0.000000e+00, ptr %33, align 8, !tbaa !35
  %34 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 6
  store float 0.000000e+00, ptr %34, align 4, !tbaa !36
  %35 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 7
  store float 0.000000e+00, ptr %35, align 16, !tbaa !37
  %36 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 8
  store float 0.000000e+00, ptr %36, align 4, !tbaa !38
  %37 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 9
  store float 0.000000e+00, ptr %37, align 8, !tbaa !39
  %38 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 3
  %39 = load float, ptr %38, align 16, !tbaa !25
  %40 = fcmp ole float %39, 0.000000e+00
  br i1 %40, label %41, label %48

41:                                               ; preds = %18
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %42, ptr noundef @.str.1)
          to label %43 unwind label %44

43:                                               ; preds = %41
  br label %158

44:                                               ; preds = %151, %147, %141, %110, %98, %67, %63, %60, %52, %41, %3
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %168

48:                                               ; preds = %18
  %49 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 4
  %50 = load float, ptr %49, align 4, !tbaa !34
  %51 = fcmp ole float %50, 0.000000e+00
  br i1 %51, label %52, label %55

52:                                               ; preds = %48
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %53, ptr noundef @.str.2)
          to label %54 unwind label %44

54:                                               ; preds = %52
  br label %158

55:                                               ; preds = %48
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.JPH::TaperedCapsuleShapeSettings", ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !40
  %59 = fcmp ole float %58, 0.000000e+00
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %61, ptr noundef @.str.3)
          to label %62 unwind label %44

62:                                               ; preds = %60
  br label %158

63:                                               ; preds = %55
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = invoke noundef zeroext i1 @_ZNK3JPH27TaperedCapsuleShapeSettings8IsSphereEv(ptr noundef nonnull align 8 dereferenceable(88) %64)
          to label %66 unwind label %44

66:                                               ; preds = %63
  br i1 %65, label %67, label %70

67:                                               ; preds = %66
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %68, ptr noundef @.str.4)
          to label %69 unwind label %44

69:                                               ; preds = %67
  br label %158

70:                                               ; preds = %66
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.JPH::TaperedCapsuleShapeSettings", ptr %71, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !40
  %74 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 4
  %75 = load float, ptr %74, align 4, !tbaa !34
  %76 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 3
  %77 = load float, ptr %76, align 16, !tbaa !25
  %78 = fsub float %75, %77
  %79 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %78, float %73)
  %80 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 5
  store float %79, ptr %80, align 8, !tbaa !35
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.JPH::TaperedCapsuleShapeSettings", ptr %81, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !40
  %84 = fneg float %83
  %85 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 4
  %86 = load float, ptr %85, align 4, !tbaa !34
  %87 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 3
  %88 = load float, ptr %87, align 16, !tbaa !25
  %89 = fsub float %86, %88
  %90 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %89, float %84)
  %91 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 6
  store float %90, ptr %91, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.JPH::TaperedCapsuleShapeSettings", ptr %92, i32 0, i32 1
  %94 = load float, ptr %93, align 4, !tbaa !40
  %95 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 5
  %96 = load float, ptr %95, align 8, !tbaa !35
  %97 = fsub float %94, %96
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef %97, float noundef 0.000000e+00)
          to label %98 unwind label %114

98:                                               ; preds = %70
  %99 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %99, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  %100 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 3
  %101 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 4
  %102 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %100, ptr noundef nonnull align 4 dereferenceable(4) %101)
          to label %103 unwind label %44

103:                                              ; preds = %98
  %104 = load float, ptr %102, align 4, !tbaa !43
  %105 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 7
  store float %104, ptr %105, align 16, !tbaa !37
  br label %106

106:                                              ; preds = %103
  %107 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 7
  %108 = load float, ptr %107, align 16, !tbaa !37
  %109 = fcmp ogt float %108, 0.000000e+00
  br i1 %109, label %118, label %110

110:                                              ; preds = %106
  %111 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 125)
          to label %112 unwind label %44

112:                                              ; preds = %110
  br i1 %111, label %113, label %118

113:                                              ; preds = %112
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !44
  br label %118

114:                                              ; preds = %70
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %168

118:                                              ; preds = %113, %112, %106
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 4
  %122 = load float, ptr %121, align 4, !tbaa !34
  %123 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 3
  %124 = load float, ptr %123, align 16, !tbaa !25
  %125 = fsub float %122, %124
  %126 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 5
  %127 = load float, ptr %126, align 8, !tbaa !35
  %128 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 6
  %129 = load float, ptr %128, align 4, !tbaa !36
  %130 = fsub float %127, %129
  %131 = fdiv float %125, %130
  %132 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 8
  store float %131, ptr %132, align 4, !tbaa !38
  br label %133

133:                                              ; preds = %120
  %134 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 8
  %135 = load float, ptr %134, align 4, !tbaa !38
  %136 = fcmp oge float %135, -1.000000e+00
  br i1 %136, label %137, label %141

137:                                              ; preds = %133
  %138 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 8
  %139 = load float, ptr %138, align 4, !tbaa !38
  %140 = fcmp ole float %139, 1.000000e+00
  br i1 %140, label %145, label %141

141:                                              ; preds = %137, %133
  %142 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.7, ptr noundef @.str.6, i32 noundef 130)
          to label %143 unwind label %44

143:                                              ; preds = %141
  br i1 %142, label %144, label %145

144:                                              ; preds = %143
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !45
  br label %145

145:                                              ; preds = %144, %143, %137
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 8
  %149 = load float, ptr %148, align 4, !tbaa !38
  %150 = invoke noundef float @_ZN3JPH4ASinEf(float noundef %149)
          to label %151 unwind label %44

151:                                              ; preds = %147
  %152 = invoke noundef float @_ZN3JPH3TanEf(float noundef %150)
          to label %153 unwind label %44

153:                                              ; preds = %151
  %154 = getelementptr inbounds %"class.JPH::TaperedCapsuleShape", ptr %13, i32 0, i32 9
  store float %152, ptr %154, align 8, !tbaa !39
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  invoke void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %13)
          to label %156 unwind label %159

156:                                              ; preds = %153
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %155, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %157 unwind label %163

157:                                              ; preds = %156
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %158

158:                                              ; preds = %157, %69, %62, %54, %43
  ret void

159:                                              ; preds = %153
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  br label %167

163:                                              ; preds = %156
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %7, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %8, align 4
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %167

167:                                              ; preds = %163, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %168

168:                                              ; preds = %167, %114, %44
  call void @_ZN3JPH11ConvexShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %13) #9
  br label %169

169:                                              ; preds = %168
  %170 = load ptr, ptr %7, align 8
  %171 = load i32, ptr %8, align 4
  %172 = insertvalue { ptr, i32 } poison, ptr %170, 0
  %173 = insertvalue { ptr, i32 } %172, i32 %171, 1
  resume { ptr, i32 } %173
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11ConvexShapeC2ENS_13EShapeSubTypeERKNS_19ConvexShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(44), i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(76), ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef) #1 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) #5

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3TanEf(float noundef) #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH4ASinEf(float noundef) #7

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !24, i64 80}
!12 = !{!"_ZTSN3JPH27TaperedCapsuleShapeSettingsE", !13, i64 0, !24, i64 76, !24, i64 80, !24, i64 84}
!13 = !{!"_ZTSN3JPH19ConvexShapeSettingsE", !14, i64 0, !23, i64 64, !24, i64 72}
!14 = !{!"_ZTSN3JPH13ShapeSettingsE", !15, i64 0, !16, i64 8, !20, i64 16, !21, i64 24}
!15 = !{!"_ZTSN3JPH18SerializableObjectE"}
!16 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !17, i64 0}
!17 = !{!"_ZTSSt6atomicIjE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIjE", !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !7, i64 0, !22, i64 32}
!22 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !7, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!26, !24, i64 64}
!26 = !{!"_ZTSN3JPH19TaperedCapsuleShapeE", !27, i64 0, !32, i64 48, !24, i64 64, !24, i64 68, !24, i64 72, !24, i64 76, !24, i64 80, !24, i64 84, !24, i64 88}
!27 = !{!"_ZTSN3JPH11ConvexShapeE", !28, i64 0, !23, i64 32, !24, i64 40}
!28 = !{!"_ZTSN3JPH5ShapeE", !29, i64 8, !20, i64 16, !30, i64 24, !31, i64 25}
!29 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !17, i64 0}
!30 = !{!"_ZTSN3JPH10EShapeTypeE", !7, i64 0}
!31 = !{!"_ZTSN3JPH13EShapeSubTypeE", !7, i64 0}
!32 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!33 = !{!12, !24, i64 84}
!34 = !{!26, !24, i64 68}
!35 = !{!26, !24, i64 72}
!36 = !{!26, !24, i64 76}
!37 = !{!26, !24, i64 80}
!38 = !{!26, !24, i64 84}
!39 = !{!26, !24, i64 88}
!40 = !{!12, !24, i64 76}
!41 = !{i64 0, i64 16, !42}
!42 = !{!7, !7, i64 0}
!43 = !{!24, !24, i64 0}
!44 = !{i64 2157950877}
!45 = !{i64 2157951268}


; 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::Vec3" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }

@_ZTVN3JPH19TaperedCapsuleShapeE = external dso_local unnamed_addr constant { [38 x ptr] }, align 8
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [40 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH27TaperedCapsuleShapeSettings8IsSphereEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH19TaperedCapsuleShapeC2ERKNS_27TaperedCapsuleShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 16 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(33) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Ref", align 8
  tail call void @_ZN3JPH11ConvexShapeC2ENS_13EShapeSubTypeERKNS_19ConvexShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(44) %0, i8 noundef zeroext 4, ptr noundef nonnull align 8 dereferenceable(76) %1, ptr noundef nonnull align 8 dereferenceable(33) %2)
  store ptr getelementptr inbounds inrange(-16, 288) (i8, ptr @_ZTVN3JPH19TaperedCapsuleShapeE, i64 16), ptr %0, align 16, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %8 unwind label %23

8:                                                ; preds = %3
  %9 = extractvalue { double, double } %7, 0
  store double %9, ptr %6, align 16
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = extractvalue { double, double } %7, 1
  store double %11, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = getelementptr inbounds i8, ptr %1, i64 80
  %14 = getelementptr inbounds i8, ptr %0, i64 68
  %15 = load <2 x float>, ptr %13, align 8, !tbaa !8
  store <2 x float> %15, ptr %12, align 16, !tbaa !8
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  %17 = getelementptr inbounds i8, ptr %0, i64 76
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  %19 = getelementptr inbounds i8, ptr %0, i64 84
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  %21 = extractelement <2 x float> %15, i64 0
  %22 = fcmp ugt float %21, 0.000000e+00
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %16, i8 0, i64 20, i1 false)
  br i1 %22, label %25, label %.invoke

23:                                               ; preds = %.invoke, %77, %74, %70, %53, %32, %3
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %81

25:                                               ; preds = %8
  %26 = extractelement <2 x float> %15, i64 1
  %27 = fcmp ugt float %26, 0.000000e+00
  br i1 %27, label %28, label %.invoke

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %1, i64 76
  %30 = load float, ptr %29, align 4, !tbaa !11
  %31 = fcmp ugt float %30, 0.000000e+00
  br i1 %31, label %32, label %.invoke

32:                                               ; preds = %28
  %33 = invoke noundef zeroext i1 @_ZNK3JPH27TaperedCapsuleShapeSettings8IsSphereEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %34 unwind label %23

34:                                               ; preds = %32
  br i1 %33, label %.invoke, label %36

.invoke:                                          ; preds = %8, %34, %28, %25
  %35 = phi ptr [ @.str.2, %25 ], [ @.str.3, %28 ], [ @.str.4, %34 ], [ @.str.1, %8 ]
  invoke void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33) %2, ptr noundef nonnull %35)
          to label %80 unwind label %23

36:                                               ; preds = %34
  %37 = load float, ptr %29, align 4, !tbaa !11
  %38 = load float, ptr %14, align 4, !tbaa !25
  %39 = load float, ptr %12, align 16, !tbaa !33
  %40 = fsub float %38, %39
  %41 = fneg float %37
  %42 = insertelement <2 x float> poison, float %40, i64 0
  %43 = shufflevector <2 x float> %42, <2 x float> poison, <2 x i32> zeroinitializer
  %44 = insertelement <2 x float> poison, float %37, i64 0
  %45 = insertelement <2 x float> %44, float %41, i64 1
  %46 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %43, <2 x float> <float 5.000000e-01, float 5.000000e-01>, <2 x float> %45)
  store <2 x float> %46, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  %47 = extractelement <2 x float> %46, i64 0
  %48 = fsub float %37, %47
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef %48, float noundef 0.000000e+00)
          to label %49 unwind label %57

49:                                               ; preds = %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %51 = load float, ptr %50, align 4, !tbaa !8
  store float %51, ptr %18, align 16, !tbaa !36
  %52 = fcmp ogt float %51, 0.000000e+00
  br i1 %52, label %59, label %53

53:                                               ; preds = %49
  %54 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 125)
          to label %55 unwind label %23

55:                                               ; preds = %53
  br i1 %54, label %56, label %59

56:                                               ; preds = %55
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !37
  br label %59

57:                                               ; preds = %36
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  br label %81

59:                                               ; preds = %56, %55, %49
  %60 = load <4 x float>, ptr %12, align 16
  %61 = shufflevector <4 x float> %60, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %62 = load float, ptr %17, align 4, !tbaa !38
  %63 = load <2 x float>, ptr %14, align 4, !tbaa !8
  %64 = insertelement <2 x float> %61, float %62, i64 1
  %65 = fsub <2 x float> %63, %64
  %66 = extractelement <2 x float> %65, i64 0
  %67 = extractelement <2 x float> %65, i64 1
  %68 = fdiv float %66, %67
  store float %68, ptr %19, align 4, !tbaa !39
  %69 = call float @llvm.fabs.f32(float %68)
  %or.cond = fcmp ugt float %69, 1.000000e+00
  br i1 %or.cond, label %70, label %74

70:                                               ; preds = %59
  %71 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, i32 noundef 130)
          to label %72 unwind label %23

72:                                               ; preds = %70
  br i1 %71, label %73, label %74

73:                                               ; preds = %72
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !40
  br label %74

74:                                               ; preds = %59, %73, %72
  %75 = load float, ptr %19, align 4, !tbaa !39
  %76 = invoke noundef float @_ZN3JPH4ASinEf(float noundef %75)
          to label %77 unwind label %23

77:                                               ; preds = %74
  %78 = invoke noundef float @_ZN3JPH3TanEf(float noundef %76)
          to label %79 unwind label %23

79:                                               ; preds = %77
  store float %78, ptr %20, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  call void @_ZN3JPH3RefINS_5ShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %0)
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE3SetEOS3_(ptr noundef nonnull align 8 dereferenceable(33) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN3JPH3RefINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  br label %80

80:                                               ; preds = %.invoke, %79
  ret void

81:                                               ; preds = %57, %23
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %58, %57 ]
  call void @_ZN3JPH11ConvexShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %0) #10
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11ConvexShapeC2ENS_13EShapeSubTypeERKNS_19ConvexShapeSettingsERNS_6ResultINS_3RefINS_5ShapeEEEEE(ptr noundef nonnull align 8 dereferenceable(44), i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(76), ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEE8SetErrorEPKc(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3TanEf(float noundef) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH4ASinEf(float noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #8

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress 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 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 76}
!12 = !{!"_ZTSN3JPH27TaperedCapsuleShapeSettingsE", !13, i64 0, !9, i64 76, !9, i64 80, !9, i64 84}
!13 = !{!"_ZTSN3JPH19ConvexShapeSettingsE", !14, i64 0, !23, i64 64, !9, i64 72}
!14 = !{!"_ZTSN3JPH13ShapeSettingsE", !15, i64 0, !16, i64 8, !20, i64 16, !21, i64 24}
!15 = !{!"_ZTSN3JPH18SerializableObjectE"}
!16 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !17, i64 0}
!17 = !{!"_ZTSSt6atomicIjE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIjE", !19, i64 0}
!19 = !{!"int", !10, i64 0}
!20 = !{!"long", !10, i64 0}
!21 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !10, i64 0, !22, i64 32}
!22 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !10, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !24, i64 0}
!24 = !{!"any pointer", !10, i64 0}
!25 = !{!26, !9, i64 68}
!26 = !{!"_ZTSN3JPH19TaperedCapsuleShapeE", !27, i64 0, !32, i64 48, !9, i64 64, !9, i64 68, !9, i64 72, !9, i64 76, !9, i64 80, !9, i64 84, !9, i64 88}
!27 = !{!"_ZTSN3JPH11ConvexShapeE", !28, i64 0, !23, i64 32, !9, i64 40}
!28 = !{!"_ZTSN3JPH5ShapeE", !29, i64 8, !20, i64 16, !30, i64 24, !31, i64 25}
!29 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !17, i64 0}
!30 = !{!"_ZTSN3JPH10EShapeTypeE", !10, i64 0}
!31 = !{!"_ZTSN3JPH13EShapeSubTypeE", !10, i64 0}
!32 = !{!"_ZTSN3JPH4Vec3E", !10, i64 0}
!33 = !{!26, !9, i64 64}
!34 = !{i64 0, i64 16, !35}
!35 = !{!10, !10, i64 0}
!36 = !{!26, !9, i64 80}
!37 = !{i64 2157950877}
!38 = !{!26, !9, i64 76}
!39 = !{!26, !9, i64 84}
!40 = !{i64 2157951268}
!41 = !{!26, !9, i64 88}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass