; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/PhysicsScene.ll (ZNK3JPH12PhysicsScene12CreateBodiesEPNS_13PhysicsSystemE)

; 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::Array.28" = type { i64, i64, ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::PhysicsScene" = type { %"class.JPH::RefTarget", %"class.JPH::Array", %"class.JPH::Array.6", %"class.JPH::Array.9" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.6" = type { i64, i64, ptr }
%"class.JPH::Array.9" = type { i64, i64, ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst.14" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst.14" = type { ptr }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.16", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.16" = type { ptr }
%"class.JPH::PhysicsScene::ConnectedConstraint" = type { %"class.JPH::RefConst.15", i32, i32 }
%"class.JPH::RefConst.15" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH12PhysicsScene12CreateBodiesEPNS_13PhysicsSystemE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::Array.28", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.JPH::Array.28", align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.JPH::BodyID", align 4
  %28 = alloca %"class.JPH::BodyID", align 4
  %29 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1172) %31)
  store ptr %32, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %33 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 1
  %34 = invoke noundef i64 @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %35 unwind label %53

35:                                               ; preds = %2
  %36 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 3
  %37 = invoke noundef i64 @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %38 unwind label %53

38:                                               ; preds = %35
  %39 = add i64 %34, %37
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %39)
          to label %40 unwind label %53

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %41 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 1
  store ptr %41, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = invoke noundef ptr @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %44 unwind label %57

44:                                               ; preds = %40
  store ptr %43, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = invoke noundef ptr @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %47 unwind label %61

47:                                               ; preds = %44
  store ptr %46, ptr %12, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %89, %47
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = icmp ne ptr %49, %50
  br i1 %51, label %65, label %52

52:                                               ; preds = %48
  store i32 2, ptr %13, align 4
  br label %92

53:                                               ; preds = %38, %35, %2
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %8, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %9, align 4
  br label %268

57:                                               ; preds = %40
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  br label %94

61:                                               ; preds = %44
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  br label %93

65:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %66, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 16 dereferenceable(256) %68)
          to label %70 unwind label %74

70:                                               ; preds = %65
  store ptr %69, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %78

73:                                               ; preds = %70
  store i32 2, ptr %13, align 4
  br label %83

74:                                               ; preds = %81, %78, %65
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %8, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %93

78:                                               ; preds = %70
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %79)
          to label %81 unwind label %74

81:                                               ; preds = %78
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %80)
          to label %82 unwind label %74

82:                                               ; preds = %81
  store i32 0, ptr %13, align 4
  br label %83

83:                                               ; preds = %82, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %84 = load i32, ptr %13, align 4
  switch i32 %84, label %86 [
    i32 0, label %85
  ]

85:                                               ; preds = %83
  store i32 0, ptr %13, align 4
  br label %86

86:                                               ; preds = %85, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %87 = load i32, ptr %13, align 4
  switch i32 %87, label %92 [
    i32 0, label %88
  ]

88:                                               ; preds = %86
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.JPH::BodyCreationSettings", ptr %90, i32 1
  store ptr %91, ptr %11, align 8, !tbaa !5
  br label %48

92:                                               ; preds = %86, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %95

93:                                               ; preds = %74, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %94

94:                                               ; preds = %93, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %268

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %96 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 3
  store ptr %96, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = invoke noundef ptr @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %97)
          to label %99 unwind label %108

99:                                               ; preds = %95
  store ptr %98, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = invoke noundef ptr @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %100)
          to label %102 unwind label %112

102:                                              ; preds = %99
  store ptr %101, ptr %18, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %140, %102
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = icmp ne ptr %104, %105
  br i1 %106, label %116, label %107

107:                                              ; preds = %103
  store i32 4, ptr %13, align 4
  br label %143

108:                                              ; preds = %95
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  br label %145

112:                                              ; preds = %99
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %8, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %9, align 4
  br label %144

116:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %117, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = invoke noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 16 dereferenceable(111) %119)
          to label %121 unwind label %125

121:                                              ; preds = %116
  store ptr %120, ptr %20, align 8, !tbaa !5
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  store i32 4, ptr %13, align 4
  br label %134

125:                                              ; preds = %132, %129, %116
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %8, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %144

129:                                              ; preds = %121
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %130)
          to label %132 unwind label %125

132:                                              ; preds = %129
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %131)
          to label %133 unwind label %125

133:                                              ; preds = %132
  store i32 0, ptr %13, align 4
  br label %134

134:                                              ; preds = %133, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %135 = load i32, ptr %13, align 4
  switch i32 %135, label %137 [
    i32 0, label %136
  ]

136:                                              ; preds = %134
  store i32 0, ptr %13, align 4
  br label %137

137:                                              ; preds = %136, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %138 = load i32, ptr %13, align 4
  switch i32 %138, label %143 [
    i32 0, label %139
  ]

139:                                              ; preds = %137
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %141, i32 1
  store ptr %142, ptr %17, align 8, !tbaa !5
  br label %103

143:                                              ; preds = %137, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %146

144:                                              ; preds = %125, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %145

145:                                              ; preds = %144, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %268

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %147 unwind label %175

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = invoke noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %150 unwind label %179

150:                                              ; preds = %147
  %151 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %152 unwind label %179

152:                                              ; preds = %150
  %153 = trunc i64 %151 to i32
  %154 = invoke noundef ptr @_ZN3JPH13BodyInterface16AddBodiesPrepareEPNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef %149, i32 noundef %153)
          to label %155 unwind label %179

155:                                              ; preds = %152
  store ptr %154, ptr %22, align 8, !tbaa !5
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = invoke noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %158 unwind label %179

158:                                              ; preds = %155
  %159 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %160 unwind label %179

160:                                              ; preds = %158
  %161 = trunc i64 %159 to i32
  %162 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN3JPH13BodyInterface17AddBodiesFinalizeEPNS_6BodyIDEiPvNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef %157, i32 noundef %161, ptr noundef %162, i32 noundef 0)
          to label %163 unwind label %179

163:                                              ; preds = %160
  %164 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %165 unwind label %179

165:                                              ; preds = %163
  %166 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 1
  %167 = invoke noundef i64 @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %168 unwind label %179

168:                                              ; preds = %165
  %169 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 3
  %170 = invoke noundef i64 @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %169)
          to label %171 unwind label %179

171:                                              ; preds = %168
  %172 = add i64 %167, %170
  %173 = icmp ne i64 %164, %172
  br i1 %173, label %174, label %183

174:                                              ; preds = %171
  store i1 false, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %264

175:                                              ; preds = %146
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %8, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %9, align 4
  br label %267

179:                                              ; preds = %168, %165, %163, %160, %158, %155, %152, %150, %147
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %8, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %9, align 4
  br label %266

183:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %184 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %30, i32 0, i32 2
  store ptr %184, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = invoke noundef ptr @_ZNK3JPH5ArrayINS_12PhysicsScene19ConnectedConstraintENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %185)
          to label %187 unwind label %196

187:                                              ; preds = %183
  store ptr %186, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %188 = load ptr, ptr %23, align 8, !tbaa !5
  %189 = invoke noundef ptr @_ZNK3JPH5ArrayINS_12PhysicsScene19ConnectedConstraintENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %188)
          to label %190 unwind label %200

190:                                              ; preds = %187
  store ptr %189, ptr %25, align 8, !tbaa !5
  br label %191

191:                                              ; preds = %244, %190
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = load ptr, ptr %25, align 8, !tbaa !5
  %194 = icmp ne ptr %192, %193
  br i1 %194, label %204, label %195

195:                                              ; preds = %191
  store i32 6, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %263

196:                                              ; preds = %183
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %8, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %9, align 4
  br label %262

200:                                              ; preds = %187
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %8, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %9, align 4
  br label %261

204:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %205 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %205, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %206 = load ptr, ptr %26, align 8, !tbaa !5
  %207 = getelementptr inbounds %"class.JPH::PhysicsScene::ConnectedConstraint", ptr %206, i32 0, i32 1
  %208 = load i32, ptr %207, align 8, !tbaa !9
  %209 = icmp eq i32 %208, -1
  br i1 %209, label %210, label %212

210:                                              ; preds = %204
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %211 unwind label %247

211:                                              ; preds = %210
  br label %219

212:                                              ; preds = %204
  %213 = load ptr, ptr %26, align 8, !tbaa !5
  %214 = getelementptr inbounds %"class.JPH::PhysicsScene::ConnectedConstraint", ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 8, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %216)
          to label %218 unwind label %247

218:                                              ; preds = %212
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %217, i64 4, i1 false), !tbaa.struct !13
  br label %219

219:                                              ; preds = %218, %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %220 = load ptr, ptr %26, align 8, !tbaa !5
  %221 = getelementptr inbounds %"class.JPH::PhysicsScene::ConnectedConstraint", ptr %220, i32 0, i32 2
  %222 = load i32, ptr %221, align 4, !tbaa !15
  %223 = icmp eq i32 %222, -1
  br i1 %223, label %224, label %226

224:                                              ; preds = %219
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %225 unwind label %251

225:                                              ; preds = %224
  br label %233

226:                                              ; preds = %219
  %227 = load ptr, ptr %26, align 8, !tbaa !5
  %228 = getelementptr inbounds %"class.JPH::PhysicsScene::ConnectedConstraint", ptr %227, i32 0, i32 2
  %229 = load i32, ptr %228, align 4, !tbaa !15
  %230 = zext i32 %229 to i64
  %231 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %230)
          to label %232 unwind label %251

232:                                              ; preds = %226
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %231, i64 4, i1 false), !tbaa.struct !13
  br label %233

233:                                              ; preds = %232, %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = load ptr, ptr %26, align 8, !tbaa !5
  %236 = getelementptr inbounds %"class.JPH::PhysicsScene::ConnectedConstraint", ptr %235, i32 0, i32 0
  %237 = invoke noundef ptr @_ZNK3JPH8RefConstINS_25TwoBodyConstraintSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %236)
          to label %238 unwind label %255

238:                                              ; preds = %233
  %239 = invoke noundef ptr @_ZN3JPH13BodyInterface16CreateConstraintEPKNS_25TwoBodyConstraintSettingsERKNS_6BodyIDES6_(ptr noundef nonnull align 8 dereferenceable(24) %234, ptr noundef %237, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %240 unwind label %255

240:                                              ; preds = %238
  store ptr %239, ptr %29, align 8, !tbaa !5
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %241, ptr noundef %242)
          to label %243 unwind label %255

243:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %244

244:                                              ; preds = %243
  %245 = load ptr, ptr %24, align 8, !tbaa !5
  %246 = getelementptr inbounds %"class.JPH::PhysicsScene::ConnectedConstraint", ptr %245, i32 1
  store ptr %246, ptr %24, align 8, !tbaa !5
  br label %191

247:                                              ; preds = %212, %210
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %8, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %9, align 4
  br label %260

251:                                              ; preds = %226, %224
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %8, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %9, align 4
  br label %259

255:                                              ; preds = %240, %238, %233
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %8, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %259

259:                                              ; preds = %255, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %260

260:                                              ; preds = %259, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %261

261:                                              ; preds = %260, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %262

262:                                              ; preds = %261, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %266

263:                                              ; preds = %195
  store i1 true, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %264

264:                                              ; preds = %263, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %265 = load i1, ptr %3, align 1
  ret i1 %265

266:                                              ; preds = %262, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %267

267:                                              ; preds = %266, %175
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %268

268:                                              ; preds = %267, %145, %94, %53
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr %8, align 8
  %271 = load i32, ptr %9, align 4
  %272 = insertvalue { ptr, i32 } poison, ptr %270, 0
  %273 = insertvalue { ptr, i32 } %272, i32 %271, 1
  resume { ptr, i32 } %273
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

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

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

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

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4 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)) #5 align 2

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

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

declare noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(111)) #6

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

declare noundef ptr @_ZN3JPH13BodyInterface16AddBodiesPrepareEPNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef) #6

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

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

declare void @_ZN3JPH13BodyInterface17AddBodiesFinalizeEPNS_6BodyIDEiPvNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef, i32 noundef) #6

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

declare noundef ptr @_ZN3JPH13BodyInterface16CreateConstraintEPKNS_25TwoBodyConstraintSettingsERKNS_6BodyIDES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { 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 #6 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTSN3JPH12PhysicsScene19ConnectedConstraintE", !11, i64 0, !12, i64 8, !12, i64 12}
!11 = !{!"_ZTSN3JPH8RefConstINS_25TwoBodyConstraintSettingsEEE", !6, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 12}


; 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::Array.28" = type { i64, i64, ptr }
%"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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH12PhysicsScene12CreateBodiesEPNS_13PhysicsSystemE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Array.28", align 8
  %4 = alloca %"class.JPH::Array.28", align 8
  %5 = alloca %"class.JPH::BodyID", align 4
  %6 = alloca %"class.JPH::BodyID", align 4
  %7 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH13PhysicsSystem16GetBodyInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1172) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = call noundef i64 @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = call noundef i64 @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = add i64 %11, %9
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %12)
          to label %13 unwind label %16

13:                                               ; preds = %2
  %14 = call noundef ptr @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %15 = call noundef ptr @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not76 = icmp eq ptr %14, %15
  br i1 %.not76, label %.critedge, label %.lr.ph

16:                                               ; preds = %2
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %93

.lr.ph:                                           ; preds = %13, %24
  %.05677 = phi ptr [ %25, %24 ], [ %14, %13 ]
  %18 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(256) %.05677)
          to label %19 unwind label %20

19:                                               ; preds = %.lr.ph
  %.not64 = icmp eq ptr %18, null
  br i1 %.not64, label %.critedge, label %22

20:                                               ; preds = %22, %.lr.ph
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %93

22:                                               ; preds = %19
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %18)
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %24 unwind label %20

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %.05677, i64 256
  %.not = icmp eq ptr %25, %15
  br i1 %.not, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %24, %19, %13
  %26 = call noundef ptr @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %27 = call noundef ptr @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not6579 = icmp eq ptr %26, %27
  br i1 %.not6579, label %.critedge75, label %.lr.ph81

.lr.ph81:                                         ; preds = %.critedge, %34
  %.05980 = phi ptr [ %35, %34 ], [ %26, %.critedge ]
  %28 = invoke noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(111) %.05980)
          to label %29 unwind label %30

29:                                               ; preds = %.lr.ph81
  %.not66 = icmp eq ptr %28, null
  br i1 %.not66, label %.critedge75, label %32

30:                                               ; preds = %32, %.lr.ph81
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %93

32:                                               ; preds = %29
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %28)
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %34 unwind label %30

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %.05980, i64 112
  %.not65 = icmp eq ptr %35, %27
  br i1 %.not65, label %.critedge75, label %.lr.ph81

.critedge75:                                      ; preds = %34, %29, %.critedge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %36 unwind label %50

36:                                               ; preds = %.critedge75
  %37 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %38 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %39 = trunc i64 %38 to i32
  %40 = invoke noundef ptr @_ZN3JPH13BodyInterface16AddBodiesPrepareEPNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %37, i32 noundef %39)
          to label %41 unwind label %52

41:                                               ; preds = %36
  %42 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %43 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %44 = trunc i64 %43 to i32
  invoke void @_ZN3JPH13BodyInterface17AddBodiesFinalizeEPNS_6BodyIDEiPvNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %42, i32 noundef %44, ptr noundef %40, i32 noundef 0)
          to label %45 unwind label %52

45:                                               ; preds = %41
  %46 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %47 = call noundef i64 @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %48 = call noundef i64 @_ZNK3JPH5ArrayINS_24SoftBodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %49 = add i64 %48, %47
  %.not67 = icmp eq i64 %46, %49
  br i1 %.not67, label %54, label %.loopexit

50:                                               ; preds = %.critedge75
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %92

52:                                               ; preds = %41, %36
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %91

54:                                               ; preds = %45
  %55 = getelementptr inbounds i8, ptr %0, i64 32
  %56 = call noundef ptr @_ZNK3JPH5ArrayINS_12PhysicsScene19ConnectedConstraintENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55)
  %57 = call noundef ptr @_ZNK3JPH5ArrayINS_12PhysicsScene19ConnectedConstraintENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %55)
  %.not6883 = icmp eq ptr %56, %57
  br i1 %.not6883, label %.loopexit, label %.lr.ph85

.lr.ph85:                                         ; preds = %54, %81
  %.05584 = phi ptr [ %82, %81 ], [ %56, %54 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %58 = getelementptr inbounds i8, ptr %.05584, i64 8
  %59 = load i32, ptr %58, align 8, !tbaa !5
  %60 = icmp eq i32 %59, -1
  br i1 %60, label %61, label %62

61:                                               ; preds = %.lr.ph85
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br label %67

62:                                               ; preds = %.lr.ph85
  %63 = zext i32 %59 to i64
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %63)
          to label %65 unwind label %83

65:                                               ; preds = %62
  %66 = load i32, ptr %64, align 4, !tbaa !12
  store i32 %66, ptr %5, align 4, !tbaa !12
  br label %67

67:                                               ; preds = %65, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %68 = getelementptr inbounds i8, ptr %.05584, i64 12
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = icmp eq i32 %69, -1
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %77

72:                                               ; preds = %67
  %73 = zext i32 %69 to i64
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %73)
          to label %75 unwind label %85

75:                                               ; preds = %72
  %76 = load i32, ptr %74, align 4, !tbaa !12
  store i32 %76, ptr %6, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %75, %71
  %78 = call noundef ptr @_ZNK3JPH8RefConstINS_25TwoBodyConstraintSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %.05584)
  %79 = invoke noundef ptr @_ZN3JPH13BodyInterface16CreateConstraintEPKNS_25TwoBodyConstraintSettingsERKNS_6BodyIDES6_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %78, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %80 unwind label %87

80:                                               ; preds = %77
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef %79)
          to label %81 unwind label %87

81:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %82 = getelementptr inbounds i8, ptr %.05584, i64 16
  %.not68 = icmp eq ptr %82, %57
  br i1 %.not68, label %.loopexit, label %.lr.ph85

83:                                               ; preds = %62
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %90

85:                                               ; preds = %72
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %80, %77
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %89

89:                                               ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %90

90:                                               ; preds = %89, %83
  %.pn.pn = phi { ptr, i32 } [ %.pn, %89 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %91

.loopexit:                                        ; preds = %81, %54, %45
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i1 %.not67

91:                                               ; preds = %90, %52
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %90 ], [ %53, %52 ]
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %92

92:                                               ; preds = %91, %50
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %91 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %93

93:                                               ; preds = %92, %30, %20, %16
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %92 ], [ %31, %30 ], [ %21, %20 ], [ %17, %16 ]
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 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 #4 align 2

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

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

declare noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(111)) local_unnamed_addr #5

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

declare noundef ptr @_ZN3JPH13BodyInterface16AddBodiesPrepareEPNS_6BodyIDEi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef) local_unnamed_addr #5

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

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

declare void @_ZN3JPH13BodyInterface17AddBodiesFinalizeEPNS_6BodyIDEiPvNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare noundef ptr @_ZN3JPH13BodyInterface16CreateConstraintEPKNS_25TwoBodyConstraintSettingsERKNS_6BodyIDES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { 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 #5 = { "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, !11, i64 8}
!6 = !{!"_ZTSN3JPH12PhysicsScene19ConnectedConstraintE", !7, i64 0, !11, i64 8, !11, i64 12}
!7 = !{!"_ZTSN3JPH8RefConstINS_25TwoBodyConstraintSettingsEEE", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!6, !11, i64 12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass