; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/General (ConveyorBeltTest)

; 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 }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%class.ConveyorBeltTest = type <{ %class.Test, %"class.JPH::ContactListener", %"class.JPH::Array", %"class.JPH::BodyID", [4 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::ContactListener" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::ContactSettings" = type { float, float, float, float, float, float, i8, %"class.JPH::Vec3", %"class.JPH::Vec3" }

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

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

; 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 #1 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef) #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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16ConveyorBeltTest14OnContactAddedERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr noundef nonnull align 16 dereferenceable(64) %4) unnamed_addr #5 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Quat", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Quat", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Quat", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Quat", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %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::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  %38 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 2
  %39 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
  %40 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 2
  %41 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %42)
  %44 = call noundef ptr @_ZSt4findIPN3JPH6BodyIDES1_ET_S3_S3_RKT0_(ptr noundef %39, ptr noundef %41, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %45 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 2
  %46 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %47 = icmp ne ptr %44, %46
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  %49 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 2
  %50 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %51 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 2
  %52 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %53)
  %55 = call noundef ptr @_ZSt4findIPN3JPH6BodyIDES1_ET_S3_S3_RKT0_(ptr noundef %50, ptr noundef %52, ptr noundef nonnull align 4 dereferenceable(4) %54)
  %56 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 2
  %57 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
  %58 = icmp ne ptr %55, %57
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %12, align 1, !tbaa !9
  %60 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %61 = trunc i8 %60 to i1
  br i1 %61, label %65, label %62

62:                                               ; preds = %5
  %63 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %143

65:                                               ; preds = %62, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+01)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %66 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %67 = trunc i8 %66 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  br i1 %67, label %68, label %89

68:                                               ; preds = %65
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %69)
  %71 = getelementptr inbounds %"class.JPH::Quat", ptr %15, i32 0, i32 0
  %72 = getelementptr inbounds %"class.JPH::Vec4", ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %union.anon.4, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %75 = extractvalue { double, double } %70, 0
  store double %75, ptr %74, align 16
  %76 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %77 = extractvalue { double, double } %70, 1
  store double %77, ptr %76, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !13
  %78 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %79 = load double, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %81 = load double, ptr %80, align 8
  %82 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %15, double %79, double %81)
  %83 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %84 = getelementptr inbounds %union.anon, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 0
  %86 = extractvalue { double, double } %82, 0
  store double %86, ptr %85, align 16
  %87 = getelementptr inbounds { double, double }, ptr %84, i32 0, i32 1
  %88 = extractvalue { double, double } %82, 1
  store double %88, ptr %87, align 8
  br label %97

89:                                               ; preds = %65
  %90 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %91 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %94 = extractvalue { double, double } %90, 0
  store double %94, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %96 = extractvalue { double, double } %90, 1
  store double %96, ptr %95, align 8
  br label %97

97:                                               ; preds = %89, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %98 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %99 = trunc i8 %98 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  br i1 %99, label %100, label %121

100:                                              ; preds = %97
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %101)
  %103 = getelementptr inbounds %"class.JPH::Quat", ptr %18, i32 0, i32 0
  %104 = getelementptr inbounds %"class.JPH::Vec4", ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %union.anon.4, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 0
  %107 = extractvalue { double, double } %102, 0
  store double %107, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 1
  %109 = extractvalue { double, double } %102, 1
  store double %109, ptr %108, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !13
  %110 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %111 = load double, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %18, double %111, double %113)
  %115 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %116 = getelementptr inbounds %union.anon, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds { double, double }, ptr %116, i32 0, i32 0
  %118 = extractvalue { double, double } %114, 0
  store double %118, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %116, i32 0, i32 1
  %120 = extractvalue { double, double } %114, 1
  store double %120, ptr %119, align 8
  br label %129

121:                                              ; preds = %97
  %122 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %123 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %124 = getelementptr inbounds %union.anon, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 0
  %126 = extractvalue { double, double } %122, 0
  store double %126, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 1
  %128 = extractvalue { double, double } %122, 1
  store double %128, ptr %127, align 8
  br label %129

129:                                              ; preds = %121, %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !13
  %130 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %131 = load double, ptr %130, align 16
  %132 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %133 = load double, ptr %132, align 8
  %134 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %131, double %133)
  %135 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %136 = getelementptr inbounds %union.anon, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds { double, double }, ptr %136, i32 0, i32 0
  %138 = extractvalue { double, double } %134, 0
  store double %138, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %136, i32 0, i32 1
  %140 = extractvalue { double, double } %134, 1
  store double %140, ptr %139, align 8
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %141, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %142, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %143

143:                                              ; preds = %129, %62
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %144)
  %146 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 3
  %147 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %145, ptr noundef nonnull align 4 dereferenceable(4) %146)
  %148 = zext i1 %147 to i8
  store i8 %148, ptr %22, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %149)
  %151 = getelementptr inbounds %class.ConveyorBeltTest, ptr %37, i32 0, i32 3
  %152 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %150, ptr noundef nonnull align 4 dereferenceable(4) %151)
  %153 = zext i1 %152 to i8
  store i8 %153, ptr %23, align 1, !tbaa !9
  %154 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %155 = trunc i8 %154 to i1
  br i1 %155, label %159, label %156

156:                                              ; preds = %143
  %157 = load i8, ptr %23, align 1, !tbaa !9, !range !11, !noundef !12
  %158 = trunc i8 %157 to i1
  br i1 %158, label %159, label %290

159:                                              ; preds = %156, %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %160 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 1.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef 0.000000e+00, float noundef %160, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %161 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %162 = trunc i8 %161 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  br i1 %162, label %163, label %184

163:                                              ; preds = %159
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %164)
  %166 = getelementptr inbounds %"class.JPH::Quat", ptr %26, i32 0, i32 0
  %167 = getelementptr inbounds %"class.JPH::Vec4", ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds %union.anon.4, ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds { double, double }, ptr %168, i32 0, i32 0
  %170 = extractvalue { double, double } %165, 0
  store double %170, ptr %169, align 16
  %171 = getelementptr inbounds { double, double }, ptr %168, i32 0, i32 1
  %172 = extractvalue { double, double } %165, 1
  store double %172, ptr %171, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !13
  %173 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %174 = load double, ptr %173, align 16
  %175 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %176 = load double, ptr %175, align 8
  %177 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %26, double %174, double %176)
  %178 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %179 = getelementptr inbounds %union.anon, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds { double, double }, ptr %179, i32 0, i32 0
  %181 = extractvalue { double, double } %177, 0
  store double %181, ptr %180, align 16
  %182 = getelementptr inbounds { double, double }, ptr %179, i32 0, i32 1
  %183 = extractvalue { double, double } %177, 1
  store double %183, ptr %182, align 8
  br label %192

184:                                              ; preds = %159
  %185 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %186 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %187 = getelementptr inbounds %union.anon, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 0
  %189 = extractvalue { double, double } %185, 0
  store double %189, ptr %188, align 16
  %190 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 1
  %191 = extractvalue { double, double } %185, 1
  store double %191, ptr %190, align 8
  br label %192

192:                                              ; preds = %184, %163
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %193 = load i8, ptr %23, align 1, !tbaa !9, !range !11, !noundef !12
  %194 = trunc i8 %193 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  br i1 %194, label %195, label %216

195:                                              ; preds = %192
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %196)
  %198 = getelementptr inbounds %"class.JPH::Quat", ptr %29, i32 0, i32 0
  %199 = getelementptr inbounds %"class.JPH::Vec4", ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds %union.anon.4, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %197, 0
  store double %202, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %197, 1
  store double %204, ptr %203, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !13
  %205 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %206 = load double, ptr %205, align 16
  %207 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  %209 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %29, double %206, double %208)
  %210 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %211 = getelementptr inbounds %union.anon, ptr %210, i32 0, i32 0
  %212 = getelementptr inbounds { double, double }, ptr %211, i32 0, i32 0
  %213 = extractvalue { double, double } %209, 0
  store double %213, ptr %212, align 16
  %214 = getelementptr inbounds { double, double }, ptr %211, i32 0, i32 1
  %215 = extractvalue { double, double } %209, 1
  store double %215, ptr %214, align 8
  br label %224

216:                                              ; preds = %192
  %217 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %218 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %219 = getelementptr inbounds %union.anon, ptr %218, i32 0, i32 0
  %220 = getelementptr inbounds { double, double }, ptr %219, i32 0, i32 0
  %221 = extractvalue { double, double } %217, 0
  store double %221, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %219, i32 0, i32 1
  %223 = extractvalue { double, double } %217, 1
  store double %223, ptr %222, align 8
  br label %224

224:                                              ; preds = %216, %195
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  %225 = load i8, ptr %23, align 1, !tbaa !9, !range !11, !noundef !12
  %226 = trunc i8 %225 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  br i1 %226, label %227, label %266

227:                                              ; preds = %224
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %228)
  %230 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %231 = getelementptr inbounds %union.anon, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds { double, double }, ptr %231, i32 0, i32 0
  %233 = extractvalue { double, double } %229, 0
  store double %233, ptr %232, align 16
  %234 = getelementptr inbounds { double, double }, ptr %231, i32 0, i32 1
  %235 = extractvalue { double, double } %229, 1
  store double %235, ptr %234, align 8
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %236)
  %238 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %239 = getelementptr inbounds %union.anon, ptr %238, i32 0, i32 0
  %240 = getelementptr inbounds { double, double }, ptr %239, i32 0, i32 0
  %241 = extractvalue { double, double } %237, 0
  store double %241, ptr %240, align 16
  %242 = getelementptr inbounds { double, double }, ptr %239, i32 0, i32 1
  %243 = extractvalue { double, double } %237, 1
  store double %243, ptr %242, align 8
  %244 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %245 = load double, ptr %244, align 16
  %246 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %247 = load double, ptr %246, align 8
  %248 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %245, double %247)
  %249 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %250 = getelementptr inbounds %union.anon, ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds { double, double }, ptr %250, i32 0, i32 0
  %252 = extractvalue { double, double } %248, 0
  store double %252, ptr %251, align 16
  %253 = getelementptr inbounds { double, double }, ptr %250, i32 0, i32 1
  %254 = extractvalue { double, double } %248, 1
  store double %254, ptr %253, align 8
  %255 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %256 = load double, ptr %255, align 16
  %257 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %258 = load double, ptr %257, align 8
  %259 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %256, double %258)
  %260 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %261 = getelementptr inbounds %union.anon, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds { double, double }, ptr %261, i32 0, i32 0
  %263 = extractvalue { double, double } %259, 0
  store double %263, ptr %262, align 16
  %264 = getelementptr inbounds { double, double }, ptr %261, i32 0, i32 1
  %265 = extractvalue { double, double } %259, 1
  store double %265, ptr %264, align 8
  br label %274

266:                                              ; preds = %224
  %267 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %268 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %269 = getelementptr inbounds %union.anon, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds { double, double }, ptr %269, i32 0, i32 0
  %271 = extractvalue { double, double } %267, 0
  store double %271, ptr %270, align 16
  %272 = getelementptr inbounds { double, double }, ptr %269, i32 0, i32 1
  %273 = extractvalue { double, double } %267, 1
  store double %273, ptr %272, align 8
  br label %274

274:                                              ; preds = %266, %227
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %275, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %276, ptr align 16 %31, i64 16, i1 false), !tbaa.struct !13
  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 %25, i64 16, i1 false), !tbaa.struct !13
  %277 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %278 = load double, ptr %277, align 16
  %279 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %280 = load double, ptr %279, align 8
  %281 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %278, double %280)
  %282 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %283 = getelementptr inbounds %union.anon, ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds { double, double }, ptr %283, i32 0, i32 0
  %285 = extractvalue { double, double } %281, 0
  store double %285, ptr %284, align 16
  %286 = getelementptr inbounds { double, double }, ptr %283, i32 0, i32 1
  %287 = extractvalue { double, double } %281, 1
  store double %287, ptr %286, align 8
  %288 = load ptr, ptr %10, align 8, !tbaa !5
  %289 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %288, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %289, ptr align 16 %35, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  br label %290

290:                                              ; preds = %274, %156
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) #7 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = { 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 #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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{i64 0, i64 16, !14}
!14 = !{!7, !7, i64 0}


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

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

; 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 #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16ConveyorBeltTest14OnContactAddedERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr nocapture noundef nonnull readnone align 16 dereferenceable(2128) %3, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(64) %4) unnamed_addr #4 align 2 {
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Quat", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Quat", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  %16 = tail call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %17 = tail call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %19 = tail call noundef ptr @_ZSt4findIPN3JPH6BodyIDES1_ET_S3_S3_RKT0_(ptr noundef %16, ptr noundef %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %20 = tail call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %.not = icmp ne ptr %19, %20
  %21 = tail call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %22 = tail call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %24 = tail call noundef ptr @_ZSt4findIPN3JPH6BodyIDES1_ET_S3_S3_RKT0_(ptr noundef %21, ptr noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = tail call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %.not44 = icmp ne ptr %24, %25
  %brmerge = or i1 %.not, %.not44
  br i1 %brmerge, label %26, label %50

26:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  br i1 %.not, label %27, label %33

27:                                               ; preds = %26
  %28 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %29 = extractvalue { double, double } %28, 0
  store double %29, ptr %7, align 16
  %30 = getelementptr inbounds i8, ptr %7, i64 8
  %31 = extractvalue { double, double } %28, 1
  store double %31, ptr %30, align 8
  %.sroa.023.0.copyload = load double, ptr %6, align 16
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.224.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !5
  %32 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %7, double %.sroa.023.0.copyload, double %.sroa.224.0.copyload)
  br label %35

33:                                               ; preds = %26
  %34 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  br label %35

35:                                               ; preds = %33, %27
  %.pn = phi { double, double } [ %32, %27 ], [ %34, %33 ]
  %.sroa.526.0 = extractvalue { double, double } %.pn, 1
  %.sroa.025.0 = extractvalue { double, double } %.pn, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  br i1 %.not44, label %36, label %42

36:                                               ; preds = %35
  %37 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %38 = extractvalue { double, double } %37, 0
  store double %38, ptr %9, align 16
  %39 = getelementptr inbounds i8, ptr %9, i64 8
  %40 = extractvalue { double, double } %37, 1
  store double %40, ptr %39, align 8
  %.sroa.021.0.copyload = load double, ptr %6, align 16
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.222.0.copyload = load double, ptr %.sroa.222.0..sroa_idx, align 8, !tbaa !5
  %41 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %9, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload)
  br label %44

42:                                               ; preds = %35
  %43 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  br label %44

44:                                               ; preds = %42, %36
  %.pn52 = phi { double, double } [ %41, %36 ], [ %43, %42 ]
  %.sink = extractvalue { double, double } %.pn52, 1
  %.sink51 = extractvalue { double, double } %.pn52, 0
  store double %.sink51, ptr %8, align 16
  %45 = getelementptr inbounds i8, ptr %8, i64 8
  store double %.sink, ptr %45, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %46 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %.sroa.025.0, double %.sroa.526.0)
  %47 = extractvalue { double, double } %46, 0
  %48 = extractvalue { double, double } %46, 1
  %49 = getelementptr inbounds i8, ptr %4, i64 32
  store double %47, ptr %49, align 16
  %.sroa.420.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 40
  store double %48, ptr %.sroa.420.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %50

50:                                               ; preds = %5, %44
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %52 = getelementptr inbounds i8, ptr %0, i64 144
  %53 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52)
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %55 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull align 4 dereferenceable(4) %52)
  %brmerge50 = or i1 %53, %55
  br i1 %brmerge50, label %56, label %99

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %57 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 1.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0.000000e+00, float noundef %57, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  br i1 %53, label %58, label %64

58:                                               ; preds = %56
  %59 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %11, align 16
  %61 = getelementptr inbounds i8, ptr %11, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  %.sroa.09.0.copyload = load double, ptr %10, align 16
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.210.0.copyload = load double, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !5
  %63 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload)
  br label %66

64:                                               ; preds = %56
  %65 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  br label %66

66:                                               ; preds = %64, %58
  %.pn46 = phi { double, double } [ %63, %58 ], [ %65, %64 ]
  %.sroa.512.0 = extractvalue { double, double } %.pn46, 1
  %.sroa.011.0 = extractvalue { double, double } %.pn46, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  br i1 %55, label %67, label %87

67:                                               ; preds = %66
  %68 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %13, align 16
  %70 = getelementptr inbounds i8, ptr %13, i64 8
  %71 = extractvalue { double, double } %68, 1
  store double %71, ptr %70, align 8
  %.sroa.07.0.copyload = load double, ptr %10, align 16
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.28.0.copyload = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !5
  %72 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %13, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %73 = extractvalue { double, double } %72, 0
  store double %73, ptr %12, align 16
  %74 = getelementptr inbounds i8, ptr %12, i64 8
  %75 = extractvalue { double, double } %72, 1
  store double %75, ptr %74, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %76 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %77 = extractvalue { double, double } %76, 0
  store double %77, ptr %14, align 16
  %78 = getelementptr inbounds i8, ptr %14, i64 8
  %79 = extractvalue { double, double } %76, 1
  store double %79, ptr %78, align 8
  %80 = call { double, double } @_ZNK3JPH4Body23GetCenterOfMassPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %81, double %82)
  %84 = extractvalue { double, double } %83, 0
  %85 = extractvalue { double, double } %83, 1
  %86 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %84, double %85)
  br label %93

87:                                               ; preds = %66
  %88 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %89 = extractvalue { double, double } %88, 0
  store double %89, ptr %12, align 16
  %90 = getelementptr inbounds i8, ptr %12, i64 8
  %91 = extractvalue { double, double } %88, 1
  store double %91, ptr %90, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %92 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  br label %93

93:                                               ; preds = %87, %67
  %.pn48 = phi { double, double } [ %86, %67 ], [ %92, %87 ]
  %.sroa.5.0 = extractvalue { double, double } %.pn48, 1
  %.sroa.06.0 = extractvalue { double, double } %.pn48, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  %94 = getelementptr inbounds i8, ptr %4, i64 32
  store double %.sroa.06.0, ptr %94, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 40
  store double %.sroa.5.0, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %95 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %.sroa.011.0, double %.sroa.512.0)
  %96 = extractvalue { double, double } %95, 0
  %97 = extractvalue { double, double } %95, 1
  %98 = getelementptr inbounds i8, ptr %4, i64 48
  store double %96, ptr %98, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 56
  store double %97, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %99

99:                                               ; preds = %50, %93
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #5 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 #1 align 2

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

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass