; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character/CharacterTest.ll (ZN13CharacterTest10InitializeEv)

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

%"class.JPH::Ref.10" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.8 }
%union.anon.8 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::CharacterBaseSettings" = type { ptr, %"class.JPH::RefTarget.11", %"class.JPH::Vec3", %"class.JPH::Plane", float, i8, %"class.JPH::RefConst" }
%"class.JPH::RefTarget.11" = 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::CharacterSettings" = type <{ %"class.JPH::CharacterBaseSettings", i16, [2 x i8], float, float, float, i8, [15 x i8] }>
%class.CharacterBaseTest = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, i8, [12 x i8] }>
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::CharacterVsCharacterCollisionSimple" = type { %"class.JPH::CharacterVsCharacterCollision", %"class.JPH::Array.4" }
%"class.JPH::CharacterVsCharacterCollision" = type { ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::Ref.7" = type { ptr }
%class.CharacterTest = type { %class.CharacterBaseTest.base, %"class.JPH::ContactListener", %"class.JPH::Ref", [8 x i8] }
%class.CharacterBaseTest.base = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, i8 }>
%"class.JPH::ContactListener" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13CharacterTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(344) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Ref.10", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.JPH::Plane", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Quat", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %11 = call noundef ptr @_ZN3JPH17CharacterSettingsnwEm(i64 noundef 96)
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 96, i1 false)
  invoke void @_ZN3JPH17CharacterSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(81) %11)
          to label %12 unwind label %85

12:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_17CharacterSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %11)
  %13 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 4.500000e+01)
          to label %14 unwind label %89

14:                                               ; preds = %12
  %15 = invoke noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %16 unwind label %89

16:                                               ; preds = %14
  %17 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %15, i32 0, i32 4
  store float %13, ptr %17, align 16, !tbaa !9
  %18 = invoke noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %19 unwind label %89

19:                                               ; preds = %16
  %20 = getelementptr inbounds %"class.JPH::CharacterSettings", ptr %18, i32 0, i32 1
  store i16 1, ptr %20, align 16, !tbaa !21
  %21 = getelementptr inbounds %class.CharacterBaseTest, ptr %10, i32 0, i32 1
  %22 = invoke noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %23 unwind label %89

23:                                               ; preds = %19
  %24 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %22, i32 0, i32 6
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %26 unwind label %89

26:                                               ; preds = %23
  %27 = invoke noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %28 unwind label %89

28:                                               ; preds = %26
  %29 = getelementptr inbounds %"class.JPH::CharacterSettings", ptr %27, i32 0, i32 4
  store float 5.000000e-01, ptr %29, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #10
  %30 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %31 unwind label %93

31:                                               ; preds = %28
  %32 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %33 = getelementptr inbounds %union.anon, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %35 = extractvalue { double, double } %30, 0
  store double %35, ptr %34, align 16
  %36 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %37 = extractvalue { double, double } %30, 1
  store double %37, ptr %36, align 8
  %38 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %39 = load double, ptr %38, align 16
  %40 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %41 = load double, ptr %40, align 8
  invoke void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %6, double %39, double %41, float noundef 0xBFD3333340000000)
          to label %42 unwind label %93

42:                                               ; preds = %31
  %43 = invoke noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %44 unwind label %93

44:                                               ; preds = %42
  %45 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %43, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #10
  %46 = invoke noundef ptr @_ZN3JPH9CharacternwEm(i64 noundef 160)
          to label %47 unwind label %89

47:                                               ; preds = %44
  %48 = invoke noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %49 unwind label %97

49:                                               ; preds = %47
  %50 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %51 unwind label %97

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.JPH::Vec3", ptr %8, i32 0, i32 0
  %53 = getelementptr inbounds %union.anon, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %55 = extractvalue { double, double } %50, 0
  store double %55, ptr %54, align 16
  %56 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %57 = extractvalue { double, double } %50, 1
  store double %57, ptr %56, align 8
  %58 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %59 unwind label %97

59:                                               ; preds = %51
  %60 = getelementptr inbounds %"class.JPH::Quat", ptr %9, i32 0, i32 0
  %61 = getelementptr inbounds %"class.JPH::Vec4", ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %union.anon.8, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %64 = extractvalue { double, double } %58, 0
  store double %64, ptr %63, align 16
  %65 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %66 = extractvalue { double, double } %58, 1
  store double %66, ptr %65, align 8
  %67 = getelementptr inbounds %class.Test, ptr %10, i32 0, i32 2
  %68 = load ptr, ptr %67, align 16, !tbaa !28
  %69 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %70 = load double, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %72 = load double, ptr %71, align 8
  %73 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %74 = load double, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %76 = load double, ptr %75, align 8
  invoke void @_ZN3JPH9CharacterC1EPKNS_17CharacterSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(150) %46, ptr noundef %48, double %70, double %72, double %74, double %76, i64 noundef 0, ptr noundef %68)
          to label %77 unwind label %97

77:                                               ; preds = %59
  %78 = getelementptr inbounds %class.CharacterTest, ptr %10, i32 0, i32 2
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_9CharacterEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef %46)
          to label %80 unwind label %89

80:                                               ; preds = %77
  %81 = getelementptr inbounds %class.CharacterTest, ptr %10, i32 0, i32 2
  %82 = invoke noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
          to label %83 unwind label %89

83:                                               ; preds = %80
  invoke void @_ZN3JPH9Character18AddToPhysicsSystemENS_11EActivationEb(ptr noundef nonnull align 16 dereferenceable(150) %82, i32 noundef 0, i1 noundef zeroext true)
          to label %84 unwind label %89

84:                                               ; preds = %83
  call void @_ZN3JPH3RefINS_17CharacterSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

85:                                               ; preds = %1
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %4, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %5, align 4
  call void @_ZN3JPH17CharacterSettingsdlEPv(ptr noundef %11) #10
  br label %102

89:                                               ; preds = %83, %80, %77, %44, %26, %23, %19, %16, %14, %12
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %4, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %5, align 4
  br label %101

93:                                               ; preds = %42, %31, %28
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %4, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #10
  br label %101

97:                                               ; preds = %59, %51, %49, %47
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %4, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %5, align 4
  call void @_ZN3JPH9CharacterdlEPv(ptr noundef %46) #10
  br label %101

101:                                              ; preds = %97, %93, %89
  call void @_ZN3JPH3RefINS_17CharacterSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %102

102:                                              ; preds = %101, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %103

103:                                              ; preds = %102
  %104 = load ptr, ptr %4, align 8
  %105 = load i32, ptr %5, align 4
  %106 = insertvalue { ptr, i32 } poison, ptr %104, 0
  %107 = insertvalue { ptr, i32 } %106, i32 %105, 1
  resume { ptr, i32 } %107
}

declare void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324)) unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH17CharacterSettingsnwEm(i64 noundef) #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 uwtable
declare dso_local void @_ZN3JPH17CharacterSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(81)) unnamed_addr #6 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #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) #8

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

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

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

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

declare void @_ZN3JPH9CharacterC1EPKNS_17CharacterSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(150), ptr noundef, double, double, double, double, i64 noundef, ptr noundef) unnamed_addr #3

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

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

declare void @_ZN3JPH9Character18AddToPhysicsSystemENS_11EActivationEb(ptr noundef nonnull align 16 dereferenceable(150), i32 noundef, i1 noundef zeroext) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 48}
!10 = !{!"_ZTSN3JPH21CharacterBaseSettingsE", !11, i64 8, !15, i64 16, !16, i64 32, !18, i64 48, !19, i64 52, !20, i64 56}
!11 = !{!"_ZTSN3JPH9RefTargetINS_21CharacterBaseSettingsEEE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3JPH5PlaneE", !17, i64 0}
!17 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!21 = !{!22, !23, i64 64}
!22 = !{!"_ZTSN3JPH17CharacterSettingsE", !10, i64 0, !23, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !24, i64 80}
!23 = !{!"short", !7, i64 0}
!24 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!25 = !{!22, !18, i64 72}
!26 = !{i64 0, i64 16, !27}
!27 = !{!7, !7, i64 0}
!28 = !{!29, !6, i64 16}
!29 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !19, i64 48, !30, i64 56}
!30 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !32, i64 8, !33, i64 16, !32, i64 24, !34, i64 32, !6, i64 48}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!34 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !32, i64 8}


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

%"class.JPH::Ref.10" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.8 }
%union.anon.8 = type { <4 x float> }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13CharacterTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(344) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref.10", align 8
  %3 = alloca %"class.JPH::Plane", align 16
  tail call void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %4 = tail call noundef ptr @_ZN3JPH17CharacterSettingsnwEm(i64 noundef 96)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %4, i8 0, i64 96, i1 false)
  invoke void @_ZN3JPH17CharacterSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(81) %4)
          to label %5 unwind label %44

5:                                                ; preds = %1
  call void @_ZN3JPH3RefINS_17CharacterSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %4)
  %6 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 4.500000e+01)
  %7 = call noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %8 = getelementptr inbounds i8, ptr %7, i64 48
  store float %6, ptr %8, align 16, !tbaa !5
  %9 = call noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %10 = getelementptr inbounds i8, ptr %9, i64 64
  store i16 1, ptr %10, align 16, !tbaa !20
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  %12 = call noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %13 = getelementptr inbounds i8, ptr %12, i64 56
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %15 unwind label %46

15:                                               ; preds = %5
  %16 = call noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %17 = getelementptr inbounds i8, ptr %16, i64 72
  store float 5.000000e-01, ptr %17, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  %18 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %19 unwind label %48

19:                                               ; preds = %15
  %20 = extractvalue { double, double } %18, 0
  %21 = extractvalue { double, double } %18, 1
  invoke void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %3, double %20, double %21, float noundef 0xBFD3333340000000)
          to label %22 unwind label %48

22:                                               ; preds = %19
  %23 = call noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  %25 = invoke noundef ptr @_ZN3JPH9CharacternwEm(i64 noundef 160)
          to label %26 unwind label %46

26:                                               ; preds = %22
  %27 = call noundef ptr @_ZNK3JPH3RefINS_17CharacterSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %28 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %29 unwind label %50

29:                                               ; preds = %26
  %30 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %31 unwind label %50

31:                                               ; preds = %29
  %32 = extractvalue { double, double } %28, 1
  %33 = extractvalue { double, double } %28, 0
  %34 = extractvalue { double, double } %30, 0
  %35 = extractvalue { double, double } %30, 1
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load ptr, ptr %36, align 16, !tbaa !27
  invoke void @_ZN3JPH9CharacterC1EPKNS_17CharacterSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(150) %25, ptr noundef %27, double %33, double %32, double %34, double %35, i64 noundef 0, ptr noundef %37)
          to label %38 unwind label %50

38:                                               ; preds = %31
  %39 = getelementptr inbounds i8, ptr %0, i64 336
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_9CharacterEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull %25)
          to label %41 unwind label %46

41:                                               ; preds = %38
  %42 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39)
  invoke void @_ZN3JPH9Character18AddToPhysicsSystemENS_11EActivationEb(ptr noundef nonnull align 16 dereferenceable(150) %42, i32 noundef 0, i1 noundef zeroext true)
          to label %43 unwind label %46

43:                                               ; preds = %41
  call void @_ZN3JPH3RefINS_17CharacterSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  ret void

44:                                               ; preds = %1
  %45 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH17CharacterSettingsdlEPv(ptr noundef nonnull %4) #10
  br label %53

46:                                               ; preds = %41, %38, %22, %5
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %52

48:                                               ; preds = %19, %15
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  br label %52

50:                                               ; preds = %31, %29, %26
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH9CharacterdlEPv(ptr noundef %25) #10
  br label %52

52:                                               ; preds = %50, %48, %46
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %51, %50 ], [ %49, %48 ]
  call void @_ZN3JPH3RefINS_17CharacterSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  br label %53

53:                                               ; preds = %52, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324)) unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH17CharacterSettingsnwEm(i64 noundef) local_unnamed_addr #4 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) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH17CharacterSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(81)) unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17CharacterSettingsdlEPv(ptr noundef) local_unnamed_addr #7 align 2

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

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

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

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

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

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

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

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

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

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

declare void @_ZN3JPH9CharacterC1EPKNS_17CharacterSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(150), ptr noundef, double, double, double, double, i64 noundef, ptr noundef) unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9CharacterdlEPv(ptr noundef) local_unnamed_addr #7 align 2

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

declare void @_ZN3JPH9Character18AddToPhysicsSystemENS_11EActivationEb(ptr noundef nonnull align 16 dereferenceable(150), i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #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, !16, i64 48}
!6 = !{!"_ZTSN3JPH21CharacterBaseSettingsE", !7, i64 8, !13, i64 16, !14, i64 32, !16, i64 48, !17, i64 52, !18, i64 56}
!7 = !{!"_ZTSN3JPH9RefTargetINS_21CharacterBaseSettingsEEE", !8, i64 0}
!8 = !{!"_ZTSSt6atomicIjE", !9, i64 0}
!9 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN3JPH4Vec3E", !11, i64 0}
!14 = !{!"_ZTSN3JPH5PlaneE", !15, i64 0}
!15 = !{!"_ZTSN3JPH4Vec4E", !11, i64 0}
!16 = !{!"float", !11, i64 0}
!17 = !{!"bool", !11, i64 0}
!18 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !19, i64 0}
!19 = !{!"any pointer", !11, i64 0}
!20 = !{!21, !22, i64 64}
!21 = !{!"_ZTSN3JPH17CharacterSettingsE", !6, i64 0, !22, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !23, i64 80}
!22 = !{!"short", !11, i64 0}
!23 = !{!"_ZTSN3JPH12EAllowedDOFsE", !11, i64 0}
!24 = !{!21, !16, i64 72}
!25 = !{i64 0, i64 16, !26}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !19, i64 16}
!28 = !{!"_ZTS4Test", !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !17, i64 48, !29, i64 56}
!29 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !19, i64 0, !31, i64 8, !32, i64 16, !31, i64 24, !33, i64 32, !19, i64 48}
!31 = !{!"long", !11, i64 0}
!32 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !19, i64 0}
!33 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !31, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass