; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Vehicle (VehicleConstraint)

; 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::BodyID" = type { i32 }
%"class.JPH::VehicleConstraint" = type <{ %"class.JPH::Constraint", %"class.JPH::PhysicsStepListener", i8, [7 x i8], %"class.JPH::Vec3", ptr, [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Array.14", %"class.JPH::Array.2", ptr, i8, [3 x i8], i32, i32, i32, float, float, %"class.JPH::Vec3", %"class.JPH::AngleConstraintPart", %"class.JPH::RefConst", %"class.std::function", %"class.std::function.17", %"class.std::function.17", %"class.std::function.17", [8 x i8] }>
%"class.JPH::Constraint" = type { ptr, %"class.JPH::RefTarget.13", i32, i32, i8, i8, i8, i64 }
%"class.JPH::RefTarget.13" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::PhysicsStepListener" = type { ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::AngleConstraintPart" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SpringPart", float }
%"class.JPH::SpringPart" = type { float, float }
%"class.JPH::RefConst" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.17" = type { %"class.std::_Function_base", ptr }
%"class.JPH::Wheel" = type <{ ptr, %"class.JPH::RefConst.26", %"class.JPH::BodyID", %"class.JPH::SubShapeID", ptr, float, [12 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, float, float, %"class.JPH::AxisConstraintPart", %"class.JPH::AxisConstraintPart", %"class.JPH::AxisConstraintPart", %"class.JPH::AxisConstraintPart", [12 x i8] }>
%"class.JPH::RefConst.26" = type { ptr }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::AxisConstraintPart" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float3", float, %"class.JPH::SpringPart", float }
%"class.JPH::Float3" = type { float, float, float }

; 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: 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) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH17VehicleConstraint12BuildIslandsEjRNS_13IslandBuilderERNS_11BodyManagerE(ptr noundef nonnull align 16 dereferenceable(408) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef nonnull align 8 dereferenceable(297) %3) unnamed_addr #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca %"class.JPH::BodyID", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %25 = getelementptr inbounds %"class.JPH::VehicleConstraint", ptr %24, i32 0, i32 10
  %26 = call noundef i64 @_ZNK3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  %27 = add i64 %26, 1
  %28 = mul i64 %27, 4
  %29 = alloca i8, i64 %28, align 16
  store ptr %29, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %30 = getelementptr inbounds %"class.JPH::VehicleConstraint", ptr %24, i32 0, i32 10
  store ptr %30, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = call noundef ptr @_ZN3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  store ptr %32, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = call noundef ptr @_ZN3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  store ptr %34, ptr %14, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %104, %4
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp ne ptr %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %107

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %42, ptr %16, align 8, !tbaa !5
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.JPH::Wheel", ptr %43, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %100

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 0, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.JPH::Wheel", ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %50)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %51, i64 4, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %65, %47
  %53 = load i32, ptr %19, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 4, ptr %15, align 4
  br label %68

57:                                               ; preds = %52
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr %19, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %"class.JPH::BodyID", ptr %58, i64 %60
  %62 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br i1 %62, label %63, label %64

63:                                               ; preds = %57
  store i8 1, ptr %17, align 1, !tbaa !11
  store i32 4, ptr %15, align 4
  br label %68

64:                                               ; preds = %57
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %19, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %19, align 4, !tbaa !9
  br label %52, !llvm.loop !24

68:                                               ; preds = %63, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %69

69:                                               ; preds = %68
  %70 = load i8, ptr %17, align 1, !tbaa !11, !range !26, !noundef !27
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store i32 3, ptr %15, align 4
  br label %97

73:                                               ; preds = %69
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.JPH::Wheel", ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = call noundef zeroext i1 @_ZNK3JPH4Body9IsDynamicEv(ptr noundef nonnull align 16 dereferenceable(122) %76)
  br i1 %77, label %78, label %96

78:                                               ; preds = %73
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !9
  %82 = sext i32 %80 to i64
  %83 = getelementptr inbounds %"class.JPH::BodyID", ptr %79, i64 %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %18, i64 4, i1 false), !tbaa.struct !23
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.JPH::Wheel", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !13
  %87 = call noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122) %86)
  %88 = xor i1 %87, true
  %89 = zext i1 %88 to i32
  %90 = load i8, ptr %11, align 1, !tbaa !11, !range !26, !noundef !27
  %91 = trunc i8 %90 to i1
  %92 = zext i1 %91 to i32
  %93 = or i32 %92, %89
  %94 = icmp ne i32 %93, 0
  %95 = zext i1 %94 to i8
  store i8 %95, ptr %11, align 1, !tbaa !11
  br label %96

96:                                               ; preds = %78, %73
  store i32 0, ptr %15, align 4
  br label %97

97:                                               ; preds = %96, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  %98 = load i32, ptr %15, align 4
  switch i32 %98, label %101 [
    i32 0, label %99
  ]

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99, %40
  store i32 0, ptr %15, align 4
  br label %101

101:                                              ; preds = %100, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %102 = load i32, ptr %15, align 4
  switch i32 %102, label %164 [
    i32 0, label %103
    i32 3, label %104
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %101
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds ptr, ptr %105, i32 1
  store ptr %106, ptr %13, align 8, !tbaa !5
  br label %35

107:                                              ; preds = %39
  %108 = getelementptr inbounds %"class.JPH::VehicleConstraint", ptr %24, i32 0, i32 5
  %109 = load ptr, ptr %108, align 16, !tbaa !28
  %110 = call noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122) %109)
  br i1 %110, label %123, label %111

111:                                              ; preds = %107
  %112 = getelementptr inbounds %"class.JPH::VehicleConstraint", ptr %24, i32 0, i32 5
  %113 = load ptr, ptr %112, align 16, !tbaa !28
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %113)
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %"class.JPH::BodyID", ptr %115, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %118, ptr align 4 %114, i64 4, i1 false), !tbaa.struct !23
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  call void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297) %119, ptr noundef %120, i32 noundef %122)
  br label %131

123:                                              ; preds = %107
  %124 = load i8, ptr %11, align 1, !tbaa !11, !range !26, !noundef !27
  %125 = trunc i8 %124 to i1
  br i1 %125, label %126, label %130

126:                                              ; preds = %123
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297) %127, ptr noundef %128, i32 noundef %129)
  br label %130

130:                                              ; preds = %126, %123
  br label %131

131:                                              ; preds = %130, %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 -1, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %154, %131
  %133 = load i32, ptr %21, align 4, !tbaa !9
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 7, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %157

137:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i32, ptr %21, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %"class.JPH::BodyID", ptr %139, i64 %141
  %143 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %138, ptr noundef nonnull align 4 dereferenceable(4) %142)
  store ptr %143, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %144 = load ptr, ptr %22, align 8, !tbaa !5
  %145 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %144)
  store i32 %145, ptr %23, align 4, !tbaa !9
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %147 = load i32, ptr %146, align 4, !tbaa !9
  store i32 %147, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %"class.JPH::VehicleConstraint", ptr %24, i32 0, i32 5
  %150 = load ptr, ptr %149, align 16, !tbaa !28
  %151 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %150)
  %152 = load ptr, ptr %22, align 8, !tbaa !5
  %153 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %152)
  call void @_ZN3JPH13IslandBuilder10LinkBodiesEjj(ptr noundef nonnull align 8 dereferenceable(112) %148, i32 noundef %151, i32 noundef %153)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %154

154:                                              ; preds = %137
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %21, align 4, !tbaa !9
  br label %132, !llvm.loop !43

157:                                              ; preds = %136
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = getelementptr inbounds %"class.JPH::VehicleConstraint", ptr %24, i32 0, i32 5
  %161 = load ptr, ptr %160, align 16, !tbaa !28
  %162 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %161)
  %163 = load i32, ptr %20, align 4, !tbaa !9
  call void @_ZN3JPH13IslandBuilder14LinkConstraintEjjj(ptr noundef nonnull align 8 dereferenceable(112) %158, i32 noundef %159, i32 noundef %162, i32 noundef %163)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

164:                                              ; preds = %101
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body9IsDynamicEv(ptr noundef nonnull align 16 dereferenceable(122)) #2 align 2

declare void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122)) #5 align 2

declare void @_ZN3JPH13IslandBuilder10LinkBodiesEjj(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, i32 noundef) #4

declare void @_ZN3JPH13IslandBuilder14LinkConstraintEjjj(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"_ZTSN3JPH5WheelE", !15, i64 8, !16, i64 16, !17, i64 20, !6, i64 24, !18, i64 32, !19, i64 48, !19, i64 64, !19, i64 80, !19, i64 96, !19, i64 112, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !20, i64 148, !20, i64 212, !20, i64 276, !20, i64 340}
!15 = !{!"_ZTSN3JPH8RefConstINS_13WheelSettingsEEE", !6, i64 0}
!16 = !{!"_ZTSN3JPH6BodyIDE", !10, i64 0}
!17 = !{!"_ZTSN3JPH10SubShapeIDE", !10, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!20 = !{!"_ZTSN3JPH18AxisConstraintPartE", !21, i64 0, !21, i64 12, !21, i64 24, !21, i64 36, !18, i64 48, !22, i64 52, !18, i64 60}
!21 = !{!"_ZTSN3JPH6Float3E", !18, i64 0, !18, i64 4, !18, i64 8}
!22 = !{!"_ZTSN3JPH10SpringPartE", !18, i64 0, !18, i64 4}
!23 = !{i64 0, i64 4, !9}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !6, i64 64}
!29 = !{!"_ZTSN3JPH17VehicleConstraintE", !30, i64 0, !35, i64 32, !12, i64 40, !19, i64 48, !6, i64 64, !19, i64 80, !19, i64 96, !19, i64 112, !36, i64 128, !37, i64 152, !6, i64 176, !12, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !18, i64 200, !18, i64 204, !19, i64 208, !38, i64 224, !39, i64 272, !40, i64 280, !42, i64 312, !42, i64 344, !42, i64 376}
!30 = !{!"_ZTSN3JPH10ConstraintE", !31, i64 8, !10, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !12, i64 22, !34, i64 24}
!31 = !{!"_ZTSN3JPH9RefTargetINS_10ConstraintEEE", !32, i64 0}
!32 = !{!"_ZTSSt6atomicIjE", !33, i64 0}
!33 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSN3JPH19PhysicsStepListenerE"}
!36 = !{!"_ZTSN3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEEE", !34, i64 0, !34, i64 8, !6, i64 16}
!37 = !{!"_ZTSN3JPH5ArrayINS_18VehicleAntiRollBarENS_12STLAllocatorIS1_EEEE", !34, i64 0, !34, i64 8, !6, i64 16}
!38 = !{!"_ZTSN3JPH19AngleConstraintPartE", !19, i64 0, !19, i64 16, !18, i64 32, !22, i64 36, !18, i64 44}
!39 = !{!"_ZTSN3JPH8RefConstINS_22VehicleCollisionTesterEEE", !6, i64 0}
!40 = !{!"_ZTSSt8functionIFvjRfS0_RKN3JPH4BodyERKNS1_10SubShapeIDEEE", !41, i64 0, !6, i64 24}
!41 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!42 = !{!"_ZTSSt8functionIFvRN3JPH17VehicleConstraintERKNS0_26PhysicsStepListenerContextEEE", !41, i64 0, !6, i64 24}
!43 = distinct !{!43, !25}


; 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::BodyID" = type { i32 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH17VehicleConstraint12BuildIslandsEjRNS_13IslandBuilderERNS_11BodyManagerE(ptr noundef nonnull align 16 dereferenceable(408) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef nonnull align 8 dereferenceable(297) %3) unnamed_addr #2 align 2 {
  %5 = alloca %"class.JPH::BodyID", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 128
  %9 = tail call noundef i64 @_ZNK3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = shl i64 %9, 2
  %11 = add i64 %10, 4
  %12 = alloca i8, i64 %11, align 16
  %13 = tail call noundef ptr @_ZN3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %14 = tail call noundef ptr @_ZN3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not54 = icmp eq ptr %13, %14
  br i1 %.not54, label %._crit_edge.thread, label %.lr.ph58

._crit_edge:                                      ; preds = %41
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  %16 = load ptr, ptr %15, align 16, !tbaa !5
  %17 = call noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122) %16)
  br i1 %17, label %51, label %43

._crit_edge.thread:                               ; preds = %4
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = load ptr, ptr %18, align 16, !tbaa !5
  %20 = tail call noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122) %19)
  br i1 %20, label %.thread78, label %43

.thread78:                                        ; preds = %._crit_edge.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 -1, ptr %6, align 4, !tbaa !28
  br label %._crit_edge63

.lr.ph58:                                         ; preds = %4, %41
  %.057 = phi i32 [ %.4, %41 ], [ 0, %4 ]
  %.04356 = phi i1 [ %.447, %41 ], [ false, %4 ]
  %.04955 = phi ptr [ %42, %41 ], [ %13, %4 ]
  %21 = load ptr, ptr %.04955, align 8, !tbaa !29
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !30
  %.not50 = icmp eq ptr %23, null
  br i1 %.not50, label %41, label %24

24:                                               ; preds = %.lr.ph58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %23)
  %26 = load i32, ptr %25, align 4, !tbaa !28
  store i32 %26, ptr %5, align 4, !tbaa !28
  %.not5152 = icmp sgt i32 %.057, 0
  br i1 %.not5152, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %24
  %wide.trip.count = zext nneg i32 %.057 to i64
  br label %.lr.ph

27:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !37

.lr.ph:                                           ; preds = %.lr.ph.preheader, %27
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %27 ]
  %28 = getelementptr inbounds %"class.JPH::BodyID", ptr %12, i64 %indvars.iv
  %29 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %29, label %.loopexit, label %27

.critedge:                                        ; preds = %27, %24
  %30 = load ptr, ptr %22, align 8, !tbaa !30
  %31 = call noundef zeroext i1 @_ZNK3JPH4Body9IsDynamicEv(ptr noundef nonnull align 16 dereferenceable(122) %30)
  br i1 %31, label %32, label %.loopexit

32:                                               ; preds = %.critedge
  %33 = add nsw i32 %.057, 1
  %34 = sext i32 %.057 to i64
  %35 = getelementptr inbounds %"class.JPH::BodyID", ptr %12, i64 %34
  %36 = load i32, ptr %5, align 4, !tbaa !28
  store i32 %36, ptr %35, align 4, !tbaa !28
  %37 = load ptr, ptr %22, align 8, !tbaa !30
  %38 = call noundef zeroext i1 @_ZNK3JPH4Body8IsActiveEv(ptr noundef nonnull align 16 dereferenceable(122) %37)
  %39 = xor i1 %38, true
  %40 = or i1 %.04356, %39
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.critedge, %32
  %.245 = phi i1 [ %40, %32 ], [ %.04356, %.critedge ], [ %.04356, %.lr.ph ]
  %.2 = phi i32 [ %33, %32 ], [ %.057, %.critedge ], [ %.057, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %41

41:                                               ; preds = %.loopexit, %.lr.ph58
  %.447 = phi i1 [ %.245, %.loopexit ], [ %.04356, %.lr.ph58 ]
  %.4 = phi i32 [ %.2, %.loopexit ], [ %.057, %.lr.ph58 ]
  %42 = getelementptr inbounds i8, ptr %.04955, i64 8
  %.not = icmp eq ptr %42, %14
  br i1 %.not, label %._crit_edge, label %.lr.ph58

43:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %44 = phi ptr [ %18, %._crit_edge.thread ], [ %15, %._crit_edge ]
  %.0.lcssa73 = phi i32 [ 0, %._crit_edge.thread ], [ %.4, %._crit_edge ]
  %45 = load ptr, ptr %44, align 16, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %45)
  %47 = sext i32 %.0.lcssa73 to i64
  %48 = getelementptr inbounds %"class.JPH::BodyID", ptr %12, i64 %47
  %49 = load i32, ptr %46, align 4, !tbaa !28
  store i32 %49, ptr %48, align 4, !tbaa !28
  %50 = add nsw i32 %.0.lcssa73, 1
  br label %.sink.split

51:                                               ; preds = %._crit_edge
  br i1 %.447, label %.sink.split, label %52

.sink.split:                                      ; preds = %51, %43
  %.4.lcssa.sink = phi i32 [ %50, %43 ], [ %.4, %51 ]
  %.ph = phi ptr [ %44, %43 ], [ %15, %51 ]
  %.0.lcssa75.ph = phi i32 [ %.0.lcssa73, %43 ], [ %.4, %51 ]
  call void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297) %3, ptr noundef nonnull %12, i32 noundef %.4.lcssa.sink)
  br label %52

52:                                               ; preds = %.sink.split, %51
  %53 = phi ptr [ %15, %51 ], [ %.ph, %.sink.split ]
  %.0.lcssa75 = phi i32 [ %.4, %51 ], [ %.0.lcssa75.ph, %.sink.split ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 -1, ptr %6, align 4, !tbaa !28
  %54 = icmp sgt i32 %.0.lcssa75, 0
  br i1 %54, label %.lr.ph62.preheader, label %._crit_edge63

.lr.ph62.preheader:                               ; preds = %52
  %wide.trip.count68 = zext nneg i32 %.0.lcssa75 to i64
  br label %.lr.ph62

._crit_edge63:                                    ; preds = %.lr.ph62, %.thread78, %52
  %55 = phi ptr [ %18, %.thread78 ], [ %53, %52 ], [ %53, %.lr.ph62 ]
  %56 = load ptr, ptr %55, align 16, !tbaa !5
  %57 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %56)
  %58 = load i32, ptr %6, align 4, !tbaa !28
  call void @_ZN3JPH13IslandBuilder14LinkConstraintEjjj(ptr noundef nonnull align 8 dereferenceable(112) %2, i32 noundef %1, i32 noundef %57, i32 noundef %58)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  ret void

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %.lr.ph62
  %indvars.iv65 = phi i64 [ 0, %.lr.ph62.preheader ], [ %indvars.iv.next66, %.lr.ph62 ]
  %59 = getelementptr inbounds %"class.JPH::BodyID", ptr %12, i64 %indvars.iv65
  %60 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297) %3, ptr noundef nonnull align 4 dereferenceable(4) %59)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %61 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %60)
  store i32 %61, ptr %7, align 4, !tbaa !28
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %63 = load i32, ptr %62, align 4, !tbaa !28
  store i32 %63, ptr %6, align 4, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  %64 = load ptr, ptr %53, align 16, !tbaa !5
  %65 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %64)
  %66 = call noundef i32 @_ZNK3JPH4Body30GetIndexInActiveBodiesInternalEv(ptr noundef nonnull align 16 dereferenceable(122) %60)
  call void @_ZN3JPH13IslandBuilder10LinkBodiesEjj(ptr noundef nonnull align 8 dereferenceable(112) %2, i32 noundef %65, i32 noundef %66)
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count68
  br i1 %exitcond69.not, label %._crit_edge63, label %.lr.ph62, !llvm.loop !39
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body9IsDynamicEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

declare void @_ZN3JPH11BodyManager14ActivateBodiesEPKNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(122) ptr @_ZN3JPH11BodyManager7GetBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(297), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

declare void @_ZN3JPH13IslandBuilder10LinkBodiesEjj(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN3JPH13IslandBuilder14LinkConstraintEjjj(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !18, i64 64}
!6 = !{!"_ZTSN3JPH17VehicleConstraintE", !7, i64 0, !16, i64 32, !14, i64 40, !17, i64 48, !18, i64 64, !17, i64 80, !17, i64 96, !17, i64 112, !19, i64 128, !20, i64 152, !18, i64 176, !14, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !21, i64 200, !21, i64 204, !17, i64 208, !22, i64 224, !24, i64 272, !25, i64 280, !27, i64 312, !27, i64 344, !27, i64 376}
!7 = !{!"_ZTSN3JPH10ConstraintE", !8, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 21, !14, i64 22, !15, i64 24}
!8 = !{!"_ZTSN3JPH9RefTargetINS_10ConstraintEEE", !9, i64 0}
!9 = !{!"_ZTSSt6atomicIjE", !10, i64 0}
!10 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"long", !12, i64 0}
!16 = !{!"_ZTSN3JPH19PhysicsStepListenerE"}
!17 = !{!"_ZTSN3JPH4Vec3E", !12, i64 0}
!18 = !{!"any pointer", !12, i64 0}
!19 = !{!"_ZTSN3JPH5ArrayIPNS_5WheelENS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !18, i64 16}
!20 = !{!"_ZTSN3JPH5ArrayINS_18VehicleAntiRollBarENS_12STLAllocatorIS1_EEEE", !15, i64 0, !15, i64 8, !18, i64 16}
!21 = !{!"float", !12, i64 0}
!22 = !{!"_ZTSN3JPH19AngleConstraintPartE", !17, i64 0, !17, i64 16, !21, i64 32, !23, i64 36, !21, i64 44}
!23 = !{!"_ZTSN3JPH10SpringPartE", !21, i64 0, !21, i64 4}
!24 = !{!"_ZTSN3JPH8RefConstINS_22VehicleCollisionTesterEEE", !18, i64 0}
!25 = !{!"_ZTSSt8functionIFvjRfS0_RKN3JPH4BodyERKNS1_10SubShapeIDEEE", !26, i64 0, !18, i64 24}
!26 = !{!"_ZTSSt14_Function_base", !12, i64 0, !18, i64 16}
!27 = !{!"_ZTSSt8functionIFvRN3JPH17VehicleConstraintERKNS0_26PhysicsStepListenerContextEEE", !26, i64 0, !18, i64 24}
!28 = !{!11, !11, i64 0}
!29 = !{!18, !18, i64 0}
!30 = !{!31, !18, i64 24}
!31 = !{!"_ZTSN3JPH5WheelE", !32, i64 8, !33, i64 16, !34, i64 20, !18, i64 24, !21, i64 32, !17, i64 48, !17, i64 64, !17, i64 80, !17, i64 96, !17, i64 112, !21, i64 128, !21, i64 132, !21, i64 136, !21, i64 140, !21, i64 144, !35, i64 148, !35, i64 212, !35, i64 276, !35, i64 340}
!32 = !{!"_ZTSN3JPH8RefConstINS_13WheelSettingsEEE", !18, i64 0}
!33 = !{!"_ZTSN3JPH6BodyIDE", !11, i64 0}
!34 = !{!"_ZTSN3JPH10SubShapeIDE", !11, i64 0}
!35 = !{!"_ZTSN3JPH18AxisConstraintPartE", !36, i64 0, !36, i64 12, !36, i64 24, !36, i64 36, !21, i64 48, !23, i64 52, !21, i64 60}
!36 = !{!"_ZTSN3JPH6Float3E", !21, i64 0, !21, i64 4, !21, i64 8}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass