; LLVM IR from erincatto/box2d :: src (body)

; 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"

%struct.b2BodyId = type { i32, i16, i16 }
%struct.b2Rot = type { float, float }
%struct.b2WorldId = type { i16, i16 }
%struct.b2SolverSet = type { %struct.b2BodySimArray, %struct.b2BodyStateArray, %struct.b2JointSimArray, %struct.b2ContactSimArray, %struct.b2IslandSimArray, i32 }
%struct.b2BodySimArray = type { ptr, i32, i32 }
%struct.b2BodyStateArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2IslandSimArray = type { ptr, i32, i32 }
%struct.b2BodySim = type { %struct.b2Transform, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, i32, i8, i8, i8, i8, i8 }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2BodyState = type { %struct.b2Vec2, float, i32, %struct.b2Vec2, %struct.b2Rot }
%struct.b2Body = type { [32 x i8], ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, i32, i32, i32, i16, i8, i8, i8, i8 }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2World = type { %struct.b2ArenaAllocator, %struct.b2BroadPhase, %struct.b2ConstraintGraph, %struct.b2IdPool, %struct.b2BodyArray, %struct.b2IdPool, %struct.b2SolverSetArray, %struct.b2IdPool, %struct.b2JointArray, %struct.b2IdPool, %struct.b2ContactArray, %struct.b2IdPool, %struct.b2IslandArray, %struct.b2IdPool, %struct.b2IdPool, %struct.b2ShapeArray, %struct.b2ChainShapeArray, %struct.b2SensorArray, %struct.b2TaskContextArray, %struct.b2SensorTaskContextArray, %struct.b2BodyMoveEventArray, %struct.b2SensorBeginTouchEventArray, %struct.b2ContactBeginTouchEventArray, [2 x %struct.b2SensorEndTouchEventArray], [2 x %struct.b2ContactEndTouchEventArray], i32, %struct.b2ContactHitEventArray, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, i64, i32, %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i16, %struct.b2Profile, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, float, i32, i32, i16, i8, i8, i8, i8, i8, i8 }
%struct.b2ArenaAllocator = type { ptr, i32, i32, i32, i32, %struct.b2ArenaEntryArray }
%struct.b2ArenaEntryArray = type { ptr, i32, i32 }
%struct.b2BroadPhase = type { [3 x %struct.b2DynamicTree], i32, %struct.b2HashSet, %struct.b2IntArray, ptr, ptr, i32, %struct.b2AtomicInt, %struct.b2HashSet }
%struct.b2DynamicTree = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2IntArray = type { ptr, i32, i32 }
%struct.b2AtomicInt = type { i32 }
%struct.b2HashSet = type { ptr, i32, i32 }
%struct.b2ConstraintGraph = type { [12 x %struct.b2GraphColor] }
%struct.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%union.anon = type { ptr }
%struct.b2BodyArray = type { ptr, i32, i32 }
%struct.b2SolverSetArray = type { ptr, i32, i32 }
%struct.b2JointArray = type { ptr, i32, i32 }
%struct.b2ContactArray = type { ptr, i32, i32 }
%struct.b2IslandArray = type { ptr, i32, i32 }
%struct.b2IdPool = type { %struct.b2IntArray, i32 }
%struct.b2ShapeArray = type { ptr, i32, i32 }
%struct.b2ChainShapeArray = type { ptr, i32, i32 }
%struct.b2SensorArray = type { ptr, i32, i32 }
%struct.b2TaskContextArray = type { ptr, i32, i32 }
%struct.b2SensorTaskContextArray = type { ptr, i32, i32 }
%struct.b2BodyMoveEventArray = type { ptr, i32, i32 }
%struct.b2SensorBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2SensorEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactHitEventArray = type { ptr, i32, i32 }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2Profile = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@b2_nullBodyId = external hidden constant %struct.b2BodyId, align 4
@.str.12 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [46 x i8], align 1
@b2_lengthUnitsPerMeter = external global float, align 4
@.str.14 = external hidden unnamed_addr constant [37 x i8], align 1
@b2Rot_identity = external hidden constant %struct.b2Rot, align 4
@.str.15 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyArray_Get(ptr noundef, i32 noundef) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2SolverSetArray_Get(ptr noundef, i32 noundef) #3

; 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) #5

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

; Function Attrs: nounwind uwtable
define dso_local i64 @b2CreateBody(i32 %0, ptr noundef %1) #6 {
  %3 = alloca %struct.b2BodyId, align 4
  %4 = alloca %struct.b2WorldId, align 2
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca %struct.b2SolverSet, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.b2BodySim, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %struct.b2BodyState, align 4
  %17 = alloca %struct.b2Body, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  store i32 %0, ptr %4, align 2
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %2
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.b2BodyDef, ptr %21, i32 0, i32 17
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = icmp eq i32 %23, 1152023
  br i1 %24, label %29, label %25

25:                                               ; preds = %20
  %26 = call i32 @b2InternalAssertFcn(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 172)
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  call void @llvm.trap()
  br label %29

29:                                               ; preds = %28, %25, %20
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.b2BodyDef, ptr %32, i32 0, i32 1
  %34 = load <2 x float>, ptr %33, align 4
  %35 = call zeroext i1 @b2IsValidVec2(<2 x float> %34)
  br i1 %35, label %40, label %36

36:                                               ; preds = %31
  %37 = call i32 @b2InternalAssertFcn(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 173)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  call void @llvm.trap()
  br label %40

40:                                               ; preds = %39, %36, %31
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.b2BodyDef, ptr %43, i32 0, i32 2
  %45 = load <2 x float>, ptr %44, align 4
  %46 = call zeroext i1 @b2IsValidRotation(<2 x float> %45)
  br i1 %46, label %51, label %47

47:                                               ; preds = %42
  %48 = call i32 @b2InternalAssertFcn(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 174)
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  call void @llvm.trap()
  br label %51

51:                                               ; preds = %50, %47, %42
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.b2BodyDef, ptr %54, i32 0, i32 3
  %56 = load <2 x float>, ptr %55, align 4
  %57 = call zeroext i1 @b2IsValidVec2(<2 x float> %56)
  br i1 %57, label %62, label %58

58:                                               ; preds = %53
  %59 = call i32 @b2InternalAssertFcn(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 175)
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  call void @llvm.trap()
  br label %62

62:                                               ; preds = %61, %58, %53
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.b2BodyDef, ptr %65, i32 0, i32 4
  %67 = load float, ptr %66, align 4, !tbaa !16
  %68 = call zeroext i1 @b2IsValidFloat(float noundef %67)
  br i1 %68, label %73, label %69

69:                                               ; preds = %64
  %70 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 176)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  call void @llvm.trap()
  br label %73

73:                                               ; preds = %72, %69, %64
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.b2BodyDef, ptr %76, i32 0, i32 5
  %78 = load float, ptr %77, align 8, !tbaa !17
  %79 = call zeroext i1 @b2IsValidFloat(float noundef %78)
  br i1 %79, label %80, label %85

80:                                               ; preds = %75
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.b2BodyDef, ptr %81, i32 0, i32 5
  %83 = load float, ptr %82, align 8, !tbaa !17
  %84 = fcmp oge float %83, 0.000000e+00
  br i1 %84, label %89, label %85

85:                                               ; preds = %80, %75
  %86 = call i32 @b2InternalAssertFcn(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 177)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  call void @llvm.trap()
  br label %89

89:                                               ; preds = %88, %85, %80
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.b2BodyDef, ptr %92, i32 0, i32 6
  %94 = load float, ptr %93, align 4, !tbaa !18
  %95 = call zeroext i1 @b2IsValidFloat(float noundef %94)
  br i1 %95, label %96, label %101

96:                                               ; preds = %91
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.b2BodyDef, ptr %97, i32 0, i32 6
  %99 = load float, ptr %98, align 4, !tbaa !18
  %100 = fcmp oge float %99, 0.000000e+00
  br i1 %100, label %105, label %101

101:                                              ; preds = %96, %91
  %102 = call i32 @b2InternalAssertFcn(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 178)
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  call void @llvm.trap()
  br label %105

105:                                              ; preds = %104, %101, %96
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.b2BodyDef, ptr %108, i32 0, i32 8
  %110 = load float, ptr %109, align 4, !tbaa !19
  %111 = call zeroext i1 @b2IsValidFloat(float noundef %110)
  br i1 %111, label %112, label %117

112:                                              ; preds = %107
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.b2BodyDef, ptr %113, i32 0, i32 8
  %115 = load float, ptr %114, align 4, !tbaa !19
  %116 = fcmp oge float %115, 0.000000e+00
  br i1 %116, label %121, label %117

117:                                              ; preds = %112, %107
  %118 = call i32 @b2InternalAssertFcn(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 179)
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  call void @llvm.trap()
  br label %121

121:                                              ; preds = %120, %117, %112
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.b2BodyDef, ptr %124, i32 0, i32 7
  %126 = load float, ptr %125, align 8, !tbaa !20
  %127 = call zeroext i1 @b2IsValidFloat(float noundef %126)
  br i1 %127, label %132, label %128

128:                                              ; preds = %123
  %129 = call i32 @b2InternalAssertFcn(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 180)
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %132

131:                                              ; preds = %128
  call void @llvm.trap()
  br label %132

132:                                              ; preds = %131, %128, %123
  br label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %134 = load i32, ptr %4, align 2
  %135 = call ptr @b2GetWorldFromId(i32 %134)
  store ptr %135, ptr %6, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %133
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.b2World, ptr %137, i32 0, i32 61
  %139 = load i8, ptr %138, align 1, !tbaa !21, !range !34, !noundef !35
  %140 = trunc i8 %139 to i1
  %141 = zext i1 %140 to i32
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %147, label %143

143:                                              ; preds = %136
  %144 = call i32 @b2InternalAssertFcn(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 183)
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %143
  call void @llvm.trap()
  br label %147

147:                                              ; preds = %146, %143, %136
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.b2World, ptr %150, i32 0, i32 61
  %152 = load i8, ptr %151, align 1, !tbaa !21, !range !34, !noundef !35
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %155

154:                                              ; preds = %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @b2_nullBodyId, i64 8, i1 false), !tbaa.struct !36
  store i32 1, ptr %7, align 4
  br label %610

155:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.b2BodyDef, ptr %156, i32 0, i32 12
  %158 = load i8, ptr %157, align 1, !tbaa !39, !range !34, !noundef !35
  %159 = trunc i8 %158 to i1
  br i1 %159, label %167, label %160

160:                                              ; preds = %155
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.b2BodyDef, ptr %161, i32 0, i32 11
  %163 = load i8, ptr %162, align 8, !tbaa !40, !range !34, !noundef !35
  %164 = trunc i8 %163 to i1
  %165 = zext i1 %164 to i32
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %172

167:                                              ; preds = %160, %155
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.b2BodyDef, ptr %168, i32 0, i32 15
  %170 = load i8, ptr %169, align 4, !tbaa !41, !range !34, !noundef !35
  %171 = trunc i8 %170 to i1
  br label %172

172:                                              ; preds = %167, %160
  %173 = phi i1 [ false, %160 ], [ %171, %167 ]
  %174 = zext i1 %173 to i8
  store i8 %174, ptr %8, align 1, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.b2BodyDef, ptr %175, i32 0, i32 15
  %177 = load i8, ptr %176, align 4, !tbaa !41, !range !34, !noundef !35
  %178 = trunc i8 %177 to i1
  %179 = zext i1 %178 to i32
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %172
  store i32 1, ptr %9, align 4, !tbaa !37
  br label %247

182:                                              ; preds = %172
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.b2BodyDef, ptr %183, i32 0, i32 0
  %185 = load i32, ptr %184, align 8, !tbaa !43
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %188

187:                                              ; preds = %182
  store i32 0, ptr %9, align 4, !tbaa !37
  br label %246

188:                                              ; preds = %182
  %189 = load i8, ptr %8, align 1, !tbaa !42, !range !34, !noundef !35
  %190 = trunc i8 %189 to i1
  %191 = zext i1 %190 to i32
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %194

193:                                              ; preds = %188
  store i32 2, ptr %9, align 4, !tbaa !37
  br label %245

194:                                              ; preds = %188
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.b2World, ptr %195, i32 0, i32 5
  %197 = call i32 @b2AllocId(ptr noundef %196)
  store i32 %197, ptr %9, align 4, !tbaa !37
  %198 = load i32, ptr %9, align 4, !tbaa !37
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.b2World, ptr %199, i32 0, i32 6
  %201 = getelementptr inbounds %struct.b2SolverSetArray, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 8, !tbaa !44
  %203 = icmp eq i32 %198, %202
  br i1 %203, label %204, label %216

204:                                              ; preds = %194
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.b2World, ptr %205, i32 0, i32 6
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 88, i1 false)
  %207 = getelementptr inbounds %struct.b2SolverSet, ptr %10, i32 0, i32 0
  %208 = getelementptr inbounds %struct.b2BodySimArray, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds %struct.b2BodySimArray, ptr %207, i32 0, i32 1
  %210 = getelementptr inbounds %struct.b2BodySimArray, ptr %207, i32 0, i32 2
  %211 = getelementptr inbounds %struct.b2SolverSet, ptr %10, i32 0, i32 1
  %212 = getelementptr inbounds %struct.b2SolverSet, ptr %10, i32 0, i32 2
  %213 = getelementptr inbounds %struct.b2SolverSet, ptr %10, i32 0, i32 3
  %214 = getelementptr inbounds %struct.b2SolverSet, ptr %10, i32 0, i32 4
  %215 = getelementptr inbounds %struct.b2SolverSet, ptr %10, i32 0, i32 5
  call void @b2SolverSetArray_Push(ptr noundef %206, ptr noundef byval(%struct.b2SolverSet) align 8 %10)
  br label %235

216:                                              ; preds = %194
  br label %217

217:                                              ; preds = %216
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.b2World, ptr %218, i32 0, i32 6
  %220 = getelementptr inbounds %struct.b2SolverSetArray, ptr %219, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8, !tbaa !45
  %222 = load i32, ptr %9, align 4, !tbaa !37
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.b2SolverSet, ptr %221, i64 %223
  %225 = getelementptr inbounds %struct.b2SolverSet, ptr %224, i32 0, i32 5
  %226 = load i32, ptr %225, align 8, !tbaa !46
  %227 = icmp eq i32 %226, -1
  br i1 %227, label %232, label %228

228:                                              ; preds = %217
  %229 = call i32 @b2InternalAssertFcn(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 218)
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %232

231:                                              ; preds = %228
  call void @llvm.trap()
  br label %232

232:                                              ; preds = %231, %228, %217
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234, %204
  %236 = load i32, ptr %9, align 4, !tbaa !37
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.b2World, ptr %237, i32 0, i32 6
  %239 = getelementptr inbounds %struct.b2SolverSetArray, ptr %238, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8, !tbaa !45
  %241 = load i32, ptr %9, align 4, !tbaa !37
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds %struct.b2SolverSet, ptr %240, i64 %242
  %244 = getelementptr inbounds %struct.b2SolverSet, ptr %243, i32 0, i32 5
  store i32 %236, ptr %244, align 8, !tbaa !46
  br label %245

245:                                              ; preds = %235, %193
  br label %246

246:                                              ; preds = %245, %187
  br label %247

247:                                              ; preds = %246, %181
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr %9, align 4, !tbaa !37
  %250 = icmp sle i32 0, %249
  br i1 %250, label %251, label %258

251:                                              ; preds = %248
  %252 = load i32, ptr %9, align 4, !tbaa !37
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.b2World, ptr %253, i32 0, i32 6
  %255 = getelementptr inbounds %struct.b2SolverSetArray, ptr %254, i32 0, i32 1
  %256 = load i32, ptr %255, align 8, !tbaa !44
  %257 = icmp slt i32 %252, %256
  br i1 %257, label %262, label %258

258:                                              ; preds = %251, %248
  %259 = call i32 @b2InternalAssertFcn(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 224)
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %258
  call void @llvm.trap()
  br label %262

262:                                              ; preds = %261, %258, %251
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.b2World, ptr %265, i32 0, i32 3
  %267 = call i32 @b2AllocId(ptr noundef %266)
  store i32 %267, ptr %11, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.b2World, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %9, align 4, !tbaa !37
  %271 = call ptr @b2SolverSetArray_Get(ptr noundef %269, i32 noundef %270)
  store ptr %271, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.b2SolverSet, ptr %272, i32 0, i32 0
  %274 = call ptr @b2BodySimArray_Add(ptr noundef %273)
  store ptr %274, ptr %13, align 8, !tbaa !5
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 4 %14, i8 0, i64 100, i1 false)
  %276 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 0
  %277 = getelementptr inbounds %struct.b2Transform, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds %struct.b2Vec2, ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds %struct.b2Vec2, ptr %277, i32 0, i32 1
  %280 = getelementptr inbounds %struct.b2Transform, ptr %276, i32 0, i32 1
  %281 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 1
  %282 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 2
  %283 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 3
  %284 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 4
  %285 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 5
  %286 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 6
  %287 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 7
  %288 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 8
  %289 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 9
  %290 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 10
  %291 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 11
  %292 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 12
  %293 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 13
  %294 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 14
  %295 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 15
  %296 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 16
  %297 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 17
  %298 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 18
  %299 = getelementptr inbounds %struct.b2BodySim, ptr %14, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %275, ptr align 4 %14, i64 100, i1 false), !tbaa.struct !48
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.b2BodySim, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds %struct.b2Transform, ptr %301, i32 0, i32 0
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.b2BodyDef, ptr %303, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %302, ptr align 4 %304, i64 8, i1 false), !tbaa.struct !50
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.b2BodySim, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds %struct.b2Transform, ptr %306, i32 0, i32 1
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.b2BodyDef, ptr %308, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %307, ptr align 4 %309, i64 8, i1 false), !tbaa.struct !50
  %310 = load ptr, ptr %13, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.b2BodySim, ptr %310, i32 0, i32 1
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.b2BodyDef, ptr %312, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %311, ptr align 4 %313, i64 8, i1 false), !tbaa.struct !50
  %314 = load ptr, ptr %13, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.b2BodySim, ptr %314, i32 0, i32 2
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.b2BodySim, ptr %316, i32 0, i32 0
  %318 = getelementptr inbounds %struct.b2Transform, ptr %317, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %315, ptr align 4 %318, i64 8, i1 false), !tbaa.struct !50
  %319 = load ptr, ptr %13, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.b2BodySim, ptr %319, i32 0, i32 3
  %321 = load ptr, ptr %13, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.b2BodySim, ptr %321, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %320, ptr align 4 %322, i64 8, i1 false), !tbaa.struct !50
  %323 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !49
  %324 = fmul float 1.000000e+05, %323
  %325 = load ptr, ptr %13, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.b2BodySim, ptr %325, i32 0, i32 9
  store float %324, ptr %326, align 4, !tbaa !51
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.b2BodySim, ptr %327, i32 0, i32 10
  store float 0.000000e+00, ptr %328, align 4, !tbaa !54
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.b2BodyDef, ptr %329, i32 0, i32 5
  %331 = load float, ptr %330, align 8, !tbaa !17
  %332 = load ptr, ptr %13, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.b2BodySim, ptr %332, i32 0, i32 11
  store float %331, ptr %333, align 4, !tbaa !55
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.b2BodyDef, ptr %334, i32 0, i32 6
  %336 = load float, ptr %335, align 4, !tbaa !18
  %337 = load ptr, ptr %13, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.b2BodySim, ptr %337, i32 0, i32 12
  store float %336, ptr %338, align 4, !tbaa !56
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.b2BodyDef, ptr %339, i32 0, i32 7
  %341 = load float, ptr %340, align 8, !tbaa !20
  %342 = load ptr, ptr %13, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.b2BodySim, ptr %342, i32 0, i32 13
  store float %341, ptr %343, align 4, !tbaa !57
  %344 = load i32, ptr %11, align 4, !tbaa !37
  %345 = load ptr, ptr %13, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.b2BodySim, ptr %345, i32 0, i32 14
  store i32 %344, ptr %346, align 4, !tbaa !58
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.b2BodyDef, ptr %347, i32 0, i32 14
  %349 = load i8, ptr %348, align 1, !tbaa !59, !range !34, !noundef !35
  %350 = trunc i8 %349 to i1
  %351 = load ptr, ptr %13, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.b2BodySim, ptr %351, i32 0, i32 16
  %353 = zext i1 %350 to i8
  store i8 %353, ptr %352, align 1, !tbaa !60
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.b2BodyDef, ptr %354, i32 0, i32 16
  %356 = load i8, ptr %355, align 1, !tbaa !61, !range !34, !noundef !35
  %357 = trunc i8 %356 to i1
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.b2BodySim, ptr %358, i32 0, i32 18
  %360 = zext i1 %357 to i8
  store i8 %360, ptr %359, align 1, !tbaa !62
  %361 = load i32, ptr %9, align 4, !tbaa !37
  %362 = icmp eq i32 %361, 2
  br i1 %362, label %363, label %398

363:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %364 = load ptr, ptr %12, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.b2SolverSet, ptr %364, i32 0, i32 1
  %366 = call ptr @b2BodyStateArray_Add(ptr noundef %365)
  store ptr %366, ptr %15, align 8, !tbaa !5
  br label %367

367:                                              ; preds = %363
  %368 = load ptr, ptr %15, align 8, !tbaa !5
  %369 = ptrtoint ptr %368 to i64
  %370 = and i64 %369, 31
  %371 = icmp eq i64 %370, 0
  br i1 %371, label %376, label %372

372:                                              ; preds = %367
  %373 = call i32 @b2InternalAssertFcn(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 248)
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %376

375:                                              ; preds = %372
  call void @llvm.trap()
  br label %376

376:                                              ; preds = %375, %372, %367
  br label %377

377:                                              ; preds = %376
  br label %378

378:                                              ; preds = %377
  %379 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 4 %16, i8 0, i64 32, i1 false)
  %380 = getelementptr inbounds %struct.b2BodyState, ptr %16, i32 0, i32 0
  %381 = getelementptr inbounds %struct.b2Vec2, ptr %380, i32 0, i32 0
  %382 = getelementptr inbounds %struct.b2Vec2, ptr %380, i32 0, i32 1
  %383 = getelementptr inbounds %struct.b2BodyState, ptr %16, i32 0, i32 1
  %384 = getelementptr inbounds %struct.b2BodyState, ptr %16, i32 0, i32 2
  %385 = getelementptr inbounds %struct.b2BodyState, ptr %16, i32 0, i32 3
  %386 = getelementptr inbounds %struct.b2BodyState, ptr %16, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %379, ptr align 4 %16, i64 32, i1 false), !tbaa.struct !63
  %387 = load ptr, ptr %15, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.b2BodyState, ptr %387, i32 0, i32 0
  %389 = load ptr, ptr %5, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.b2BodyDef, ptr %389, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %388, ptr align 4 %390, i64 8, i1 false), !tbaa.struct !50
  %391 = load ptr, ptr %5, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.b2BodyDef, ptr %391, i32 0, i32 4
  %393 = load float, ptr %392, align 4, !tbaa !16
  %394 = load ptr, ptr %15, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.b2BodyState, ptr %394, i32 0, i32 1
  store float %393, ptr %395, align 4, !tbaa !64
  %396 = load ptr, ptr %15, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.b2BodyState, ptr %396, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %397, ptr align 4 @b2Rot_identity, i64 8, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %398

398:                                              ; preds = %378, %264
  %399 = load i32, ptr %11, align 4, !tbaa !37
  %400 = load ptr, ptr %6, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.b2World, ptr %400, i32 0, i32 4
  %402 = getelementptr inbounds %struct.b2BodyArray, ptr %401, i32 0, i32 1
  %403 = load i32, ptr %402, align 8, !tbaa !66
  %404 = icmp eq i32 %399, %403
  br i1 %404, label %405, label %434

405:                                              ; preds = %398
  %406 = load ptr, ptr %6, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.b2World, ptr %406, i32 0, i32 4
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 128, i1 false)
  %408 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 0
  %409 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 1
  %410 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 2
  %411 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 3
  %412 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 4
  %413 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 5
  %414 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 6
  %415 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 7
  %416 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 8
  %417 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 9
  %418 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 10
  %419 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 11
  %420 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 12
  %421 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 13
  %422 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 14
  %423 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 15
  %424 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 16
  %425 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 17
  %426 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 18
  %427 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 19
  %428 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 20
  %429 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 21
  %430 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 22
  %431 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 23
  %432 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 24
  %433 = getelementptr inbounds %struct.b2Body, ptr %17, i32 0, i32 25
  call void @b2BodyArray_Push(ptr noundef %407, ptr noundef byval(%struct.b2Body) align 8 %17)
  br label %453

434:                                              ; preds = %398
  br label %435

435:                                              ; preds = %434
  %436 = load ptr, ptr %6, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.b2World, ptr %436, i32 0, i32 4
  %438 = getelementptr inbounds %struct.b2BodyArray, ptr %437, i32 0, i32 0
  %439 = load ptr, ptr %438, align 8, !tbaa !67
  %440 = load i32, ptr %11, align 4, !tbaa !37
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds %struct.b2Body, ptr %439, i64 %441
  %443 = getelementptr inbounds %struct.b2Body, ptr %442, i32 0, i32 19
  %444 = load i32, ptr %443, align 4, !tbaa !68
  %445 = icmp eq i32 %444, -1
  br i1 %445, label %450, label %446

446:                                              ; preds = %435
  %447 = call i32 @b2InternalAssertFcn(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 262)
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %450

449:                                              ; preds = %446
  call void @llvm.trap()
  br label %450

450:                                              ; preds = %449, %446, %435
  br label %451

451:                                              ; preds = %450
  br label %452

452:                                              ; preds = %451
  br label %453

453:                                              ; preds = %452, %405
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %454 = load ptr, ptr %6, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.b2World, ptr %454, i32 0, i32 4
  %456 = load i32, ptr %11, align 4, !tbaa !37
  %457 = call ptr @b2BodyArray_Get(ptr noundef %455, i32 noundef %456)
  store ptr %457, ptr %18, align 8, !tbaa !5
  %458 = load ptr, ptr %5, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.b2BodyDef, ptr %458, i32 0, i32 9
  %460 = load ptr, ptr %459, align 8, !tbaa !70
  %461 = icmp ne ptr %460, null
  br i1 %461, label %462, label %506

462:                                              ; preds = %453
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !37
  br label %463

463:                                              ; preds = %478, %462
  %464 = load i32, ptr %19, align 4, !tbaa !37
  %465 = icmp slt i32 %464, 31
  br i1 %465, label %466, label %476

466:                                              ; preds = %463
  %467 = load ptr, ptr %5, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.b2BodyDef, ptr %467, i32 0, i32 9
  %469 = load ptr, ptr %468, align 8, !tbaa !70
  %470 = load i32, ptr %19, align 4, !tbaa !37
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds i8, ptr %469, i64 %471
  %473 = load i8, ptr %472, align 1, !tbaa !71
  %474 = sext i8 %473 to i32
  %475 = icmp ne i32 %474, 0
  br label %476

476:                                              ; preds = %466, %463
  %477 = phi i1 [ false, %463 ], [ %475, %466 ]
  br i1 %477, label %478, label %493

478:                                              ; preds = %476
  %479 = load ptr, ptr %5, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.b2BodyDef, ptr %479, i32 0, i32 9
  %481 = load ptr, ptr %480, align 8, !tbaa !70
  %482 = load i32, ptr %19, align 4, !tbaa !37
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds i8, ptr %481, i64 %483
  %485 = load i8, ptr %484, align 1, !tbaa !71
  %486 = load ptr, ptr %18, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.b2Body, ptr %486, i32 0, i32 0
  %488 = load i32, ptr %19, align 4, !tbaa !37
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [32 x i8], ptr %487, i64 0, i64 %489
  store i8 %485, ptr %490, align 1, !tbaa !71
  %491 = load i32, ptr %19, align 4, !tbaa !37
  %492 = add nsw i32 %491, 1
  store i32 %492, ptr %19, align 4, !tbaa !37
  br label %463, !llvm.loop !72

493:                                              ; preds = %476
  br label %494

494:                                              ; preds = %497, %493
  %495 = load i32, ptr %19, align 4, !tbaa !37
  %496 = icmp slt i32 %495, 32
  br i1 %496, label %497, label %505

497:                                              ; preds = %494
  %498 = load ptr, ptr %18, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.b2Body, ptr %498, i32 0, i32 0
  %500 = load i32, ptr %19, align 4, !tbaa !37
  %501 = sext i32 %500 to i64
  %502 = getelementptr inbounds [32 x i8], ptr %499, i64 0, i64 %501
  store i8 0, ptr %502, align 1, !tbaa !71
  %503 = load i32, ptr %19, align 4, !tbaa !37
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr %19, align 4, !tbaa !37
  br label %494, !llvm.loop !74

505:                                              ; preds = %494
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %510

506:                                              ; preds = %453
  %507 = load ptr, ptr %18, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.b2Body, ptr %507, i32 0, i32 0
  %509 = getelementptr inbounds [32 x i8], ptr %508, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %509, i8 0, i64 32, i1 false)
  br label %510

510:                                              ; preds = %506, %505
  %511 = load ptr, ptr %5, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.b2BodyDef, ptr %511, i32 0, i32 10
  %513 = load ptr, ptr %512, align 8, !tbaa !75
  %514 = load ptr, ptr %18, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.b2Body, ptr %514, i32 0, i32 1
  store ptr %513, ptr %515, align 8, !tbaa !76
  %516 = load i32, ptr %9, align 4, !tbaa !37
  %517 = load ptr, ptr %18, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.b2Body, ptr %517, i32 0, i32 2
  store i32 %516, ptr %518, align 8, !tbaa !77
  %519 = load ptr, ptr %12, align 8, !tbaa !5
  %520 = getelementptr inbounds %struct.b2SolverSet, ptr %519, i32 0, i32 0
  %521 = getelementptr inbounds %struct.b2BodySimArray, ptr %520, i32 0, i32 1
  %522 = load i32, ptr %521, align 8, !tbaa !78
  %523 = sub nsw i32 %522, 1
  %524 = load ptr, ptr %18, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.b2Body, ptr %524, i32 0, i32 3
  store i32 %523, ptr %525, align 4, !tbaa !79
  %526 = load ptr, ptr %18, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.b2Body, ptr %526, i32 0, i32 21
  %528 = load i16, ptr %527, align 4, !tbaa !80
  %529 = zext i16 %528 to i32
  %530 = add nsw i32 %529, 1
  %531 = trunc i32 %530 to i16
  store i16 %531, ptr %527, align 4, !tbaa !80
  %532 = load ptr, ptr %18, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.b2Body, ptr %532, i32 0, i32 6
  store i32 -1, ptr %533, align 8, !tbaa !81
  %534 = load ptr, ptr %18, align 8, !tbaa !5
  %535 = getelementptr inbounds %struct.b2Body, ptr %534, i32 0, i32 7
  store i32 0, ptr %535, align 4, !tbaa !82
  %536 = load ptr, ptr %18, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.b2Body, ptr %536, i32 0, i32 8
  store i32 -1, ptr %537, align 8, !tbaa !83
  %538 = load ptr, ptr %18, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.b2Body, ptr %538, i32 0, i32 4
  store i32 -1, ptr %539, align 8, !tbaa !84
  %540 = load ptr, ptr %18, align 8, !tbaa !5
  %541 = getelementptr inbounds %struct.b2Body, ptr %540, i32 0, i32 5
  store i32 0, ptr %541, align 4, !tbaa !85
  %542 = load ptr, ptr %18, align 8, !tbaa !5
  %543 = getelementptr inbounds %struct.b2Body, ptr %542, i32 0, i32 9
  store i32 -1, ptr %543, align 4, !tbaa !86
  %544 = load ptr, ptr %18, align 8, !tbaa !5
  %545 = getelementptr inbounds %struct.b2Body, ptr %544, i32 0, i32 10
  store i32 0, ptr %545, align 8, !tbaa !87
  %546 = load ptr, ptr %18, align 8, !tbaa !5
  %547 = getelementptr inbounds %struct.b2Body, ptr %546, i32 0, i32 11
  store i32 -1, ptr %547, align 4, !tbaa !88
  %548 = load ptr, ptr %18, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.b2Body, ptr %548, i32 0, i32 12
  store i32 -1, ptr %549, align 8, !tbaa !89
  %550 = load ptr, ptr %18, align 8, !tbaa !5
  %551 = getelementptr inbounds %struct.b2Body, ptr %550, i32 0, i32 13
  store i32 -1, ptr %551, align 4, !tbaa !90
  %552 = load ptr, ptr %18, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.b2Body, ptr %552, i32 0, i32 18
  store i32 -1, ptr %553, align 8, !tbaa !91
  %554 = load i32, ptr %11, align 4, !tbaa !37
  %555 = load ptr, ptr %18, align 8, !tbaa !5
  %556 = getelementptr inbounds %struct.b2Body, ptr %555, i32 0, i32 19
  store i32 %554, ptr %556, align 4, !tbaa !68
  %557 = load ptr, ptr %18, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.b2Body, ptr %557, i32 0, i32 14
  store float 0.000000e+00, ptr %558, align 8, !tbaa !92
  %559 = load ptr, ptr %18, align 8, !tbaa !5
  %560 = getelementptr inbounds %struct.b2Body, ptr %559, i32 0, i32 15
  store float 0.000000e+00, ptr %560, align 4, !tbaa !93
  %561 = load ptr, ptr %5, align 8, !tbaa !5
  %562 = getelementptr inbounds %struct.b2BodyDef, ptr %561, i32 0, i32 8
  %563 = load float, ptr %562, align 4, !tbaa !19
  %564 = load ptr, ptr %18, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.b2Body, ptr %564, i32 0, i32 16
  store float %563, ptr %565, align 8, !tbaa !94
  %566 = load ptr, ptr %18, align 8, !tbaa !5
  %567 = getelementptr inbounds %struct.b2Body, ptr %566, i32 0, i32 17
  store float 0.000000e+00, ptr %567, align 4, !tbaa !95
  %568 = load ptr, ptr %5, align 8, !tbaa !5
  %569 = getelementptr inbounds %struct.b2BodyDef, ptr %568, i32 0, i32 0
  %570 = load i32, ptr %569, align 8, !tbaa !43
  %571 = load ptr, ptr %18, align 8, !tbaa !5
  %572 = getelementptr inbounds %struct.b2Body, ptr %571, i32 0, i32 20
  store i32 %570, ptr %572, align 8, !tbaa !96
  %573 = load ptr, ptr %5, align 8, !tbaa !5
  %574 = getelementptr inbounds %struct.b2BodyDef, ptr %573, i32 0, i32 11
  %575 = load i8, ptr %574, align 8, !tbaa !40, !range !34, !noundef !35
  %576 = trunc i8 %575 to i1
  %577 = load ptr, ptr %18, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.b2Body, ptr %577, i32 0, i32 22
  %579 = zext i1 %576 to i8
  store i8 %579, ptr %578, align 2, !tbaa !97
  %580 = load ptr, ptr %5, align 8, !tbaa !5
  %581 = getelementptr inbounds %struct.b2BodyDef, ptr %580, i32 0, i32 13
  %582 = load i8, ptr %581, align 2, !tbaa !98, !range !34, !noundef !35
  %583 = trunc i8 %582 to i1
  %584 = load ptr, ptr %18, align 8, !tbaa !5
  %585 = getelementptr inbounds %struct.b2Body, ptr %584, i32 0, i32 23
  %586 = zext i1 %583 to i8
  store i8 %586, ptr %585, align 1, !tbaa !99
  %587 = load ptr, ptr %18, align 8, !tbaa !5
  %588 = getelementptr inbounds %struct.b2Body, ptr %587, i32 0, i32 24
  store i8 0, ptr %588, align 8, !tbaa !100
  %589 = load ptr, ptr %18, align 8, !tbaa !5
  %590 = getelementptr inbounds %struct.b2Body, ptr %589, i32 0, i32 25
  store i8 0, ptr %590, align 1, !tbaa !101
  %591 = load i32, ptr %9, align 4, !tbaa !37
  %592 = icmp sge i32 %591, 2
  br i1 %592, label %593, label %597

593:                                              ; preds = %510
  %594 = load ptr, ptr %6, align 8, !tbaa !5
  %595 = load i32, ptr %9, align 4, !tbaa !37
  %596 = load ptr, ptr %18, align 8, !tbaa !5
  call void @b2CreateIslandForBody(ptr noundef %594, i32 noundef %595, ptr noundef %596)
  br label %597

597:                                              ; preds = %593, %510
  %598 = load ptr, ptr %6, align 8, !tbaa !5
  call void @b2ValidateSolverSets(ptr noundef %598)
  %599 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 0
  %600 = load i32, ptr %11, align 4, !tbaa !37
  %601 = add nsw i32 %600, 1
  store i32 %601, ptr %599, align 4, !tbaa !102
  %602 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 1
  %603 = load ptr, ptr %6, align 8, !tbaa !5
  %604 = getelementptr inbounds %struct.b2World, ptr %603, i32 0, i32 59
  %605 = load i16, ptr %604, align 4, !tbaa !104
  store i16 %605, ptr %602, align 4, !tbaa !105
  %606 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 2
  %607 = load ptr, ptr %18, align 8, !tbaa !5
  %608 = getelementptr inbounds %struct.b2Body, ptr %607, i32 0, i32 21
  %609 = load i16, ptr %608, align 4, !tbaa !80
  store i16 %609, ptr %606, align 2, !tbaa !106
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %610

610:                                              ; preds = %597, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %611 = load i64, ptr %3, align 4
  ret i64 %611
}

declare zeroext i1 @b2IsValidVec2(<2 x float>) #1

declare zeroext i1 @b2IsValidRotation(<2 x float>) #1

declare zeroext i1 @b2IsValidFloat(float noundef) #1

declare ptr @b2GetWorldFromId(i32) #1

declare i32 @b2AllocId(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SolverSetArray_Push(ptr noundef, ptr noundef byval(%struct.b2SolverSet) align 8) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodySimArray_Add(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyStateArray_Add(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2BodyArray_Push(ptr noundef, ptr noundef byval(%struct.b2Body) align 8) #3

; Function Attrs: nounwind uwtable
declare hidden void @b2CreateIslandForBody(ptr noundef, i32 noundef, ptr noundef) #7

declare void @b2ValidateSolverSets(ptr noundef) #1

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #3 = { inlinehint 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind uwtable "min-legal-vector-width"="64" "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 72}
!10 = !{!"b2BodyDef", !11, i64 0, !12, i64 4, !14, i64 12, !12, i64 20, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !6, i64 48, !6, i64 56, !15, i64 64, !15, i64 65, !15, i64 66, !15, i64 67, !15, i64 68, !15, i64 69, !11, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"b2Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"b2Rot", !13, i64 0, !13, i64 4}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!10, !13, i64 28}
!17 = !{!10, !13, i64 32}
!18 = !{!10, !13, i64 36}
!19 = !{!10, !13, i64 44}
!20 = !{!10, !13, i64 40}
!21 = !{!22, !15, i64 1799}
!22 = !{!"b2World", !23, i64 0, !25, i64 40, !28, i64 336, !29, i64 1008, !24, i64 1032, !29, i64 1048, !24, i64 1072, !29, i64 1088, !24, i64 1112, !29, i64 1128, !24, i64 1152, !29, i64 1168, !24, i64 1192, !29, i64 1208, !29, i64 1232, !24, i64 1256, !24, i64 1272, !24, i64 1288, !24, i64 1304, !24, i64 1320, !24, i64 1336, !24, i64 1352, !24, i64 1368, !7, i64 1384, !7, i64 1416, !11, i64 1448, !24, i64 1456, !30, i64 1472, !30, i64 1488, !30, i64 1504, !30, i64 1520, !31, i64 1536, !11, i64 1544, !12, i64 1548, !13, i64 1556, !13, i64 1560, !13, i64 1564, !13, i64 1568, !13, i64 1572, !13, i64 1576, !13, i64 1580, !13, i64 1584, !6, i64 1592, !6, i64 1600, !32, i64 1608, !33, i64 1612, !6, i64 1704, !6, i64 1712, !6, i64 1720, !6, i64 1728, !11, i64 1736, !6, i64 1744, !6, i64 1752, !6, i64 1760, !6, i64 1768, !6, i64 1776, !13, i64 1784, !11, i64 1788, !11, i64 1792, !32, i64 1796, !15, i64 1798, !15, i64 1799, !15, i64 1800, !15, i64 1801, !15, i64 1802, !15, i64 1803}
!23 = !{!"b2ArenaAllocator", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !24, i64 24}
!24 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12}
!25 = !{!"b2BroadPhase", !7, i64 0, !11, i64 216, !26, i64 224, !24, i64 240, !6, i64 256, !6, i64 264, !11, i64 272, !27, i64 276, !26, i64 280}
!26 = !{!"b2HashSet", !6, i64 0, !11, i64 8, !11, i64 12}
!27 = !{!"b2AtomicInt", !11, i64 0}
!28 = !{!"b2ConstraintGraph", !7, i64 0}
!29 = !{!"b2IdPool", !24, i64 0, !11, i64 16}
!30 = !{!"b2BitSet", !6, i64 0, !11, i64 8, !11, i64 12}
!31 = !{!"long", !7, i64 0}
!32 = !{!"short", !7, i64 0}
!33 = !{!"b2Profile", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{i64 0, i64 4, !37, i64 4, i64 2, !38, i64 6, i64 2, !38}
!37 = !{!11, !11, i64 0}
!38 = !{!32, !32, i64 0}
!39 = !{!10, !15, i64 65}
!40 = !{!10, !15, i64 64}
!41 = !{!10, !15, i64 68}
!42 = !{!15, !15, i64 0}
!43 = !{!10, !11, i64 0}
!44 = !{!22, !11, i64 1080}
!45 = !{!22, !6, i64 1072}
!46 = !{!47, !11, i64 80}
!47 = !{!"b2SolverSet", !24, i64 0, !24, i64 16, !24, i64 32, !24, i64 48, !24, i64 64, !11, i64 80}
!48 = !{i64 0, i64 4, !49, i64 4, i64 4, !49, i64 8, i64 4, !49, i64 12, i64 4, !49, i64 16, i64 4, !49, i64 20, i64 4, !49, i64 24, i64 4, !49, i64 28, i64 4, !49, i64 32, i64 4, !49, i64 36, i64 4, !49, i64 40, i64 4, !49, i64 44, i64 4, !49, i64 48, i64 4, !49, i64 52, i64 4, !49, i64 56, i64 4, !49, i64 60, i64 4, !49, i64 64, i64 4, !49, i64 68, i64 4, !49, i64 72, i64 4, !49, i64 76, i64 4, !49, i64 80, i64 4, !49, i64 84, i64 4, !49, i64 88, i64 4, !37, i64 92, i64 1, !42, i64 93, i64 1, !42, i64 94, i64 1, !42, i64 95, i64 1, !42, i64 96, i64 1, !42}
!49 = !{!13, !13, i64 0}
!50 = !{i64 0, i64 4, !49, i64 4, i64 4, !49}
!51 = !{!52, !13, i64 68}
!52 = !{!"b2BodySim", !53, i64 0, !12, i64 16, !14, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !11, i64 88, !15, i64 92, !15, i64 93, !15, i64 94, !15, i64 95, !15, i64 96}
!53 = !{!"b2Transform", !12, i64 0, !14, i64 8}
!54 = !{!52, !13, i64 72}
!55 = !{!52, !13, i64 76}
!56 = !{!52, !13, i64 80}
!57 = !{!52, !13, i64 84}
!58 = !{!52, !11, i64 88}
!59 = !{!10, !15, i64 67}
!60 = !{!52, !15, i64 93}
!61 = !{!10, !15, i64 69}
!62 = !{!52, !15, i64 95}
!63 = !{i64 0, i64 4, !49, i64 4, i64 4, !49, i64 8, i64 4, !49, i64 12, i64 4, !37, i64 16, i64 4, !49, i64 20, i64 4, !49, i64 24, i64 4, !49, i64 28, i64 4, !49}
!64 = !{!65, !13, i64 8}
!65 = !{!"b2BodyState", !12, i64 0, !13, i64 8, !11, i64 12, !12, i64 16, !14, i64 24}
!66 = !{!22, !11, i64 1040}
!67 = !{!22, !6, i64 1032}
!68 = !{!69, !11, i64 108}
!69 = !{!"b2Body", !7, i64 0, !6, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !32, i64 116, !15, i64 118, !15, i64 119, !15, i64 120, !15, i64 121}
!70 = !{!10, !6, i64 48}
!71 = !{!7, !7, i64 0}
!72 = distinct !{!72, !73}
!73 = !{!"llvm.loop.mustprogress"}
!74 = distinct !{!74, !73}
!75 = !{!10, !6, i64 56}
!76 = !{!69, !6, i64 32}
!77 = !{!69, !11, i64 40}
!78 = !{!47, !11, i64 8}
!79 = !{!69, !11, i64 44}
!80 = !{!69, !32, i64 116}
!81 = !{!69, !11, i64 56}
!82 = !{!69, !11, i64 60}
!83 = !{!69, !11, i64 64}
!84 = !{!69, !11, i64 48}
!85 = !{!69, !11, i64 52}
!86 = !{!69, !11, i64 68}
!87 = !{!69, !11, i64 72}
!88 = !{!69, !11, i64 76}
!89 = !{!69, !11, i64 80}
!90 = !{!69, !11, i64 84}
!91 = !{!69, !11, i64 104}
!92 = !{!69, !13, i64 88}
!93 = !{!69, !13, i64 92}
!94 = !{!69, !13, i64 96}
!95 = !{!69, !13, i64 100}
!96 = !{!69, !11, i64 112}
!97 = !{!69, !15, i64 118}
!98 = !{!10, !15, i64 66}
!99 = !{!69, !15, i64 119}
!100 = !{!69, !15, i64 120}
!101 = !{!69, !15, i64 121}
!102 = !{!103, !11, i64 0}
!103 = !{!"b2BodyId", !11, i64 0, !32, i64 4, !32, i64 6}
!104 = !{!22, !32, i64 1796}
!105 = !{!103, !32, i64 4}
!106 = !{!103, !32, i64 6}


; 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"

%struct.b2BodyId = type { i32, i16, i16 }
%struct.b2Rot = type { float, float }
%struct.b2SolverSet = type { %struct.b2BodySimArray, %struct.b2BodyStateArray, %struct.b2JointSimArray, %struct.b2ContactSimArray, %struct.b2IslandSimArray, i32 }
%struct.b2BodySimArray = type { ptr, i32, i32 }
%struct.b2BodyStateArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2IslandSimArray = type { ptr, i32, i32 }
%struct.b2Body = type { [32 x i8], ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, i32, i32, i32, i16, i8, i8, i8, i8 }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@b2_nullBodyId = external hidden local_unnamed_addr constant %struct.b2BodyId, align 4
@.str.12 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [46 x i8], align 1
@b2_lengthUnitsPerMeter = external local_unnamed_addr global float, align 4
@.str.14 = external hidden unnamed_addr constant [37 x i8], align 1
@b2Rot_identity = external hidden local_unnamed_addr constant %struct.b2Rot, align 4
@.str.15 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2SolverSetArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i64 @b2CreateBody(i32 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #4 {
  %3 = alloca %struct.b2SolverSet, align 8
  %4 = alloca %struct.b2Body, align 8
  %5 = getelementptr inbounds i8, ptr %1, i64 72
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i32 %6, 1152023
  br i1 %7, label %11, label %8

8:                                                ; preds = %2
  %9 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 172) #6
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %11, label %10

10:                                               ; preds = %8
  tail call void @llvm.trap()
  unreachable

11:                                               ; preds = %8, %2
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = load <2 x float>, ptr %12, align 4
  %14 = tail call zeroext i1 @b2IsValidVec2(<2 x float> %13) #6
  br i1 %14, label %18, label %15

15:                                               ; preds = %11
  %16 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 173) #6
  %.not135 = icmp eq i32 %16, 0
  br i1 %.not135, label %18, label %17

17:                                               ; preds = %15
  tail call void @llvm.trap()
  unreachable

18:                                               ; preds = %15, %11
  %19 = getelementptr inbounds i8, ptr %1, i64 12
  %20 = load <2 x float>, ptr %19, align 4
  %21 = tail call zeroext i1 @b2IsValidRotation(<2 x float> %20) #6
  br i1 %21, label %25, label %22

22:                                               ; preds = %18
  %23 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 174) #6
  %.not136 = icmp eq i32 %23, 0
  br i1 %.not136, label %25, label %24

24:                                               ; preds = %22
  tail call void @llvm.trap()
  unreachable

25:                                               ; preds = %22, %18
  %26 = getelementptr inbounds i8, ptr %1, i64 20
  %27 = load <2 x float>, ptr %26, align 4
  %28 = tail call zeroext i1 @b2IsValidVec2(<2 x float> %27) #6
  br i1 %28, label %32, label %29

29:                                               ; preds = %25
  %30 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 175) #6
  %.not137 = icmp eq i32 %30, 0
  br i1 %.not137, label %32, label %31

31:                                               ; preds = %29
  tail call void @llvm.trap()
  unreachable

32:                                               ; preds = %29, %25
  %33 = getelementptr inbounds i8, ptr %1, i64 28
  %34 = load float, ptr %33, align 4, !tbaa !15
  %35 = tail call zeroext i1 @b2IsValidFloat(float noundef %34) #6
  br i1 %35, label %39, label %36

36:                                               ; preds = %32
  %37 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 176) #6
  %.not138 = icmp eq i32 %37, 0
  br i1 %.not138, label %39, label %38

38:                                               ; preds = %36
  tail call void @llvm.trap()
  unreachable

39:                                               ; preds = %36, %32
  %40 = getelementptr inbounds i8, ptr %1, i64 32
  %41 = load float, ptr %40, align 8, !tbaa !16
  %42 = tail call zeroext i1 @b2IsValidFloat(float noundef %41) #6
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = load float, ptr %40, align 8, !tbaa !16
  %45 = fcmp ult float %44, 0.000000e+00
  br i1 %45, label %46, label %49

46:                                               ; preds = %43, %39
  %47 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 177) #6
  %.not139 = icmp eq i32 %47, 0
  br i1 %.not139, label %49, label %48

48:                                               ; preds = %46
  tail call void @llvm.trap()
  unreachable

49:                                               ; preds = %46, %43
  %50 = getelementptr inbounds i8, ptr %1, i64 36
  %51 = load float, ptr %50, align 4, !tbaa !17
  %52 = tail call zeroext i1 @b2IsValidFloat(float noundef %51) #6
  br i1 %52, label %53, label %56

53:                                               ; preds = %49
  %54 = load float, ptr %50, align 4, !tbaa !17
  %55 = fcmp ult float %54, 0.000000e+00
  br i1 %55, label %56, label %59

56:                                               ; preds = %53, %49
  %57 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 178) #6
  %.not140 = icmp eq i32 %57, 0
  br i1 %.not140, label %59, label %58

58:                                               ; preds = %56
  tail call void @llvm.trap()
  unreachable

59:                                               ; preds = %56, %53
  %60 = getelementptr inbounds i8, ptr %1, i64 44
  %61 = load float, ptr %60, align 4, !tbaa !18
  %62 = tail call zeroext i1 @b2IsValidFloat(float noundef %61) #6
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  %64 = load float, ptr %60, align 4, !tbaa !18
  %65 = fcmp ult float %64, 0.000000e+00
  br i1 %65, label %66, label %69

66:                                               ; preds = %63, %59
  %67 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 179) #6
  %.not141 = icmp eq i32 %67, 0
  br i1 %.not141, label %69, label %68

68:                                               ; preds = %66
  tail call void @llvm.trap()
  unreachable

69:                                               ; preds = %66, %63
  %70 = getelementptr inbounds i8, ptr %1, i64 40
  %71 = load float, ptr %70, align 8, !tbaa !19
  %72 = tail call zeroext i1 @b2IsValidFloat(float noundef %71) #6
  br i1 %72, label %76, label %73

73:                                               ; preds = %69
  %74 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 180) #6
  %.not142 = icmp eq i32 %74, 0
  br i1 %.not142, label %76, label %75

75:                                               ; preds = %73
  tail call void @llvm.trap()
  unreachable

76:                                               ; preds = %69, %73
  %77 = tail call ptr @b2GetWorldFromId(i32 %0) #6
  %78 = getelementptr inbounds i8, ptr %77, i64 1799
  %79 = load i8, ptr %78, align 1, !tbaa !20, !range !33, !noundef !34
  %80 = icmp eq i8 %79, 0
  br i1 %80, label %.thread161, label %81

81:                                               ; preds = %76
  %82 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 183) #6
  %.not143 = icmp eq i32 %82, 0
  br i1 %.not143, label %84, label %83

83:                                               ; preds = %81
  tail call void @llvm.trap()
  unreachable

84:                                               ; preds = %81
  %.pre = load i8, ptr %78, align 1, !tbaa !20, !range !33
  %85 = trunc nuw i8 %.pre to i1
  br i1 %85, label %86, label %.thread161

86:                                               ; preds = %84
  %.sroa.0131.0.copyload = load i32, ptr @b2_nullBodyId, align 4, !tbaa !35
  br label %357

.thread161:                                       ; preds = %76, %84
  %87 = getelementptr inbounds i8, ptr %1, i64 65
  %88 = load i8, ptr %87, align 1, !tbaa !36, !range !33, !noundef !34
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %94, label %90

90:                                               ; preds = %.thread161
  %91 = getelementptr inbounds i8, ptr %1, i64 64
  %92 = load i8, ptr %91, align 8, !tbaa !37, !range !33, !noundef !34
  %93 = icmp eq i8 %92, 0
  br i1 %93, label %94, label %._crit_edge158

._crit_edge158:                                   ; preds = %90
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 68
  %.pre159 = load i8, ptr %.phi.trans.insert, align 4, !tbaa !38, !range !33
  br label %98

94:                                               ; preds = %90, %.thread161
  %95 = getelementptr inbounds i8, ptr %1, i64 68
  %96 = load i8, ptr %95, align 4, !tbaa !38, !range !33, !noundef !34
  %97 = trunc nuw i8 %96 to i1
  br label %98

98:                                               ; preds = %._crit_edge158, %94
  %99 = phi i8 [ %.pre159, %._crit_edge158 ], [ %96, %94 ]
  %100 = phi i1 [ false, %._crit_edge158 ], [ %97, %94 ]
  %101 = icmp eq i8 %99, 0
  br i1 %101, label %.thread, label %102

102:                                              ; preds = %98
  %103 = load i32, ptr %1, align 8, !tbaa !39
  %104 = icmp eq i32 %103, 0
  %brmerge = select i1 %104, i1 true, i1 %100
  %.mux = select i1 %104, i32 0, i32 2
  br i1 %brmerge, label %.thread, label %105

105:                                              ; preds = %102
  %106 = getelementptr inbounds i8, ptr %77, i64 1048
  %107 = tail call i32 @b2AllocId(ptr noundef nonnull %106) #6
  %108 = getelementptr inbounds i8, ptr %77, i64 1072
  %109 = getelementptr inbounds i8, ptr %77, i64 1080
  %110 = load i32, ptr %109, align 8, !tbaa !40
  %111 = icmp eq i32 %107, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %105
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %3, i8 0, i64 88, i1 false)
  tail call void @b2SolverSetArray_Push(ptr noundef nonnull %108, ptr noundef nonnull byval(%struct.b2SolverSet) align 8 %3)
  %.pre160 = sext i32 %107 to i64
  br label %122

113:                                              ; preds = %105
  %114 = load ptr, ptr %108, align 8, !tbaa !41
  %115 = sext i32 %107 to i64
  %116 = getelementptr inbounds %struct.b2SolverSet, ptr %114, i64 %115, i32 5
  %117 = load i32, ptr %116, align 8, !tbaa !42
  %118 = icmp eq i32 %117, -1
  br i1 %118, label %122, label %119

119:                                              ; preds = %113
  %120 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 218) #6
  %.not144 = icmp eq i32 %120, 0
  br i1 %.not144, label %122, label %121

121:                                              ; preds = %119
  tail call void @llvm.trap()
  unreachable

122:                                              ; preds = %112, %119, %113
  %.pre-phi = phi i64 [ %.pre160, %112 ], [ %115, %119 ], [ %115, %113 ]
  %123 = load ptr, ptr %108, align 8, !tbaa !41
  %124 = getelementptr inbounds %struct.b2SolverSet, ptr %123, i64 %.pre-phi, i32 5
  store i32 %107, ptr %124, align 8, !tbaa !42
  %125 = icmp sgt i32 %107, -1
  br i1 %125, label %.thread, label %129

.thread:                                          ; preds = %102, %98, %122
  %.0132153 = phi i32 [ %107, %122 ], [ %.mux, %102 ], [ 1, %98 ]
  %126 = getelementptr inbounds i8, ptr %77, i64 1080
  %127 = load i32, ptr %126, align 8, !tbaa !40
  %128 = icmp slt i32 %.0132153, %127
  br i1 %128, label %132, label %129

129:                                              ; preds = %.thread, %122
  %.0132151 = phi i32 [ %.0132153, %.thread ], [ %107, %122 ]
  %130 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 224) #6
  %.not145 = icmp eq i32 %130, 0
  br i1 %.not145, label %132, label %131

131:                                              ; preds = %129
  tail call void @llvm.trap()
  unreachable

132:                                              ; preds = %129, %.thread
  %.0132152 = phi i32 [ %.0132151, %129 ], [ %.0132153, %.thread ]
  %133 = getelementptr inbounds i8, ptr %77, i64 1008
  %134 = tail call i32 @b2AllocId(ptr noundef nonnull %133) #6
  %135 = getelementptr inbounds i8, ptr %77, i64 1072
  %136 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %135, i32 noundef %.0132152)
  %137 = tail call ptr @b2BodySimArray_Add(ptr noundef %136)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %137, i8 0, i64 100, i1 false)
  %138 = load i64, ptr %12, align 4
  store i64 %138, ptr %137, align 4
  %139 = getelementptr inbounds i8, ptr %137, i64 8
  %140 = load i64, ptr %19, align 4
  store i64 %140, ptr %139, align 4
  %141 = getelementptr inbounds i8, ptr %137, i64 16
  %142 = load i64, ptr %12, align 4
  store i64 %142, ptr %141, align 4
  %143 = getelementptr inbounds i8, ptr %137, i64 24
  store i64 %140, ptr %143, align 4
  %144 = getelementptr inbounds i8, ptr %137, i64 32
  store i64 %142, ptr %144, align 4
  %145 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !44
  %146 = fmul float %145, 1.000000e+05
  %147 = getelementptr inbounds i8, ptr %137, i64 68
  store float %146, ptr %147, align 4, !tbaa !45
  %148 = getelementptr inbounds i8, ptr %137, i64 72
  store float 0.000000e+00, ptr %148, align 4, !tbaa !48
  %149 = getelementptr inbounds i8, ptr %137, i64 76
  %150 = load <2 x float>, ptr %40, align 8, !tbaa !44
  store <2 x float> %150, ptr %149, align 4, !tbaa !44
  %151 = load float, ptr %70, align 8, !tbaa !19
  %152 = getelementptr inbounds i8, ptr %137, i64 84
  store float %151, ptr %152, align 4, !tbaa !49
  %153 = getelementptr inbounds i8, ptr %137, i64 88
  store i32 %134, ptr %153, align 4, !tbaa !50
  %154 = getelementptr inbounds i8, ptr %1, i64 67
  %155 = load i8, ptr %154, align 1, !tbaa !51, !range !33, !noundef !34
  %156 = getelementptr inbounds i8, ptr %137, i64 93
  store i8 %155, ptr %156, align 1, !tbaa !52
  %157 = getelementptr inbounds i8, ptr %1, i64 69
  %158 = load i8, ptr %157, align 1, !tbaa !53, !range !33, !noundef !34
  %159 = getelementptr inbounds i8, ptr %137, i64 95
  store i8 %158, ptr %159, align 1, !tbaa !54
  %160 = icmp eq i32 %.0132152, 2
  br i1 %160, label %161, label %176

161:                                              ; preds = %132
  %162 = getelementptr inbounds i8, ptr %136, i64 16
  %163 = tail call ptr @b2BodyStateArray_Add(ptr noundef nonnull %162)
  %164 = ptrtoint ptr %163 to i64
  %165 = and i64 %164, 31
  %166 = icmp eq i64 %165, 0
  br i1 %166, label %170, label %167

167:                                              ; preds = %161
  %168 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 248) #6
  %.not146 = icmp eq i32 %168, 0
  br i1 %.not146, label %170, label %169

169:                                              ; preds = %167
  tail call void @llvm.trap()
  unreachable

170:                                              ; preds = %167, %161
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %163, i8 0, i64 32, i1 false)
  %171 = load i64, ptr %26, align 4
  store i64 %171, ptr %163, align 4
  %172 = load float, ptr %33, align 4, !tbaa !15
  %173 = getelementptr inbounds i8, ptr %163, i64 8
  store float %172, ptr %173, align 4, !tbaa !55
  %174 = getelementptr inbounds i8, ptr %163, i64 24
  %175 = load i64, ptr @b2Rot_identity, align 4
  store i64 %175, ptr %174, align 4
  br label %176

176:                                              ; preds = %170, %132
  %177 = getelementptr inbounds i8, ptr %77, i64 1032
  %178 = getelementptr inbounds i8, ptr %77, i64 1040
  %179 = load i32, ptr %178, align 8, !tbaa !57
  %180 = icmp eq i32 %134, %179
  br i1 %180, label %181, label %182

181:                                              ; preds = %176
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %4, i8 0, i64 128, i1 false)
  tail call void @b2BodyArray_Push(ptr noundef nonnull %177, ptr noundef nonnull byval(%struct.b2Body) align 8 %4)
  br label %191

182:                                              ; preds = %176
  %183 = load ptr, ptr %177, align 8, !tbaa !58
  %184 = sext i32 %134 to i64
  %185 = getelementptr inbounds %struct.b2Body, ptr %183, i64 %184, i32 19
  %186 = load i32, ptr %185, align 4, !tbaa !59
  %187 = icmp eq i32 %186, -1
  br i1 %187, label %191, label %188

188:                                              ; preds = %182
  %189 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 262) #6
  %.not147 = icmp eq i32 %189, 0
  br i1 %.not147, label %191, label %190

190:                                              ; preds = %188
  tail call void @llvm.trap()
  unreachable

191:                                              ; preds = %182, %188, %181
  %192 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %177, i32 noundef %134)
  %193 = getelementptr inbounds i8, ptr %1, i64 48
  %194 = load ptr, ptr %193, align 8, !tbaa !61
  %.not148 = icmp eq ptr %194, null
  br i1 %.not148, label %320, label %.preheader.preheader

.preheader.preheader:                             ; preds = %191
  %195 = load i8, ptr %194, align 1, !tbaa !62
  %.not149 = icmp eq i8 %195, 0
  br i1 %.not149, label %.lr.ph.preheader, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader
  store i8 %195, ptr %192, align 1, !tbaa !62
  %196 = load ptr, ptr %193, align 8, !tbaa !61
  %197 = getelementptr inbounds i8, ptr %196, i64 1
  %198 = load i8, ptr %197, align 1, !tbaa !62
  %.not149.1 = icmp eq i8 %198, 0
  br i1 %.not149.1, label %.lr.ph.preheader, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %199 = getelementptr inbounds i8, ptr %192, i64 1
  store i8 %198, ptr %199, align 1, !tbaa !62
  %200 = load ptr, ptr %193, align 8, !tbaa !61
  %201 = getelementptr inbounds i8, ptr %200, i64 2
  %202 = load i8, ptr %201, align 1, !tbaa !62
  %.not149.2 = icmp eq i8 %202, 0
  br i1 %.not149.2, label %.lr.ph.preheader, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %203 = getelementptr inbounds i8, ptr %192, i64 2
  store i8 %202, ptr %203, align 1, !tbaa !62
  %204 = load ptr, ptr %193, align 8, !tbaa !61
  %205 = getelementptr inbounds i8, ptr %204, i64 3
  %206 = load i8, ptr %205, align 1, !tbaa !62
  %.not149.3 = icmp eq i8 %206, 0
  br i1 %.not149.3, label %.lr.ph.preheader, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %207 = getelementptr inbounds i8, ptr %192, i64 3
  store i8 %206, ptr %207, align 1, !tbaa !62
  %208 = load ptr, ptr %193, align 8, !tbaa !61
  %209 = getelementptr inbounds i8, ptr %208, i64 4
  %210 = load i8, ptr %209, align 1, !tbaa !62
  %.not149.4 = icmp eq i8 %210, 0
  br i1 %.not149.4, label %.lr.ph.preheader, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %211 = getelementptr inbounds i8, ptr %192, i64 4
  store i8 %210, ptr %211, align 1, !tbaa !62
  %212 = load ptr, ptr %193, align 8, !tbaa !61
  %213 = getelementptr inbounds i8, ptr %212, i64 5
  %214 = load i8, ptr %213, align 1, !tbaa !62
  %.not149.5 = icmp eq i8 %214, 0
  br i1 %.not149.5, label %.lr.ph.preheader, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %215 = getelementptr inbounds i8, ptr %192, i64 5
  store i8 %214, ptr %215, align 1, !tbaa !62
  %216 = load ptr, ptr %193, align 8, !tbaa !61
  %217 = getelementptr inbounds i8, ptr %216, i64 6
  %218 = load i8, ptr %217, align 1, !tbaa !62
  %.not149.6 = icmp eq i8 %218, 0
  br i1 %.not149.6, label %.lr.ph.preheader, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %219 = getelementptr inbounds i8, ptr %192, i64 6
  store i8 %218, ptr %219, align 1, !tbaa !62
  %220 = load ptr, ptr %193, align 8, !tbaa !61
  %221 = getelementptr inbounds i8, ptr %220, i64 7
  %222 = load i8, ptr %221, align 1, !tbaa !62
  %.not149.7 = icmp eq i8 %222, 0
  br i1 %.not149.7, label %.lr.ph.preheader, label %.preheader.8

.preheader.8:                                     ; preds = %.preheader.7
  %223 = getelementptr inbounds i8, ptr %192, i64 7
  store i8 %222, ptr %223, align 1, !tbaa !62
  %224 = load ptr, ptr %193, align 8, !tbaa !61
  %225 = getelementptr inbounds i8, ptr %224, i64 8
  %226 = load i8, ptr %225, align 1, !tbaa !62
  %.not149.8 = icmp eq i8 %226, 0
  br i1 %.not149.8, label %.lr.ph.preheader, label %.preheader.9

.preheader.9:                                     ; preds = %.preheader.8
  %227 = getelementptr inbounds i8, ptr %192, i64 8
  store i8 %226, ptr %227, align 1, !tbaa !62
  %228 = load ptr, ptr %193, align 8, !tbaa !61
  %229 = getelementptr inbounds i8, ptr %228, i64 9
  %230 = load i8, ptr %229, align 1, !tbaa !62
  %.not149.9 = icmp eq i8 %230, 0
  br i1 %.not149.9, label %.lr.ph.preheader, label %.preheader.10

.preheader.10:                                    ; preds = %.preheader.9
  %231 = getelementptr inbounds i8, ptr %192, i64 9
  store i8 %230, ptr %231, align 1, !tbaa !62
  %232 = load ptr, ptr %193, align 8, !tbaa !61
  %233 = getelementptr inbounds i8, ptr %232, i64 10
  %234 = load i8, ptr %233, align 1, !tbaa !62
  %.not149.10 = icmp eq i8 %234, 0
  br i1 %.not149.10, label %.lr.ph.preheader, label %.preheader.11

.preheader.11:                                    ; preds = %.preheader.10
  %235 = getelementptr inbounds i8, ptr %192, i64 10
  store i8 %234, ptr %235, align 1, !tbaa !62
  %236 = load ptr, ptr %193, align 8, !tbaa !61
  %237 = getelementptr inbounds i8, ptr %236, i64 11
  %238 = load i8, ptr %237, align 1, !tbaa !62
  %.not149.11 = icmp eq i8 %238, 0
  br i1 %.not149.11, label %.lr.ph.preheader, label %.preheader.12

.preheader.12:                                    ; preds = %.preheader.11
  %239 = getelementptr inbounds i8, ptr %192, i64 11
  store i8 %238, ptr %239, align 1, !tbaa !62
  %240 = load ptr, ptr %193, align 8, !tbaa !61
  %241 = getelementptr inbounds i8, ptr %240, i64 12
  %242 = load i8, ptr %241, align 1, !tbaa !62
  %.not149.12 = icmp eq i8 %242, 0
  br i1 %.not149.12, label %.lr.ph.preheader, label %.preheader.13

.preheader.13:                                    ; preds = %.preheader.12
  %243 = getelementptr inbounds i8, ptr %192, i64 12
  store i8 %242, ptr %243, align 1, !tbaa !62
  %244 = load ptr, ptr %193, align 8, !tbaa !61
  %245 = getelementptr inbounds i8, ptr %244, i64 13
  %246 = load i8, ptr %245, align 1, !tbaa !62
  %.not149.13 = icmp eq i8 %246, 0
  br i1 %.not149.13, label %.lr.ph.preheader, label %.preheader.14

.preheader.14:                                    ; preds = %.preheader.13
  %247 = getelementptr inbounds i8, ptr %192, i64 13
  store i8 %246, ptr %247, align 1, !tbaa !62
  %248 = load ptr, ptr %193, align 8, !tbaa !61
  %249 = getelementptr inbounds i8, ptr %248, i64 14
  %250 = load i8, ptr %249, align 1, !tbaa !62
  %.not149.14 = icmp eq i8 %250, 0
  br i1 %.not149.14, label %.lr.ph.preheader, label %.preheader.15

.preheader.15:                                    ; preds = %.preheader.14
  %251 = getelementptr inbounds i8, ptr %192, i64 14
  store i8 %250, ptr %251, align 1, !tbaa !62
  %252 = load ptr, ptr %193, align 8, !tbaa !61
  %253 = getelementptr inbounds i8, ptr %252, i64 15
  %254 = load i8, ptr %253, align 1, !tbaa !62
  %.not149.15 = icmp eq i8 %254, 0
  br i1 %.not149.15, label %.lr.ph.preheader, label %.preheader.16

.preheader.16:                                    ; preds = %.preheader.15
  %255 = getelementptr inbounds i8, ptr %192, i64 15
  store i8 %254, ptr %255, align 1, !tbaa !62
  %256 = load ptr, ptr %193, align 8, !tbaa !61
  %257 = getelementptr inbounds i8, ptr %256, i64 16
  %258 = load i8, ptr %257, align 1, !tbaa !62
  %.not149.16 = icmp eq i8 %258, 0
  br i1 %.not149.16, label %.lr.ph.preheader, label %.preheader.17

.preheader.17:                                    ; preds = %.preheader.16
  %259 = getelementptr inbounds i8, ptr %192, i64 16
  store i8 %258, ptr %259, align 1, !tbaa !62
  %260 = load ptr, ptr %193, align 8, !tbaa !61
  %261 = getelementptr inbounds i8, ptr %260, i64 17
  %262 = load i8, ptr %261, align 1, !tbaa !62
  %.not149.17 = icmp eq i8 %262, 0
  br i1 %.not149.17, label %.lr.ph.preheader, label %.preheader.18

.preheader.18:                                    ; preds = %.preheader.17
  %263 = getelementptr inbounds i8, ptr %192, i64 17
  store i8 %262, ptr %263, align 1, !tbaa !62
  %264 = load ptr, ptr %193, align 8, !tbaa !61
  %265 = getelementptr inbounds i8, ptr %264, i64 18
  %266 = load i8, ptr %265, align 1, !tbaa !62
  %.not149.18 = icmp eq i8 %266, 0
  br i1 %.not149.18, label %.lr.ph.preheader, label %.preheader.19

.preheader.19:                                    ; preds = %.preheader.18
  %267 = getelementptr inbounds i8, ptr %192, i64 18
  store i8 %266, ptr %267, align 1, !tbaa !62
  %268 = load ptr, ptr %193, align 8, !tbaa !61
  %269 = getelementptr inbounds i8, ptr %268, i64 19
  %270 = load i8, ptr %269, align 1, !tbaa !62
  %.not149.19 = icmp eq i8 %270, 0
  br i1 %.not149.19, label %.lr.ph.preheader, label %.preheader.20

.preheader.20:                                    ; preds = %.preheader.19
  %271 = getelementptr inbounds i8, ptr %192, i64 19
  store i8 %270, ptr %271, align 1, !tbaa !62
  %272 = load ptr, ptr %193, align 8, !tbaa !61
  %273 = getelementptr inbounds i8, ptr %272, i64 20
  %274 = load i8, ptr %273, align 1, !tbaa !62
  %.not149.20 = icmp eq i8 %274, 0
  br i1 %.not149.20, label %.lr.ph.preheader, label %.preheader.21

.preheader.21:                                    ; preds = %.preheader.20
  %275 = getelementptr inbounds i8, ptr %192, i64 20
  store i8 %274, ptr %275, align 1, !tbaa !62
  %276 = load ptr, ptr %193, align 8, !tbaa !61
  %277 = getelementptr inbounds i8, ptr %276, i64 21
  %278 = load i8, ptr %277, align 1, !tbaa !62
  %.not149.21 = icmp eq i8 %278, 0
  br i1 %.not149.21, label %.lr.ph.preheader, label %.preheader.22

.preheader.22:                                    ; preds = %.preheader.21
  %279 = getelementptr inbounds i8, ptr %192, i64 21
  store i8 %278, ptr %279, align 1, !tbaa !62
  %280 = load ptr, ptr %193, align 8, !tbaa !61
  %281 = getelementptr inbounds i8, ptr %280, i64 22
  %282 = load i8, ptr %281, align 1, !tbaa !62
  %.not149.22 = icmp eq i8 %282, 0
  br i1 %.not149.22, label %.lr.ph.preheader, label %.preheader.23

.preheader.23:                                    ; preds = %.preheader.22
  %283 = getelementptr inbounds i8, ptr %192, i64 22
  store i8 %282, ptr %283, align 1, !tbaa !62
  %284 = load ptr, ptr %193, align 8, !tbaa !61
  %285 = getelementptr inbounds i8, ptr %284, i64 23
  %286 = load i8, ptr %285, align 1, !tbaa !62
  %.not149.23 = icmp eq i8 %286, 0
  br i1 %.not149.23, label %.lr.ph.preheader, label %.preheader.24

.preheader.24:                                    ; preds = %.preheader.23
  %287 = getelementptr inbounds i8, ptr %192, i64 23
  store i8 %286, ptr %287, align 1, !tbaa !62
  %288 = load ptr, ptr %193, align 8, !tbaa !61
  %289 = getelementptr inbounds i8, ptr %288, i64 24
  %290 = load i8, ptr %289, align 1, !tbaa !62
  %.not149.24 = icmp eq i8 %290, 0
  br i1 %.not149.24, label %.lr.ph.preheader, label %.preheader.25

.preheader.25:                                    ; preds = %.preheader.24
  %291 = getelementptr inbounds i8, ptr %192, i64 24
  store i8 %290, ptr %291, align 1, !tbaa !62
  %292 = load ptr, ptr %193, align 8, !tbaa !61
  %293 = getelementptr inbounds i8, ptr %292, i64 25
  %294 = load i8, ptr %293, align 1, !tbaa !62
  %.not149.25 = icmp eq i8 %294, 0
  br i1 %.not149.25, label %.lr.ph.preheader, label %.preheader.26

.preheader.26:                                    ; preds = %.preheader.25
  %295 = getelementptr inbounds i8, ptr %192, i64 25
  store i8 %294, ptr %295, align 1, !tbaa !62
  %296 = load ptr, ptr %193, align 8, !tbaa !61
  %297 = getelementptr inbounds i8, ptr %296, i64 26
  %298 = load i8, ptr %297, align 1, !tbaa !62
  %.not149.26 = icmp eq i8 %298, 0
  br i1 %.not149.26, label %.lr.ph.preheader, label %.preheader.27

.preheader.27:                                    ; preds = %.preheader.26
  %299 = getelementptr inbounds i8, ptr %192, i64 26
  store i8 %298, ptr %299, align 1, !tbaa !62
  %300 = load ptr, ptr %193, align 8, !tbaa !61
  %301 = getelementptr inbounds i8, ptr %300, i64 27
  %302 = load i8, ptr %301, align 1, !tbaa !62
  %.not149.27 = icmp eq i8 %302, 0
  br i1 %.not149.27, label %.lr.ph.preheader, label %.preheader.28

.preheader.28:                                    ; preds = %.preheader.27
  %303 = getelementptr inbounds i8, ptr %192, i64 27
  store i8 %302, ptr %303, align 1, !tbaa !62
  %304 = load ptr, ptr %193, align 8, !tbaa !61
  %305 = getelementptr inbounds i8, ptr %304, i64 28
  %306 = load i8, ptr %305, align 1, !tbaa !62
  %.not149.28 = icmp eq i8 %306, 0
  br i1 %.not149.28, label %.lr.ph.preheader, label %.preheader.29

.preheader.29:                                    ; preds = %.preheader.28
  %307 = getelementptr inbounds i8, ptr %192, i64 28
  store i8 %306, ptr %307, align 1, !tbaa !62
  %308 = load ptr, ptr %193, align 8, !tbaa !61
  %309 = getelementptr inbounds i8, ptr %308, i64 29
  %310 = load i8, ptr %309, align 1, !tbaa !62
  %.not149.29 = icmp eq i8 %310, 0
  br i1 %.not149.29, label %.lr.ph.preheader, label %.preheader.30

.preheader.30:                                    ; preds = %.preheader.29
  %311 = getelementptr inbounds i8, ptr %192, i64 29
  store i8 %310, ptr %311, align 1, !tbaa !62
  %312 = load ptr, ptr %193, align 8, !tbaa !61
  %313 = getelementptr inbounds i8, ptr %312, i64 30
  %314 = load i8, ptr %313, align 1, !tbaa !62
  %.not149.30 = icmp eq i8 %314, 0
  br i1 %.not149.30, label %.lr.ph.preheader, label %315

315:                                              ; preds = %.preheader.30
  %316 = getelementptr inbounds i8, ptr %192, i64 30
  store i8 %314, ptr %316, align 1, !tbaa !62
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader.preheader, %.preheader.1, %.preheader.2, %.preheader.3, %.preheader.4, %.preheader.5, %.preheader.6, %.preheader.7, %.preheader.8, %.preheader.9, %.preheader.10, %.preheader.11, %.preheader.12, %.preheader.13, %.preheader.14, %.preheader.15, %.preheader.16, %.preheader.17, %.preheader.18, %.preheader.19, %.preheader.20, %.preheader.21, %.preheader.22, %.preheader.23, %.preheader.24, %.preheader.25, %.preheader.26, %.preheader.27, %.preheader.28, %.preheader.29, %.preheader.30, %315
  %.0.lcssa = phi i32 [ 0, %.preheader.preheader ], [ 1, %.preheader.1 ], [ 2, %.preheader.2 ], [ 3, %.preheader.3 ], [ 4, %.preheader.4 ], [ 5, %.preheader.5 ], [ 6, %.preheader.6 ], [ 7, %.preheader.7 ], [ 8, %.preheader.8 ], [ 9, %.preheader.9 ], [ 10, %.preheader.10 ], [ 11, %.preheader.11 ], [ 12, %.preheader.12 ], [ 13, %.preheader.13 ], [ 14, %.preheader.14 ], [ 15, %.preheader.15 ], [ 16, %.preheader.16 ], [ 17, %.preheader.17 ], [ 18, %.preheader.18 ], [ 19, %.preheader.19 ], [ 20, %.preheader.20 ], [ 21, %.preheader.21 ], [ 22, %.preheader.22 ], [ 23, %.preheader.23 ], [ 24, %.preheader.24 ], [ 25, %.preheader.25 ], [ 26, %.preheader.26 ], [ 27, %.preheader.27 ], [ 28, %.preheader.28 ], [ 29, %.preheader.29 ], [ 30, %.preheader.30 ], [ 31, %315 ]
  %317 = zext nneg i32 %.0.lcssa to i64
  %scevgep = getelementptr i8, ptr %192, i64 %317
  %318 = sub nuw nsw i32 32, %.0.lcssa
  %319 = zext nneg i32 %318 to i64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %scevgep, i8 0, i64 %319, i1 false), !tbaa !62
  br label %.loopexit

320:                                              ; preds = %191
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %192, i8 0, i64 32, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.preheader, %320
  %321 = getelementptr inbounds i8, ptr %1, i64 56
  %322 = load ptr, ptr %321, align 8, !tbaa !63
  %323 = getelementptr inbounds i8, ptr %192, i64 32
  store ptr %322, ptr %323, align 8, !tbaa !64
  %324 = getelementptr inbounds i8, ptr %192, i64 40
  store i32 %.0132152, ptr %324, align 8, !tbaa !65
  %325 = getelementptr inbounds i8, ptr %136, i64 8
  %326 = load i32, ptr %325, align 8, !tbaa !66
  %327 = add nsw i32 %326, -1
  %328 = getelementptr inbounds i8, ptr %192, i64 44
  store i32 %327, ptr %328, align 4, !tbaa !67
  %329 = getelementptr inbounds i8, ptr %192, i64 116
  %330 = load i16, ptr %329, align 4, !tbaa !68
  %331 = add i16 %330, 1
  store i16 %331, ptr %329, align 4, !tbaa !68
  %332 = getelementptr inbounds i8, ptr %192, i64 64
  %333 = getelementptr inbounds i8, ptr %192, i64 48
  store <4 x i32> <i32 -1, i32 0, i32 -1, i32 0>, ptr %333, align 8, !tbaa !35
  store <4 x i32> <i32 -1, i32 -1, i32 0, i32 -1>, ptr %332, align 8, !tbaa !35
  %334 = getelementptr inbounds i8, ptr %192, i64 80
  store i32 -1, ptr %334, align 8, !tbaa !69
  %335 = getelementptr inbounds i8, ptr %192, i64 84
  store i32 -1, ptr %335, align 4, !tbaa !70
  %336 = getelementptr inbounds i8, ptr %192, i64 104
  store i32 -1, ptr %336, align 8, !tbaa !71
  %337 = getelementptr inbounds i8, ptr %192, i64 108
  store i32 %134, ptr %337, align 4, !tbaa !59
  %338 = getelementptr inbounds i8, ptr %192, i64 88
  store <2 x float> zeroinitializer, ptr %338, align 8, !tbaa !44
  %339 = load float, ptr %60, align 4, !tbaa !18
  %340 = getelementptr inbounds i8, ptr %192, i64 96
  store float %339, ptr %340, align 8, !tbaa !72
  %341 = getelementptr inbounds i8, ptr %192, i64 100
  store float 0.000000e+00, ptr %341, align 4, !tbaa !73
  %342 = load i32, ptr %1, align 8, !tbaa !39
  %343 = getelementptr inbounds i8, ptr %192, i64 112
  store i32 %342, ptr %343, align 8, !tbaa !74
  %344 = getelementptr inbounds i8, ptr %1, i64 64
  %345 = load i8, ptr %344, align 8, !tbaa !37, !range !33, !noundef !34
  %346 = getelementptr inbounds i8, ptr %192, i64 118
  store i8 %345, ptr %346, align 2, !tbaa !75
  %347 = getelementptr inbounds i8, ptr %1, i64 66
  %348 = load i8, ptr %347, align 2, !tbaa !76, !range !33, !noundef !34
  %349 = getelementptr inbounds i8, ptr %192, i64 119
  store i8 %348, ptr %349, align 1, !tbaa !77
  %350 = getelementptr inbounds i8, ptr %192, i64 120
  store i8 0, ptr %350, align 8, !tbaa !78
  %351 = getelementptr inbounds i8, ptr %192, i64 121
  store i8 0, ptr %351, align 1, !tbaa !79
  %352 = icmp sgt i32 %.0132152, 1
  br i1 %352, label %353, label %354

353:                                              ; preds = %.loopexit
  tail call void @b2CreateIslandForBody(ptr noundef nonnull %77, i32 noundef %.0132152, ptr noundef nonnull %192)
  br label %354

354:                                              ; preds = %353, %.loopexit
  tail call void @b2ValidateSolverSets(ptr noundef nonnull %77) #6
  %355 = add nsw i32 %134, 1
  %356 = getelementptr inbounds i8, ptr %77, i64 1796
  br label %357

357:                                              ; preds = %354, %86
  %.sroa.0131.0 = phi i32 [ %.sroa.0131.0.copyload, %86 ], [ %355, %354 ]
  %.sroa.3.0.in = phi ptr [ getelementptr inbounds (i8, ptr @b2_nullBodyId, i64 4), %86 ], [ %356, %354 ]
  %.sroa.4.0.in = phi ptr [ getelementptr inbounds (i8, ptr @b2_nullBodyId, i64 6), %86 ], [ %329, %354 ]
  %.sroa.4.0 = load i16, ptr %.sroa.4.0.in, align 2, !tbaa !80
  %.sroa.3.0 = load i16, ptr %.sroa.3.0.in, align 4, !tbaa !80
  %.sroa.4.0.insert.ext = zext i16 %.sroa.4.0 to i64
  %.sroa.4.0.insert.shift = shl nuw i64 %.sroa.4.0.insert.ext, 48
  %.sroa.3.0.insert.ext = zext i16 %.sroa.3.0 to i64
  %.sroa.3.0.insert.shift = shl nuw nsw i64 %.sroa.3.0.insert.ext, 32
  %.sroa.0131.0.insert.ext = zext i32 %.sroa.0131.0 to i64
  %.sroa.3.0.insert.insert = or disjoint i64 %.sroa.4.0.insert.shift, %.sroa.0131.0.insert.ext
  %.sroa.0131.0.insert.insert = or disjoint i64 %.sroa.3.0.insert.insert, %.sroa.3.0.insert.shift
  ret i64 %.sroa.0131.0.insert.insert
}

declare zeroext i1 @b2IsValidVec2(<2 x float>) local_unnamed_addr #1

declare zeroext i1 @b2IsValidRotation(<2 x float>) local_unnamed_addr #1

declare zeroext i1 @b2IsValidFloat(float noundef) local_unnamed_addr #1

declare ptr @b2GetWorldFromId(i32) local_unnamed_addr #1

declare i32 @b2AllocId(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SolverSetArray_Push(ptr noundef, ptr noundef byval(%struct.b2SolverSet) align 8) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodySimArray_Add(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyStateArray_Add(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2BodyArray_Push(ptr noundef, ptr noundef byval(%struct.b2Body) align 8) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @b2CreateIslandForBody(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare void @b2ValidateSolverSets(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #3 = { inlinehint 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 = { nounwind uwtable "min-legal-vector-width"="64" "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 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, !7, i64 72}
!6 = !{!"b2BodyDef", !7, i64 0, !10, i64 4, !12, i64 12, !10, i64 20, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !13, i64 48, !13, i64 56, !14, i64 64, !14, i64 65, !14, i64 66, !14, i64 67, !14, i64 68, !14, i64 69, !7, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"b2Rot", !11, i64 0, !11, i64 4}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_Bool", !8, i64 0}
!15 = !{!6, !11, i64 28}
!16 = !{!6, !11, i64 32}
!17 = !{!6, !11, i64 36}
!18 = !{!6, !11, i64 44}
!19 = !{!6, !11, i64 40}
!20 = !{!21, !14, i64 1799}
!21 = !{!"b2World", !22, i64 0, !24, i64 40, !27, i64 336, !28, i64 1008, !23, i64 1032, !28, i64 1048, !23, i64 1072, !28, i64 1088, !23, i64 1112, !28, i64 1128, !23, i64 1152, !28, i64 1168, !23, i64 1192, !28, i64 1208, !28, i64 1232, !23, i64 1256, !23, i64 1272, !23, i64 1288, !23, i64 1304, !23, i64 1320, !23, i64 1336, !23, i64 1352, !23, i64 1368, !8, i64 1384, !8, i64 1416, !7, i64 1448, !23, i64 1456, !29, i64 1472, !29, i64 1488, !29, i64 1504, !29, i64 1520, !30, i64 1536, !7, i64 1544, !10, i64 1548, !11, i64 1556, !11, i64 1560, !11, i64 1564, !11, i64 1568, !11, i64 1572, !11, i64 1576, !11, i64 1580, !11, i64 1584, !13, i64 1592, !13, i64 1600, !31, i64 1608, !32, i64 1612, !13, i64 1704, !13, i64 1712, !13, i64 1720, !13, i64 1728, !7, i64 1736, !13, i64 1744, !13, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !11, i64 1784, !7, i64 1788, !7, i64 1792, !31, i64 1796, !14, i64 1798, !14, i64 1799, !14, i64 1800, !14, i64 1801, !14, i64 1802, !14, i64 1803}
!22 = !{!"b2ArenaAllocator", !13, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !23, i64 24}
!23 = !{!"", !13, i64 0, !7, i64 8, !7, i64 12}
!24 = !{!"b2BroadPhase", !8, i64 0, !7, i64 216, !25, i64 224, !23, i64 240, !13, i64 256, !13, i64 264, !7, i64 272, !26, i64 276, !25, i64 280}
!25 = !{!"b2HashSet", !13, i64 0, !7, i64 8, !7, i64 12}
!26 = !{!"b2AtomicInt", !7, i64 0}
!27 = !{!"b2ConstraintGraph", !8, i64 0}
!28 = !{!"b2IdPool", !23, i64 0, !7, i64 16}
!29 = !{!"b2BitSet", !13, i64 0, !7, i64 8, !7, i64 12}
!30 = !{!"long", !8, i64 0}
!31 = !{!"short", !8, i64 0}
!32 = !{!"b2Profile", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!7, !7, i64 0}
!36 = !{!6, !14, i64 65}
!37 = !{!6, !14, i64 64}
!38 = !{!6, !14, i64 68}
!39 = !{!6, !7, i64 0}
!40 = !{!21, !7, i64 1080}
!41 = !{!21, !13, i64 1072}
!42 = !{!43, !7, i64 80}
!43 = !{!"b2SolverSet", !23, i64 0, !23, i64 16, !23, i64 32, !23, i64 48, !23, i64 64, !7, i64 80}
!44 = !{!11, !11, i64 0}
!45 = !{!46, !11, i64 68}
!46 = !{!"b2BodySim", !47, i64 0, !10, i64 16, !12, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !7, i64 88, !14, i64 92, !14, i64 93, !14, i64 94, !14, i64 95, !14, i64 96}
!47 = !{!"b2Transform", !10, i64 0, !12, i64 8}
!48 = !{!46, !11, i64 72}
!49 = !{!46, !11, i64 84}
!50 = !{!46, !7, i64 88}
!51 = !{!6, !14, i64 67}
!52 = !{!46, !14, i64 93}
!53 = !{!6, !14, i64 69}
!54 = !{!46, !14, i64 95}
!55 = !{!56, !11, i64 8}
!56 = !{!"b2BodyState", !10, i64 0, !11, i64 8, !7, i64 12, !10, i64 16, !12, i64 24}
!57 = !{!21, !7, i64 1040}
!58 = !{!21, !13, i64 1032}
!59 = !{!60, !7, i64 108}
!60 = !{!"b2Body", !8, i64 0, !13, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !31, i64 116, !14, i64 118, !14, i64 119, !14, i64 120, !14, i64 121}
!61 = !{!6, !13, i64 48}
!62 = !{!8, !8, i64 0}
!63 = !{!6, !13, i64 56}
!64 = !{!60, !13, i64 32}
!65 = !{!60, !7, i64 40}
!66 = !{!43, !7, i64 8}
!67 = !{!60, !7, i64 44}
!68 = !{!60, !31, i64 116}
!69 = !{!60, !7, i64 80}
!70 = !{!60, !7, i64 84}
!71 = !{!60, !7, i64 104}
!72 = !{!60, !11, i64 96}
!73 = !{!60, !11, i64 100}
!74 = !{!60, !7, i64 112}
!75 = !{!60, !14, i64 118}
!76 = !{!6, !14, i64 66}
!77 = !{!60, !14, i64 119}
!78 = !{!60, !14, i64 120}
!79 = !{!60, !14, i64 121}
!80 = !{!31, !31, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass