; LLVM IR from mtsamis/box2d-optimized :: src/dynamics/b2_world.ll (ZN7b2World12DestroyJointEP7b2Joint)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.b2Joint = type { ptr, i32, ptr, ptr, %struct.b2JointEdge, %struct.b2JointEdge, ptr, ptr, i32, i8, i8, %struct.b2JointUserData }
%struct.b2JointEdge = type { ptr, ptr, ptr, ptr }
%struct.b2JointUserData = type { i64 }
%class.b2World = type { %class.b2BlockAllocator, %class.b2StackAllocator, %class.b2ContactManager, ptr, ptr, ptr, ptr, i32, i32, %struct.b2Vec2, i8, ptr, ptr, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.b2Profile }
%class.b2BlockAllocator = type { ptr, i32, i32, [14 x ptr] }
%class.b2StackAllocator = type <{ [102400 x i8], i32, i32, i32, [4 x i8], [32 x %struct.b2StackEntry], i32, [4 x i8] }>
%struct.b2StackEntry = type { ptr, i32, i8 }
%class.b2ContactManager = type { %class.b2BroadPhase, i32, ptr, ptr, ptr, ptr }
%class.b2BroadPhase = type <{ ptr, ptr, ptr, ptr, %struct.b2TreeNode, ptr, ptr, ptr, i32, i32, %class.b2IntHashTable, i32, i32, i8, [7 x i8] }>
%struct.b2TreeNode = type { ptr, ptr, ptr, ptr, %struct.b2AABB }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%class.b2IntHashTable = type <{ ptr, i32, [4 x i8] }>
%struct.b2Vec2 = type { float, float }
%struct.b2Profile = type { float, float, float, float, float }
%class.b2Body = type { i32, i16, i32, %struct.b2Transform, %struct.b2Transform, %struct.b2Sweep, %struct.b2Vec2, float, %struct.b2Vec2, float, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, float, float, float, float, float, float, float, float, %struct.b2BodyUserData }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Rot = type { float, float }
%struct.b2Sweep = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float }
%struct.b2BodyUserData = type { i64 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__._ZN7b2World12DestroyJointEP7b2Joint = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6b2Body10GetContactEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352)) #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7b2World12DestroyJointEP7b2Joint(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %10)
  %12 = zext i1 %11 to i32
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %17

15:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 328, ptr noundef @__PRETTY_FUNCTION__._ZN7b2World12DestroyJointEP7b2Joint) #6
  unreachable

16:                                               ; No predecessors!
  br label %17

17:                                               ; preds = %16, %14
  %18 = call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %10)
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  br label %220

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.b2Joint, ptr %21, i32 0, i32 10
  %23 = load i8, ptr %22, align 1, !tbaa !9, !range !17, !noundef !18
  %24 = trunc i8 %23 to i1
  %25 = zext i1 %24 to i8
  store i8 %25, ptr %5, align 1, !tbaa !19
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %class.b2Joint, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !20
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %38

30:                                               ; preds = %20
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.b2Joint, ptr %31, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.b2Joint, ptr %34, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !20
  %37 = getelementptr inbounds %class.b2Joint, ptr %36, i32 0, i32 3
  store ptr %33, ptr %37, align 8, !tbaa !21
  br label %38

38:                                               ; preds = %30, %20
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.b2Joint, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %51

43:                                               ; preds = %38
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.b2Joint, ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.b2Joint, ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = getelementptr inbounds %class.b2Joint, ptr %49, i32 0, i32 2
  store ptr %46, ptr %50, align 8, !tbaa !20
  br label %51

51:                                               ; preds = %43, %38
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.b2World, ptr %10, i32 0, i32 5
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = icmp eq ptr %52, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %51
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.b2Joint, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = getelementptr inbounds %class.b2World, ptr %10, i32 0, i32 5
  store ptr %59, ptr %60, align 8, !tbaa !22
  br label %61

61:                                               ; preds = %56, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.b2Joint, ptr %62, i32 0, i32 6
  %64 = load ptr, ptr %63, align 8, !tbaa !34
  store ptr %64, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.b2Joint, ptr %65, i32 0, i32 7
  %67 = load ptr, ptr %66, align 8, !tbaa !35
  store ptr %67, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6b2Body8SetAwakeEb(ptr noundef nonnull align 8 dereferenceable(208) %68, i1 noundef zeroext true)
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN6b2Body8SetAwakeEb(ptr noundef nonnull align 8 dereferenceable(208) %69, i1 noundef zeroext true)
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.b2Joint, ptr %70, i32 0, i32 4
  %72 = getelementptr inbounds %struct.b2JointEdge, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !36
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %85

75:                                               ; preds = %61
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.b2Joint, ptr %76, i32 0, i32 4
  %78 = getelementptr inbounds %struct.b2JointEdge, ptr %77, i32 0, i32 3
  %79 = load ptr, ptr %78, align 8, !tbaa !37
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.b2Joint, ptr %80, i32 0, i32 4
  %82 = getelementptr inbounds %struct.b2JointEdge, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !36
  %84 = getelementptr inbounds %struct.b2JointEdge, ptr %83, i32 0, i32 3
  store ptr %79, ptr %84, align 8, !tbaa !38
  br label %85

85:                                               ; preds = %75, %61
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.b2Joint, ptr %86, i32 0, i32 4
  %88 = getelementptr inbounds %struct.b2JointEdge, ptr %87, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !37
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %101

91:                                               ; preds = %85
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.b2Joint, ptr %92, i32 0, i32 4
  %94 = getelementptr inbounds %struct.b2JointEdge, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !36
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %class.b2Joint, ptr %96, i32 0, i32 4
  %98 = getelementptr inbounds %struct.b2JointEdge, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !37
  %100 = getelementptr inbounds %struct.b2JointEdge, ptr %99, i32 0, i32 2
  store ptr %95, ptr %100, align 8, !tbaa !39
  br label %101

101:                                              ; preds = %91, %85
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %class.b2Joint, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.b2Body, ptr %104, i32 0, i32 15
  %106 = load ptr, ptr %105, align 8, !tbaa !40
  %107 = icmp eq ptr %103, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %101
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %class.b2Joint, ptr %109, i32 0, i32 4
  %111 = getelementptr inbounds %struct.b2JointEdge, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !37
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.b2Body, ptr %113, i32 0, i32 15
  store ptr %112, ptr %114, align 8, !tbaa !40
  br label %115

115:                                              ; preds = %108, %101
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.b2Joint, ptr %116, i32 0, i32 4
  %118 = getelementptr inbounds %struct.b2JointEdge, ptr %117, i32 0, i32 2
  store ptr null, ptr %118, align 8, !tbaa !36
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.b2Joint, ptr %119, i32 0, i32 4
  %121 = getelementptr inbounds %struct.b2JointEdge, ptr %120, i32 0, i32 3
  store ptr null, ptr %121, align 8, !tbaa !37
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.b2Joint, ptr %122, i32 0, i32 5
  %124 = getelementptr inbounds %struct.b2JointEdge, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !48
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %137

127:                                              ; preds = %115
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.b2Joint, ptr %128, i32 0, i32 5
  %130 = getelementptr inbounds %struct.b2JointEdge, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !49
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.b2Joint, ptr %132, i32 0, i32 5
  %134 = getelementptr inbounds %struct.b2JointEdge, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !48
  %136 = getelementptr inbounds %struct.b2JointEdge, ptr %135, i32 0, i32 3
  store ptr %131, ptr %136, align 8, !tbaa !38
  br label %137

137:                                              ; preds = %127, %115
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %class.b2Joint, ptr %138, i32 0, i32 5
  %140 = getelementptr inbounds %struct.b2JointEdge, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !49
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %153

143:                                              ; preds = %137
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.b2Joint, ptr %144, i32 0, i32 5
  %146 = getelementptr inbounds %struct.b2JointEdge, ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !48
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %class.b2Joint, ptr %148, i32 0, i32 5
  %150 = getelementptr inbounds %struct.b2JointEdge, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !49
  %152 = getelementptr inbounds %struct.b2JointEdge, ptr %151, i32 0, i32 2
  store ptr %147, ptr %152, align 8, !tbaa !39
  br label %153

153:                                              ; preds = %143, %137
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %class.b2Joint, ptr %154, i32 0, i32 5
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %class.b2Body, ptr %156, i32 0, i32 15
  %158 = load ptr, ptr %157, align 8, !tbaa !40
  %159 = icmp eq ptr %155, %158
  br i1 %159, label %160, label %167

160:                                              ; preds = %153
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %class.b2Joint, ptr %161, i32 0, i32 5
  %163 = getelementptr inbounds %struct.b2JointEdge, ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !49
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %class.b2Body, ptr %165, i32 0, i32 15
  store ptr %164, ptr %166, align 8, !tbaa !40
  br label %167

167:                                              ; preds = %160, %153
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %class.b2Joint, ptr %168, i32 0, i32 5
  %170 = getelementptr inbounds %struct.b2JointEdge, ptr %169, i32 0, i32 2
  store ptr null, ptr %170, align 8, !tbaa !48
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.b2Joint, ptr %171, i32 0, i32 5
  %173 = getelementptr inbounds %struct.b2JointEdge, ptr %172, i32 0, i32 3
  store ptr null, ptr %173, align 8, !tbaa !49
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %class.b2World, ptr %10, i32 0, i32 0
  call void @_ZN7b2Joint7DestroyEPS_P16b2BlockAllocator(ptr noundef %174, ptr noundef %175)
  %176 = getelementptr inbounds %class.b2World, ptr %10, i32 0, i32 8
  %177 = load i32, ptr %176, align 4, !tbaa !50
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %167
  br label %182

180:                                              ; preds = %167
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 400, ptr noundef @__PRETTY_FUNCTION__._ZN7b2World12DestroyJointEP7b2Joint) #6
  unreachable

181:                                              ; No predecessors!
  br label %182

182:                                              ; preds = %181, %179
  %183 = getelementptr inbounds %class.b2World, ptr %10, i32 0, i32 8
  %184 = load i32, ptr %183, align 4, !tbaa !50
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %183, align 4, !tbaa !50
  %186 = load i8, ptr %5, align 1, !tbaa !19, !range !17, !noundef !18
  %187 = trunc i8 %186 to i1
  %188 = zext i1 %187 to i32
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %219

190:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !51
  br label %191

191:                                              ; preds = %215, %190
  %192 = load i32, ptr %8, align 4, !tbaa !51
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = call noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208) %193)
  %195 = icmp slt i32 %192, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %218

197:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load i32, ptr %8, align 4, !tbaa !51
  %200 = call noundef ptr @_ZN6b2Body10GetContactEi(ptr noundef nonnull align 8 dereferenceable(208) %198, i32 noundef %199)
  store ptr %200, ptr %9, align 8, !tbaa !5
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = call noundef ptr @_ZN9b2Contact11GetFixtureAEv(ptr noundef nonnull align 8 dereferenceable(128) %201)
  %203 = call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %202)
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = icmp eq ptr %203, %204
  br i1 %205, label %212, label %206

206:                                              ; preds = %197
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = call noundef ptr @_ZN9b2Contact11GetFixtureBEv(ptr noundef nonnull align 8 dereferenceable(128) %207)
  %209 = call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %208)
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = icmp eq ptr %209, %210
  br i1 %211, label %212, label %214

212:                                              ; preds = %206, %197
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN9b2Contact16FlagForFilteringEv(ptr noundef nonnull align 8 dereferenceable(128) %213)
  br label %214

214:                                              ; preds = %212, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %8, align 4, !tbaa !51
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %8, align 4, !tbaa !51
  br label %191, !llvm.loop !52

218:                                              ; preds = %196
  br label %219

219:                                              ; preds = %218, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %220

220:                                              ; preds = %219, %19
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9b2Contact16FlagForFilteringEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6b2Body8SetAwakeEb(ptr noundef nonnull align 8 dereferenceable(208), i1 noundef zeroext) #4 align 2

declare void @_ZN7b2Joint7DestroyEPS_P16b2BlockAllocator(ptr noundef, ptr noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 117}
!10 = !{!"_ZTS7b2Joint", !11, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 64, !6, i64 96, !6, i64 104, !13, i64 112, !14, i64 116, !14, i64 117, !15, i64 120}
!11 = !{!"_ZTS11b2JointType", !7, i64 0}
!12 = !{!"_ZTS11b2JointEdge", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS15b2JointUserData", !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!14, !14, i64 0}
!20 = !{!10, !6, i64 16}
!21 = !{!10, !6, i64 24}
!22 = !{!23, !6, i64 103264}
!23 = !{!"_ZTS7b2World", !24, i64 0, !25, i64 128, !26, i64 103064, !6, i64 103248, !6, i64 103256, !6, i64 103264, !6, i64 103272, !13, i64 103280, !13, i64 103284, !30, i64 103288, !14, i64 103296, !6, i64 103304, !6, i64 103312, !31, i64 103320, !14, i64 103324, !14, i64 103325, !14, i64 103326, !14, i64 103327, !14, i64 103328, !14, i64 103329, !14, i64 103330, !14, i64 103331, !33, i64 103332}
!24 = !{!"_ZTS16b2BlockAllocator", !6, i64 0, !13, i64 8, !13, i64 12, !7, i64 16}
!25 = !{!"_ZTS16b2StackAllocator", !7, i64 0, !13, i64 102400, !13, i64 102404, !13, i64 102408, !7, i64 102416, !13, i64 102928}
!26 = !{!"_ZTS16b2ContactManager", !27, i64 0, !13, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!27 = !{!"_ZTS12b2BroadPhase", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !28, i64 32, !6, i64 80, !6, i64 88, !6, i64 96, !13, i64 104, !13, i64 108, !32, i64 112, !13, i64 128, !13, i64 132, !14, i64 136}
!28 = !{!"_ZTS10b2TreeNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !29, i64 32}
!29 = !{!"_ZTS6b2AABB", !30, i64 0, !30, i64 8}
!30 = !{!"_ZTS6b2Vec2", !31, i64 0, !31, i64 4}
!31 = !{!"float", !7, i64 0}
!32 = !{!"_ZTS14b2IntHashTable", !6, i64 0, !13, i64 8}
!33 = !{!"_ZTS9b2Profile", !31, i64 0, !31, i64 4, !31, i64 8, !31, i64 12, !31, i64 16}
!34 = !{!10, !6, i64 96}
!35 = !{!10, !6, i64 104}
!36 = !{!10, !6, i64 48}
!37 = !{!10, !6, i64 56}
!38 = !{!12, !6, i64 24}
!39 = !{!12, !6, i64 16}
!40 = !{!41, !6, i64 144}
!41 = !{!"_ZTS6b2Body", !42, i64 0, !43, i64 4, !13, i64 8, !44, i64 12, !44, i64 28, !46, i64 44, !30, i64 80, !31, i64 88, !30, i64 92, !31, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !13, i64 136, !6, i64 144, !6, i64 152, !13, i64 160, !13, i64 164, !31, i64 168, !31, i64 172, !31, i64 176, !31, i64 180, !31, i64 184, !31, i64 188, !31, i64 192, !31, i64 196, !47, i64 200}
!42 = !{!"_ZTS10b2BodyType", !7, i64 0}
!43 = !{!"short", !7, i64 0}
!44 = !{!"_ZTS11b2Transform", !30, i64 0, !45, i64 8}
!45 = !{!"_ZTS5b2Rot", !31, i64 0, !31, i64 4}
!46 = !{!"_ZTS7b2Sweep", !30, i64 0, !30, i64 8, !30, i64 16, !31, i64 24, !31, i64 28, !31, i64 32}
!47 = !{!"_ZTS14b2BodyUserData", !16, i64 0}
!48 = !{!10, !6, i64 80}
!49 = !{!10, !6, i64 88}
!50 = !{!23, !13, i64 103284}
!51 = !{!13, !13, i64 0}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__._ZN7b2World12DestroyJointEP7b2Joint = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6b2Body10GetContactEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7b2World12DestroyJointEP7b2Joint(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %1) local_unnamed_addr #2 align 2 {
  %3 = tail call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %0)
  br i1 %3, label %4, label %5

4:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 328, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7b2World12DestroyJointEP7b2Joint) #6
  unreachable

5:                                                ; preds = %2
  %6 = tail call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %0)
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %1, i64 117
  %9 = load i8, ptr %8, align 1, !tbaa !5, !range !16, !noundef !17
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !18
  %.not = icmp eq ptr %11, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 24
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !19
  br i1 %.not, label %._crit_edge, label %12

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %.pre, ptr %13, align 8, !tbaa !19
  br label %._crit_edge

._crit_edge:                                      ; preds = %7, %12
  %.not57 = icmp eq ptr %.pre, null
  br i1 %.not57, label %16, label %14

14:                                               ; preds = %._crit_edge
  %15 = getelementptr inbounds i8, ptr %.pre, i64 16
  store ptr %11, ptr %15, align 8, !tbaa !18
  br label %16

16:                                               ; preds = %14, %._crit_edge
  %17 = getelementptr inbounds i8, ptr %0, i64 103264
  %18 = load ptr, ptr %17, align 8, !tbaa !20
  %19 = icmp eq ptr %18, %1
  br i1 %19, label %20, label %21

20:                                               ; preds = %16
  store ptr %.pre, ptr %17, align 8, !tbaa !20
  br label %21

21:                                               ; preds = %20, %16
  %22 = getelementptr inbounds i8, ptr %1, i64 96
  %23 = load ptr, ptr %22, align 8, !tbaa !32
  %24 = getelementptr inbounds i8, ptr %1, i64 104
  %25 = load ptr, ptr %24, align 8, !tbaa !33
  tail call void @_ZN6b2Body8SetAwakeEb(ptr noundef nonnull align 8 dereferenceable(208) %23, i1 noundef zeroext true)
  tail call void @_ZN6b2Body8SetAwakeEb(ptr noundef nonnull align 8 dereferenceable(208) %25, i1 noundef zeroext true)
  %26 = getelementptr inbounds i8, ptr %1, i64 32
  %27 = getelementptr inbounds i8, ptr %1, i64 48
  %28 = load ptr, ptr %27, align 8, !tbaa !34
  %.not58 = icmp eq ptr %28, null
  %.phi.trans.insert64 = getelementptr inbounds i8, ptr %1, i64 56
  %.pre65 = load ptr, ptr %.phi.trans.insert64, align 8, !tbaa !35
  br i1 %.not58, label %._crit_edge63, label %29

29:                                               ; preds = %21
  %30 = getelementptr inbounds i8, ptr %28, i64 24
  store ptr %.pre65, ptr %30, align 8, !tbaa !36
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %21, %29
  %.not59 = icmp eq ptr %.pre65, null
  br i1 %.not59, label %33, label %31

31:                                               ; preds = %._crit_edge63
  %32 = getelementptr inbounds i8, ptr %.pre65, i64 16
  store ptr %28, ptr %32, align 8, !tbaa !37
  br label %33

33:                                               ; preds = %31, %._crit_edge63
  %34 = getelementptr inbounds i8, ptr %23, i64 144
  %35 = load ptr, ptr %34, align 8, !tbaa !38
  %36 = icmp eq ptr %26, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  store ptr %.pre65, ptr %34, align 8, !tbaa !38
  br label %38

38:                                               ; preds = %37, %33
  %39 = getelementptr inbounds i8, ptr %1, i64 64
  %40 = getelementptr inbounds i8, ptr %1, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, i8 0, i64 16, i1 false)
  %41 = load ptr, ptr %40, align 8, !tbaa !46
  %.not60 = icmp eq ptr %41, null
  %.phi.trans.insert67 = getelementptr inbounds i8, ptr %1, i64 88
  %.pre68 = load ptr, ptr %.phi.trans.insert67, align 8, !tbaa !47
  br i1 %.not60, label %._crit_edge66, label %42

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %41, i64 24
  store ptr %.pre68, ptr %43, align 8, !tbaa !36
  br label %._crit_edge66

._crit_edge66:                                    ; preds = %38, %42
  %.not61 = icmp eq ptr %.pre68, null
  br i1 %.not61, label %46, label %44

44:                                               ; preds = %._crit_edge66
  %45 = getelementptr inbounds i8, ptr %.pre68, i64 16
  store ptr %41, ptr %45, align 8, !tbaa !37
  br label %46

46:                                               ; preds = %44, %._crit_edge66
  %47 = getelementptr inbounds i8, ptr %25, i64 144
  %48 = load ptr, ptr %47, align 8, !tbaa !38
  %49 = icmp eq ptr %39, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  store ptr %.pre68, ptr %47, align 8, !tbaa !38
  br label %51

51:                                               ; preds = %50, %46
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %40, i8 0, i64 16, i1 false)
  tail call void @_ZN7b2Joint7DestroyEPS_P16b2BlockAllocator(ptr noundef nonnull %1, ptr noundef nonnull %0)
  %52 = getelementptr inbounds i8, ptr %0, i64 103284
  %53 = load i32, ptr %52, align 4, !tbaa !48
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 400, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7b2World12DestroyJointEP7b2Joint) #6
  unreachable

56:                                               ; preds = %51
  %57 = add nsw i32 %53, -1
  store i32 %57, ptr %52, align 4, !tbaa !48
  %58 = icmp eq i8 %9, 0
  br i1 %58, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %56
  %59 = tail call noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208) %25)
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %70
  %.062 = phi i32 [ %71, %70 ], [ 0, %.preheader ]
  %61 = tail call noundef ptr @_ZN6b2Body10GetContactEi(ptr noundef nonnull align 8 dereferenceable(208) %25, i32 noundef %.062)
  %62 = tail call noundef ptr @_ZN9b2Contact11GetFixtureAEv(ptr noundef nonnull align 8 dereferenceable(128) %61)
  %63 = tail call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %62)
  %64 = icmp eq ptr %63, %23
  br i1 %64, label %69, label %65

65:                                               ; preds = %.lr.ph
  %66 = tail call noundef ptr @_ZN9b2Contact11GetFixtureBEv(ptr noundef nonnull align 8 dereferenceable(128) %61)
  %67 = tail call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %66)
  %68 = icmp eq ptr %67, %23
  br i1 %68, label %69, label %70

69:                                               ; preds = %65, %.lr.ph
  tail call void @_ZN9b2Contact16FlagForFilteringEv(ptr noundef nonnull align 8 dereferenceable(128) %61)
  br label %70

70:                                               ; preds = %69, %65
  %71 = add nuw nsw i32 %.062, 1
  %72 = tail call noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208) %25)
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %.lr.ph, label %.loopexit, !llvm.loop !49

.loopexit:                                        ; preds = %70, %.preheader, %56, %5
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9b2Contact16FlagForFilteringEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6b2Body8SetAwakeEb(ptr noundef nonnull align 8 dereferenceable(208), i1 noundef zeroext) local_unnamed_addr #3 align 2

declare void @_ZN7b2Joint7DestroyEPS_P16b2BlockAllocator(ptr noundef, ptr noundef) local_unnamed_addr #4

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

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noreturn 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, !13, i64 117}
!6 = !{!"_ZTS7b2Joint", !7, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !11, i64 64, !10, i64 96, !10, i64 104, !12, i64 112, !13, i64 116, !13, i64 117, !14, i64 120}
!7 = !{!"_ZTS11b2JointType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS11b2JointEdge", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!12 = !{!"int", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS15b2JointUserData", !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !10, i64 24}
!20 = !{!21, !10, i64 103264}
!21 = !{!"_ZTS7b2World", !22, i64 0, !23, i64 128, !24, i64 103064, !10, i64 103248, !10, i64 103256, !10, i64 103264, !10, i64 103272, !12, i64 103280, !12, i64 103284, !28, i64 103288, !13, i64 103296, !10, i64 103304, !10, i64 103312, !29, i64 103320, !13, i64 103324, !13, i64 103325, !13, i64 103326, !13, i64 103327, !13, i64 103328, !13, i64 103329, !13, i64 103330, !13, i64 103331, !31, i64 103332}
!22 = !{!"_ZTS16b2BlockAllocator", !10, i64 0, !12, i64 8, !12, i64 12, !8, i64 16}
!23 = !{!"_ZTS16b2StackAllocator", !8, i64 0, !12, i64 102400, !12, i64 102404, !12, i64 102408, !8, i64 102416, !12, i64 102928}
!24 = !{!"_ZTS16b2ContactManager", !25, i64 0, !12, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176}
!25 = !{!"_ZTS12b2BroadPhase", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !26, i64 32, !10, i64 80, !10, i64 88, !10, i64 96, !12, i64 104, !12, i64 108, !30, i64 112, !12, i64 128, !12, i64 132, !13, i64 136}
!26 = !{!"_ZTS10b2TreeNode", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !27, i64 32}
!27 = !{!"_ZTS6b2AABB", !28, i64 0, !28, i64 8}
!28 = !{!"_ZTS6b2Vec2", !29, i64 0, !29, i64 4}
!29 = !{!"float", !8, i64 0}
!30 = !{!"_ZTS14b2IntHashTable", !10, i64 0, !12, i64 8}
!31 = !{!"_ZTS9b2Profile", !29, i64 0, !29, i64 4, !29, i64 8, !29, i64 12, !29, i64 16}
!32 = !{!6, !10, i64 96}
!33 = !{!6, !10, i64 104}
!34 = !{!6, !10, i64 48}
!35 = !{!6, !10, i64 56}
!36 = !{!11, !10, i64 24}
!37 = !{!11, !10, i64 16}
!38 = !{!39, !10, i64 144}
!39 = !{!"_ZTS6b2Body", !40, i64 0, !41, i64 4, !12, i64 8, !42, i64 12, !42, i64 28, !44, i64 44, !28, i64 80, !29, i64 88, !28, i64 92, !29, i64 100, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !12, i64 136, !10, i64 144, !10, i64 152, !12, i64 160, !12, i64 164, !29, i64 168, !29, i64 172, !29, i64 176, !29, i64 180, !29, i64 184, !29, i64 188, !29, i64 192, !29, i64 196, !45, i64 200}
!40 = !{!"_ZTS10b2BodyType", !8, i64 0}
!41 = !{!"short", !8, i64 0}
!42 = !{!"_ZTS11b2Transform", !28, i64 0, !43, i64 8}
!43 = !{!"_ZTS5b2Rot", !29, i64 0, !29, i64 4}
!44 = !{!"_ZTS7b2Sweep", !28, i64 0, !28, i64 8, !28, i64 16, !29, i64 24, !29, i64 28, !29, i64 32}
!45 = !{!"_ZTS14b2BodyUserData", !15, i64 0}
!46 = !{!6, !10, i64 80}
!47 = !{!6, !10, i64 88}
!48 = !{!21, !12, i64 103284}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass