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

; 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.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 }
%struct.b2JointEdge = type { ptr, ptr, ptr, ptr }
%class.b2Contact = type { ptr, ptr, ptr, ptr, ptr, %struct.b2Manifold, i32, i32, float, float, float, float }
%struct.b2Manifold = type { [2 x %struct.b2ManifoldPoint], %struct.b2Vec2, %struct.b2Vec2, i32, i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, float, float, %union.b2ContactID }
%union.b2ContactID = type { i32 }
%class.b2Fixture = type <{ float, [4 x i8], ptr, ptr, ptr, %struct.b2AABB, float, float, float, %struct.b2Filter, i8, [5 x i8], %struct.b2FixtureUserData, i32, [4 x i8] }>
%struct.b2Filter = type { i16, i16, i16 }
%struct.b2FixtureUserData = 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
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__._ZN7b2World11DestroyBodyEP6b2Body = external hidden unnamed_addr constant [36 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

declare void @_ZN9b2Fixture7DestroyEP16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(84), ptr noundef) #1

; 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 uwtable
declare dso_local void @_Z6b2FreePv(ptr noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7b2World11DestroyBodyEP6b2Body(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 7
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  br label %19

17:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__._ZN7b2World11DestroyBodyEP6b2Body) #7
  unreachable

18:                                               ; No predecessors!
  br label %19

19:                                               ; preds = %18, %16
  %20 = call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %12)
  %21 = zext i1 %20 to i32
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  br label %26

24:                                               ; preds = %19
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 181, ptr noundef @__PRETTY_FUNCTION__._ZN7b2World11DestroyBodyEP6b2Body) #7
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  %27 = call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %12)
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  br label %185

29:                                               ; preds = %26
  %30 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 15
  store i8 1, ptr %30, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.b2Body, ptr %31, i32 0, i32 15
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  store ptr %33, ptr %5, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %54, %29
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %61

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.b2JointEdge, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !33
  store ptr %41, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 11
  %43 = load ptr, ptr %42, align 8, !tbaa !35
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %54

45:                                               ; preds = %37
  %46 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 11
  %47 = load ptr, ptr %46, align 8, !tbaa !35
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.b2JointEdge, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !36
  %51 = load ptr, ptr %47, align 8, !tbaa !37
  %52 = getelementptr inbounds ptr, ptr %51, i64 2
  %53 = load ptr, ptr %52, align 8
  call void %53(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %50)
  br label %54

54:                                               ; preds = %45, %37
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b2JointEdge, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !36
  call void @_ZN7b2World12DestroyJointEP7b2Joint(ptr noundef nonnull align 8 dereferenceable(103352) %12, ptr noundef %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.b2Body, ptr %59, i32 0, i32 15
  store ptr %58, ptr %60, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %34, !llvm.loop !39

61:                                               ; preds = %34
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.b2Body, ptr %62, i32 0, i32 15
  store ptr null, ptr %63, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !41
  br label %64

64:                                               ; preds = %80, %61
  %65 = load i32, ptr %7, align 4, !tbaa !41
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208) %66)
  %68 = icmp slt i32 %65, %67
  br i1 %68, label %70, label %69

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

70:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !41
  %73 = call noundef ptr @_ZN6b2Body10GetContactEi(ptr noundef nonnull align 8 dereferenceable(208) %71, i32 noundef %72)
  store ptr %73, ptr %8, align 8, !tbaa !5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.b2Contact, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %75, align 8, !tbaa !42
  %77 = and i32 %76, -3
  store i32 %77, ptr %75, align 8, !tbaa !42
  %78 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 2
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN16b2ContactManager7DestroyEP9b2Contact(ptr noundef nonnull align 8 dereferenceable(184) %78, ptr noundef %79)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %80

80:                                               ; preds = %70
  %81 = load i32, ptr %7, align 4, !tbaa !41
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %7, align 4, !tbaa !41
  br label %64, !llvm.loop !46

83:                                               ; preds = %69
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.b2Body, ptr %84, i32 0, i32 16
  %86 = load ptr, ptr %85, align 8, !tbaa !47
  call void @_Z6b2FreePv(ptr noundef %86)
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.b2Body, ptr %87, i32 0, i32 17
  store i32 0, ptr %88, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.b2Body, ptr %89, i32 0, i32 13
  %91 = load ptr, ptr %90, align 8, !tbaa !49
  store ptr %91, ptr %9, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %110, %83
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %128

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %96, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.b2Fixture, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !50
  store ptr %99, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 11
  %101 = load ptr, ptr %100, align 8, !tbaa !35
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %110

103:                                              ; preds = %95
  %104 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 11
  %105 = load ptr, ptr %104, align 8, !tbaa !35
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load ptr, ptr %105, align 8, !tbaa !37
  %108 = getelementptr inbounds ptr, ptr %107, i64 3
  %109 = load ptr, ptr %108, align 8
  call void %109(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef %106)
  br label %110

110:                                              ; preds = %103, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %111 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 2
  %112 = getelementptr inbounds %class.b2ContactManager, ptr %111, i32 0, i32 0
  store ptr %112, ptr %11, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = call noundef zeroext i1 @_ZN12b2BroadPhase6RemoveEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(137) %113, ptr noundef %114)
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 0
  call void @_ZN9b2Fixture7DestroyEP16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(84) %116, ptr noundef %117)
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 0
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128) %119, ptr noundef %120, i32 noundef 88)
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.b2Body, ptr %122, i32 0, i32 13
  store ptr %121, ptr %123, align 8, !tbaa !49
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.b2Body, ptr %124, i32 0, i32 14
  %126 = load i32, ptr %125, align 8, !tbaa !54
  %127 = sub nsw i32 %126, 1
  store i32 %127, ptr %125, align 8, !tbaa !54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %92, !llvm.loop !55

128:                                              ; preds = %92
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %class.b2Body, ptr %129, i32 0, i32 13
  store ptr null, ptr %130, align 8, !tbaa !49
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %class.b2Body, ptr %131, i32 0, i32 14
  store i32 0, ptr %132, align 8, !tbaa !54
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.b2Body, ptr %133, i32 0, i32 11
  %135 = load ptr, ptr %134, align 8, !tbaa !56
  %136 = icmp ne ptr %135, null
  br i1 %136, label %137, label %145

137:                                              ; preds = %128
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %class.b2Body, ptr %138, i32 0, i32 12
  %140 = load ptr, ptr %139, align 8, !tbaa !57
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.b2Body, ptr %141, i32 0, i32 11
  %143 = load ptr, ptr %142, align 8, !tbaa !56
  %144 = getelementptr inbounds %class.b2Body, ptr %143, i32 0, i32 12
  store ptr %140, ptr %144, align 8, !tbaa !57
  br label %145

145:                                              ; preds = %137, %128
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %class.b2Body, ptr %146, i32 0, i32 12
  %148 = load ptr, ptr %147, align 8, !tbaa !57
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %158

150:                                              ; preds = %145
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.b2Body, ptr %151, i32 0, i32 11
  %153 = load ptr, ptr %152, align 8, !tbaa !56
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %class.b2Body, ptr %154, i32 0, i32 12
  %156 = load ptr, ptr %155, align 8, !tbaa !57
  %157 = getelementptr inbounds %class.b2Body, ptr %156, i32 0, i32 11
  store ptr %153, ptr %157, align 8, !tbaa !56
  br label %158

158:                                              ; preds = %150, %145
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !58
  %162 = icmp eq ptr %159, %161
  br i1 %162, label %163, label %168

163:                                              ; preds = %158
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.b2Body, ptr %164, i32 0, i32 12
  %166 = load ptr, ptr %165, align 8, !tbaa !57
  %167 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 3
  store ptr %166, ptr %167, align 8, !tbaa !58
  br label %168

168:                                              ; preds = %163, %158
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !59
  %172 = icmp eq ptr %169, %171
  br i1 %172, label %173, label %178

173:                                              ; preds = %168
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %class.b2Body, ptr %174, i32 0, i32 11
  %176 = load ptr, ptr %175, align 8, !tbaa !56
  %177 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 4
  store ptr %176, ptr %177, align 8, !tbaa !59
  br label %178

178:                                              ; preds = %173, %168
  %179 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 7
  %180 = load i32, ptr %179, align 8, !tbaa !9
  %181 = add nsw i32 %180, -1
  store i32 %181, ptr %179, align 8, !tbaa !9
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN6b2BodyD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %182) #8
  %183 = getelementptr inbounds %class.b2World, ptr %12, i32 0, i32 0
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128) %183, ptr noundef %184, i32 noundef 208)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %185

185:                                              ; preds = %178, %28
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7b2World12DestroyJointEP7b2Joint(ptr noundef nonnull align 8 dereferenceable(103352), ptr noundef) #5 align 2

declare void @_ZN16b2ContactManager7DestroyEP9b2Contact(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef) #1

declare noundef zeroext i1 @_ZN12b2BroadPhase6RemoveEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(137), ptr noundef) #1

declare void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare void @_ZN6b2BodyD1Ev(ptr noundef nonnull align 8 dereferenceable(208)) unnamed_addr #6

attributes #0 = { nocallback nofree nosync 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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { nounwind }

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

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


; 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
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__._ZN7b2World11DestroyBodyEP6b2Body = external hidden unnamed_addr constant [36 x i8], align 1

declare void @_ZN9b2Fixture7DestroyEP16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(84), ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6b2FreePv(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7b2World11DestroyBodyEP6b2Body(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %1) local_unnamed_addr #4 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 103280
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %7, label %6

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

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

9:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 181, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7b2World11DestroyBodyEP6b2Body) #6
  unreachable

10:                                               ; preds = %7
  %11 = tail call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %0)
  br i1 %11, label %82, label %12

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 103325
  store i8 1, ptr %13, align 1, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %1, i64 144
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  %.not56 = icmp eq ptr %15, null
  br i1 %.not56, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 103304
  br label %17

17:                                               ; preds = %.lr.ph, %27
  %.057 = phi ptr [ %15, %.lr.ph ], [ %19, %27 ]
  %18 = getelementptr inbounds i8, ptr %.057, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !32
  %20 = load ptr, ptr %16, align 8, !tbaa !34
  %.not55 = icmp eq ptr %20, null
  br i1 %.not55, label %27, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %.057, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !35
  %24 = load ptr, ptr %20, align 8, !tbaa !36
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load ptr, ptr %25, align 8
  tail call void %26(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %23)
  br label %27

27:                                               ; preds = %21, %17
  %28 = getelementptr inbounds i8, ptr %.057, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !35
  tail call void @_ZN7b2World12DestroyJointEP7b2Joint(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %29)
  store ptr %19, ptr %14, align 8, !tbaa !23
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %._crit_edge, label %17, !llvm.loop !38

._crit_edge:                                      ; preds = %27, %12
  store ptr null, ptr %14, align 8, !tbaa !23
  %30 = tail call noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208) %1)
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %._crit_edge
  %32 = getelementptr inbounds i8, ptr %0, i64 103064
  br label %41

._crit_edge61:                                    ; preds = %41, %._crit_edge
  %33 = getelementptr inbounds i8, ptr %1, i64 152
  %34 = load ptr, ptr %33, align 8, !tbaa !40
  tail call void @_Z6b2FreePv(ptr noundef %34)
  %35 = getelementptr inbounds i8, ptr %1, i64 160
  store i32 0, ptr %35, align 8, !tbaa !41
  %36 = getelementptr inbounds i8, ptr %1, i64 128
  %37 = load ptr, ptr %36, align 8, !tbaa !42
  %.not5162 = icmp eq ptr %37, null
  br i1 %.not5162, label %._crit_edge66, label %.lr.ph65

.lr.ph65:                                         ; preds = %._crit_edge61
  %38 = getelementptr inbounds i8, ptr %0, i64 103304
  %39 = getelementptr inbounds i8, ptr %0, i64 103064
  %40 = getelementptr inbounds i8, ptr %1, i64 136
  br label %49

41:                                               ; preds = %.lr.ph60, %41
  %.04558 = phi i32 [ 0, %.lr.ph60 ], [ %46, %41 ]
  %42 = tail call noundef ptr @_ZN6b2Body10GetContactEi(ptr noundef nonnull align 8 dereferenceable(208) %1, i32 noundef %.04558)
  %43 = getelementptr inbounds i8, ptr %42, i64 104
  %44 = load i32, ptr %43, align 8, !tbaa !43
  %45 = and i32 %44, -3
  store i32 %45, ptr %43, align 8, !tbaa !43
  tail call void @_ZN16b2ContactManager7DestroyEP9b2Contact(ptr noundef nonnull align 8 dereferenceable(184) %32, ptr noundef %42)
  %46 = add nuw nsw i32 %.04558, 1
  %47 = tail call noundef i32 @_ZN6b2Body15GetContactCountEv(ptr noundef nonnull align 8 dereferenceable(208) %1)
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %41, label %._crit_edge61, !llvm.loop !47

49:                                               ; preds = %.lr.ph65, %57
  %.04663 = phi ptr [ %37, %.lr.ph65 ], [ %51, %57 ]
  %50 = getelementptr inbounds i8, ptr %.04663, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !48
  %52 = load ptr, ptr %38, align 8, !tbaa !34
  %.not54 = icmp eq ptr %52, null
  br i1 %.not54, label %57, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %52, align 8, !tbaa !36
  %55 = getelementptr inbounds i8, ptr %54, i64 24
  %56 = load ptr, ptr %55, align 8
  tail call void %56(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull %.04663)
  br label %57

57:                                               ; preds = %53, %49
  %58 = tail call noundef zeroext i1 @_ZN12b2BroadPhase6RemoveEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(137) %39, ptr noundef nonnull %.04663)
  tail call void @_ZN9b2Fixture7DestroyEP16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(84) %.04663, ptr noundef nonnull %0)
  tail call void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull %.04663, i32 noundef 88)
  store ptr %51, ptr %36, align 8, !tbaa !42
  %59 = load i32, ptr %40, align 8, !tbaa !52
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %40, align 8, !tbaa !52
  %.not51 = icmp eq ptr %51, null
  br i1 %.not51, label %._crit_edge66, label %49, !llvm.loop !53

._crit_edge66:                                    ; preds = %57, %._crit_edge61
  store ptr null, ptr %36, align 8, !tbaa !42
  %61 = getelementptr inbounds i8, ptr %1, i64 136
  store i32 0, ptr %61, align 8, !tbaa !52
  %62 = getelementptr inbounds i8, ptr %1, i64 112
  %63 = load ptr, ptr %62, align 8, !tbaa !54
  %.not52 = icmp eq ptr %63, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 120
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !55
  br i1 %.not52, label %._crit_edge66._crit_edge, label %64

64:                                               ; preds = %._crit_edge66
  %65 = getelementptr inbounds i8, ptr %63, i64 120
  store ptr %.pre, ptr %65, align 8, !tbaa !55
  br label %._crit_edge66._crit_edge

._crit_edge66._crit_edge:                         ; preds = %._crit_edge66, %64
  %.not53 = icmp eq ptr %.pre, null
  br i1 %.not53, label %68, label %66

66:                                               ; preds = %._crit_edge66._crit_edge
  %67 = getelementptr inbounds i8, ptr %.pre, i64 112
  store ptr %63, ptr %67, align 8, !tbaa !54
  br label %68

68:                                               ; preds = %66, %._crit_edge66._crit_edge
  %69 = getelementptr inbounds i8, ptr %0, i64 103248
  %70 = load ptr, ptr %69, align 8, !tbaa !56
  %71 = icmp eq ptr %70, %1
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store ptr %.pre, ptr %69, align 8, !tbaa !56
  br label %73

73:                                               ; preds = %72, %68
  %74 = getelementptr inbounds i8, ptr %0, i64 103256
  %75 = load ptr, ptr %74, align 8, !tbaa !57
  %76 = icmp eq ptr %75, %1
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = load ptr, ptr %62, align 8, !tbaa !54
  store ptr %78, ptr %74, align 8, !tbaa !57
  br label %79

79:                                               ; preds = %77, %73
  %80 = load i32, ptr %3, align 8, !tbaa !5
  %81 = add nsw i32 %80, -1
  store i32 %81, ptr %3, align 8, !tbaa !5
  tail call void @_ZN6b2BodyD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %1) #7
  tail call void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull %1, i32 noundef 208)
  br label %82

82:                                               ; preds = %10, %79
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7b2World12DestroyJointEP7b2Joint(ptr noundef nonnull align 8 dereferenceable(103352), ptr noundef) local_unnamed_addr #4 align 2

declare void @_ZN16b2ContactManager7DestroyEP9b2Contact(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN12b2BroadPhase6RemoveEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(137), ptr noundef) local_unnamed_addr #0

declare void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN6b2BodyD1Ev(ptr noundef nonnull align 8 dereferenceable(208)) unnamed_addr #5

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


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