; LLVM IR from mtsamis/box2d-optimized :: src/particle/b2_particle_system.ll (ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World)

; 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.b2ParticleSystem = type { i8, i32, i32, i8, i32, i8, i8, i32, float, float, float, float, i32, i32, %class.b2SlabAllocator, %"struct.b2ParticleSystem::UserOverridableBuffer", %"struct.b2ParticleSystem::UserOverridableBuffer.0", %"struct.b2ParticleSystem::UserOverridableBuffer.2", %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr, ptr, ptr, ptr, ptr, ptr, %"struct.b2ParticleSystem::UserOverridableBuffer.4", ptr, %"struct.b2ParticleSystem::UserOverridableBuffer.6", i32, [4 x i8], %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", %class.b2GrowableBuffer, %class.b2GrowableBuffer.10, %class.b2GrowableBuffer.11, %class.b2GrowableBuffer.12, %class.b2GrowableBuffer.13, %class.b2GrowableBuffer.14, %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", i64, i8, i32, ptr, %struct.b2ParticleSystemDef, ptr, ptr, ptr }
%class.b2SlabAllocator = type { %class.b2TrackedBlockAllocator, i32, %class.b2TypedFreeList }
%class.b2TrackedBlockAllocator = type { %class.b2TypedIntrusiveListNode }
%class.b2TypedIntrusiveListNode = type { %class.b2IntrusiveListNode }
%class.b2IntrusiveListNode = type { ptr, ptr }
%class.b2TypedFreeList = type { %class.b2FreeList }
%class.b2FreeList = type { %class.b2IntrusiveListNode, %class.b2IntrusiveListNode }
%"struct.b2ParticleSystem::UserOverridableBuffer" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.0" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.2" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.4" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.6" = type <{ ptr, i32, [4 x i8] }>
%class.b2GrowableBuffer = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.10 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.11 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.12 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.13 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.14 = type { ptr, i32, i32, ptr }
%"struct.b2ParticleSystem::UserOverridableBuffer.8" = type <{ ptr, i32, [4 x i8] }>
%struct.b2ParticleSystemDef = type { i8, float, float, float, i32, float, float, float, float, float, float, float, float, float, float, float, float, i32, float, i8, float }
%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 }

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__._ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %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
  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
  %9 = load ptr, ptr %4, align 8
  %10 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 14
  call void @_ZN15b2SlabAllocatorI16b2ParticleHandleEC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef 256)
  %11 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 15
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %11)
          to label %12 unwind label %63

12:                                               ; preds = %3
  %13 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 16
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %13)
          to label %14 unwind label %63

14:                                               ; preds = %12
  %15 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 17
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %16 unwind label %63

16:                                               ; preds = %14
  %17 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 18
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %17)
          to label %18 unwind label %63

18:                                               ; preds = %16
  %19 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 25
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19)
          to label %20 unwind label %63

20:                                               ; preds = %18
  %21 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 27
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIPvEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %22 unwind label %63

22:                                               ; preds = %20
  %23 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 30
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %23)
          to label %24 unwind label %63

24:                                               ; preds = %22
  %25 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 31
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %25)
          to label %26 unwind label %63

26:                                               ; preds = %24
  %27 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 32
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %27)
          to label %28 unwind label %63

28:                                               ; preds = %26
  %29 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 33
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.b2World, ptr %30, i32 0, i32 0
  invoke void @_ZN16b2GrowableBufferIiEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(128) %31)
          to label %32 unwind label %63

32:                                               ; preds = %28
  %33 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 34
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.b2World, ptr %34, i32 0, i32 0
  invoke void @_ZN16b2GrowableBufferIN16b2ParticleSystem5ProxyEEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(128) %35)
          to label %36 unwind label %67

36:                                               ; preds = %32
  %37 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 35
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.b2World, ptr %38, i32 0, i32 0
  invoke void @_ZN16b2GrowableBufferI17b2ParticleContactEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(128) %39)
          to label %40 unwind label %71

40:                                               ; preds = %36
  %41 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 36
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.b2World, ptr %42, i32 0, i32 0
  invoke void @_ZN16b2GrowableBufferI21b2ParticleBodyContactEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(128) %43)
          to label %44 unwind label %75

44:                                               ; preds = %40
  %45 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 37
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.b2World, ptr %46, i32 0, i32 0
  invoke void @_ZN16b2GrowableBufferI14b2ParticlePairEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(128) %47)
          to label %48 unwind label %79

48:                                               ; preds = %44
  %49 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 38
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.b2World, ptr %50, i32 0, i32 0
  invoke void @_ZN16b2GrowableBufferI15b2ParticleTriadEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(128) %51)
          to label %52 unwind label %83

52:                                               ; preds = %48
  %53 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 39
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %53)
          to label %54 unwind label %87

54:                                               ; preds = %52
  %55 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 40
  invoke void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %55)
          to label %56 unwind label %87

56:                                               ; preds = %54
  %57 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 45
  invoke void @_ZN19b2ParticleSystemDefC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %57)
          to label %58 unwind label %87

58:                                               ; preds = %56
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  br label %92

62:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 382, ptr noundef @__PRETTY_FUNCTION__._ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World) #5
  unreachable

63:                                               ; preds = %28, %26, %24, %22, %20, %18, %16, %14, %12, %3
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %158

67:                                               ; preds = %32
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  br label %157

71:                                               ; preds = %36
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %156

75:                                               ; preds = %40
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %155

79:                                               ; preds = %44
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %154

83:                                               ; preds = %48
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  br label %153

87:                                               ; preds = %140, %126, %122, %118, %114, %92, %56, %54, %52
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %7, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %8, align 4
  call void @_ZN16b2GrowableBufferI15b2ParticleTriadED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  br label %153

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91, %61
  %93 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 0
  store i8 0, ptr %93, align 8, !tbaa !9
  %94 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 1
  store i32 0, ptr %94, align 4, !tbaa !34
  %95 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 2
  store i32 0, ptr %95, align 8, !tbaa !35
  %96 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 3
  store i8 0, ptr %96, align 4, !tbaa !36
  %97 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 4
  store i32 0, ptr %97, align 8, !tbaa !37
  %98 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 5
  store i8 0, ptr %98, align 4, !tbaa !38
  %99 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 6
  store i8 0, ptr %99, align 1, !tbaa !39
  %100 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 7
  store i32 0, ptr %100, align 8, !tbaa !40
  %101 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 12
  store i32 0, ptr %101, align 4, !tbaa !41
  %102 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 13
  store i32 0, ptr %102, align 8, !tbaa !42
  %103 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 19
  store ptr null, ptr %103, align 8, !tbaa !43
  %104 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 20
  store ptr null, ptr %104, align 8, !tbaa !44
  %105 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 21
  store ptr null, ptr %105, align 8, !tbaa !45
  %106 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 22
  store ptr null, ptr %106, align 8, !tbaa !46
  %107 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 23
  store ptr null, ptr %107, align 8, !tbaa !47
  %108 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 24
  store ptr null, ptr %108, align 8, !tbaa !48
  %109 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 26
  store ptr null, ptr %109, align 8, !tbaa !49
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %110, i32 0, i32 0
  %112 = load i8, ptr %111, align 4, !tbaa !50, !range !51, !noundef !52
  %113 = trunc i8 %112 to i1
  invoke void @_ZN16b2ParticleSystem21SetStrictContactCheckEb(ptr noundef nonnull align 8 dereferenceable(632) %9, i1 noundef zeroext %113)
          to label %114 unwind label %87

114:                                              ; preds = %92
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %115, i32 0, i32 1
  %117 = load float, ptr %116, align 4, !tbaa !53
  invoke void @_ZN16b2ParticleSystem10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(632) %9, float noundef %117)
          to label %118 unwind label %87

118:                                              ; preds = %114
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %119, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !54
  invoke void @_ZN16b2ParticleSystem15SetGravityScaleEf(ptr noundef nonnull align 8 dereferenceable(632) %9, float noundef %121)
          to label %122 unwind label %87

122:                                              ; preds = %118
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %123, i32 0, i32 3
  %125 = load float, ptr %124, align 4, !tbaa !55
  invoke void @_ZN16b2ParticleSystem9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(632) %9, float noundef %125)
          to label %126 unwind label %87

126:                                              ; preds = %122
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %127, i32 0, i32 4
  %129 = load i32, ptr %128, align 4, !tbaa !56
  invoke void @_ZN16b2ParticleSystem19SetMaxParticleCountEi(ptr noundef nonnull align 8 dereferenceable(632) %9, i32 noundef %129)
          to label %130 unwind label %87

130:                                              ; preds = %126
  %131 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 43
  store i32 0, ptr %131, align 4, !tbaa !57
  %132 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 44
  store ptr null, ptr %132, align 8, !tbaa !58
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %133, i32 0, i32 20
  %135 = load float, ptr %134, align 4, !tbaa !59
  %136 = fcmp ogt float %135, 0.000000e+00
  br i1 %136, label %137, label %138

137:                                              ; preds = %130
  br label %140

138:                                              ; preds = %130
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 411, ptr noundef @__PRETTY_FUNCTION__._ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World) #5
  unreachable

139:                                              ; No predecessors!
  br label %140

140:                                              ; preds = %139, %137
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 45
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %142, ptr align 4 %141, i64 84, i1 false), !tbaa.struct !60
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 46
  store ptr %143, ptr %144, align 8, !tbaa !64
  %145 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 28
  store i32 0, ptr %145, align 8, !tbaa !65
  %146 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 41
  store i64 0, ptr %146, align 8, !tbaa !66
  %147 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 42
  store i8 0, ptr %147, align 8, !tbaa !67
  %148 = getelementptr inbounds %class.b2ParticleSystem, ptr %9, i32 0, i32 45
  %149 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %148, i32 0, i32 19
  %150 = load i8, ptr %149, align 4, !tbaa !68, !range !51, !noundef !52
  %151 = trunc i8 %150 to i1
  invoke void @_ZN16b2ParticleSystem19SetDestructionByAgeEb(ptr noundef nonnull align 8 dereferenceable(632) %9, i1 noundef zeroext %151)
          to label %152 unwind label %87

152:                                              ; preds = %140
  ret void

153:                                              ; preds = %87, %83
  call void @_ZN16b2GrowableBufferI14b2ParticlePairED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  br label %154

154:                                              ; preds = %153, %79
  call void @_ZN16b2GrowableBufferI21b2ParticleBodyContactED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  br label %155

155:                                              ; preds = %154, %75
  call void @_ZN16b2GrowableBufferI17b2ParticleContactED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  br label %156

156:                                              ; preds = %155, %71
  call void @_ZN16b2GrowableBufferIN16b2ParticleSystem5ProxyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  br label %157

157:                                              ; preds = %156, %67
  call void @_ZN16b2GrowableBufferIiED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %158

158:                                              ; preds = %157, %63
  call void @_ZN15b2SlabAllocatorI16b2ParticleHandleED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #6
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %7, align 8
  %161 = load i32, ptr %8, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15b2SlabAllocatorI16b2ParticleHandleEC2Ej(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16b2ParticleSystem10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(632), float noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16b2ParticleSystem15SetGravityScaleEf(ptr noundef nonnull align 8 dereferenceable(632), float noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16b2ParticleSystem9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(632), float noundef) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16b2ParticleSystem19SetDestructionByAgeEb(ptr noundef nonnull align 8 dereferenceable(632), i1 noundef zeroext) #1 align 2

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn nounwind }
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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS16b2ParticleSystem", !11, i64 0, !12, i64 4, !12, i64 8, !11, i64 12, !12, i64 16, !11, i64 20, !11, i64 21, !12, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !12, i64 44, !12, i64 48, !14, i64 56, !20, i64 112, !21, i64 128, !22, i64 144, !22, i64 160, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !23, i64 224, !6, i64 240, !24, i64 248, !12, i64 264, !25, i64 272, !25, i64 288, !25, i64 304, !26, i64 320, !27, i64 344, !28, i64 368, !29, i64 392, !30, i64 416, !31, i64 440, !25, i64 464, !25, i64 480, !32, i64 496, !11, i64 504, !12, i64 508, !6, i64 512, !33, i64 520, !6, i64 608, !6, i64 616, !6, i64 624}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !15, i64 0, !12, i64 16, !18, i64 24}
!15 = !{!"_ZTS23b2TrackedBlockAllocator", !16, i64 0}
!16 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !17, i64 0}
!17 = !{!"_ZTS19b2IntrusiveListNode", !6, i64 0, !6, i64 8}
!18 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !19, i64 0}
!19 = !{!"_ZTS10b2FreeList", !17, i64 0, !17, i64 16}
!20 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !6, i64 0, !12, i64 8}
!21 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !6, i64 0, !12, i64 8}
!22 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !6, i64 0, !12, i64 8}
!23 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !6, i64 0, !12, i64 8}
!24 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !6, i64 0, !12, i64 8}
!25 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !6, i64 0, !12, i64 8}
!26 = !{!"_ZTS16b2GrowableBufferIiE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!27 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!28 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!29 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!30 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!31 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!32 = !{!"long long", !7, i64 0}
!33 = !{!"_ZTS19b2ParticleSystemDef", !11, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !12, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !12, i64 68, !13, i64 72, !11, i64 76, !13, i64 80}
!34 = !{!10, !12, i64 4}
!35 = !{!10, !12, i64 8}
!36 = !{!10, !11, i64 12}
!37 = !{!10, !12, i64 16}
!38 = !{!10, !11, i64 20}
!39 = !{!10, !11, i64 21}
!40 = !{!10, !12, i64 24}
!41 = !{!10, !12, i64 44}
!42 = !{!10, !12, i64 48}
!43 = !{!10, !6, i64 176}
!44 = !{!10, !6, i64 184}
!45 = !{!10, !6, i64 192}
!46 = !{!10, !6, i64 200}
!47 = !{!10, !6, i64 208}
!48 = !{!10, !6, i64 216}
!49 = !{!10, !6, i64 240}
!50 = !{!33, !11, i64 0}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!33, !13, i64 4}
!54 = !{!33, !13, i64 8}
!55 = !{!33, !13, i64 12}
!56 = !{!33, !12, i64 16}
!57 = !{!10, !12, i64 508}
!58 = !{!10, !6, i64 512}
!59 = !{!33, !13, i64 80}
!60 = !{i64 0, i64 1, !61, i64 4, i64 4, !62, i64 8, i64 4, !62, i64 12, i64 4, !62, i64 16, i64 4, !63, i64 20, i64 4, !62, i64 24, i64 4, !62, i64 28, i64 4, !62, i64 32, i64 4, !62, i64 36, i64 4, !62, i64 40, i64 4, !62, i64 44, i64 4, !62, i64 48, i64 4, !62, i64 52, i64 4, !62, i64 56, i64 4, !62, i64 60, i64 4, !62, i64 64, i64 4, !62, i64 68, i64 4, !63, i64 72, i64 4, !62, i64 76, i64 1, !61, i64 80, i64 4, !62}
!61 = !{!11, !11, i64 0}
!62 = !{!13, !13, i64 0}
!63 = !{!12, !12, i64 0}
!64 = !{!10, !6, i64 608}
!65 = !{!10, !12, i64 264}
!66 = !{!10, !32, i64 496}
!67 = !{!10, !11, i64 504}
!68 = !{!10, !11, i64 596}


; 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.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__._ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystemC2EPK19b2ParticleSystemDefP7b2World(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef readonly %1, ptr noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN15b2SlabAllocatorI16b2ParticleHandleEC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef 256)
  %5 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 248
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIPvEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 272
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 304
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 320
  tail call void @_ZN16b2GrowableBufferIiEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(128) %2)
  %15 = getelementptr inbounds i8, ptr %0, i64 344
  tail call void @_ZN16b2GrowableBufferIN16b2ParticleSystem5ProxyEEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(128) %2)
  %16 = getelementptr inbounds i8, ptr %0, i64 368
  tail call void @_ZN16b2GrowableBufferI17b2ParticleContactEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(128) %2)
  %17 = getelementptr inbounds i8, ptr %0, i64 392
  tail call void @_ZN16b2GrowableBufferI21b2ParticleBodyContactEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(128) %2)
  %18 = getelementptr inbounds i8, ptr %0, i64 416
  tail call void @_ZN16b2GrowableBufferI14b2ParticlePairEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(128) %2)
  %19 = getelementptr inbounds i8, ptr %0, i64 440
  tail call void @_ZN16b2GrowableBufferI15b2ParticleTriadEC2ER16b2BlockAllocator(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(128) %2)
  %20 = getelementptr inbounds i8, ptr %0, i64 464
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 480
  tail call void @_ZN16b2ParticleSystem21UserOverridableBufferIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 520
  tail call void @_ZN19b2ParticleSystemDefC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %22)
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %23, label %26

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

24:                                               ; preds = %52
  %25 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN16b2GrowableBufferI15b2ParticleTriadED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  tail call void @_ZN16b2GrowableBufferI14b2ParticlePairED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  tail call void @_ZN16b2GrowableBufferI21b2ParticleBodyContactED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  tail call void @_ZN16b2GrowableBufferI17b2ParticleContactED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  tail call void @_ZN16b2GrowableBufferIN16b2ParticleSystem5ProxyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  tail call void @_ZN16b2GrowableBufferIiED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  tail call void @_ZN15b2SlabAllocatorI16b2ParticleHandleED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  resume { ptr, i32 } %25

26:                                               ; preds = %3
  store i8 0, ptr %0, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 4
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 0, ptr %28, align 8, !tbaa !33
  %29 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 0, ptr %29, align 4, !tbaa !34
  %30 = getelementptr inbounds i8, ptr %0, i64 21
  store i8 0, ptr %30, align 1, !tbaa !35
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %31, align 8, !tbaa !36
  %32 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 0, ptr %32, align 4, !tbaa !37
  %33 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 0, ptr %33, align 8, !tbaa !38
  %34 = getelementptr inbounds i8, ptr %0, i64 176
  %35 = getelementptr inbounds i8, ptr %0, i64 240
  store ptr null, ptr %35, align 8, !tbaa !39
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(9) %27, i8 0, i64 9, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %34, i8 0, i64 48, i1 false)
  %36 = load i8, ptr %1, align 4, !tbaa !40, !range !41, !noundef !42
  %37 = trunc nuw i8 %36 to i1
  tail call void @_ZN16b2ParticleSystem21SetStrictContactCheckEb(ptr noundef nonnull align 8 dereferenceable(632) %0, i1 noundef zeroext %37)
  %38 = getelementptr inbounds i8, ptr %1, i64 4
  %39 = load float, ptr %38, align 4, !tbaa !43
  tail call void @_ZN16b2ParticleSystem10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(632) %0, float noundef %39)
  %40 = getelementptr inbounds i8, ptr %1, i64 8
  %41 = load float, ptr %40, align 4, !tbaa !44
  tail call void @_ZN16b2ParticleSystem15SetGravityScaleEf(ptr noundef nonnull align 8 dereferenceable(632) %0, float noundef %41)
  %42 = getelementptr inbounds i8, ptr %1, i64 12
  %43 = load float, ptr %42, align 4, !tbaa !45
  tail call void @_ZN16b2ParticleSystem9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(632) %0, float noundef %43)
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load i32, ptr %44, align 4, !tbaa !46
  tail call void @_ZN16b2ParticleSystem19SetMaxParticleCountEi(ptr noundef nonnull align 8 dereferenceable(632) %0, i32 noundef %45)
  %46 = getelementptr inbounds i8, ptr %0, i64 508
  store i32 0, ptr %46, align 4, !tbaa !47
  %47 = getelementptr inbounds i8, ptr %0, i64 512
  store ptr null, ptr %47, align 8, !tbaa !48
  %48 = getelementptr inbounds i8, ptr %1, i64 80
  %49 = load float, ptr %48, align 4, !tbaa !49
  %50 = fcmp ogt float %49, 0.000000e+00
  br i1 %50, label %52, label %51

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

52:                                               ; preds = %26
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(84) %22, ptr noundef nonnull align 4 dereferenceable(84) %1, i64 84, i1 false), !tbaa.struct !50
  %53 = getelementptr inbounds i8, ptr %0, i64 608
  store ptr %2, ptr %53, align 8, !tbaa !54
  %54 = getelementptr inbounds i8, ptr %0, i64 264
  store i32 0, ptr %54, align 8, !tbaa !55
  %55 = getelementptr inbounds i8, ptr %0, i64 496
  store i64 0, ptr %55, align 8, !tbaa !56
  %56 = getelementptr inbounds i8, ptr %0, i64 504
  store i8 0, ptr %56, align 8, !tbaa !57
  %57 = getelementptr inbounds i8, ptr %0, i64 596
  %58 = load i8, ptr %57, align 4, !tbaa !58, !range !41, !noundef !42
  %59 = trunc nuw i8 %58 to i1
  invoke void @_ZN16b2ParticleSystem19SetDestructionByAgeEb(ptr noundef nonnull align 8 dereferenceable(632) %0, i1 noundef zeroext %59)
          to label %60 unwind label %24

60:                                               ; preds = %52
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15b2SlabAllocatorI16b2ParticleHandleEC2Ej(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16b2ParticleSystem10SetDensityEf(ptr noundef nonnull align 8 dereferenceable(632), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16b2ParticleSystem15SetGravityScaleEf(ptr noundef nonnull align 8 dereferenceable(632), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16b2ParticleSystem9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(632), float noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16b2ParticleSystem19SetDestructionByAgeEb(ptr noundef nonnull align 8 dereferenceable(632), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; 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 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"_ZTS16b2ParticleSystem", !7, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !10, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !10, i64 44, !10, i64 48, !12, i64 56, !19, i64 112, !20, i64 128, !21, i64 144, !21, i64 160, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !22, i64 224, !16, i64 240, !23, i64 248, !10, i64 264, !24, i64 272, !24, i64 288, !24, i64 304, !25, i64 320, !26, i64 344, !27, i64 368, !28, i64 392, !29, i64 416, !30, i64 440, !24, i64 464, !24, i64 480, !31, i64 496, !7, i64 504, !10, i64 508, !16, i64 512, !32, i64 520, !16, i64 608, !16, i64 616, !16, i64 624}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !13, i64 0, !10, i64 16, !17, i64 24}
!13 = !{!"_ZTS23b2TrackedBlockAllocator", !14, i64 0}
!14 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !15, i64 0}
!15 = !{!"_ZTS19b2IntrusiveListNode", !16, i64 0, !16, i64 8}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !18, i64 0}
!18 = !{!"_ZTS10b2FreeList", !15, i64 0, !15, i64 16}
!19 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !16, i64 0, !10, i64 8}
!20 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !16, i64 0, !10, i64 8}
!21 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !16, i64 0, !10, i64 8}
!22 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !16, i64 0, !10, i64 8}
!23 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !16, i64 0, !10, i64 8}
!24 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !16, i64 0, !10, i64 8}
!25 = !{!"_ZTS16b2GrowableBufferIiE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!26 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!27 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!28 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!29 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!30 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!31 = !{!"long long", !8, i64 0}
!32 = !{!"_ZTS19b2ParticleSystemDef", !7, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !10, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !10, i64 68, !11, i64 72, !7, i64 76, !11, i64 80}
!33 = !{!6, !10, i64 16}
!34 = !{!6, !7, i64 20}
!35 = !{!6, !7, i64 21}
!36 = !{!6, !10, i64 24}
!37 = !{!6, !10, i64 44}
!38 = !{!6, !10, i64 48}
!39 = !{!6, !16, i64 240}
!40 = !{!32, !7, i64 0}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!32, !11, i64 4}
!44 = !{!32, !11, i64 8}
!45 = !{!32, !11, i64 12}
!46 = !{!32, !10, i64 16}
!47 = !{!6, !10, i64 508}
!48 = !{!6, !16, i64 512}
!49 = !{!32, !11, i64 80}
!50 = !{i64 0, i64 1, !51, i64 4, i64 4, !52, i64 8, i64 4, !52, i64 12, i64 4, !52, i64 16, i64 4, !53, i64 20, i64 4, !52, i64 24, i64 4, !52, i64 28, i64 4, !52, i64 32, i64 4, !52, i64 36, i64 4, !52, i64 40, i64 4, !52, i64 44, i64 4, !52, i64 48, i64 4, !52, i64 52, i64 4, !52, i64 56, i64 4, !52, i64 60, i64 4, !52, i64 64, i64 4, !52, i64 68, i64 4, !53, i64 72, i64 4, !52, i64 76, i64 1, !51, i64 80, i64 4, !52}
!51 = !{!7, !7, i64 0}
!52 = !{!11, !11, i64 0}
!53 = !{!10, !10, i64 0}
!54 = !{!6, !16, i64 608}
!55 = !{!6, !10, i64 264}
!56 = !{!6, !31, i64 496}
!57 = !{!6, !7, i64 504}
!58 = !{!6, !7, i64 596}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass