; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Water (WaterShapeTest)

; 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::Color" = type { %union.anon.34 }
%union.anon.34 = type { i32 }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.MyCollector = type <{ %"class.JPH::CollisionCollector", ptr, %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::SpecifiedBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", %"class.JPH::BroadPhaseLayer", [7 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::SpecifiedObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%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.Test::PreUpdateParams" = type { float, [12 x i8], %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>

@_ZN3JPH5Color5sBlueE = external global %"class.JPH::Color", align 4
@_ZN16BroadPhaseLayersL6MOVINGE = external hidden constant %"class.JPH::BroadPhaseLayer", 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: 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: 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) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14WaterShapeTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Color", align 4
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Color", align 4
  %17 = alloca %class.MyCollector, align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::AABox", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::SpecifiedBroadPhaseLayerFilter", align 8
  %28 = alloca %"class.JPH::BroadPhaseLayer", align 1
  %29 = alloca %"class.JPH::SpecifiedObjectLayerFilter", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 -20, ptr %6, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %124, %2
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = icmp sle i32 %32, 20
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %127

35:                                               ; preds = %31
  %36 = getelementptr inbounds %class.Test, ptr %30, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = sitofp i32 %38 to float
  %40 = fmul float 5.000000e+00, %39
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef %40, float noundef 0.000000e+00, float noundef -1.000000e+02)
  %41 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %42 = load double, ptr %41, align 16
  %43 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %44 = load double, ptr %43, align 8
  %45 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %42, double %44)
  %46 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %47 = getelementptr inbounds %union.anon, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %49 = extractvalue { double, double } %45, 0
  store double %49, ptr %48, align 16
  %50 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %51 = extractvalue { double, double } %45, 1
  store double %51, ptr %50, align 8
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = sitofp i32 %52 to float
  %54 = fmul float 5.000000e+00, %53
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef %54, float noundef 0.000000e+00, float noundef 1.000000e+02)
  %55 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %56 = load double, ptr %55, align 16
  %57 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %58 = load double, ptr %57, align 8
  %59 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %56, double %58)
  %60 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %61 = getelementptr inbounds %union.anon, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %63 = extractvalue { double, double } %59, 0
  store double %63, ptr %62, align 16
  %64 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %65 = extractvalue { double, double } %59, 1
  store double %65, ptr %64, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @_ZN3JPH5Color5sBlueE, i64 4, i1 false), !tbaa.struct !20
  %66 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %67 = load double, ptr %66, align 16
  %68 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %69 = load double, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %71 = load double, ptr %70, align 16
  %72 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %73 = load double, ptr %72, align 8
  %74 = getelementptr inbounds %"class.JPH::Color", ptr %11, i32 0, i32 0
  %75 = getelementptr inbounds %union.anon.34, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 4
  %77 = load ptr, ptr %37, align 8, !tbaa !22
  %78 = getelementptr inbounds ptr, ptr %77, i64 2
  %79 = load ptr, ptr %78, align 8
  call void %79(ptr noundef nonnull align 8 dereferenceable(320) %37, double %67, double %69, double %71, double %73, i32 %76)
  %80 = getelementptr inbounds %class.Test, ptr %30, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = sitofp i32 %82 to float
  %84 = fmul float 5.000000e+00, %83
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef %84)
  %85 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %86 = load double, ptr %85, align 16
  %87 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %88 = load double, ptr %87, align 8
  %89 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %86, double %88)
  %90 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %91 = getelementptr inbounds %union.anon, ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 0
  %93 = extractvalue { double, double } %89, 0
  store double %93, ptr %92, align 16
  %94 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 1
  %95 = extractvalue { double, double } %89, 1
  store double %95, ptr %94, align 8
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = sitofp i32 %96 to float
  %98 = fmul float 5.000000e+00, %97
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 1.000000e+02, float noundef 0.000000e+00, float noundef %98)
  %99 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %100 = load double, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  %103 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %100, double %102)
  %104 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %105 = getelementptr inbounds %union.anon, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 0
  %107 = extractvalue { double, double } %103, 0
  store double %107, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 1
  %109 = extractvalue { double, double } %103, 1
  store double %109, ptr %108, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 @_ZN3JPH5Color5sBlueE, i64 4, i1 false), !tbaa.struct !20
  %110 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %111 = load double, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %115 = load double, ptr %114, align 16
  %116 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %117 = load double, ptr %116, align 8
  %118 = getelementptr inbounds %"class.JPH::Color", ptr %16, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon.34, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4
  %121 = load ptr, ptr %81, align 8, !tbaa !22
  %122 = getelementptr inbounds ptr, ptr %121, i64 2
  %123 = load ptr, ptr %122, align 8
  call void %123(ptr noundef nonnull align 8 dereferenceable(320) %81, double %111, double %113, double %115, double %117, i32 %120)
  br label %124

124:                                              ; preds = %35
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !9
  br label %31, !llvm.loop !24

127:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #6
  %128 = getelementptr inbounds %class.Test, ptr %30, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %5, i64 16, i1 false), !tbaa.struct !27
  %130 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %131 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %132 = getelementptr inbounds %union.anon, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds { double, double }, ptr %132, i32 0, i32 0
  %134 = extractvalue { double, double } %130, 0
  store double %134, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %132, i32 0, i32 1
  %136 = extractvalue { double, double } %130, 1
  store double %136, ptr %135, align 8
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %137, i32 0, i32 0
  %139 = load float, ptr %138, align 16, !tbaa !28
  %140 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %141 = load double, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %143 = load double, ptr %142, align 8
  %144 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %145 = load double, ptr %144, align 16
  %146 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %147 = load double, ptr %146, align 8
  call void @_ZZN14WaterShapeTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsEEN11MyCollectorC2EPN3JPH13PhysicsSystemENS5_4Vec3ES8_f(ptr noundef nonnull align 16 dereferenceable(68) %17, ptr noundef %129, double %141, double %143, double %145, double %147, float noundef %139)
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 1.000000e+02, float noundef 1.000000e+02, float noundef 1.000000e+02)
          to label %148 unwind label %184

148:                                              ; preds = %127
  %149 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %22)
          to label %150 unwind label %184

150:                                              ; preds = %148
  %151 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %152 = getelementptr inbounds %union.anon, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds { double, double }, ptr %152, i32 0, i32 0
  %154 = extractvalue { double, double } %149, 0
  store double %154, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %152, i32 0, i32 1
  %156 = extractvalue { double, double } %149, 1
  store double %156, ptr %155, align 8
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef 1.000000e+02, float noundef 0.000000e+00, float noundef 1.000000e+02)
          to label %157 unwind label %184

157:                                              ; preds = %150
  %158 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %159 = load double, ptr %158, align 16
  %160 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %161 = load double, ptr %160, align 8
  %162 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %163 = load double, ptr %162, align 16
  %164 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %165 = load double, ptr %164, align 8
  invoke void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32) %20, double %159, double %161, double %163, double %165)
          to label %166 unwind label %184

166:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %5, i64 16, i1 false), !tbaa.struct !27
  %167 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %168 = load double, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %170 = load double, ptr %169, align 8
  invoke void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %20, double %168, double %170)
          to label %171 unwind label %188

171:                                              ; preds = %166
  %172 = getelementptr inbounds %class.Test, ptr %30, i32 0, i32 2
  %173 = load ptr, ptr %172, align 8, !tbaa !26
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH13PhysicsSystem18GetBroadPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172) %173)
          to label %175 unwind label %188

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %28, ptr align 1 @_ZN16BroadPhaseLayersL6MOVINGE, i64 1, i1 false), !tbaa.struct !32
  %176 = getelementptr inbounds %"class.JPH::BroadPhaseLayer", ptr %28, i32 0, i32 0
  %177 = load i8, ptr %176, align 1
  invoke void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9) %27, i8 %177)
          to label %178 unwind label %192

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  invoke void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10) %29, i16 noundef zeroext 1)
          to label %179 unwind label %196

179:                                              ; preds = %178
  %180 = load ptr, ptr %174, align 8, !tbaa !22
  %181 = getelementptr inbounds ptr, ptr %180, i64 3
  %182 = load ptr, ptr %181, align 8
  invoke void %182(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull align 16 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %183 unwind label %200

183:                                              ; preds = %179
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @_ZN3JPH18CollisionCollectorINS_6BodyIDENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(68) %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  ret void

184:                                              ; preds = %157, %150, %148, %127
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %23, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %206

188:                                              ; preds = %171, %166
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %23, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %24, align 4
  br label %206

192:                                              ; preds = %175
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %23, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %24, align 4
  br label %205

196:                                              ; preds = %178
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %23, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %24, align 4
  br label %204

200:                                              ; preds = %179
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %23, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %24, align 4
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %29) #6
  br label %204

204:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %27) #6
  br label %205

205:                                              ; preds = %204, %192
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %206

206:                                              ; preds = %205, %188, %184
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @_ZN3JPH18CollisionCollectorINS_6BodyIDENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(68) %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %23, align 8
  %209 = load i32, ptr %24, align 4
  %210 = insertvalue { ptr, i32 } poison, ptr %208, 0
  %211 = insertvalue { ptr, i32 } %210, i32 %209, 1
  resume { ptr, i32 } %211
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN14WaterShapeTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsEEN11MyCollectorC2EPN3JPH13PhysicsSystemENS5_4Vec3ES8_f(ptr noundef nonnull align 16 dereferenceable(68), ptr noundef, double, double, double, double, float noundef) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH13PhysicsSystem18GetBroadPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9), i8) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10), i16 noundef zeroext) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_6BodyIDENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !15, i64 0}
!15 = !{!"_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, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{i64 0, i64 4, !21}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !6, i64 16}
!27 = !{i64 0, i64 16, !21}
!28 = !{!29, !19, i64 0}
!29 = !{!"_ZTSN4Test15PreUpdateParamsE", !19, i64 0, !30, i64 16}
!30 = !{!"_ZTS11CameraState", !31, i64 0, !31, i64 16, !31, i64 32, !19, i64 48}
!31 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!32 = !{i64 0, i64 1, !21}


; 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::Color" = type { %union.anon.34 }
%union.anon.34 = type { i32 }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.MyCollector = type <{ %"class.JPH::CollisionCollector", ptr, %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::SpecifiedBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", %"class.JPH::BroadPhaseLayer", [7 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::SpecifiedObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }

@_ZN3JPH5Color5sBlueE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN16BroadPhaseLayersL6MOVINGE = external hidden local_unnamed_addr constant %"class.JPH::BroadPhaseLayer", 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: 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: mustprogress uwtable
define dso_local void @_ZN14WaterShapeTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(112) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %class.MyCollector, align 16
  %9 = alloca %"class.JPH::AABox", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::SpecifiedBroadPhaseLayerFilter", align 8
  %13 = alloca %"class.JPH::SpecifiedObjectLayerFilter", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  %18 = getelementptr inbounds i8, ptr %7, i64 8
  br label %26

19:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %.sroa.06.0.copyload = load double, ptr %3, align 16
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.27.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !17
  %22 = call { double, double } @_ZN3JPH4Vec36sAxisYEv()
  %23 = extractvalue { double, double } %22, 0
  %24 = extractvalue { double, double } %22, 1
  %25 = load float, ptr %1, align 16, !tbaa !18
  call void @_ZZN14WaterShapeTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsEEN11MyCollectorC2EPN3JPH13PhysicsSystemENS5_4Vec3ES8_f(ptr noundef nonnull align 16 dereferenceable(68) %8, ptr noundef %21, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, double %23, double %24, float noundef %25)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 1.000000e+02, float noundef 1.000000e+02, float noundef 1.000000e+02)
          to label %58 unwind label %74

26:                                               ; preds = %2, %26
  %.029 = phi i32 [ -20, %2 ], [ %57, %26 ]
  %27 = load ptr, ptr %14, align 8, !tbaa !22
  %28 = sitofp i32 %.029 to float
  %29 = fmul float %28, 5.000000e+00
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %29, float noundef 0.000000e+00, float noundef -1.000000e+02)
  %30 = load double, ptr %4, align 16
  %31 = load double, ptr %15, align 8
  %32 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %30, double %31)
  %33 = extractvalue { double, double } %32, 0
  %34 = extractvalue { double, double } %32, 1
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef %29, float noundef 0.000000e+00, float noundef 1.000000e+02)
  %35 = load double, ptr %5, align 16
  %36 = load double, ptr %16, align 8
  %37 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %35, double %36)
  %38 = extractvalue { double, double } %37, 0
  %39 = extractvalue { double, double } %37, 1
  %.sroa.013.0.copyload = load i32, ptr @_ZN3JPH5Color5sBlueE, align 4, !tbaa !17
  %40 = load ptr, ptr %27, align 8, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %42 = load ptr, ptr %41, align 8
  call void %42(ptr noundef nonnull align 8 dereferenceable(320) %27, double %33, double %34, double %38, double %39, i32 %.sroa.013.0.copyload)
  %43 = load ptr, ptr %14, align 8, !tbaa !22
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef %29)
  %44 = load double, ptr %6, align 16
  %45 = load double, ptr %17, align 8
  %46 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %44, double %45)
  %47 = extractvalue { double, double } %46, 0
  %48 = extractvalue { double, double } %46, 1
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 1.000000e+02, float noundef 0.000000e+00, float noundef %29)
  %49 = load double, ptr %7, align 16
  %50 = load double, ptr %18, align 8
  %51 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %49, double %50)
  %52 = extractvalue { double, double } %51, 0
  %53 = extractvalue { double, double } %51, 1
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPH5Color5sBlueE, align 4, !tbaa !17
  %54 = load ptr, ptr %43, align 8, !tbaa !23
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load ptr, ptr %55, align 8
  call void %56(ptr noundef nonnull align 8 dereferenceable(320) %43, double %47, double %48, double %52, double %53, i32 %.sroa.08.0.copyload)
  %57 = add nsw i32 %.029, 1
  %exitcond.not = icmp eq i32 %57, 21
  br i1 %exitcond.not, label %19, label %26, !llvm.loop !25

58:                                               ; preds = %19
  %59 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
          to label %60 unwind label %74

60:                                               ; preds = %58
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 1.000000e+02, float noundef 0.000000e+00, float noundef 1.000000e+02)
          to label %61 unwind label %74

61:                                               ; preds = %60
  %62 = extractvalue { double, double } %59, 1
  %63 = extractvalue { double, double } %59, 0
  %64 = load double, ptr %11, align 16
  %65 = getelementptr inbounds i8, ptr %11, i64 8
  %66 = load double, ptr %65, align 8
  call void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32) %9, double %63, double %62, double %64, double %66)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  %.sroa.01.0.copyload = load double, ptr %3, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !17
  invoke void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %9, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload)
          to label %67 unwind label %76

67:                                               ; preds = %61
  %68 = load ptr, ptr %20, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH13PhysicsSystem18GetBroadPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172) %68)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %.sroa.0.0.copyload = load i8, ptr @_ZN16BroadPhaseLayersL6MOVINGE, align 1, !tbaa !17
  call void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9) %12, i8 %.sroa.0.0.copyload)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10) %13, i16 noundef zeroext 1)
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %70, i64 24
  %72 = load ptr, ptr %71, align 8
  invoke void %72(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %73 unwind label %78

73:                                               ; preds = %67
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN3JPH18CollisionCollectorINS_6BodyIDENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(68) %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret void

74:                                               ; preds = %60, %58, %19
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %80

76:                                               ; preds = %61
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %80

78:                                               ; preds = %67
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %80

80:                                               ; preds = %78, %76, %74
  %.pn = phi { ptr, i32 } [ %79, %78 ], [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZN3JPH18CollisionCollectorINS_6BodyIDENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(68) %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN14WaterShapeTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsEEN11MyCollectorC2EPN3JPH13PhysicsSystemENS5_4Vec3ES8_f(ptr noundef nonnull align 16 dereferenceable(68), ptr noundef, double, double, double, double, float noundef) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5AABoxC2ENS_4Vec3ES1_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH13PhysicsSystem18GetBroadPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9), i8) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10), i16 noundef zeroext) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_6BodyIDENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 = { 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 = { 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 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_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", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !16, i64 0}
!19 = !{!"_ZTSN4Test15PreUpdateParamsE", !16, i64 0, !20, i64 16}
!20 = !{!"_ZTS11CameraState", !21, i64 0, !21, i64 16, !21, i64 32, !16, i64 48}
!21 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!22 = !{!6, !7, i64 32}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !9, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass