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

; 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.b2ContactSim = type { i32, i32, i32, i32, i32, float, float, float, float, %struct.b2Manifold, float, float, float, float, i32, %struct.b2SimplexCache }
%struct.b2Manifold = type { %struct.b2Vec2, float, [2 x %struct.b2ManifoldPoint], i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, i16, i8 }
%struct.b2SimplexCache = type { i16, [3 x i8], [3 x i8] }
%struct.b2Contact = type { i32, i32, i32, [2 x %struct.b2ContactEdge], i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.b2ContactEdge = type { i32, i32, 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 }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%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 }
%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.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.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.b2Rot = type { float, float }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @b2AddContactToGraph(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.b2ContactSim, ptr %31, i32 0, i32 9
  %33 = getelementptr inbounds %struct.b2Manifold, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %40, label %36

36:                                               ; preds = %30
  %37 = call i32 @b2InternalAssertFcn(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 70)
  %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, %30
  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.b2ContactSim, ptr %43, i32 0, i32 14
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = and i32 %45, 65536
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %52, label %48

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

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

52:                                               ; preds = %51, %48, %42
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b2Contact, ptr %55, i32 0, i32 10
  %57 = load i32, ptr %56, align 4, !tbaa !18
  %58 = and i32 %57, 1
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %64, label %60

60:                                               ; preds = %54
  %61 = call i32 @b2InternalAssertFcn(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 72)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  call void @llvm.trap()
  br label %64

64:                                               ; preds = %63, %60, %54
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.b2World, ptr %66, i32 0, i32 2
  store ptr %67, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 11, ptr %8, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.b2Contact, ptr %68, i32 0, i32 3
  %70 = getelementptr inbounds [2 x %struct.b2ContactEdge], ptr %69, i64 0, i64 0
  %71 = getelementptr inbounds %struct.b2ContactEdge, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !22
  store i32 %72, ptr %9, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.b2Contact, ptr %73, i32 0, i32 3
  %75 = getelementptr inbounds [2 x %struct.b2ContactEdge], ptr %74, i64 0, i64 1
  %76 = getelementptr inbounds %struct.b2ContactEdge, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !22
  store i32 %77, ptr %10, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.b2World, ptr %78, i32 0, i32 4
  %80 = load i32, ptr %9, align 4, !tbaa !21
  %81 = call ptr @b2BodyArray_Get(ptr noundef %79, i32 noundef %80)
  store ptr %81, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.b2World, ptr %82, i32 0, i32 4
  %84 = load i32, ptr %10, align 4, !tbaa !21
  %85 = call ptr @b2BodyArray_Get(ptr noundef %83, i32 noundef %84)
  store ptr %85, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.b2Body, ptr %86, i32 0, i32 2
  %88 = load i32, ptr %87, align 8, !tbaa !24
  %89 = icmp eq i32 %88, 0
  %90 = zext i1 %89 to i8
  store i8 %90, ptr %13, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.b2Body, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 8, !tbaa !24
  %94 = icmp eq i32 %93, 0
  %95 = zext i1 %94 to i8
  store i8 %95, ptr %14, align 1, !tbaa !26
  br label %96

96:                                               ; preds = %65
  %97 = load i8, ptr %13, align 1, !tbaa !26, !range !27, !noundef !28
  %98 = trunc i8 %97 to i1
  %99 = zext i1 %98 to i32
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %110, label %101

101:                                              ; preds = %96
  %102 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %103 = trunc i8 %102 to i1
  %104 = zext i1 %103 to i32
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %110, label %106

106:                                              ; preds = %101
  %107 = call i32 @b2InternalAssertFcn(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 83)
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  call void @llvm.trap()
  br label %110

110:                                              ; preds = %109, %106, %101, %96
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = load i8, ptr %13, align 1, !tbaa !26, !range !27, !noundef !28
  %114 = trunc i8 %113 to i1
  %115 = zext i1 %114 to i32
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %159

117:                                              ; preds = %112
  %118 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %119 = trunc i8 %118 to i1
  %120 = zext i1 %119 to i32
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %159

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !21
  br label %123

123:                                              ; preds = %154, %122
  %124 = load i32, ptr %15, align 4, !tbaa !21
  %125 = icmp slt i32 %124, 11
  br i1 %125, label %127, label %126

126:                                              ; preds = %123
  store i32 10, ptr %16, align 4
  br label %157

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.b2ConstraintGraph, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds [12 x %struct.b2GraphColor], ptr %129, i64 0, i64 0
  %131 = load i32, ptr %15, align 4, !tbaa !21
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct.b2GraphColor, ptr %130, i64 %132
  store ptr %133, ptr %17, align 8, !tbaa !5
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.b2GraphColor, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %9, align 4, !tbaa !21
  %137 = call zeroext i1 @b2GetBit(ptr noundef %135, i32 noundef %136)
  br i1 %137, label %143, label %138

138:                                              ; preds = %127
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.b2GraphColor, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %10, align 4, !tbaa !21
  %142 = call zeroext i1 @b2GetBit(ptr noundef %140, i32 noundef %141)
  br i1 %142, label %143, label %144

143:                                              ; preds = %138, %127
  store i32 12, ptr %16, align 4
  br label %152

144:                                              ; preds = %138
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.b2GraphColor, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %9, align 4, !tbaa !21
  call void @b2SetBitGrow(ptr noundef %146, i32 noundef %147)
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.b2GraphColor, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %10, align 4, !tbaa !21
  call void @b2SetBitGrow(ptr noundef %149, i32 noundef %150)
  %151 = load i32, ptr %15, align 4, !tbaa !21
  store i32 %151, ptr %8, align 4, !tbaa !21
  store i32 10, ptr %16, align 4
  br label %152

152:                                              ; preds = %144, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %153 = load i32, ptr %16, align 4
  switch i32 %153, label %157 [
    i32 12, label %154
  ]

154:                                              ; preds = %152
  %155 = load i32, ptr %15, align 4, !tbaa !21
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %15, align 4, !tbaa !21
  br label %123, !llvm.loop !29

157:                                              ; preds = %152, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %158

158:                                              ; preds = %157
  br label %229

159:                                              ; preds = %117, %112
  %160 = load i8, ptr %13, align 1, !tbaa !26, !range !27, !noundef !28
  %161 = trunc i8 %160 to i1
  %162 = zext i1 %161 to i32
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %193

164:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 1, ptr %18, align 4, !tbaa !21
  br label %165

165:                                              ; preds = %188, %164
  %166 = load i32, ptr %18, align 4, !tbaa !21
  %167 = icmp slt i32 %166, 11
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  store i32 13, ptr %16, align 4
  br label %191

169:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.b2ConstraintGraph, ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds [12 x %struct.b2GraphColor], ptr %171, i64 0, i64 0
  %173 = load i32, ptr %18, align 4, !tbaa !21
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %struct.b2GraphColor, ptr %172, i64 %174
  store ptr %175, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.b2GraphColor, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %9, align 4, !tbaa !21
  %179 = call zeroext i1 @b2GetBit(ptr noundef %177, i32 noundef %178)
  br i1 %179, label %180, label %181

180:                                              ; preds = %169
  store i32 15, ptr %16, align 4
  br label %186

181:                                              ; preds = %169
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.b2GraphColor, ptr %182, i32 0, i32 0
  %184 = load i32, ptr %9, align 4, !tbaa !21
  call void @b2SetBitGrow(ptr noundef %183, i32 noundef %184)
  %185 = load i32, ptr %18, align 4, !tbaa !21
  store i32 %185, ptr %8, align 4, !tbaa !21
  store i32 13, ptr %16, align 4
  br label %186

186:                                              ; preds = %181, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %187 = load i32, ptr %16, align 4
  switch i32 %187, label %191 [
    i32 15, label %188
  ]

188:                                              ; preds = %186
  %189 = load i32, ptr %18, align 4, !tbaa !21
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %18, align 4, !tbaa !21
  br label %165, !llvm.loop !31

191:                                              ; preds = %186, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %192

192:                                              ; preds = %191
  br label %228

193:                                              ; preds = %159
  %194 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %195 = trunc i8 %194 to i1
  %196 = zext i1 %195 to i32
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %227

198:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 1, ptr %20, align 4, !tbaa !21
  br label %199

199:                                              ; preds = %222, %198
  %200 = load i32, ptr %20, align 4, !tbaa !21
  %201 = icmp slt i32 %200, 11
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  store i32 16, ptr %16, align 4
  br label %225

203:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.b2ConstraintGraph, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds [12 x %struct.b2GraphColor], ptr %205, i64 0, i64 0
  %207 = load i32, ptr %20, align 4, !tbaa !21
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct.b2GraphColor, ptr %206, i64 %208
  store ptr %209, ptr %21, align 8, !tbaa !5
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.b2GraphColor, ptr %210, i32 0, i32 0
  %212 = load i32, ptr %10, align 4, !tbaa !21
  %213 = call zeroext i1 @b2GetBit(ptr noundef %211, i32 noundef %212)
  br i1 %213, label %214, label %215

214:                                              ; preds = %203
  store i32 18, ptr %16, align 4
  br label %220

215:                                              ; preds = %203
  %216 = load ptr, ptr %21, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.b2GraphColor, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %10, align 4, !tbaa !21
  call void @b2SetBitGrow(ptr noundef %217, i32 noundef %218)
  %219 = load i32, ptr %20, align 4, !tbaa !21
  store i32 %219, ptr %8, align 4, !tbaa !21
  store i32 16, ptr %16, align 4
  br label %220

220:                                              ; preds = %215, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %221 = load i32, ptr %16, align 4
  switch i32 %221, label %225 [
    i32 18, label %222
  ]

222:                                              ; preds = %220
  %223 = load i32, ptr %20, align 4, !tbaa !21
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %20, align 4, !tbaa !21
  br label %199, !llvm.loop !32

225:                                              ; preds = %220, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226, %193
  br label %228

228:                                              ; preds = %227, %192
  br label %229

229:                                              ; preds = %228, %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.b2ConstraintGraph, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds [12 x %struct.b2GraphColor], ptr %231, i64 0, i64 0
  %233 = load i32, ptr %8, align 4, !tbaa !21
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds %struct.b2GraphColor, ptr %232, i64 %234
  store ptr %235, ptr %22, align 8, !tbaa !5
  %236 = load i32, ptr %8, align 4, !tbaa !21
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.b2Contact, ptr %237, i32 0, i32 1
  store i32 %236, ptr %238, align 4, !tbaa !33
  %239 = load ptr, ptr %22, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.b2GraphColor, ptr %239, i32 0, i32 1
  %241 = getelementptr inbounds %struct.b2ContactSimArray, ptr %240, i32 0, i32 1
  %242 = load i32, ptr %241, align 8, !tbaa !34
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.b2Contact, ptr %243, i32 0, i32 2
  store i32 %242, ptr %244, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %245 = load ptr, ptr %22, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.b2GraphColor, ptr %245, i32 0, i32 1
  %247 = call ptr @b2ContactSimArray_Add(ptr noundef %246)
  store ptr %247, ptr %23, align 8, !tbaa !5
  %248 = load ptr, ptr %23, align 8, !tbaa !5
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %248, ptr align 4 %249, i64 176, i1 false)
  %250 = load i8, ptr %13, align 1, !tbaa !26, !range !27, !noundef !28
  %251 = trunc i8 %250 to i1
  br i1 %251, label %252, label %259

252:                                              ; preds = %229
  %253 = load ptr, ptr %23, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.b2ContactSim, ptr %253, i32 0, i32 1
  store i32 -1, ptr %254, align 4, !tbaa !39
  %255 = load ptr, ptr %23, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.b2ContactSim, ptr %255, i32 0, i32 5
  store float 0.000000e+00, ptr %256, align 4, !tbaa !40
  %257 = load ptr, ptr %23, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.b2ContactSim, ptr %257, i32 0, i32 6
  store float 0.000000e+00, ptr %258, align 4, !tbaa !41
  br label %295

259:                                              ; preds = %229
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.b2Body, ptr %261, i32 0, i32 2
  %263 = load i32, ptr %262, align 8, !tbaa !24
  %264 = icmp eq i32 %263, 2
  br i1 %264, label %269, label %265

265:                                              ; preds = %260
  %266 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 153)
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %269

268:                                              ; preds = %265
  call void @llvm.trap()
  br label %269

269:                                              ; preds = %268, %265, %260
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.b2World, ptr %272, i32 0, i32 6
  %274 = call ptr @b2SolverSetArray_Get(ptr noundef %273, i32 noundef 2)
  store ptr %274, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.b2Body, ptr %275, i32 0, i32 3
  %277 = load i32, ptr %276, align 4, !tbaa !42
  store i32 %277, ptr %25, align 4, !tbaa !21
  %278 = load i32, ptr %25, align 4, !tbaa !21
  %279 = load ptr, ptr %23, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.b2ContactSim, ptr %279, i32 0, i32 1
  store i32 %278, ptr %280, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %281 = load ptr, ptr %24, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.b2SolverSet, ptr %281, i32 0, i32 0
  %283 = load i32, ptr %25, align 4, !tbaa !21
  %284 = call ptr @b2BodySimArray_Get(ptr noundef %282, i32 noundef %283)
  store ptr %284, ptr %26, align 8, !tbaa !5
  %285 = load ptr, ptr %26, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.b2BodySim, ptr %285, i32 0, i32 7
  %287 = load float, ptr %286, align 4, !tbaa !43
  %288 = load ptr, ptr %23, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.b2ContactSim, ptr %288, i32 0, i32 5
  store float %287, ptr %289, align 4, !tbaa !40
  %290 = load ptr, ptr %26, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.b2BodySim, ptr %290, i32 0, i32 8
  %292 = load float, ptr %291, align 4, !tbaa !47
  %293 = load ptr, ptr %23, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.b2ContactSim, ptr %293, i32 0, i32 6
  store float %292, ptr %294, align 4, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %295

295:                                              ; preds = %271, %252
  %296 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %305

298:                                              ; preds = %295
  %299 = load ptr, ptr %23, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.b2ContactSim, ptr %299, i32 0, i32 2
  store i32 -1, ptr %300, align 4, !tbaa !48
  %301 = load ptr, ptr %23, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.b2ContactSim, ptr %301, i32 0, i32 7
  store float 0.000000e+00, ptr %302, align 4, !tbaa !49
  %303 = load ptr, ptr %23, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.b2ContactSim, ptr %303, i32 0, i32 8
  store float 0.000000e+00, ptr %304, align 4, !tbaa !50
  br label %341

305:                                              ; preds = %295
  br label %306

306:                                              ; preds = %305
  %307 = load ptr, ptr %12, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.b2Body, ptr %307, i32 0, i32 2
  %309 = load i32, ptr %308, align 8, !tbaa !24
  %310 = icmp eq i32 %309, 2
  br i1 %310, label %315, label %311

311:                                              ; preds = %306
  %312 = call i32 @b2InternalAssertFcn(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 172)
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %314, label %315

314:                                              ; preds = %311
  call void @llvm.trap()
  br label %315

315:                                              ; preds = %314, %311, %306
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.b2World, ptr %318, i32 0, i32 6
  %320 = call ptr @b2SolverSetArray_Get(ptr noundef %319, i32 noundef 2)
  store ptr %320, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %321 = load ptr, ptr %12, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.b2Body, ptr %321, i32 0, i32 3
  %323 = load i32, ptr %322, align 4, !tbaa !42
  store i32 %323, ptr %28, align 4, !tbaa !21
  %324 = load i32, ptr %28, align 4, !tbaa !21
  %325 = load ptr, ptr %23, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.b2ContactSim, ptr %325, i32 0, i32 2
  store i32 %324, ptr %326, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %327 = load ptr, ptr %27, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.b2SolverSet, ptr %327, i32 0, i32 0
  %329 = load i32, ptr %28, align 4, !tbaa !21
  %330 = call ptr @b2BodySimArray_Get(ptr noundef %328, i32 noundef %329)
  store ptr %330, ptr %29, align 8, !tbaa !5
  %331 = load ptr, ptr %29, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.b2BodySim, ptr %331, i32 0, i32 7
  %333 = load float, ptr %332, align 4, !tbaa !43
  %334 = load ptr, ptr %23, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.b2ContactSim, ptr %334, i32 0, i32 7
  store float %333, ptr %335, align 4, !tbaa !49
  %336 = load ptr, ptr %29, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.b2BodySim, ptr %336, i32 0, i32 8
  %338 = load float, ptr %337, align 4, !tbaa !47
  %339 = load ptr, ptr %23, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.b2ContactSim, ptr %339, i32 0, i32 8
  store float %338, ptr %340, align 4, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %341

341:                                              ; preds = %317, %298
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @b2GetBit(ptr noundef, i32 noundef) #5

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2ContactSimArray_Add(ptr noundef) #5

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 144}
!10 = !{!"b2ContactSim", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 36, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !11, i64 164, !15, i64 168}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"b2Manifold", !14, i64 0, !12, i64 8, !7, i64 12, !11, i64 108}
!14 = !{!"b2Vec2", !12, i64 0, !12, i64 4}
!15 = !{!"b2SimplexCache", !16, i64 0, !7, i64 2, !7, i64 5}
!16 = !{!"short", !7, i64 0}
!17 = !{!10, !11, i64 164}
!18 = !{!19, !11, i64 60}
!19 = !{!"b2Contact", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !20, i64 64}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !11, i64 0}
!23 = !{!"b2ContactEdge", !11, i64 0, !11, i64 4, !11, i64 8}
!24 = !{!25, !11, i64 40}
!25 = !{!"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, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !16, i64 116, !20, i64 118, !20, i64 119, !20, i64 120, !20, i64 121}
!26 = !{!20, !20, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = !{!19, !11, i64 4}
!34 = !{!35, !11, i64 24}
!35 = !{!"b2GraphColor", !36, i64 0, !37, i64 16, !37, i64 32, !7, i64 48}
!36 = !{!"b2BitSet", !6, i64 0, !11, i64 8, !11, i64 12}
!37 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12}
!38 = !{!19, !11, i64 8}
!39 = !{!10, !11, i64 4}
!40 = !{!10, !12, i64 20}
!41 = !{!10, !12, i64 24}
!42 = !{!25, !11, i64 44}
!43 = !{!44, !12, i64 60}
!44 = !{!"b2BodySim", !45, i64 0, !14, i64 16, !46, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !11, i64 88, !20, i64 92, !20, i64 93, !20, i64 94, !20, i64 95, !20, i64 96}
!45 = !{!"b2Transform", !14, i64 0, !46, i64 8}
!46 = !{!"b2Rot", !12, i64 0, !12, i64 4}
!47 = !{!44, !12, i64 64}
!48 = !{!10, !11, i64 8}
!49 = !{!10, !12, i64 28}
!50 = !{!10, !12, i64 32}


; 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.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%union.anon = type { ptr }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress 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) #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: nounwind uwtable
define dso_local void @b2AddContactToGraph(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %1, i64 144
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %10, label %7

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

9:                                                ; preds = %7
  tail call void @llvm.trap()
  unreachable

10:                                               ; preds = %7, %3
  %11 = getelementptr inbounds i8, ptr %1, i64 164
  %12 = load i32, ptr %11, align 4, !tbaa !15
  %13 = and i32 %12, 65536
  %.not98 = icmp eq i32 %13, 0
  br i1 %.not98, label %14, label %17

14:                                               ; preds = %10
  %15 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 71) #5
  %.not99 = icmp eq i32 %15, 0
  br i1 %.not99, label %17, label %16

16:                                               ; preds = %14
  tail call void @llvm.trap()
  unreachable

17:                                               ; preds = %14, %10
  %18 = getelementptr inbounds i8, ptr %2, i64 60
  %19 = load i32, ptr %18, align 4, !tbaa !16
  %20 = and i32 %19, 1
  %.not100 = icmp eq i32 %20, 0
  br i1 %.not100, label %21, label %24

21:                                               ; preds = %17
  %22 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 72) #5
  %.not101 = icmp eq i32 %22, 0
  br i1 %.not101, label %24, label %23

23:                                               ; preds = %21
  tail call void @llvm.trap()
  unreachable

24:                                               ; preds = %17, %21
  %25 = getelementptr inbounds i8, ptr %0, i64 336
  %26 = getelementptr inbounds i8, ptr %2, i64 12
  %27 = load i32, ptr %26, align 4, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  %29 = load i32, ptr %28, align 4, !tbaa !19
  %30 = getelementptr inbounds i8, ptr %0, i64 1032
  %31 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %30, i32 noundef %27)
  %32 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %30, i32 noundef %29)
  %33 = getelementptr inbounds i8, ptr %31, i64 40
  %34 = load i32, ptr %33, align 8, !tbaa !21
  %.not102 = icmp eq i32 %34, 0
  %35 = getelementptr inbounds i8, ptr %32, i64 40
  %36 = load i32, ptr %35, align 8, !tbaa !21
  %.not104 = icmp eq i32 %36, 0
  %37 = select i1 %.not102, i1 %.not104, i1 false
  br i1 %37, label %38, label %41

38:                                               ; preds = %24
  %39 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 83) #5
  %.not103 = icmp eq i32 %39, 0
  br i1 %.not103, label %.thread117, label %40

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

41:                                               ; preds = %24
  %brmerge107 = select i1 %.not102, i1 true, i1 %.not104
  br i1 %brmerge107, label %86, label %.preheader123.preheader

.preheader123.preheader:                          ; preds = %41
  %42 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %25, i32 noundef %27)
  br i1 %42, label %.preheader123.1, label %43

43:                                               ; preds = %.preheader123.preheader
  %44 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %25, i32 noundef %29)
  br i1 %44, label %.preheader123.1, label %45

45:                                               ; preds = %84, %80, %76, %72, %68, %64, %60, %56, %52, %48, %43
  %.092130.lcssa.wide = phi i32 [ 0, %43 ], [ 1, %48 ], [ 2, %52 ], [ 3, %56 ], [ 4, %60 ], [ 5, %64 ], [ 6, %68 ], [ 7, %72 ], [ 8, %76 ], [ 9, %80 ], [ 10, %84 ]
  %.lcssa140 = phi ptr [ %25, %43 ], [ %46, %48 ], [ %50, %52 ], [ %54, %56 ], [ %58, %60 ], [ %62, %64 ], [ %66, %68 ], [ %70, %72 ], [ %74, %76 ], [ %78, %80 ], [ %82, %84 ]
  tail call void @b2SetBitGrow(ptr noundef nonnull %.lcssa140, i32 noundef %27)
  tail call void @b2SetBitGrow(ptr noundef nonnull %.lcssa140, i32 noundef %29)
  br label %.thread117

.preheader123.1:                                  ; preds = %43, %.preheader123.preheader
  %46 = getelementptr inbounds i8, ptr %0, i64 392
  %47 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %46, i32 noundef %27)
  br i1 %47, label %.preheader123.2, label %48

48:                                               ; preds = %.preheader123.1
  %49 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %46, i32 noundef %29)
  br i1 %49, label %.preheader123.2, label %45

.preheader123.2:                                  ; preds = %48, %.preheader123.1
  %50 = getelementptr inbounds i8, ptr %0, i64 448
  %51 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %50, i32 noundef %27)
  br i1 %51, label %.preheader123.3, label %52

52:                                               ; preds = %.preheader123.2
  %53 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %50, i32 noundef %29)
  br i1 %53, label %.preheader123.3, label %45

.preheader123.3:                                  ; preds = %52, %.preheader123.2
  %54 = getelementptr inbounds i8, ptr %0, i64 504
  %55 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %54, i32 noundef %27)
  br i1 %55, label %.preheader123.4, label %56

56:                                               ; preds = %.preheader123.3
  %57 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %54, i32 noundef %29)
  br i1 %57, label %.preheader123.4, label %45

.preheader123.4:                                  ; preds = %56, %.preheader123.3
  %58 = getelementptr inbounds i8, ptr %0, i64 560
  %59 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %58, i32 noundef %27)
  br i1 %59, label %.preheader123.5, label %60

60:                                               ; preds = %.preheader123.4
  %61 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %58, i32 noundef %29)
  br i1 %61, label %.preheader123.5, label %45

.preheader123.5:                                  ; preds = %60, %.preheader123.4
  %62 = getelementptr inbounds i8, ptr %0, i64 616
  %63 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %62, i32 noundef %27)
  br i1 %63, label %.preheader123.6, label %64

64:                                               ; preds = %.preheader123.5
  %65 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %62, i32 noundef %29)
  br i1 %65, label %.preheader123.6, label %45

.preheader123.6:                                  ; preds = %64, %.preheader123.5
  %66 = getelementptr inbounds i8, ptr %0, i64 672
  %67 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %66, i32 noundef %27)
  br i1 %67, label %.preheader123.7, label %68

68:                                               ; preds = %.preheader123.6
  %69 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %66, i32 noundef %29)
  br i1 %69, label %.preheader123.7, label %45

.preheader123.7:                                  ; preds = %68, %.preheader123.6
  %70 = getelementptr inbounds i8, ptr %0, i64 728
  %71 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %70, i32 noundef %27)
  br i1 %71, label %.preheader123.8, label %72

72:                                               ; preds = %.preheader123.7
  %73 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %70, i32 noundef %29)
  br i1 %73, label %.preheader123.8, label %45

.preheader123.8:                                  ; preds = %72, %.preheader123.7
  %74 = getelementptr inbounds i8, ptr %0, i64 784
  %75 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %74, i32 noundef %27)
  br i1 %75, label %.preheader123.9, label %76

76:                                               ; preds = %.preheader123.8
  %77 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %74, i32 noundef %29)
  br i1 %77, label %.preheader123.9, label %45

.preheader123.9:                                  ; preds = %76, %.preheader123.8
  %78 = getelementptr inbounds i8, ptr %0, i64 840
  %79 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %78, i32 noundef %27)
  br i1 %79, label %.preheader123.10, label %80

80:                                               ; preds = %.preheader123.9
  %81 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %78, i32 noundef %29)
  br i1 %81, label %.preheader123.10, label %45

.preheader123.10:                                 ; preds = %80, %.preheader123.9
  %82 = getelementptr inbounds i8, ptr %0, i64 896
  %83 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %82, i32 noundef %27)
  br i1 %83, label %.thread117, label %84

84:                                               ; preds = %.preheader123.10
  %85 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %82, i32 noundef %29)
  br i1 %85, label %.thread117, label %45

86:                                               ; preds = %41
  br i1 %.not102, label %108, label %.preheader121.preheader

.preheader121.preheader:                          ; preds = %86
  %87 = getelementptr inbounds i8, ptr %0, i64 392
  %88 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %87, i32 noundef %27)
  br i1 %88, label %.preheader121.1, label %89

89:                                               ; preds = %.preheader121.9, %.preheader121.8, %.preheader121.7, %.preheader121.6, %.preheader121.5, %.preheader121.4, %.preheader121.3, %.preheader121.2, %.preheader121.1, %.preheader121.preheader
  %.096131.lcssa.wide = phi i32 [ 1, %.preheader121.preheader ], [ 2, %.preheader121.1 ], [ 3, %.preheader121.2 ], [ 4, %.preheader121.3 ], [ 5, %.preheader121.4 ], [ 6, %.preheader121.5 ], [ 7, %.preheader121.6 ], [ 8, %.preheader121.7 ], [ 9, %.preheader121.8 ], [ 10, %.preheader121.9 ]
  %.lcssa137 = phi ptr [ %87, %.preheader121.preheader ], [ %90, %.preheader121.1 ], [ %92, %.preheader121.2 ], [ %94, %.preheader121.3 ], [ %96, %.preheader121.4 ], [ %98, %.preheader121.5 ], [ %100, %.preheader121.6 ], [ %102, %.preheader121.7 ], [ %104, %.preheader121.8 ], [ %106, %.preheader121.9 ]
  tail call void @b2SetBitGrow(ptr noundef nonnull %.lcssa137, i32 noundef %27)
  br label %.thread117

.preheader121.1:                                  ; preds = %.preheader121.preheader
  %90 = getelementptr inbounds i8, ptr %0, i64 448
  %91 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %90, i32 noundef %27)
  br i1 %91, label %.preheader121.2, label %89

.preheader121.2:                                  ; preds = %.preheader121.1
  %92 = getelementptr inbounds i8, ptr %0, i64 504
  %93 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %92, i32 noundef %27)
  br i1 %93, label %.preheader121.3, label %89

.preheader121.3:                                  ; preds = %.preheader121.2
  %94 = getelementptr inbounds i8, ptr %0, i64 560
  %95 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %94, i32 noundef %27)
  br i1 %95, label %.preheader121.4, label %89

.preheader121.4:                                  ; preds = %.preheader121.3
  %96 = getelementptr inbounds i8, ptr %0, i64 616
  %97 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %96, i32 noundef %27)
  br i1 %97, label %.preheader121.5, label %89

.preheader121.5:                                  ; preds = %.preheader121.4
  %98 = getelementptr inbounds i8, ptr %0, i64 672
  %99 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %98, i32 noundef %27)
  br i1 %99, label %.preheader121.6, label %89

.preheader121.6:                                  ; preds = %.preheader121.5
  %100 = getelementptr inbounds i8, ptr %0, i64 728
  %101 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %100, i32 noundef %27)
  br i1 %101, label %.preheader121.7, label %89

.preheader121.7:                                  ; preds = %.preheader121.6
  %102 = getelementptr inbounds i8, ptr %0, i64 784
  %103 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %102, i32 noundef %27)
  br i1 %103, label %.preheader121.8, label %89

.preheader121.8:                                  ; preds = %.preheader121.7
  %104 = getelementptr inbounds i8, ptr %0, i64 840
  %105 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %104, i32 noundef %27)
  br i1 %105, label %.preheader121.9, label %89

.preheader121.9:                                  ; preds = %.preheader121.8
  %106 = getelementptr inbounds i8, ptr %0, i64 896
  %107 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %106, i32 noundef %27)
  br i1 %107, label %.thread117, label %89

108:                                              ; preds = %86
  br i1 %.not104, label %.thread117, label %.preheader.preheader

.preheader.preheader:                             ; preds = %108
  %109 = getelementptr inbounds i8, ptr %0, i64 392
  %110 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %109, i32 noundef %29)
  br i1 %110, label %.preheader.1, label %111

111:                                              ; preds = %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %.097132.lcssa.wide = phi i32 [ 1, %.preheader.preheader ], [ 2, %.preheader.1 ], [ 3, %.preheader.2 ], [ 4, %.preheader.3 ], [ 5, %.preheader.4 ], [ 6, %.preheader.5 ], [ 7, %.preheader.6 ], [ 8, %.preheader.7 ], [ 9, %.preheader.8 ], [ 10, %.preheader.9 ]
  %.lcssa = phi ptr [ %109, %.preheader.preheader ], [ %112, %.preheader.1 ], [ %114, %.preheader.2 ], [ %116, %.preheader.3 ], [ %118, %.preheader.4 ], [ %120, %.preheader.5 ], [ %122, %.preheader.6 ], [ %124, %.preheader.7 ], [ %126, %.preheader.8 ], [ %128, %.preheader.9 ]
  tail call void @b2SetBitGrow(ptr noundef nonnull %.lcssa, i32 noundef %29)
  br label %.thread117

.preheader.1:                                     ; preds = %.preheader.preheader
  %112 = getelementptr inbounds i8, ptr %0, i64 448
  %113 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %112, i32 noundef %29)
  br i1 %113, label %.preheader.2, label %111

.preheader.2:                                     ; preds = %.preheader.1
  %114 = getelementptr inbounds i8, ptr %0, i64 504
  %115 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %114, i32 noundef %29)
  br i1 %115, label %.preheader.3, label %111

.preheader.3:                                     ; preds = %.preheader.2
  %116 = getelementptr inbounds i8, ptr %0, i64 560
  %117 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %116, i32 noundef %29)
  br i1 %117, label %.preheader.4, label %111

.preheader.4:                                     ; preds = %.preheader.3
  %118 = getelementptr inbounds i8, ptr %0, i64 616
  %119 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %118, i32 noundef %29)
  br i1 %119, label %.preheader.5, label %111

.preheader.5:                                     ; preds = %.preheader.4
  %120 = getelementptr inbounds i8, ptr %0, i64 672
  %121 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %120, i32 noundef %29)
  br i1 %121, label %.preheader.6, label %111

.preheader.6:                                     ; preds = %.preheader.5
  %122 = getelementptr inbounds i8, ptr %0, i64 728
  %123 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %122, i32 noundef %29)
  br i1 %123, label %.preheader.7, label %111

.preheader.7:                                     ; preds = %.preheader.6
  %124 = getelementptr inbounds i8, ptr %0, i64 784
  %125 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %124, i32 noundef %29)
  br i1 %125, label %.preheader.8, label %111

.preheader.8:                                     ; preds = %.preheader.7
  %126 = getelementptr inbounds i8, ptr %0, i64 840
  %127 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %126, i32 noundef %29)
  br i1 %127, label %.preheader.9, label %111

.preheader.9:                                     ; preds = %.preheader.8
  %128 = getelementptr inbounds i8, ptr %0, i64 896
  %129 = tail call zeroext i1 @b2GetBit(ptr noundef nonnull %128, i32 noundef %29)
  br i1 %129, label %.thread117, label %111

.thread117:                                       ; preds = %.preheader.9, %.preheader121.9, %.preheader123.10, %84, %38, %111, %89, %45, %108
  %.9 = phi i32 [ 11, %108 ], [ %.092130.lcssa.wide, %45 ], [ %.096131.lcssa.wide, %89 ], [ %.097132.lcssa.wide, %111 ], [ 11, %38 ], [ 11, %84 ], [ 11, %.preheader123.10 ], [ 11, %.preheader121.9 ], [ 11, %.preheader.9 ]
  %130 = zext nneg i32 %.9 to i64
  %131 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %.9, ptr %131, align 4, !tbaa !24
  %132 = getelementptr inbounds %struct.b2GraphColor, ptr %25, i64 %130, i32 1
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  %134 = load i32, ptr %133, align 8, !tbaa !25
  %135 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %134, ptr %135, align 4, !tbaa !29
  %136 = tail call ptr @b2ContactSimArray_Add(ptr noundef nonnull %132)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(176) %136, ptr noundef nonnull align 4 dereferenceable(176) %1, i64 176, i1 false)
  br i1 %.not102, label %137, label %140

137:                                              ; preds = %.thread117
  %138 = getelementptr inbounds i8, ptr %136, i64 4
  store i32 -1, ptr %138, align 4, !tbaa !30
  %139 = getelementptr inbounds i8, ptr %136, i64 20
  store float 0.000000e+00, ptr %139, align 4, !tbaa !31
  br label %158

140:                                              ; preds = %.thread117
  %141 = load i32, ptr %33, align 8, !tbaa !21
  %142 = icmp eq i32 %141, 2
  br i1 %142, label %146, label %143

143:                                              ; preds = %140
  %144 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 153) #5
  %.not105 = icmp eq i32 %144, 0
  br i1 %.not105, label %146, label %145

145:                                              ; preds = %143
  tail call void @llvm.trap()
  unreachable

146:                                              ; preds = %143, %140
  %147 = getelementptr inbounds i8, ptr %0, i64 1072
  %148 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %147, i32 noundef 2)
  %149 = getelementptr inbounds i8, ptr %31, i64 44
  %150 = load i32, ptr %149, align 4, !tbaa !32
  %151 = getelementptr inbounds i8, ptr %136, i64 4
  store i32 %150, ptr %151, align 4, !tbaa !30
  %152 = tail call ptr @b2BodySimArray_Get(ptr noundef %148, i32 noundef %150)
  %153 = getelementptr inbounds i8, ptr %152, i64 60
  %154 = load float, ptr %153, align 4, !tbaa !33
  %155 = getelementptr inbounds i8, ptr %136, i64 20
  store float %154, ptr %155, align 4, !tbaa !31
  %156 = getelementptr inbounds i8, ptr %152, i64 64
  %157 = load float, ptr %156, align 4, !tbaa !37
  br label %158

158:                                              ; preds = %146, %137
  %.sink = phi float [ %157, %146 ], [ 0.000000e+00, %137 ]
  %159 = getelementptr inbounds i8, ptr %136, i64 24
  store float %.sink, ptr %159, align 4, !tbaa !38
  br i1 %.not104, label %160, label %163

160:                                              ; preds = %158
  %161 = getelementptr inbounds i8, ptr %136, i64 8
  store i32 -1, ptr %161, align 4, !tbaa !39
  %162 = getelementptr inbounds i8, ptr %136, i64 28
  store float 0.000000e+00, ptr %162, align 4, !tbaa !40
  br label %181

163:                                              ; preds = %158
  %164 = load i32, ptr %35, align 8, !tbaa !21
  %165 = icmp eq i32 %164, 2
  br i1 %165, label %169, label %166

166:                                              ; preds = %163
  %167 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 172) #5
  %.not106 = icmp eq i32 %167, 0
  br i1 %.not106, label %169, label %168

168:                                              ; preds = %166
  tail call void @llvm.trap()
  unreachable

169:                                              ; preds = %166, %163
  %170 = getelementptr inbounds i8, ptr %0, i64 1072
  %171 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %170, i32 noundef 2)
  %172 = getelementptr inbounds i8, ptr %32, i64 44
  %173 = load i32, ptr %172, align 4, !tbaa !32
  %174 = getelementptr inbounds i8, ptr %136, i64 8
  store i32 %173, ptr %174, align 4, !tbaa !39
  %175 = tail call ptr @b2BodySimArray_Get(ptr noundef %171, i32 noundef %173)
  %176 = getelementptr inbounds i8, ptr %175, i64 60
  %177 = load float, ptr %176, align 4, !tbaa !33
  %178 = getelementptr inbounds i8, ptr %136, i64 28
  store float %177, ptr %178, align 4, !tbaa !40
  %179 = getelementptr inbounds i8, ptr %175, i64 64
  %180 = load float, ptr %179, align 4, !tbaa !37
  br label %181

181:                                              ; preds = %169, %160
  %.sink147 = phi float [ %180, %169 ], [ 0.000000e+00, %160 ]
  %182 = getelementptr inbounds i8, ptr %136, i64 32
  store float %.sink147, ptr %182, align 4, !tbaa !41
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @b2GetBit(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SetBitGrow(ptr noundef, i32 noundef) local_unnamed_addr #4

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 144}
!6 = !{!"b2ContactSim", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 36, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !7, i64 164, !13, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"b2Manifold", !12, i64 0, !10, i64 8, !8, i64 12, !7, i64 108}
!12 = !{!"b2Vec2", !10, i64 0, !10, i64 4}
!13 = !{!"b2SimplexCache", !14, i64 0, !8, i64 2, !8, i64 5}
!14 = !{!"short", !8, i64 0}
!15 = !{!6, !7, i64 164}
!16 = !{!17, !7, i64 60}
!17 = !{!"b2Contact", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !18, i64 64}
!18 = !{!"_Bool", !8, i64 0}
!19 = !{!20, !7, i64 0}
!20 = !{!"b2ContactEdge", !7, i64 0, !7, i64 4, !7, i64 8}
!21 = !{!22, !7, i64 40}
!22 = !{!"b2Body", !8, i64 0, !23, 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, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !14, i64 116, !18, i64 118, !18, i64 119, !18, i64 120, !18, i64 121}
!23 = !{!"any pointer", !8, i64 0}
!24 = !{!17, !7, i64 4}
!25 = !{!26, !7, i64 24}
!26 = !{!"b2GraphColor", !27, i64 0, !28, i64 16, !28, i64 32, !8, i64 48}
!27 = !{!"b2BitSet", !23, i64 0, !7, i64 8, !7, i64 12}
!28 = !{!"", !23, i64 0, !7, i64 8, !7, i64 12}
!29 = !{!17, !7, i64 8}
!30 = !{!6, !7, i64 4}
!31 = !{!6, !10, i64 20}
!32 = !{!22, !7, i64 44}
!33 = !{!34, !10, i64 60}
!34 = !{!"b2BodySim", !35, i64 0, !12, i64 16, !36, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !7, i64 88, !18, i64 92, !18, i64 93, !18, i64 94, !18, i64 95, !18, i64 96}
!35 = !{!"b2Transform", !12, i64 0, !36, i64 8}
!36 = !{!"b2Rot", !10, i64 0, !10, i64 4}
!37 = !{!34, !10, i64 64}
!38 = !{!6, !10, i64 24}
!39 = !{!6, !7, i64 8}
!40 = !{!6, !10, i64 28}
!41 = !{!6, !10, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass